query-ca8fce97b49eb4c9548b193b25224731
P276 = only countries 05:20, 6 September 2023 (UTC) 💛●✒️●💬 Bouzinac (not a town, a precise place, etc) and having no P17. Thanks countryHello, I'd like a list of items having P276 = a or subclass of it:(Q3624078)sovereign state pointing to a (P276)location If I'm not missing anything, it seems that there are no items with : Bouzinac@
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?country ?countryLabel
WHERE
{
?item wdt:P276 ?country.
?country wdt:P31/wdt:P279? wd:Q3624078.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,ca". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?country"):::projected
v1("?item"):::projected
a1((" "))
c8(["#91;AUTO_LANGUAGE#93;,en,ca"]):::literal
c3(["wd:Q3624078"]):::iri
c6(["bd:serviceParam"]):::iri
v1 --"wdt:P276"--> v2
v2 --"wdt:P31"--> a1
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
a1 --"wdt:P279"--> c3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end