query-109337cfe8aabddfe7cbd401ba241bf8
Number of submissions
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:LineChart
PREFIX target: <http://www.wikidata.org/entity/Q6053150>
SELECT
?year
?submissions
?trackLabel
WHERE {
?event wdt:P179 target: ;
wdt:P580 ?datetime ;
p:P12655 ?submissions_statement .
?submissions_statement ps:P12655 ?submissions .
OPTIONAL { ?submissions_statement pq:P518 ?track_ . }
BIND(COALESCE(?track_, "total") AS ?track)
BIND(STR(YEAR(?datetime)) AS ?year)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?year
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?datetime")
v2("?event")
v5("?submissions"):::projected
v4("?submissions_statement")
v7("?track")
v6("?track_")
v8("?year"):::projected
c8(["bd:serviceParam"]):::iri
c2([http://www.wikidata.org/entity/Q6053150]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"p:direct/P179"--> c2
v2 --"p:direct/P580"--> v3
v2 --"p:P12655"--> v4
v4 --"p:statement/P12655"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P518".-> v6
end
bind0[/"?track_'total'"/]
v6 --o bind0
bind0 --as--o v7
bind1[/"str(year-from-dateTime(?datetime))"/]
v3 --o bind1
bind1 --as--o v8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end