<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def query(self):
 """ The mongo query object which would be executed if this Query object were used """

        if self._rawquery==True:
            return self.__query
        return flatten(self.__query)