Question: Who weighs less, John Carter (the one that is a member of San Jose Sharks) or Kevin Smith (the one that was born in Compton)?
Choices: Simon Cowell
David Byrne
Sylvester Stallone
Kevin Smith
John Carter
James E. Reilly
William Henry Harrison
Paul Simon
Max Fleischer
Rahul Dev Burman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Carter" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "San Jose Sharks" .   } UNION { ?e <pred:name> "Kevin Smith" . ?e <place_of_birth> ?e_2 . ?e_2 <pred:name> "Compton" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: San Jose Sharks
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: John Carter
function: And
dependencies: 1
2
function: Find
inputs: Compton
function: Relate
dependencies: 4
inputs: place of birth
backward
function: Find
inputs: Kevin Smith
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
less
Answer: John Carter