Question: Who is the {historic county of England} for {shares border with} of {Hampshire}
SPARQL (Wikidata):  select distinct ?sbj where { ?sbj wdt:P47 wd:Q23204 . ?sbj wdt:P31 wd:Q1138494 }