added sherlock_and_queries