query solutions