Question: Who weighs more, Chris Evans (the one whose position is small forward) or Robert Taylor (the one that was born in Tyler)?
Choices:
James E. Reilly
David Byrne
Richard Gere
Rahul Dev Burman
Max Fleischer
Simon Cowell
Robert Taylor
Paul Simon
William Henry Harrison
Chris Evans
Program:
function: Find
inputs: small forward
function: Relate
dependencies: 0
inputs: position played on team / speciality
backward
function: Find
inputs: Chris Evans
function: And
dependencies: 1
2
function: Find
inputs: Tyler
function: Relate
dependencies: 4
inputs: place of birth
backward
function: Find
inputs: Robert Taylor
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chris Evans" . ?e <position_played_on_team_/_speciality> ?e_1 . ?e_1 <pred:name> "small forward" .   } UNION { ?e <pred:name> "Robert Taylor" . ?e <place_of_birth> ?e_2 . ?e_2 <pred:name> "Tyler" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chris Evans