1. SELECT ?product (?qty * ?cost AS ?total)
  2. {
  3. ?product :cost ?cost ; :quantity ?qty
  4. }
  5.  
  6. vs.
  7.  
  8. SELECT ?product ?total
  9. {
  10. ?product :cost ?cost ; :quantity ?qty
  11. LET { ?total := ?cost * ?qty }
  12. }
  13.