This query is marked as a draft This query has been published by Arjunaraoc.

SQL

AخA
 
SELECT 
    CONCAT("[[",REPLACE(page_title, '_', ' '),"]]") as pagename,
    CONCAT("[[",REPLACE(rd_title, '_', ' '),"]]") as rdname    
from  redirect
join page on  rd_from=page_id
where rd_namespace=0  and rd_title in
( SELECT p.page_title
 FROM page p
 JOIN categorylinks on cl_from =p.page_id 
 WHERE cl_to LIKE "బాపట్ల_జిల్లా_మండలాలు" AND cl_type="page" AND p.page_namespace=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.
All SQL code is licensed under CC0 License.

Checking query status...