query-320272b2a152b6f9900ed71eac0ef99a
Crown entity (Q1141770)
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 ?typeLabel WHERE {
VALUES ?type {
wd:Q1141770 # Crown entity (X)
wd:Q5189476 # Crown agency (27)
wd:Q1141791 # Crown Research Institute (7)
wd:Q125959397 # Autonomous Crown entity (16)
wd:Q126041101 # independent Crown entity (19)
}
?item wdt:P31 ?type;
wdt:P17 wd:Q664.
MINUS { ?item wdt:P576 [] }
MINUS { ?item wdt:P1366 [] }
MINUS { ?item wdt:P3999 [] }
OPTIONAL { ?item wdt:P276 ?p. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,mi". }
}
ORDER BY (?typeLabel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v4("?p")
v2("?type")
v1("?typeLabel"):::projected
a1((" "))
a2((" "))
a3((" "))
c3(["wd:Q664"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["en,mi"]):::literal
bind0[/VALUES ?type/]
bind0-->v2
bind00(["wd:Q1141770"])
bind00 --> bind0
bind01(["wd:Q5189476"])
bind01 --> bind0
bind02(["wd:Q1141791"])
bind02 --> bind0
bind03(["wd:Q125959397"])
bind03 --> bind0
bind04(["wd:Q126041101"])
bind04 --> bind0
v3 --"wdt:P31"--> v2
v3 --"wdt:P17"--> c3
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P576"--> a1
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P1366"--> a2
end
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P3999"--> a3
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P276".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end