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