Question: Is Orlando Bloom or John Irving (the one that is related to sport basketball) taller ?
Choices:
Simon Cowell
Orlando Bloom
Rahul Dev Burman
William Henry Harrison
David Byrne
Max Fleischer
Richard Gere
Sylvester Stallone
John Irving
James E. Reilly
Program:
function: Find
inputs: Orlando Bloom
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
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Orlando Bloom" .  } 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
Answer: John Irving