testing different SQL queries