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 page.page_title AS page_title, COUNT(DISTINCT blue_pagelinks.pl_title) AS blue_links, COUNT(DISTINCT red_pagelinks.pl_title) AS red_links FROM page JOIN pagelinks AS blue_pagelinks ON (blue_pagelinks.pl_from = page.page_id) JOIN pagelinks AS red_pagelinks ON (red_pagelinks.pl_from = page.page_id) WHERE page_title = 'تحسين_محركات_البحث' AND page_namespace = 0 AND blue_pagelinks.pl_title IN ( SELECT blue_page.page_title FROM page AS blue_page WHERE blue_page.page_namespace = 0 ) AND red_pagelinks.pl_title NOT IN ( SELECT red_page.page_title FROM page AS red_page WHERE red_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...