Question: Who is taller, Mel Gibson (the one that is related to sport basketball) or Selena Gomez?
Choices: James E. Reilly
Selena Gomez
Simon Cowell
Mel Gibson
William Henry Harrison
Rahul Dev Burman
Richard Gere
David Byrne
Paul Simon
Max Fleischer
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mel Gibson" . ?e <sport> ?e_1 . ?e_1 <pred:name> "basketball" .   } UNION { ?e <pred:name> "Selena Gomez" .  } ?e <height> ?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: Selena Gomez
function: SelectBetween
dependencies: 3
4
inputs: height
greater
Answer: Mel Gibson