Queries for search written