Question: Who weighs more, Mel Gibson (the one that is related to sport basketball) or Jack Kemp?
Choices: Sylvester Stallone
Jack Kemp
Simon Cowell
Paul Simon
Richard Gere
William Henry Harrison
James E. Reilly
Rahul Dev Burman
Max Fleischer
Mel Gibson
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mel Gibson" . ?e <sport> ?e_1 . ?e_1 <pred:name> "basketball" .   } UNION { ?e <pred:name> "Jack Kemp" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: basketball
function: Relate
dependencies: 0
inputs: sport
backward
function: Find
inputs: Mel Gibson
function: And
dependencies: 1
2
function: Find
inputs: Jack Kemp
function: SelectBetween
dependencies: 3
4
inputs: mass
greater
Answer: Jack Kemp