Question: Who is shorter, Kaley Cuoco or Shakira (the one that is famous for Latin American music)?
Choices:
Rahul Dev Burman
Simon Cowell
James E. Reilly
Richard Gere
Kaley Cuoco
David Byrne
William Henry Harrison
Max Fleischer
Shakira
Paul Simon
Program:
function: Find
inputs: Kaley Cuoco
function: Find
inputs: Latin American music
function: Relate
dependencies: 1
inputs: famous people
forward
function: Find
inputs: Shakira
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kaley Cuoco" .  } UNION { ?e <pred:name> "Shakira" . ?e_1 <famous_people> ?e . ?e_1 <pred:name> "Latin American music" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Shakira