Question: Who is shorter, Lars Hirschfeld or Carlos Ruiz (the one that is a member of D.C. United)?
Choices:
Sylvester Stallone
Paul Simon
Max Fleischer
Richard Gere
Lars Hirschfeld
David Byrne
Rahul Dev Burman
James E. Reilly
Carlos Ruiz
Simon Cowell
Program:
function: Find
inputs: Lars Hirschfeld
function: Find
inputs: D.C. United
function: Relate
dependencies: 1
inputs: member of sports team
backward
function: Find
inputs: Carlos Ruiz
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lars Hirschfeld" .  } UNION { ?e <pred:name> "Carlos Ruiz" . ?e <member_of_sports_team> ?e_1 . ?e_1 <pred:name> "D.C. United" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Carlos Ruiz