Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Hrwiki year articles with trivial links only
by
GregorB
This query is marked as a draft
This query has been published
by
GregorB
.
Toggle Highlighting
SQL
use hrwiki_p; select regexp_substr(page_title, '.*_u_'), sum(page_is_new) as new, count(case when pl_from is null then 1 end) as trivial_links, count(*) as total from page left join ( select distinct pl_from from page inner join pagelinks on pl_title = page_title # Target page actually exists where pl_from_namespace = 0 and pl_namespace = 0 and page_namespace = 0 and page_is_redirect = 0 and pl_title regexp '^[[:digit:]]+\.$' = 0 and pl_title regexp '.*_u_[[:digit:]]+\.$' = 0 and pl_title not like '%stoljeću' ) pl on pl_from = page_id where page_namespace = 0 and page_is_redirect = 0 and page_title regexp '.*_u_[[:digit:]]+\.$' = 1 and page_title not like 'Popis%' group by regexp_substr(page_title, '.*_u_') with rollup
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...