Question: Is Chichester (population 117000) or Barrow-in-Furness (located in Cumbria) larger by area?
Choices:
North Norfolk
South Somerset
Chichester
Carlisle
Craven
Guildford
West Dorset
Great Yarmouth
Kettering
Barrow-in-Furness
Program:
function: Find
inputs: Chichester
function: FilterNum
dependencies: 0
inputs: population
117000
=
function: Find
inputs: Cumbria
function: Relate
dependencies: 2
inputs: contains administrative territorial entity
forward
function: Find
inputs: Barrow-in-Furness
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chichester" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "117000"^^xsd:double . } UNION { ?e <pred:name> "Barrow-in-Furness" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Cumbria" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chichester