what is the {statement is subject of} for {Oklahoma} has {shares border with} as {Kansas} ?
The border between Oklahoma and Kansas is called what?
What is the name given to the border between Oklahoma and Kansas?
SELECT ?g WHERE { resource:Oklahoma property:shares_border_with ?l . ?l property:shares_border_with resource:Kansas . ?l property:statement_is_subject_of ?g }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1649> .
?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/Q1558> .
?statement <http://www.wikidata.org/entity/P805> ?value. 
} 

SELECT ?value WHERE { wd:Q1649 p:P47 ?s . ?s ps:P47 wd:Q1558 . ?s pq:P805 ?value}