Question: Is the heavier of the two Canadian citizen Scott Wilson, or William James of the Buffalo Bills?
Choices:
Sylvester Stallone
Rahul Dev Burman
Scott Wilson
Richard Gere
James E. Reilly
William James
Simon Cowell
Max Fleischer
William Henry Harrison
Paul Simon
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Scott Wilson
function: And
dependencies: 1
2
function: Find
inputs: Buffalo Bills
function: Relate
dependencies: 4
inputs: member of sports team
backward
function: Find
inputs: William James
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Scott Wilson" . ?e <country_of_citizenship> ?e_1 . ?e_1 <pred:name> "Canada" .   } UNION { ?e <pred:name> "William James" . ?e <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Buffalo Bills" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: William James