Question: Which one, Joe Jackson (the one that is educated at New Mexico State University) or Tom Johnson (the one that is a member of New Orleans Saints), has greater mass?
Choices: Max Fleischer
Tom Johnson
Rahul Dev Burman
Paul Simon
Sylvester Stallone
Simon Cowell
Richard Gere
Joe Jackson
James E. Reilly
William Henry Harrison
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Joe Jackson" . ?e <educated_at> ?e_1 . ?e_1 <pred:name> "New Mexico State University" .   } UNION { ?e <pred:name> "Tom Johnson" . ?e <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "New Orleans Saints" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: New Mexico State University
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: Joe Jackson
function: And
dependencies: 1
2
function: Find
inputs: New Orleans Saints
function: Relate
dependencies: 4
inputs: member of sports team
backward
function: Find
inputs: Tom Johnson
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
greater
Answer: Tom Johnson