Question: Which one of English ceremonial counties, bordering Hampshire (FIPS 10-4 (countries and regions) is UK2), covers the largest area ?
Choices:
Somerset
Northumberland
West Sussex
Warwickshire
Wiltshire
Derbyshire
Cumbria
Surrey
Essex
Dorset
Program:
function: Find
inputs: Hampshire
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
UKF2
function: Relate
dependencies: 1
inputs: shares border with
backward
function: FilterConcept
dependencies: 2
inputs: ceremonial county of England
function: SelectAmong
dependencies: 3
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Hampshire" . ?e_1 <FIPS_10-4_(countries_and_regions)> ?pv_1 . ?pv_1 <pred:value> "UKF2" . ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Wiltshire