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
'; drop database prod;
.
Toggle Highlighting
SQL
WITH wikiprojects AS ( SELECT p.page_title, lt.lt_title AS lt_title, COUNT(p2.page_id) AS cnt FROM page AS p, page AS p2, pagelinks AS pl, templatelinks AS tl, linktarget AS lt where p.page_title = 'OnGreen' AND p.page_namespace = 0 AND p.page_is_redirect = 0 AND p.page_id = pl.pl_from AND pl.pl_namespace = 0 AND pl.pl_from_namespace = 0 AND p2.page_title = pl.pl_title AND p2.page_id = tl_from AND tl.tl_target_id = lt.lt_id AND tl.tl_from_namespace = 1 AND lt.lt_namespace = 10 AND lt.lt_title LIKE 'WikiProject\_%' AND NOT lt.lt_title LIKE '%/class' AND NOT lt.lt_title LIKE '%/importance' AND NOT lt.lt_title LIKE '%/styles.css' AND NOT lt.lt_title LIKE '%/portalbox' AND NOT lt.lt_title LIKE 'WikiProject\__leanup\__ist' AND NOT lt.lt_title LIKE 'WikiProject\__anner\__hell' GROUP BY lt.lt_title ORDER BY cnt DESC LIMIT 10 ) SELECT CONCAT("[[", page_title, "]]") AS page_title, CONCAT("[[Talk:", page_title, "]]") AS talk_title, CONCAT("{{", group_concat( DISTINCT lt_title SEPARATOR '}} {{' LIMIT 10) , "}}") wikiprojects FROM wikiprojects
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...