Question: Which one is lighter, Johnny Green (the one that is a member of Philadelphia 76ers) or Lincoln (the one whose position is midfielder)?
Choices:
Johnny Green
Simon Cowell
Paul Simon
Richard Gere
William Henry Harrison
James E. Reilly
David Byrne
Lincoln
Rahul Dev Burman
Max Fleischer
Program:
function: Find
inputs: Philadelphia 76ers
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Johnny Green
function: And
dependencies: 1
2
function: Find
inputs: midfielder
function: Relate
dependencies: 4
inputs: position played on team / speciality
backward
function: Find
inputs: Lincoln
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: mass
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Johnny Green" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Philadelphia 76ers" .   } UNION { ?e <pred:name> "Lincoln" . ?e <position_played_on_team_/_speciality> ?e_2 . ?e_2 <pred:name> "midfielder" .  } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Lincoln