What is {based in} of {New Mexico}, that has {diplomatic relation} is {Cayman Islands} ?
Name something based in New Mexico that has diplomatic family members with the Caymen Islands.
Name something based in New Mexico that has diplomatic relations with the Caymen Islands.
SELECT ?y WHERE { ?y property:diplomatic_relation resource:Cayman_Islands . resource:New_Mexico property:located_in_the_administrative_territorial_entity ?y }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1522> . ?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/P530> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q5785> . }
SELECT ?answer WHERE { wd:Q1522 wdt:P131 ?answer . ?answer wdt:P530 wd:Q5785}
United States of America