query-162f6ba03e50dcb285de5b3f1fdaf5d3
Cross-section on TV series: S3 E3 that gives episode 3 of season 3 of any series (if we have an item). WikiProject Movies/lists/TV episodes/S3/E3I expanded a bit the database report at A simple query for some of the data:
Use at
- https://query.wikidata.org/sparql
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 ?item ?itemLabel ?itemDescription ?title
{
?item wdt:P31 wd:Q21191270 ; p:P4908 [ pq:P1545 "3" ; ps:P4908 / p:P179 / pq:P1545 "3" ]
OPTIONAL { ?item wdt:P1476 ?title }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?title"):::projected
a1((" "))
a2((" "))
a3((" "))
c4(["3"]):::literal
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q21191270"]):::iri
v1 --"p:direct/P31"--> c2
a1 --"p:qualifier/P1545"--> c4
a1 --"p:statement/P4908"--> a2
a2 --"p:P179"--> a3
a3 --"p:qualifier/P1545"--> c4
v1 --"p:P4908"--> a1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P1476".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end