Question: Who is shorter, Joe Jackson (the one whose position is point guard) or Stephen Jackson (the one whose position is small forward)?
Choices:
Joe Jackson
James E. Reilly
Stephen Jackson
Paul Simon
Simon Cowell
William Henry Harrison
Richard Gere
Rahul Dev Burman
Sylvester Stallone
Max Fleischer
Answer: Joe Jackson
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Joe Jackson" . ?e <position_played_on_team_/_speciality> ?e_1 . ?e_1 <pred:name> "point guard" .   } UNION { ?e <pred:name> "Stephen Jackson" . ?e <position_played_on_team_/_speciality> ?e_2 . ?e_2 <pred:name> "small forward" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: point guard
function: Relate
dependencies: 0
inputs: position played on team / speciality
backward
function: Find
inputs: Joe Jackson
function: And
dependencies: 1
2
function: Find
inputs: small forward
function: Relate
dependencies: 4
inputs: position played on team / speciality
backward
function: Find
inputs: Stephen Jackson
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: height
less