query-a20d7dad2d797900fc38c3333a723c89
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?P5871 ?P5871_P585 ?P8269 ?P8269_P585
WHERE
{
?item p:P5871 ?stat .
?stat ps:P5871 ?P5871 .
OPTIONAL {?stat pq:P585 ?P5871_P585 . }
?item p:P8269 ?stat1 .
?stat1 ps:P8269 ?P8269 .
OPTIONAL {?stat1 pq:P585 ?P8269_P585 . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nn,no,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?P5871"):::projected
v4("?P5871_P585"):::projected
v6("?P8269"):::projected
v7("?P8269_P585"):::projected
v1("?item"):::projected
v2("?stat")
v5("?stat1")
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,nn,no,en"]):::literal
v1 --"p:P5871"--> v2
v2 --"p:statement/P5871"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P585".-> v4
end
v1 --"p:P8269"--> v5
v5 --"p:statement/P8269"--> v6
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:qualifier/P585".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end