Question: Which is taller, Elizabeth II or American football player Tony Bennett?
Choices:
Richard Gere
Max Fleischer
Simon Cowell
Paul Simon
Rahul Dev Burman
Sylvester Stallone
William Henry Harrison
Tony Bennett
David Byrne
Elizabeth II
Program:
function: Find
inputs: Elizabeth II
function: Find
inputs: American football
function: Relate
dependencies: 1
inputs: sport
backward
function: Find
inputs: Tony Bennett
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Elizabeth II" .  } UNION { ?e <pred:name> "Tony Bennett" . ?e <sport> ?e_1 . ?e_1 <pred:name> "American football" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Tony Bennett