What is the {county of Norway} for {shares border with} of {Oslo}
Which Norwegian county shares a border with the city of Oslo?
Which county in Norway shares a border with Oslo
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:county_of_Norway . ?l property:shares_border_with resource:Oslo }
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/Q585> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q192299> } 
 select distinct ?sbj where { ?sbj wdt:P47 wd:Q585 . ?sbj wdt:P31 wd:Q192299 } 