Question: Which area is smaller, Corsica (the one whose location is Mediterranean Sea) or Greenland (the one that is located in or next to Atlantic Ocean)?
Choices:
Trinidad
Hawaii
Puerto Rico
Corsica
Tasmania
Long Island
Greenland
Ireland
Newfoundland
Cyprus
Answer: Corsica
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Corsica" . ?e <location> ?e_1 . ?e_1 <pred:name> "Mediterranean Sea" .   } UNION { ?e <pred:name> "Greenland" . ?e <located_in_or_next_to_body_of_water> ?e_2 . ?e_2 <pred:name> "Atlantic Ocean" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Mediterranean Sea
function: Relate
dependencies: 0
inputs: location
backward
function: Find
inputs: Corsica
function: And
dependencies: 1
2
function: Find
inputs: Atlantic Ocean
function: Relate
dependencies: 4
inputs: located in or next to body of water
backward
function: Find
inputs: Greenland
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: area
less