query-0a547ea7aaa6e7021cce674e4d1f4d2d
episode publication date (P577) by place of publication (P291) back. (P291)place of publication and (P577)publication date , but I can't make it. Currently I'm getting all combinations of (P291)place of publication and related (P577)publication date Hi, I'm trying to get all episodes of a series with their
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?episode ?episodeLabel ?time ?placeLabel
WHERE {
?episode wdt:P179 wd:Q1079.
?episode wdt:P31 wd:Q21191270.
?episode wdt:P577 ?time.
?episode p:P577 ?pTime.
?pTime pq:P291 ?place
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("?episode"):::projected
v3("?pTime")
v4("?place")
v2("?time"):::projected
c9(["bd:serviceParam"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q1079"]):::iri
c4(["wd:Q21191270"]):::iri
v1 --"p:direct/P179"--> c2
v1 --"p:direct/P31"--> c4
v1 --"p:direct/P577"--> v2
v1 --"p:P577"--> v3
v3 --"p:qualifier/P291"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end