Question: Tell me the Virginia county that has a border with the independent city that is the Southampton twinned administrative body.
Choices:
Henrico County
Frederick County
Arlington County
Newport News
Northampton County
Norfolk
Fauquier County
Fairfax County
Albemarle County
York County
Program:
function: Find
inputs: Southampton
function: Relate
dependencies: 0
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 1
inputs: independent city
function: Relate
dependencies: 2
inputs: shares border with
backward
function: FilterConcept
dependencies: 3
inputs: county of Virginia
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Virginia" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "independent city" . ?e_1 <twinned_administrative_body> ?e_2 . ?e_2 <pred:name> "Southampton" .   }
Answer: York County