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
ASammour
.
Toggle Highlighting
SQL
use arwiki_p; select p1.page_title as "التحويلة", rd_title as "الهدف" ,(select count(*) from langlinks where ll_from = p1.page_id) as "عدد وصلات التحويلة" ,(select count(*) from langlinks where ll_from = p2.page_id) as "عدد وصلات الهدف" ,pp1.pp_value from page p1 inner join page_props pp1 on pp1.pp_page = p1.page_id inner join redirect on rd_from = p1.page_id inner join page p2 on p2.page_title = rd_title where p1.page_is_redirect = 1 and p1.page_namespace = 0 and pp1.pp_propname = "wikibase_item" and rd_namespace = 0 and pp1.pp_value in (select wikidatawiki_p.page.page_title from wikidatawiki_p.page where wikidatawiki_p.page.page_title = pp1.pp_value and wikidatawiki_p.page.page_namespace = 0 and wikidatawiki_p.page.page_is_redirect = 0) limit 10;
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...