Question: Which area is larger, Paris (the one that is the narrative location of The Longest Day) or Kuala Lumpur?
Choices:
Doha
Manila
Paris
Riga
Mexico City
New Delhi
Tallinn
Kuala Lumpur
Moscow
Sarajevo
Program:
function: Find
inputs: The Longest Day
function: Relate
dependencies: 0
inputs: narrative location
forward
function: Find
inputs: Paris
function: And
dependencies: 1
2
function: Find
inputs: Kuala Lumpur
function: SelectBetween
dependencies: 3
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Paris" . ?e_1 <narrative_location> ?e . ?e_1 <pred:name> "The Longest Day" .   } UNION { ?e <pred:name> "Kuala Lumpur" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kuala Lumpur