Write high performance SQL statements