docs: def where_clause(self):
          """
          convert self.restriction to the SQL WHERE clause
          """
          cond = self._make_condition(self.restriction)
          return '' if cond is True else ' WHERE %s' % cond