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
ASammour
.
Toggle Highlighting
SQL
use arwiki_p; SELECT MONTH(rev_timestamp), COUNT(*) FROM revision r join page p on p.page_id=r.rev_page WHERE p.page_namespace=0 and p.page_is_redirect=0 and r.rev_timestamp between 20160101000000 and 20161231235959 and r.rev_parent_id=0 GROUP BY YEAR(rev_timestamp), MONTH(rev_timestamp) ORDER BY MONTH(rev_timestamp) ASC; select rev_user_text, count(rev_user_text) from revision where rev_timestamp between 20160101000000 AND 20161231235959 group by rev_user_text ORDER BY count(rev_user_text) desc limit 30; SELECT page_namespace, page_title, COUNT(*) FROM revision JOIN page ON page_id = rev_page WHERE rev_timestamp BETWEEN 20160101000000 AND 20161231235959 and page_namespace = 0 GROUP BY page_namespace, page_title ORDER BY COUNT(*) DESC, page_title desc LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]") as user_name, COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action IN ("move") group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]") as user_name, COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action IN ( "block") group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]") as user_name, COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action IN ( "protect") group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]") as user_name, COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action IN ( "delete") group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]") as user_name, COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action IN ( "rights") group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]") as user_name, COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action IN ( "thank") group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]"), COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action = "approve-i" and log_namespace = 0 group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]"), COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_action = "approve" and log_namespace = 0 group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10; select CONCAT("[[مستخدم:",user_name,'|',user_name,"]]"), COUNT(*) from logging inner join user on user.user_id = logging.log_user where log_timestamp BETWEEN 20160101000000 AND 20161231235959 and log_type in ("block", "protect", "delete", "rights") group by logging.log_user having COUNT(*)>1 ORDER BY COUNT(*) DESC LIMIT 10;
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...