query-dee62e64ff64da27e57fce5b6401666e

rq turtle/ttl

Propertiestime period (P2348)instance of (P31)image (P18)start time (P580)point in time (P585)

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#>
#defaultView:Timeline
SELECT ?competition ?competitionLabel ?image ?date WHERE {
  ?competition wdt:P2348 wd:Q58776861 ;
               wdt:P31 wd:Q2990963 .
  OPTIONAL { ?competition wdt:P18 ?image .}
  OPTIONAL { ?competition wdt:P580 ?start .}
  OPTIONAL { ?competition wdt:P585 ?pointInTime. }
  BIND(COALESCE(?start, ?pointInTime) AS ?date)
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  }
GROUP BY ?competition ?competitionLabel ?image ?date
ORDER BY ?date

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?competition"):::projected v6("?date"):::projected v3("?image"):::projected v5("?pointInTime") v4("?start") c9(["bd:serviceParam"]):::iri c4(["wd:Q2990963"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q58776861"]):::iri v2 --"wdt:P2348"--> c2 v2 --"wdt:P31"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P580".-> v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P585".-> v5 end bind0[/"?start?pointInTime"/] v4 --o bind0 v5 --o bind0 bind0 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end