gateways return queries, caller may convert to entity, list, or iterator