Add default query for the SQL field