Set one of SQL queries