Question: Who is shorter, James Madison (the one that uses the language English) or Barack Obama?
Choices: Paul Simon
Rahul Dev Burman
Richard Gere
James Madison
Max Fleischer
Simon Cowell
Barack Obama
James E. Reilly
William Henry Harrison
David Byrne
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James Madison" . ?e <languages_spoken,_written_or_signed> ?e_1 . ?e_1 <pred:name> "English" .   } UNION { ?e <pred:name> "Barack Obama" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: languages spoken, written or signed
backward
function: Find
inputs: James Madison
function: And
dependencies: 1
2
function: Find
inputs: Barack Obama
function: SelectBetween
dependencies: 3
4
inputs: height
less
Answer: James Madison