Simplified Query.build_lookup()