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