Question: Among the ceremonial counties of England that shares a border with Derbyshire (which shares a border with South Yorkshire), which has the largest area?
Choices: Warwickshire
Northumberland
Nottinghamshire
Staffordshire
Derbyshire
Greater Manchester
Somerset
Cheshire
West Yorkshire
Leicestershire
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Derbyshire" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "South Yorkshire" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: South Yorkshire
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Derbyshire
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: ceremonial county of England
function: SelectAmong
dependencies: 5
inputs: area
largest
Answer: Staffordshire