# File lib/arel/algebra/relations/relation.rb, line 41
    def to_sql(formatter = nil)
      sql = compiler.select_sql

      return sql unless formatter
      formatter.select sql, self
    end