Question: Which area is larger, Martinique or Corsica (the one that is located in or next to Mediterranean Sea)?
Choices:
Brittany
Normandy
Southwest Airlines
Martinique
San Francisco
Joseph Conrad
FC Aarau
Corsica
Chris Carter
Chris Evans
Program:
function: Find
inputs: Martinique
function: Find
inputs: Mediterranean Sea
function: Relate
dependencies: 1
inputs: located in or next to body of water
backward
function: Find
inputs: Corsica
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Martinique" .  } UNION { ?e <pred:name> "Corsica" . ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "Mediterranean Sea" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Corsica