select top 1000 foo , bar , baz from my_table where baz > ? order by foo, bar