sql query evaluation order