This query is marked as a draft This query has been published by Saileshpat.

SQL

x
 
use orwiki_p;
SELECT LEFT(log_timestamp, 6) as month,  COUNT(*) FROM logging WHERE log_type="thanks" GROUP BY month;
SELECT count(page_title) FROM page LEFT JOIN categorylinks ON cl_from=page_id WHERE page_namespace=0 AND page_is_redirect=0 AND cl_from IS NULL;
SELECT count(page_title) FROM page LEFT JOIN pagelinks ON pl_from=page_id WHERE page_namespace=0 AND page_is_redirect=0 AND pl_from IS NULL;
SELECT count(page_title) FROM page LEFT JOIN imagelinks ON il_from=page_id WHERE page_namespace=0 AND page_is_redirect=0 AND page_len > 4000 AND il_from IS NULL;
select count(page_id) from page where page_namespace = 0 and page_is_redirect = 0 and page_len < 2048;
select count(page_id) from page where page_namespace = 0 and page_is_redirect = 0;
select count(article_id) from article where article_namespace = 0 and article_is_redirect = 0 and article_len < 6144;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...