what is the {statement is subject of} for {Bangladesh} has {shares border with} as {India} ?
Which portion of Bangladesh shares a border with India?
What is the statement is subject of Bangladesh that shares border with India?
SELECT ?c WHERE { ?c property:shares_border_with resource:India . resource:Bangladesh property:shares_border_with ?c . ?c property:statement_is_subject_of ?c }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q902> .
?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/Q668> .
?statement <http://www.wikidata.org/entity/P805> ?value. 
} 

SELECT ?value WHERE { wd:Q902 p:P47 ?s . ?s ps:P47 wd:Q668 . ?s pq:P805 ?value}