query-d2d5999e034ddbc3607e27a9fe3bae2a
Users with more than 5 million followers in 2024
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 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#>
SELECT
?value ?user (URI(REPLACE(?f,"\\$1",?user)) as ?url) ?d
?item ?itemLabel ?itemDescription
WHERE
{
{
SELECT ?st ?value ?d
WHERE
{
?st ps:P8687 ?value .
FILTER ( ?value > 5000000 )
?st pq:P585 ?d .
FILTER ( YEAR(?d) = 2021 )
}
} ?st pq:P6552 ?id .
?item p:P8687 ?st .
?item p:P2002 [ ps:P2002 ?user ; pq:P6552 ?id ] .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
wd:P2002 wdt:P1630 ?f .
}
ORDER BY DESC(?value)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?d"):::projected
v7("?f"):::projected
v4("?id")
v5("?item"):::projected
v3("?st")
v8("?url")
v6("?user"):::projected
v1("?value"):::projected
a1((" "))
c13(["wd:P2002"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["year-from-dateTime(?d) = '2021^^xsd:integer'"]]
f0 --> v2
f1[["?value > '5000000^^xsd:integer'"]]
f1 --> v1
v3 --"p:statement/P8687"--> v1
v3 --"p:qualifier/P585"--> v2
v3 --"p:qualifier/P6552"--> v4
v5 --"p:P8687"--> v3
a1 --"p:statement/P2002"--> v6
a1 --"p:qualifier/P6552"--> v4
v5 --"p:P2002"--> a1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end
c13 --"p:direct/P1630"--> v7
bind2[/"replace(?f,'\$1',?user)"/]
v7 --o bind2
v6 --o bind2
bind2 --as--o v8