Question: Who is shorter, Barack Obama or Shakira who has the record label Columbia Records?
Choices:
Richard Gere
William Henry Harrison
James E. Reilly
Simon Cowell
Shakira
Sylvester Stallone
Max Fleischer
Rahul Dev Burman
David Byrne
Paul Simon
Answer: Shakira
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Barack Obama" .  } UNION { ?e <pred:name> "Shakira" . ?e <record_label> ?e_1 . ?e_1 <pred:name> "Columbia Records" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Barack Obama
function: Find
inputs: Columbia Records
function: Relate
dependencies: 1
inputs: record label
backward
function: Find
inputs: Shakira
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
less