Question: Which one covers a larger area, Normandy (containing Calvados) or Brittany (with INSEE region code 53) ?
Choices:
Normandy
Palau
Corsica
Christina Hendricks
Middlebury College
Bury My Heart at Wounded Knee
Nana Mizuki
Nine Lives
Martinique
Brittany
Program:
function: Find
inputs: Calvados
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Normandy
function: And
dependencies: 1
2
function: Find
inputs: Brittany
function: FilterStr
dependencies: 4
inputs: INSEE region code
53
function: SelectBetween
dependencies: 3
5
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Normandy" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Calvados" . } UNION { ?e <pred:name> "Brittany" . ?e <INSEE_region_code> ?pv_1 . ?pv_1 <pred:value> "53" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Normandy