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
LD
.
Toggle Highlighting
SQL
-- Liste des pages liées à César_du_meilleur_film WITH CesarPages AS ( SELECT DISTINCT page.page_title FROM page JOIN pagelinks ON page.page_id = pagelinks.pl_from WHERE pagelinks.pl_title = 'César_du_meilleur_film' AND pagelinks.pl_namespace = 0 AND pagelinks.pl_from_namespace = 0 ) -- Liste des pages liées à César_du_meilleur_film depuis ns 10 , CesarPagesNS10 AS ( SELECT DISTINCT page.page_title FROM page JOIN pagelinks ON page.page_id = pagelinks.pl_from WHERE pagelinks.pl_title = 'César_du_meilleur_film' AND pagelinks.pl_namespace = 10 AND pagelinks.pl_from_namespace = 0 ) -- Retirer les pages liées à un modèle depuis ns 10 de la liste initiale SELECT DISTINCT CesarPages.page_title FROM CesarPages LEFT JOIN pagelinks ON CesarPages.page_title = pagelinks.pl_from WHERE pagelinks.pl_from IS NULL OR (pagelinks.pl_namespace = 10 AND pagelinks.pl_title NOT LIKE '%César_du_meilleur_film%');
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...