Question: Which has more people, Northumberland or Derbyshire whose FIPS 10-4 (countries and regions) is UKD3?
Choices:
Somerset
Hertfordshire
Warwickshire
Essex
East Riding of Yorkshire
Norfolk
Cumbria
West Midlands
Staffordshire
Derbyshire
Program:
function: Find
inputs: Northumberland
function: Find
inputs: Derbyshire
function: FilterStr
dependencies: 1
inputs: FIPS 10-4 (countries and regions)
UKD3
function: SelectBetween
dependencies: 0
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Northumberland" . } UNION { ?e <pred:name> "Derbyshire" . ?e <FIPS_10-4_(countries_and_regions)> ?pv_1 . ?pv_1 <pred:value> "UKD3" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Derbyshire