query-a66627bb8f636db0af8e870c648e32ad
title: Second-level administrative divisions in Japan (should be 1741) SELECT DISTINCT ?item ?itemLabel WHERE { ?item wdt:P31/wdt:P279* wd:Q13220204 ; wdt:P17 wd:Q17. MINUS { ?item wdt:P576 [] } MINUS { ?item wdt:P1366 [] } SERVICE wikibase:label { bd:serviceParam wikibase:language "ja,en". } } ORDER BY ?itemLabel
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#>
#title: Second-level administrative divisions in Japan (should be 1741)
SELECT DISTINCT ?item ?itemLabel WHERE {
?item wdt:P31/wdt:P279* wd:Q13220204 ;
wdt:P17 wd:Q17.
MINUS { ?item wdt:P576 [] }
MINUS { ?item wdt:P1366 [] }
SERVICE wikibase:label { bd:serviceParam wikibase:language "ja,en". }
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?itemLabel"):::projected
a2((" "))
a3((" "))
a1((" "))
c5(["wd:Q17"]):::iri
c9(["bd:serviceParam"]):::iri
c11(["ja,en"]):::literal
c3(["wd:Q13220204"]):::iri
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v2 --"wdt:P17"--> c5
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P576"--> a2
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P1366"--> a3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end