Question: Who is taller, David Arnold (the one that is educated at University of Michigan) or Orlando Bloom?
Choices:
William Henry Harrison
Richard Gere
Rahul Dev Burman
David Byrne
Sylvester Stallone
Orlando Bloom
Max Fleischer
Paul Simon
David Arnold
Simon Cowell
Program:
function: Find
inputs: University of Michigan
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: David Arnold
function: And
dependencies: 1
2
function: Find
inputs: Orlando Bloom
function: SelectBetween
dependencies: 3
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "David Arnold" . ?e <educated_at> ?e_1 . ?e_1 <pred:name> "University of Michigan" .   } UNION { ?e <pred:name> "Orlando Bloom" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: David Arnold