query-7e222d8856c1f0a4f41b1b85e040a3a0
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
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 ?km where {
?item p:P81 ?stat .
?stat ps:P81 wd:Q915792.
OPTIONAL {?stat pq:P6710 ?km .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],pt,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v3("?km"):::projected
v2("?stat")
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,pt,en"]):::literal
c3(["wd:Q915792"]):::iri
v1 --"p:P81"--> v2
v2 --"p:statement/P81"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:qualifier/P6710".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end