Question: Who is taller, Bo Derek or Shakira (the one who is well known for urban contemporary)
Choices:
William Henry Harrison
Shakira
James E. Reilly
Max Fleischer
David Byrne
Bo Derek
Paul Simon
Simon Cowell
Rahul Dev Burman
Richard Gere
Program:
function: Find
inputs: Bo Derek
function: Find
inputs: urban contemporary
function: Relate
dependencies: 1
inputs: famous people
forward
function: Find
inputs: Shakira
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: height
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bo Derek" .  } UNION { ?e <pred:name> "Shakira" . ?e_1 <famous_people> ?e . ?e_1 <pred:name> "urban contemporary" .   } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bo Derek