query-8edc5eb3578f49a05e233a77546b2b28

rq turtle/ttl

Badminton championships in a specific year with start and end

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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?_start ?_end ?_instanceLabel
WHERE {
   ?item wdt:P5008 wd:Q66098665 .
   FILTER EXISTS  { ?item wdt:P580 ?dummy0 }
   ?item wdt:P580 ?_start.
   ?item wdt:P582 ?_end.
   ?item wdt:P31 ?_instance.
   ?item wdt:P585 ?_publication_date .
   FILTER NOT EXISTS { ?item wdt:P31 wd:Q57733494 }
   FILTER (?_publication_date = "2016-00-00T00:00:00Z"^^xsd:dateTime)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?_end"):::projected v6("?_instance") v1("?_publication_date") v4("?_start"):::projected v3("?dummy0") v2("?item"):::projected c3(["wd:Q57733494"]):::iri c12(["de"]):::literal c10(["bd:serviceParam"]):::iri c6(["wd:Q66098665"]):::iri f0[["?_publication_date = '2016-00-00T00:00:00Z^^xsd:dateTime'"]] f0 --> v1 f1[["not "]] subgraph f1e0["Exists Clause"] e0v1 --"wdt:P31"--> e0c2 e0v1("?item"):::projected e0c2(["wd:Q57733494"]):::iri end f1--EXISTS--> f1e0 f1 --> v2 f1 --> c2 f1 --> c3 v2 --"wdt:P31"--> c3 f2[[" "]] subgraph f2e1["Exists Clause"] e1v1 --"wdt:P580"--> e1v2 e1v2("?dummy0"):::projected e1v1("?item"):::projected end f2--EXISTS--> f2e1 f2 --> v2 f2 --> c4 f2 --> v3 v2 --"wdt:P580"--> v3 v2 --"wdt:P5008"--> c6 v2 --"wdt:P580"--> v4 v2 --"wdt:P582"--> v5 v2 --"wdt:P31"--> v6 v2 --"wdt:P585"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end