What is the {historic county of England} for {shares border with} of {Hampshire}
Who is the {notable province of Britain} for {offers border with} of {Hampshire}
Who is the {historic county of England} for {shares border with} of {Hampshire}
SELECT DISTINCT ?n WHERE { ?n property:shares_border_with resource:Hampshire . ?n rdf:type ontology:historic_county_of_England }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q23204> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q1138494> } 
 select distinct ?sbj where { ?sbj wdt:P47 wd:Q23204 . ?sbj wdt:P31 wd:Q1138494 } 