Who is the {historic county of England} for {shares border with} of {Hampshire}
 select distinct ?sbj where { ?sbj wdt:/shares border with/ wd:/Hampshire/ . ?sbj wdt:/instance of/ wd:/historic county of England/ } 