Question: Which one of English ceremonial countries, comprising a part of West Midlands (the location of Staffordshire), covers the largest area ?
Choices:
Staffordshire
Somerset
Norfolk
West Midlands
Cumbria
Derbyshire
Northumberland
East Riding of Yorkshire
Hertfordshire
Warwickshire
Program:
function: Find
inputs: Staffordshire
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: West Midlands
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: part of
backward
function: FilterConcept
dependencies: 4
inputs: ceremonial county of England
function: SelectAmong
dependencies: 5
inputs: area
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" . ?e <part_of> ?e_1 . ?e_1 <pred:name> "West Midlands" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Staffordshire" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Staffordshire