query-e76a0fe1aa755de0fe70d8fd90867f61

rq turtle/ttl

List of FIFA World Cups and UEFA European Football Championships

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 ?championship ?championshipLabel ?start ?end ?participants ?matches ?goals ?winnerLabel WHERE {
  ?championship wdt:P3450 ?season . VALUES ?season {wd:Q19317 wd:Q260858} .
  OPTIONAL {?championship wdt:P580 ?start}
  OPTIONAL {?championship wdt:P582 ?end}
  OPTIONAL {?championship wdt:P1132 ?participants}
  OPTIONAL {?championship wdt:P1350 ?matches}
  OPTIONAL {?championship wdt:P1351 ?goals}
  OPTIONAL {?championship wdt:P1346 ?winner}
  SERVICE wikibase:label{bd:serviceParam wikibase:language "en,de"}
}
ORDER BY DESC(?season) ?start

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?championship"):::projected v4("?end"):::projected v7("?goals"):::projected v6("?matches"):::projected v5("?participants"):::projected v4("?season") v2("?start"):::projected v8("?winner") c9(["bd:serviceParam"]):::iri c11(["en,de"]):::literal v3 --"wdt:P3450"--> v4 bind0[/VALUES ?season/] bind0-->v4 bind00(["wd:Q19317"]) bind00 --> bind0 bind01(["wd:Q260858"]) bind01 --> bind0 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P580".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P582".-> v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P1132".-> v5 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P1350".-> v6 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P1351".-> v7 end subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P1346".-> v8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end