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