query-783c655ccf9d4717b7551f86591960be
Academy Awards ceremonies
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?awardceremony ?edition ?awardceremonyLabel ?date (GROUP_CONCAT(DISTINCT(?location);separator=", ") AS ?locations) (GROUP_CONCAT(DISTINCT(?presenter);separator=", ") AS ?presenters) WHERE {
?awardceremony wdt:P31 wd:Q16913666 .
?awardceremony wdt:P585 ?date .
?awardceremony wdt:P393 ?edition .
OPTIONAL{?awardceremony wdt:P371 ?pres . ?pres rdfs:label ?presenter . FILTER(lang(?presenter) = "en")}
OPTIONAL{?awardceremony wdt:P276 ?loc . ?loc rdfs:label ?location . FILTER(lang(?location) = "en")}
SERVICE wikibase:label{bd:serviceParam wikibase:language "en"}
}
GROUP BY ?edition ?date ?awardceremony ?awardceremonyLabel
ORDER BY ?date
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?awardceremony"):::projected
v1("?date"):::projected
v5("?edition"):::projected
v7("?loc")
v2("?location"):::projected
v8("?locations")
v6("?pres")
v3("?presenter"):::projected
v9("?presenters")
c10(["bd:serviceParam"]):::iri
c1(["en"]):::literal
c3(["wd:Q16913666"]):::iri
v4 --"wdt:P31"--> c3
v4 --"wdt:P585"--> v1
v4 --"wdt:P393"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P371".-> v6
v6 --"rdfs:label"--> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P276".-> v7
v7 --"rdfs:label"--> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c1
end
bind2[/"?location"/]
v2 --o bind2
bind2 --as--o v8
bind3[/"?presenter"/]
v3 --o bind3
bind3 --as--o v9