query-f30ffbf55d83e5c462edbc92b4852aa9

rq turtle/ttl

Simpsons publication date cleanup requestApart from the correct date of first broadcast a lot of Simpsons episode have the year of that date as a second publication date:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?episode ?publ
WHERE {
  BIND(wd:Q886 as ?show) .
  ?episode wdt:P31 wd:Q21191270.
  ?episode wdt:P179 ?show.
  ?episode (wdt:P577 | wdt:P1191) ?publ.
  FILTER(month(?publ)=1 && day(?publ)=1).
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?episode"):::projected v1("?publ"):::projected v2("?show") c8(["bd:serviceParam"]):::iri c10(["en"]):::literal c3(["wd:Q21191270"]):::iri f0[["month-from-dateTime(?publ) = '1^^xsd:integer'day-from-dateTime(?publ) = '1^^xsd:integer'"]] f0 --> v1 bind1[/"'wd:Q886'"/] bind1 --as--o v2 v3 --"wdt:P31"--> c3 v3 --"wdt:P179"--> v2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P1191"--> v1 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P577"--> v1 end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end