query-b756e1c230f4764e314f2bbda0b6d857
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 ?p6713 ?p6244 ?p1920 {
?item wdt:P31/wdt:P279* wd:Q39614 .
?item wdt:P17 wd:Q20 .
OPTIONAL { ?item wdt:P6713 ?p6713 }
OPTIONAL { ?item wdt:P6244 ?p6244 }
OPTIONAL { ?item wdt:P1920 ?p1920 }
FILTER(BOUND(?p6713)|| BOUND(?p6244) || BOUND(?p1920))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?item"):::projected
v1("?itemLabel"):::projected
v4("?p1920"):::projected
v3("?p6244"):::projected
v2("?p6713"):::projected
a1((" "))
c10(["bd:serviceParam"]):::iri
c5(["wd:Q20"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q39614"]):::iri
f0[["(bound(?p6713) || (bound(?p6244) || bound(?p1920)))"]]
f0 --> v2
f0 --> v3
f0 --> v4
v5 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v5 --"wdt:P17"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P6713".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P6244".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v5 -."wdt:P1920".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end