Condense query to data model