Question: Who is shorter, Chris Carter (the one whose position is safety) or Vince Vaughn?
Choices:
Vince Vaughn
Richard Gere
Chris Carter
Simon Cowell
Paul Simon
James E. Reilly
Sylvester Stallone
David Byrne
William Henry Harrison
Rahul Dev Burman
Program:
function: Find
inputs: safety
function: Relate
dependencies: 0
inputs: position played on team / speciality
backward
function: Find
inputs: Chris Carter
function: And
dependencies: 1
2
function: Find
inputs: Vince Vaughn
function: SelectBetween
dependencies: 3
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chris Carter" . ?e <position_played_on_team_/_speciality> ?e_1 . ?e_1 <pred:name> "safety" .   } UNION { ?e <pred:name> "Vince Vaughn" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Chris Carter