query-2f48890c0a303027f39ea719faaa68a2
explore significant event
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?value ?valueLabel ?ct ?sampleitem ?sampleitemLabel ?minitem ?minitemLabel ?maxitem ?maxitemLabel
WHERE
{
{
SELECT ?value (count(*) as ?ct) (SAMPLE(?item) as ?sampleitem) (min(?item) as ?minitem) (max(?item) as ?maxitem)
WHERE
{
?item wdt:P31 wd:Q3305213 . # paintings only
?item wdt:P793 ?value . # sig event
}
GROUP BY ?value
ORDER BY DESC(?ct)
LIMIT 20000
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
ORDER BY DESC(?ct) ASC(?value)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?ct"):::projected
v3("?item")
v6("?maxitem"):::projected
v5("?minitem"):::projected
v4("?sampleitem"):::projected
v2("?value"):::projected
c2(["wd:Q3305213"]):::iri
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v3 --"wdt:P31"--> c2
v3 --"wdt:P793"--> v2
bind4[/"count(*)"/]
bind4 --as--o v4
bind5[/"sample(?item)"/]
v3 --o bind5
bind5 --as--o v4
bind6[/"min(?item)"/]
v3 --o bind6
bind6 --as--o v5
bind7[/"max(?item)"/]
v3 --o bind7
bind7 --as--o v6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end