<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, query, parameters=None):
 """Queries the database file. Args: query (str):
 SQL query. parameters (Optional[dict|tuple]):
 query parameters. Returns: list[sqlite3.Row]: rows resulting from the query. """

    # TODO: catch Warning and return None.
    # Note that we cannot pass parameters as a keyword argument here.
    # A parameters value of None is not supported.
    if parameters:
      self._cursor.execute(query, parameters)
    else:
      self._cursor.execute(query)

    return self._cursor.fetchall()