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