Question: Who is shorter Juan Mata or Roger Taylor (the one that is related to sport tennis)?
Choices:
James E. Reilly
William Henry Harrison
Paul Simon
Max Fleischer
Roger Taylor
Juan Mata
Sylvester Stallone
David Byrne
Richard Gere
Rahul Dev Burman
Program:
function: Find
inputs: Juan Mata
function: Find
inputs: tennis
function: Relate
dependencies: 1
inputs: sport
backward
function: Find
inputs: Roger Taylor
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Juan Mata" .  } UNION { ?e <pred:name> "Roger Taylor" . ?e <sport> ?e_1 . ?e_1 <pred:name> "tennis" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Juan Mata