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
Saeidpourbabak
.
Toggle Highlighting
SQL
USE fawiki_p; #SELECT page_title,MID(page_title,LOCATE('(',page_title)+1,length(page_title)-16),MID(page_title,LOCATE('(',page_title)+1,LOCATE(')',page_title)-16) SELECT page_title,REPLACE(CONCAT('شهرستان_',REPLACE(MID(page_title,LOCATE('(',page_title)+1,length(page_title)),')','')),'_',' ') FROM page AS p WHERE p.page_namespace = 0 AND p.page_is_redirect=0 AND p.page_title ='سلطانآباد_(شهرستان_ارومیه)' AND p.page_title LIKE "%(%" AND p.page_id IN ( SELECT cl_from FROM categorylinks WHERE cl_to LIKE "روستاهای_%" ) AND NOT EXISTS ( SELECT null FROM page WHERE page_namespace = 0 AND page_is_redirect=0 AND page_title = REPLACE(CONCAT('شهرستان_',REPLACE(MID(p.page_title,LOCATE('(',p.page_title)+1,length(p.page_title)),')','')),'_',' ') ) ORDER BY page_title LIMIT 100;
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...