Question: Which is shorter, John Spencer of Rangers F.C. or Lars Hirschfeld?
Choices:
James E. Reilly
Sylvester Stallone
Richard Gere
Max Fleischer
Lars Hirschfeld
John Spencer
Paul Simon
Simon Cowell
David Byrne
William Henry Harrison
Program:
function: Find
inputs: Rangers F.C.
function: Relate
dependencies: 0
inputs: member of sports team
backward
function: Find
inputs: John Spencer
function: And
dependencies: 1
2
function: Find
inputs: Lars Hirschfeld
function: SelectBetween
dependencies: 3
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Spencer" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "Rangers F.C." .   } UNION { ?e <pred:name> "Lars Hirschfeld" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: John Spencer