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
Mr. Ibrahem
.
Toggle Highlighting
SQL
SELECT distinct u.user_name AS user_name, SUM(CASE WHEN p.page_namespace = 828 AND p.page_is_redirect = 0 AND p.page_title NOT REGEXP '^.*?\/(ملعب|مختبر|شرح)/*.*?%' THEN 1 ELSE 0 END) AS module_created, SUM(CASE WHEN p.page_namespace = 828 AND p.page_is_redirect = 0 #AND p.page_title NOT REGEXP '^.*?\/(ملعب|مختبر|شرح)/*.*?%' THEN 1 ELSE 0 END) AS module_created_all FROM user u JOIN actor a ON a.actor_user = u.user_id JOIN revision rev ON rev.rev_actor = a.actor_id JOIN page p ON rev.rev_page = p.page_id WHERE u.user_name IN ('Mr. Ibrahem') AND rev.rev_parent_id = 0 AND p.page_namespace = 828 GROUP BY u.user_name LIMIT 5 ;
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...