A part of the SQL queries