Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
MisterSynergy
.
for https://www.wikidata.org/wiki/User:MisterSynergy/itemstats
Toggle Highlighting
SQL
USE wikidatawiki_p; -- SELECT CEILING(SUBSTRING(page_title FROM 2) / 100000) AS bin, (100000-COUNT(*)) AS cnt FROM page WHERE page_namespace=0 GROUP BY bin ORDER BY bin ASC; SELECT CEILING(SUBSTRING(page_title FROM 2) / 100000) AS bin, COUNT(*) AS cnt FROM archive WHERE ar_namespace=0 GROUP BY bin ORDER BY bin ASC; -- SELECT ?bin (COUNT(*) AS ?cnt) WHERE { -- #?item wikibase:statements 0 . -- #?item owl:sameAs [] . -- ?item wikibase:sitelinks [] . -- BIND(ceil(xsd:integer(SUBSTR(STR(?item),33)) / 100000) AS ?bin) . -- } GROUP BY ?bin ORDER BY ASC(?bin)
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...