Question: Who is shorter, Napoleon (the one that has the occupation of military officer) or John Ruddy?
Choices:
Max Fleischer
Rahul Dev Burman
David Byrne
Napoleon
Richard Gere
Sylvester Stallone
Simon Cowell
William Henry Harrison
James E. Reilly
John Ruddy
Answer: Napoleon
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Napoleon" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "military officer" .   } UNION { ?e <pred:name> "John Ruddy" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: military officer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Napoleon
function: And
dependencies: 1
2
function: Find
inputs: John Ruddy
function: SelectBetween
dependencies: 3
4
inputs: height
less