query-58d96d6b10b6444e4e38bad7f7f96d30
Acceptance rate
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/Q17012957>
SELECT
?year
?acceptance_rate
?trackLabel
WHERE {
?event wdt:P179 target: ;
wdt:P580 ?datetime ;
p:P5822 ?acceptance_rate_statement .
?acceptance_rate_statement ps:P5822 ?acceptance_rate .
OPTIONAL { ?acceptance_rate_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;
v5("?acceptance_rate"):::projected
v4("?acceptance_rate_statement")
v3("?datetime")
v2("?event")
v7("?track")
v6("?track_")
v8("?year"):::projected
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2([http://www.wikidata.org/entity/Q17012957]):::iri
v2 --"p:direct/P179"--> c2
v2 --"p:direct/P580"--> v3
v2 --"p:P5822"--> v4
v4 --"p:statement/P5822"--> 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