Question: What non-metropolitan county shares a border with Hampshire?
SPARQL (Wikidata):  select distinct ?sbj where { ?sbj wdt:P47 wd:Q23204 . ?sbj wdt:P31 wd:Q769603 } 
Answer: Berkshire, Surrey, West Sussex