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 COUNT(CASE WHEN EXISTS (SELECT p.page_title FROM page AS p WHERE p.page_title = pl.pl_title) THEN 1 ELSE NULL END) AS blue_links, -- عدد الوصلات الزرقاء COUNT(CASE WHEN NOT EXISTS (SELECT p.page_title FROM page AS p WHERE p.page_title = pl.pl_title) THEN 1 ELSE NULL END) AS red_links -- عدد الوصلات الحمراء FROM pagelinks AS pl JOIN page ON (pl.pl_from = page.page_id) WHERE pl.pl_from = page.page_id AND page.page_title = 'الصحراء_الكبرى' GROUP BY page.page_id;
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...