def conditions_as_sql(self, prewhere=False):
q_object = self._prewhere_q if prewhere else self._where_q<EOL>return q_object.to_sql(self._model_cls)<EOL>
Returns the contents of the query's `WHERE` or `PREWHERE` clause as a string.