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
Stefan Fadinger
.
Toggle Highlighting
SQL
select asdf.*,gt_lat,gt_lon,gt_region,gt_primary from ( select 1,cl_from,(select page_title from page where page_id = cl_from),cl_type,cl_to from categorylinks where cl_to = 'Oberösterreich' and cl_type = 'page' union all select 2,cl_from,(select page_title from page where page_id = cl_from),cl_type,cl_to from categorylinks where cl_to in (select (select page_title from page where page_id = cl_from) from categorylinks where cl_to = 'Oberösterreich' and cl_type = 'subcat') and cl_type = 'page' union all select 3,cl_from,(select page_title from page where page_id = cl_from),cl_type,cl_to from categorylinks where cl_to in (select (select page_title from page where page_id = cl_from) from categorylinks where cl_to in (select (select page_title from page where page_id = cl_from) from categorylinks where cl_to = 'Oberösterreich' and cl_type = 'subcat') and cl_type = 'subcat') and cl_type = 'page' union all select 4,cl_from,(select page_title from page where page_id = cl_from),cl_type,cl_to from categorylinks where cl_to in (select (select page_title from page where page_id = cl_from) from categorylinks where cl_to in (select (select page_title from page where page_id = cl_from) from categorylinks where cl_to in (select (select page_title from page where page_id = cl_from) from categorylinks where cl_to = 'Oberösterreich' and cl_type = 'subcat') and cl_type = 'subcat') and cl_type = 'subcat') and cl_type = 'page' union all select 5,cl_from,(select page_title from page where page_id = cl_from),cl_type,cl_to from categorylinks where cl_to in ( select (select page_title from page where page_id = cl_from) from categorylinks where cl_to in (select (select page_title from page where page_id = cl_from) from categorylinks where cl_to in (select (select page_title from page where page_id = cl_from) from categorylinks where cl_to in (select (select page_title from page where page_id = cl_from) from categorylinks where cl_to = 'Oberösterreich' and cl_type = 'subcat') and cl_type = 'subcat') and cl_type = 'subcat') and cl_type='subcat' ) and cl_type = 'page' union all select 6,cl_from,(select page_title from page where page_id = cl_from),cl_type,cl_to from categorylinks where cl_to in ( select (select page_title from page where page_id = cl_from) from categorylinks where cl_to in ( select (select page_title from page where page_id = cl_from) from categorylinks where cl_to in (select (select page_title from page where page_id = cl_from) from categorylinks where cl_to in (select (select page_title from page where page_id = cl_from) from categorylinks where cl_to in (select (select page_title from page where page_id = cl_from) from categorylinks where cl_to = 'Oberösterreich' and cl_type = 'subcat') and cl_type = 'subcat') and cl_type = 'subcat') and cl_type='subcat' ) and cl_type = 'subcat' ) ) as asdf inner join geo_tags on gt_page_id = asdf.cl_from # left join geo_tags on gt_page_id = asdf.cl_from where gt_region != 4 order by 1,2
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...