Question: Who is shorter, Israel (the one that uses the language Spanish) or Richard Wright (the one that is related to sport association football)?
Choices:
Rahul Dev Burman
James E. Reilly
William Henry Harrison
Richard Wright
Richard Gere
Sylvester Stallone
David Byrne
Simon Cowell
Israel
Paul Simon
Program:
function: Find
inputs: Spanish
function: Relate
dependencies: 0
inputs: languages spoken, written or signed
backward
function: Find
inputs: Israel
function: And
dependencies: 1
2
function: Find
inputs: association football
function: Relate
dependencies: 4
inputs: sport
backward
function: Find
inputs: Richard Wright
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Israel" . ?e <languages_spoken,_written_or_signed> ?e_1 . ?e_1 <pred:name> "Spanish" .   } UNION { ?e <pred:name> "Richard Wright" . ?e <sport> ?e_2 . ?e_2 <pred:name> "association football" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Israel