query-7e5edebe706d722d0e2ba450302c873e

rq turtle/ttl

.on Mastodon and on TwitterOriginally posted

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
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 ?seasonNumber ?season ?seasonLabel ?showLabel {
  ?season wdt:P31/wdt:P279* wd:Q3464665;
          p:P179 [
            a wikibase:BestRank;
            ps:P179 ?show;
            pq:P1545 ?seasonNumber
          ].
  FILTER(xsd:integer(?seasonNumber) > 10)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?seasonNumber)
LIMIT 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?season"):::projected v1("?seasonNumber"):::projected v3("?show") a1((" ")) a2((" ")) c6(["wikibase:BestRank"]):::iri c4(["wd:Q3464665"]):::iri c11(["bd:serviceParam"]):::iri c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["http://www.w3.org/2001/XMLSchema#integer(?seasonNumber) > '10^^xsd:integer'"]] f0 --> v1 v2 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c4 a2 --"a"--> c6 a2 --"p:statement/P179"--> v3 a2 --"p:qualifier/P1545"--> v1 v2 --"p:P179"--> a2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end