query-74b9a2987eb3e7b14bb75bf683a986c5
Query
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 ?ord ?item ?itemLabel ?itemDescription ?st ?sl ?ids
WHERE
{
wd:Q90900559 p:P2860 ?st0 .
?st0 ps:P2860 ?item .
OPTIONAL { ?st0 pq:P1545 ?ord }
OPTIONAL { ?item wikibase:statements ?st ; wikibase:sitelinks ?sl ; wikibase:identifiers ?ids }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,cs,de,fr,it,hu,la,pl". }
}
ORDER BY DESC(BOUND(?ord)) xsd:integer(REPLACE(?ord,"[a-z]","")) ?ord ?itemLabel ?item
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?ids"):::projected
v3("?item"):::projected
v2("?itemLabel"):::projected
v1("?ord"):::projected
v6("?sl"):::projected
v5("?st"):::projected
v4("?st0")
c13(["#91;AUTO_LANGUAGE#93;,en,cs,de,fr,it,hu,la,pl"]):::literal
c3(["wd:Q90900559"]):::iri
c11(["bd:serviceParam"]):::iri
c3 --"p:P2860"--> v4
v4 --"p:statement/P2860"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P1545".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wikibase:statements".-> v5
v3 --"wikibase:sitelinks"--> v6
v3 --"wikibase:identifiers"--> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end