Question: Are there more people in Kettering (with the TOID of 7000000000007408) or Chichester, the administrative division of West Sussex?
Choices:
North Norfolk
Carlisle
South Somerset
Craven
Great Yarmouth
Guildford
Chichester
Kettering
King's Lynn and West Norfolk
West Dorset
Program:
function: Find
inputs: Kettering
function: FilterStr
dependencies: 0
inputs: TOID
7000000000007408
function: Find
inputs: West Sussex
function: Relate
dependencies: 2
inputs: contains administrative territorial entity
forward
function: Find
inputs: Chichester
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kettering" . ?e <TOID> ?pv_1 . ?pv_1 <pred:value> "7000000000007408" . } UNION { ?e <pred:name> "Chichester" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "West Sussex" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chichester