Question: Who is heavier, William James of the Philadelphia Eagles or Chris Cooper of the San Francisco 49ers?
Choices:
William James
Chris Cooper
Simon Cowell
William Henry Harrison
David Byrne
Sylvester Stallone
Paul Simon
Rahul Dev Burman
Max Fleischer
Richard Gere
Program:
function: Find
inputs: Philadelphia Eagles
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: William James
function: And
dependencies: 1
2
function: Find
inputs: San Francisco 49ers
function: Relate
dependencies: 4
inputs: member of sports team
backward
function: Find
inputs: Chris Cooper
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "William James" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Philadelphia Eagles" .   } UNION { ?e <pred:name> "Chris Cooper" . ?e <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "San Francisco 49ers" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chris Cooper