Question: Who weighs less, Anthony Anderson (the one that is a member of Atlanta Falcons) or Chris Cooper (the one that is a member of Dallas Cowboys)?
Choices:
James E. Reilly
Richard Gere
Rahul Dev Burman
David Byrne
Anthony Anderson
Max Fleischer
Simon Cowell
Sylvester Stallone
Paul Simon
William Henry Harrison
Program:
function: Find
inputs: Atlanta Falcons
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Anthony Anderson
function: And
dependencies: 1
2
function: Find
inputs: Dallas Cowboys
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
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Anthony Anderson" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Atlanta Falcons" .   } UNION { ?e <pred:name> "Chris Cooper" . ?e <member_of_sports_team> ?e_2 . ?e_2 <pred:name> "Dallas Cowboys" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Anthony Anderson