Question: Who weighs less, Joe Jackson (the one that is educated at New Mexico State University) or Craig Ferguson (the one that is a member of Montreal Canadiens)?
Choices:
James E. Reilly
Rahul Dev Burman
Sylvester Stallone
Simon Cowell
Craig Ferguson
Joe Jackson
William Henry Harrison
Max Fleischer
Paul Simon
David Byrne
Answer: Craig Ferguson
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> "Craig Ferguson" . ?e <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Montreal Canadiens" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?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: Montreal Canadiens
function: Relate
dependencies: 4
inputs: member of sports team
backward
function: Find
inputs: Craig Ferguson
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
less