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
Blahma
.
Toggle Highlighting
SQL
SELECT cat_title, @count_all := (SELECT COUNT(DISTINCT cl_from) FROM categorylinks WHERE cl_to = cat_title) AS count_all, @count_dead := (SELECT COUNT(DISTINCT cl_from) FROM categorylinks WHERE cl_from IN (SELECT cl_from FROM categorylinks WHERE cl_to = cat_title) AND cl_to REGEXP '^Úmrtí_[0-9][0-9][0-9][0-9]$') AS count_dead, 1 - (@count_dead / @count_all) AS non_dead_ratio FROM category WHERE cat_title REGEXP '^Narození_(1[5-9]..|20..)$' ORDER BY cat_title
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...