add support for queries returning only a subset of fields