what is the {statement is subject of} for {Minnesota} has {shares border with} as {North Dakota} ?
Does Minnesota share borders with North Dakota?
the {statement is subject of} for {Minnesota} has {shares border with} as {North Dakota} ?
SELECT ?u WHERE { ?c property:statement_is_subject_of ?u . ?c property:shares_border_with resource:North_Dakota . resource:Minnesota property:shares_border_with ?c }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1527> .
?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/Q1207> .
?statement <http://www.wikidata.org/entity/P805> ?value. 
} 

SELECT ?value WHERE { wd:Q1527 p:P47 ?s . ?s ps:P47 wd:Q1207 . ?s pq:P805 ?value}