Question: Who is shorter LeBron James or Tim Duncan, a member from San Antonio Spurs?
Choices:
William Henry Harrison
Simon Cowell
Richard Gere
Max Fleischer
James E. Reilly
LeBron James
David Byrne
Sylvester Stallone
Paul Simon
Tim Duncan
Program:
function: Find
inputs: San Antonio Spurs
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: Tim Duncan
function: And
dependencies: 1
2
function: Find
inputs: LeBron James
function: SelectBetween
dependencies: 3
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tim Duncan" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "San Antonio Spurs" .   } UNION { ?e <pred:name> "LeBron James" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: LeBron James