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
Mr. Ibrahem
.
Toggle Highlighting
SQL
select p.page_title as ll_page_title, pl.pl_title as ll_page_to_title, pl.pl_namespace as ll_pl_namespace from page p inner join pagelinks pl on pl.pl_from = p.page_id where pl.pl_from_namespace = 0 and pl.pl_namespace in (2, 3) and p.page_namespace = 0 and p.page_is_redirect = 0 and not exists ( select 1 from templatelinks tl join linktarget lt on lt.lt_id = tl.tl_target_id where lt.lt_title in (select pl_title from pagelinks where pl_from = 9043549) and tl.tl_from = p.page_id and tl.tl_from_namespace = 0 ) and not exists ( select 1 from pagelinks pl2 where pl2.pl_title = p.page_title and pl2.pl_from = 9043549 );
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...