Question: Who is smaller, Ray Allen or Queens Park Rangers F.C.'s John Spencer?
Choices:
Max Fleischer
Paul Simon
Simon Cowell
James E. Reilly
David Byrne
John Spencer
Sylvester Stallone
Ray Allen
Rahul Dev Burman
William Henry Harrison
Program:
function: Find
inputs: Ray Allen
function: Find
inputs: Queens Park Rangers F.C.
function: Relate
dependencies: 1
inputs: member of sports team
backward
function: Find
inputs: John Spencer
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: mass
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ray Allen" .  } UNION { ?e <pred:name> "John Spencer" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Queens Park Rangers F.C." .   } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: John Spencer