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
Gerges
.
Toggle Highlighting
SQL
SELECT 'الصحراء_الكبرى' AS page_title, COUNT(pl1.pl_title) AS blue_links, 0 AS red_links FROM page JOIN pagelinks AS pl1 ON (pl1.pl_from = page.page_id) WHERE page_title = 'الصحراء_الكبرى' AND page_namespace = 0 AND pl1.pl_title IN ( SELECT page.page_title FROM page WHERE page.page_namespace = 0 ) UNION SELECT 'الصحراء_الكبرى' AS page_title, 0 AS blue_links, COUNT(pl2.pl_title) AS red_links FROM page JOIN pagelinks AS pl2 ON (pl2.pl_from = page.page_id) WHERE page_title = 'الصحراء_الكبرى' AND page_namespace = 0 AND pl2.pl_title NOT IN ( SELECT page.page_title FROM page WHERE page.page_namespace = 0 );
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...