Correct the SQL query.