query-e768f9d18fbcfff938965d4789c7bb21
本部所在地が日本にある会社または企業で国が設定されていないもの
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 WHERE {
VALUES ?organizationType {
wd:Q783794
wd:Q4830453
}
?item wdt:P31 ?organizationType;
(wdt:P159/(wdt:P131*)) wd:Q17.
MINUS { ?item wdt:P17 _:b3. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
ORDER BY (?item)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?organizationType")
a2((" "))
a1((" "))
c4(["wd:Q17"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;"]):::literal
bind0[/VALUES ?organizationType/]
bind0-->v2
bind00(["wd:Q783794"])
bind00 --> bind0
bind01(["wd:Q4830453"])
bind01 --> bind0
v1 --"wdt:P31"--> v2
v1 --"wdt:P159"--> a1
a1 --"wdt:P131"--> c4
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P17"--> a2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end