def _ExecuteQuery(results, query, filters, orders, index_list):
 orders = _GuessOrders(filters, orders)
 dsquery = _MakeQuery(query, filters, orders)
 if query.property_name_size():
  results = _CreateIndexOnlyQueryResults(results, set((order.property() for order in orders)))
 return ListCursor(query, dsquery, orders, index_list, datastore_query.apply_query(dsquery, results))

def _ExecuteQuery ( results , query , filters , orders , index_list ) : orders = _GuessOrders ( filters , orders ) dsquery = _MakeQuery ( query , filters , orders ) if query . property_name_size ( ) : results = _CreateIndexOnlyQueryResults ( results , set ( ( order . property ( ) for order in orders ) ) ) return ListCursor ( query , dsquery , orders , index_list , datastore_query . apply_query ( dsquery , results ) )
executes the query on a superset of its results .