simplify the QueryResult object