query-3fc784309a7b5b958f908fa38a0f314e
TODO
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 ?item ?itemLabel ?p495 ?p495Label ?p2341 ?p2341Label WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
VALUES ?item {
wd:Q188788
wd:Q878624
wd:Q1503331
wd:Q2879043
wd:Q3087894
wd:Q3874807
wd:Q6711305
wd:Q21086085
wd:Q47092786
wd:Q62604102
wd:Q97265894
wd:Q100347910
wd:Q105572694
}
?item wdt:P495 ?p495.
OPTIONAL { ?item wdt:P2341 ?p2341. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?p2341"):::projected
v2("?p495"):::projected
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q188788"])
bind00 --> bind0
bind01(["wd:Q878624"])
bind01 --> bind0
bind02(["wd:Q1503331"])
bind02 --> bind0
bind03(["wd:Q2879043"])
bind03 --> bind0
bind04(["wd:Q3087894"])
bind04 --> bind0
bind05(["wd:Q3874807"])
bind05 --> bind0
bind06(["wd:Q6711305"])
bind06 --> bind0
bind07(["wd:Q21086085"])
bind07 --> bind0
bind08(["wd:Q47092786"])
bind08 --> bind0
bind09(["wd:Q62604102"])
bind09 --> bind0
bind010(["wd:Q97265894"])
bind010 --> bind0
bind011(["wd:Q100347910"])
bind011 --> bind0
bind012(["wd:Q105572694"])
bind012 --> bind0
v1 --"wdt:P495"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2341".-> v3
end