mapped query for all return types