Fork of
de_wiki: red links count gt 120
by ⵓ
This query is marked as a draft
This query has been published
by Atamari.
SQL
x
use dewiki_p;
SET sql_mode='PIPES_AS_CONCAT';
select '- [['||REPLACE(pl_title, '_', ' ')||']] <!-- '|| c ||' Links -->' as output
from (select pl_title , count(*) as c , pl_namespace
from pagelinks
where pl_from_namespace=0 and pl_namespace=0
group by pl_title, pl_namespace
having count(*)>106) as pl
left join page
on (pl_title=page_title and page_namespace= pl_namespace)
where page_id is null
order by c desc
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.
Query status: failed
Error
Lost connection to MySQL server during query