Question: Which has more people, Barrow-in-Furness (the one whose inception time is 1974-04-01) or North Norfolk?
Choices:
Barrow-in-Furness
West Dorset
North Norfolk
South Somerset
Kettering
Woking
Chichester
Great Yarmouth
Guildford
Carlisle
Program:
function: Find
inputs: Barrow-in-Furness
function: FilterDate
dependencies: 0
inputs: inception
1974-04-01
=
function: Find
inputs: North Norfolk
function: SelectBetween
dependencies: 1
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Barrow-in-Furness" . ?e <inception> ?pv_1 . ?pv_1 <pred:date> "1974-04-01"^^xsd:date . } UNION { ?e <pred:name> "North Norfolk" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: North Norfolk