Question: Who is shorter, Leon Trotsky or Brad Jones (the one that is related to sport American football)?
Choices:
Paul Simon
William Henry Harrison
James E. Reilly
David Byrne
Max Fleischer
Simon Cowell
Brad Jones
Richard Gere
Rahul Dev Burman
Leon Trotsky
Program:
function: Find
inputs: Leon Trotsky
function: Find
inputs: American football
function: Relate
dependencies: 1
inputs: sport
backward
function: Find
inputs: Brad Jones
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Leon Trotsky" .  } UNION { ?e <pred:name> "Brad Jones" . ?e <sport> ?e_1 . ?e_1 <pred:name> "American football" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Leon Trotsky