Tools, Queries and Codes