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