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
Tructa
.
Toggle Highlighting
SQL
WITH page_props_cte AS ( SELECT pp_page FROM page_props WHERE pp_propname IN ('disambiguation', 'noindex') ), filtered_pages_cte AS ( SELECT page_id, page_title FROM page WHERE page_is_redirect = 0 AND page_namespace = 0 AND page_title NOT IN ('Control_de_autoridades') AND NOT EXISTS ( SELECT 1 FROM page_props_cte pp WHERE pp.pp_page = page.page_id ) LIMIT 5 ), pagelinks_cte AS ( SELECT pl_from, pl_title FROM pagelinks WHERE pl_namespace = 0 AND pl_from_namespace = 0 AND pl_title NOT IN ('Control_de_autoridades', 'Wikidata') AND pl_from IN (SELECT page_id FROM filtered_pages_cte) ) SELECT p.page_id, p.page_title, pl.pl_title AS links_to FROM filtered_pages_cte p LEFT JOIN pagelinks_cte pl ON p.page_id = pl.pl_from;
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...