SELECT ?product (?qty * ?cost AS ?total)
{
?product :cost ?cost ; :quantity ?qty
}
vs.
SELECT ?product ?total
{
?product :cost ?cost ; :quantity ?qty
LET { ?total := ?cost * ?qty }
}