What is {is in the settlement of} of {Fort Peck Dam}, that has {abbreviation} is {MT} ?
What's the abbreviation of MT in the Fort Peck Dam settlement?
What is in the settlement of Fort Peck Dam, that has the abbreviation of MT?
SELECT ?h WHERE { FILTER ( CONTAINS ( ?f , 'MT' ) ) . ?h property:short_name ?f . resource:Fort_Peck_Dam property:located_in_the_administrative_territorial_entity ?h }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1426242> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P131>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1813> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <MT> . }
SELECT ?answer WHERE { wd:Q1426242 wdt:P131 ?answer . ?answer wdt:P1813 ?x FILTER(contains(?x , 'MT'))}