Question: Who weighs less, Kareem Abdul-Jabbar or Johnny Green (the one that is a member of Washington Wizards)?
Choices:
Paul Simon
Simon Cowell
Johnny Green
Richard Gere
James E. Reilly
Sylvester Stallone
Max Fleischer
William Henry Harrison
Rahul Dev Burman
David Byrne
Program:
function: Find
inputs: Kareem Abdul-Jabbar
function: Find
inputs: Washington Wizards
function: Relate
dependencies: 1
inputs: member of sports team
backward
function: Find
inputs: Johnny Green
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: mass
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kareem Abdul-Jabbar" .  } UNION { ?e <pred:name> "Johnny Green" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Washington Wizards" .   } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Johnny Green