Question: Who is shorter, John Madden (the one that is a member of New Jersey Devils) or Tom Johnson (the one whose position is defenceman)?
Choices: William Henry Harrison
John Madden
Max Fleischer
Rahul Dev Burman
Tom Johnson
Richard Gere
Paul Simon
James E. Reilly
David Byrne
Sylvester Stallone
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Madden" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "New Jersey Devils" .   } UNION { ?e <pred:name> "Tom Johnson" . ?e <position_played_on_team_/_speciality> ?e_2 . ?e_2 <pred:name> "defenceman" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: New Jersey Devils
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: John Madden
function: And
dependencies: 1
2
function: Find
inputs: defenceman
function: Relate
dependencies: 4
inputs: position played on team / speciality
backward
function: Find
inputs: Tom Johnson
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: height
less
Answer: John Madden