query-0d66bacaebde056d631ccf12d768c6d0
(P1545)series ordinal
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 ?item ?itemLabel (xsd:integer(?number) AS ?no)
WHERE
{
?item p:P4908 ?statement .
?statement a wikibase:BestRank . # Include only statements of best rank
?statement ps:P4908 wd:Q43133862 . # Item is season of Sons of Garmadon
OPTIONAL { ?statement pq:P1545 ?number . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
ORDER BY ?no
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v5("?no")
v4("?number"):::projected
v3("?statement")
c5(["wd:Q43133862"]):::iri
c8(["bd:serviceParam"]):::iri
c3(["wikibase:BestRank"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"p:P4908"--> v3
v3 --"a"--> c3
v3 --"p:statement/P4908"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:qualifier/P1545".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind0[/"http://www.w3.org/2001/XMLSchema#integer(?number)"/]
v4 --o bind0
bind0 --as--o v5