Question: Did Gibraltar claim territory in both the United Kingdom and Spain?
Paraphrase: Was territory in both the United Kingdom and Spain claimed by Guam?
SPARQL (Wikidata): ASK WHERE { wd:Q1410 wdt:P1336 wd:Q145 . wd:Q1410 wdt:P1336 wd:Q29 }