Question: Who weighs more, Will Smith (the one that is a member of New Orleans Saints) or Jim Brown (the one that is related to sport basketball)?
Choices:
Simon Cowell
Max Fleischer
Will Smith
Paul Simon
Sylvester Stallone
Richard Gere
James E. Reilly
William Henry Harrison
Rahul Dev Burman
Jim Brown
Program:
function: Find
inputs: New Orleans Saints
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Will Smith
function: And
dependencies: 1
2
function: Find
inputs: basketball
function: Relate
dependencies: 4
inputs: sport
backward
function: Find
inputs: Jim Brown
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Will Smith" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "New Orleans Saints" .   } UNION { ?e <pred:name> "Jim Brown" . ?e <sport> ?e_2 . ?e_2 <pred:name> "basketball" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Will Smith