What is {bordered by} of {Tamaulipas}, that has {has shires} is {Brewster County} ?
"Which is {bordered by} of {Tamaulipas}, where has {has shires} is {Brewster County} ?"
SELECT ?answer WHERE { wd:Q80007 wdt:P47 ?answer . ?answer wdt:P150 wd:Q109160}
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q80007> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47>. ?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/P150> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q109160> . }
"Which is {bordered by} of {Tamaulipas}, where has {has shires} is {Brewster Province} ?"