change test sql query