def compile(self):
        child_scheme = self.input.scheme()
        self.language.currentop = self.input

        def formatemitter(name, exp):
            e = self.language.compile_expression(exp)
            if isinstance(exp, AttributeRef):
                return e % "%s"
            else:
                return "%s as ?%s" % (e, name)
        emitters = ", ".join([formatemitter(name, exp)
                              for (name, exp) in self.emitters])
        return """
  SELECT %s
  {
   %s
  }
  """ % (emitters, self.input.compile())
dataset/ETHPy150Open uwescience/raco/raco/backends/sparql/sparql.py/SPARQLApply.compile/swapped operands of `%`