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
IKhitron
.
Toggle Highlighting
SQL
use hewiki_p; select page_title, if tl_namespace = 9 then a else b end if as c, CASE tl_namespace WHEN 10 THEN "" ELSE tl_namespace END AS 'namespace', tl_title from page join templatelinks on page_namespace = 0 and page_id = tl_from and tl_namespace != 8 and not exists (select * from page as p1 where p1.page_namespace = tl_namespace and p1.page_title = tl_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...