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