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
RoJan94
.
Toggle Highlighting
SQL
prepare com from 'select case when c7.cl_to is not null then ? end as page_id, c7.cl_to, count(*) from categorylinks c7 join (select p7.page_id from page p7 join (select c6.cl_to from categorylinks c6 join (select p6.page_id from page p6 join (select c5.cl_to from categorylinks c5 join (select p5.page_id from page p5 join (select c4.cl_to from categorylinks c4 join (select p4.page_id from page p4 join (select c3.cl_to from categorylinks c3 join (select p3.page_id from page p3 join (select c2.cl_to from categorylinks c2 join (select p2.page_id from page p2 join (select c1.cl_to from categorylinks c1 join (select p1.page_id from page p1 join (select cl_to from categorylinks where cl_from = ?) t1 on p1.page_title = t1.cl_to where p1.page_namespace = 14) t2 on c1.cl_from = t2.page_id) t3 on p2.page_title = t3.cl_to where p2.page_namespace = 14) t4 on c2.cl_from = t4.page_id) t5 on p3.page_title = t5.cl_to where p3.page_namespace = 14) t6 on c3.cl_from = t6.page_id) t7 on p4.page_title = t7.cl_to where p4.page_namespace = 14) t8 on c4.cl_from = t8.page_id) t9 on p5.page_title = t9.cl_to where p5.page_namespace = 14) t10 on c5.cl_from = t10.page_id) t11 on p6.page_title = t11.cl_to where p6.page_namespace = 14) t12 on c6.cl_from = t12.page_id) t13 on p7.page_title = t13.cl_to where p7.page_namespace = 14) t14 on c7.cl_from = t14.page_id group by c7.cl_to having c7.cl_to like "Academic_disciplines" or c7.cl_to like "Business" or c7.cl_to like "Communication" or c7.cl_to like "Concepts" or c7.cl_to like "Culture" or c7.cl_to like "Economy" or c7.cl_to like "Education" or c7.cl_to like "Energy" or c7.cl_to like "Engineering" or c7.cl_to like "Entertainment" or c7.cl_to like "Entities" or c7.cl_to like "Ethics" or c7.cl_to like "Food_and_drink" or c7.cl_to like "Geography" or c7.cl_to like "Government" or c7.cl_to like "Health" or c7.cl_to like "History" or c7.cl_to like "Human_behavior" or c7.cl_to like "Humanities" or c7.cl_to like "Information" or c7.cl_to like "Internet" or c7.cl_to like "Knowledge" or c7.cl_to like "Language" or c7.cl_to like "Law" or c7.cl_to like "Life" or c7.cl_to like "Mass_media" or c7.cl_to like "Mathematics" or c7.cl_to like "Military" or c7.cl_to like "Nature" or c7.cl_to like "People" or c7.cl_to like "Philosophy" or c7.cl_to like "Politics" or c7.cl_to like "Religion" or c7.cl_to like "Science" or c7.cl_to like "Society" or c7.cl_to like "Sports" or c7.cl_to like "Technology" or c7.cl_to like "Time" or c7.cl_to like "Universe" order by c7.cl_to'; set @num1 := 7984; set @num2 := 7984; execute com using @num1, @num2; set @num1 := 7989; set @num2 := 7989; execute com using @num1, @num2; set @num1 := 7990; set @num2 := 7990; execute com using @num1, @num2; set @num1 := 7992; set @num2 := 7992; execute com using @num1, @num2; set @num1 := 7994; set @num2 := 7994; execute com using @num1, @num2; set @num1 := 8005; set @num2 := 8005; execute com using @num1, @num2; set @num1 := 8011; set @num2 := 8011; execute com using @num1, @num2; set @num1 := 8013; set @num2 := 8013; execute com using @num1, @num2; set @num1 := 8032; set @num2 := 8032; execute com using @num1, @num2; set @num1 := 8035; set @num2 := 8035; execute com using @num1, @num2; set @num1 := 8042; set @num2 := 8042; execute com using @num1, @num2; set @num1 := 8048; set @num2 := 8048; execute com using @num1, @num2; set @num1 := 8052; set @num2 := 8052; execute com using @num1, @num2; set @num1 := 8054; set @num2 := 8054; execute com using @num1, @num2; set @num1 := 8060; set @num2 := 8060; execute com using @num1, @num2; set @num1 := 8064; set @num2 := 8064; execute com using @num1, @num2; set @num1 := 8072; set @num2 := 8072; execute com using @num1, @num2; set @num1 := 8078; set @num2 := 8078; execute com using @num1, @num2; set @num1 := 8079; set @num2 := 8079; execute com using @num1, @num2; set @num1 := 8082; set @num2 := 8082; execute com using @num1, @num2; set @num1 := 8083; set @num2 := 8083; execute com using @num1, @num2; set @num1 := 8088; set @num2 := 8088; execute com using @num1, @num2; set @num1 := 8091; set @num2 := 8091; execute com using @num1, @num2; set @num1 := 8092; set @num2 := 8092; execute com using @num1, @num2; set @num1 := 8095; set @num2 := 8095; execute com using @num1, @num2; set @num1 := 8097; set @num2 := 8097; execute com using @num1, @num2; set @num1 := 8099; set @num2 := 8099; execute com using @num1, @num2; set @num1 := 8100; set @num2 := 8100; execute com using @num1, @num2; set @num1 := 8101; set @num2 := 8101; execute com using @num1, @num2; set @num1 := 8102; set @num2 := 8102; execute com using @num1, @num2; set @num1 := 8103; set @num2 := 8103; execute com using @num1, @num2; set @num1 := 8104; set @num2 := 8104; execute com using @num1, @num2; set @num1 := 8118; set @num2 := 8118; execute com using @num1, @num2; set @num1 := 8121; set @num2 := 8121; execute com using @num1, @num2; set @num1 := 8122; set @num2 := 8122; execute com using @num1, @num2; set @num1 := 8123; set @num2 := 8123; execute com using @num1, @num2; set @num1 := 8125; set @num2 := 8125; execute com using @num1, @num2; set @num1 := 8126; set @num2 := 8126; execute com using @num1, @num2; set @num1 := 8127; set @num2 := 8127; execute com using @num1, @num2; set @num1 := 8128; set @num2 := 8128; execute com using @num1, @num2; set @num1 := 8133; set @num2 := 8133; execute com using @num1, @num2; set @num1 := 8137; set @num2 := 8137; execute com using @num1, @num2; set @num1 := 8142; set @num2 := 8142; execute com using @num1, @num2; set @num1 := 8144; set @num2 := 8144; execute com using @num1, @num2; set @num1 := 8145; set @num2 := 8145; execute com using @num1, @num2; set @num1 := 8162; set @num2 := 8162; execute com using @num1, @num2; set @num1 := 8166; set @num2 := 8166; execute com using @num1, @num2; set @num1 := 8167; set @num2 := 8167; execute com using @num1, @num2; set @num1 := 8169; set @num2 := 8169; execute com using @num1, @num2; set @num1 := 8176; set @num2 := 8176; execute com using @num1, @num2; set @num1 := 8179; set @num2 := 8179; execute com using @num1, @num2; set @num1 := 8182; set @num2 := 8182; execute com using @num1, @num2; set @num1 := 8185; set @num2 := 8185; execute com using @num1, @num2; set @num1 := 8192; set @num2 := 8192; execute com using @num1, @num2; set @num1 := 8193; set @num2 := 8193; execute com using @num1, @num2; set @num1 := 8194; set @num2 := 8194; execute com using @num1, @num2; set @num1 := 8197; set @num2 := 8197; execute com using @num1, @num2; set @num1 := 8198; set @num2 := 8198; execute com using @num1, @num2; set @num1 := 8199; set @num2 := 8199; execute com using @num1, @num2; set @num1 := 8202; set @num2 := 8202; execute com using @num1, @num2; set @num1 := 8203; set @num2 := 8203; execute com using @num1, @num2; set @num1 := 8204; set @num2 := 8204; execute com using @num1, @num2; set @num1 := 8205; set @num2 := 8205; execute com using @num1, @num2; set @num1 := 8209; set @num2 := 8209; execute com using @num1, @num2; set @num1 := 8211; set @num2 := 8211; execute com using @num1, @num2; set @num1 := 8214; set @num2 := 8214; execute com using @num1, @num2; set @num1 := 8216; set @num2 := 8216; execute com using @num1, @num2; set @num1 := 8217; set @num2 := 8217; execute com using @num1, @num2; set @num1 := 8218; set @num2 := 8218; execute com using @num1, @num2; set @num1 := 8219; set @num2 := 8219; execute com using @num1, @num2; set @num1 := 8220; set @num2 := 8220; execute com using @num1, @num2; set @num1 := 8221; set @num2 := 8221; execute com using @num1, @num2; set @num1 := 8222; set @num2 := 8222; execute com using @num1, @num2; set @num1 := 8227; set @num2 := 8227; execute com using @num1, @num2; set @num1 := 8228; set @num2 := 8228; execute com using @num1, @num2; set @num1 := 8230; set @num2 := 8230; execute com using @num1, @num2; set @num1 := 8233; set @num2 := 8233; execute com using @num1, @num2; set @num1 := 8237; set @num2 := 8237; execute com using @num1, @num2; set @num1 := 8239; set @num2 := 8239; execute com using @num1, @num2; set @num1 := 8240; set @num2 := 8240; execute com using @num1, @num2; set @num1 := 8242; set @num2 := 8242; execute com using @num1, @num2; set @num1 := 8243; set @num2 := 8243; execute com using @num1, @num2; set @num1 := 8244; set @num2 := 8244; execute com using @num1, @num2; set @num1 := 8246; set @num2 := 8246; execute com using @num1, @num2; set @num1 := 8247; set @num2 := 8247; execute com using @num1, @num2; set @num1 := 8249; set @num2 := 8249; execute com using @num1, @num2; set @num1 := 8253; set @num2 := 8253; execute com using @num1, @num2; set @num1 := 8254; set @num2 := 8254; execute com using @num1, @num2; set @num1 := 8256; set @num2 := 8256; execute com using @num1, @num2; set @num1 := 8262; set @num2 := 8262; execute com using @num1, @num2; set @num1 := 8267; set @num2 := 8267; execute com using @num1, @num2; set @num1 := 8270; set @num2 := 8270; execute com using @num1, @num2; set @num1 := 8274; set @num2 := 8274; execute com using @num1, @num2; set @num1 := 8280; set @num2 := 8280; execute com using @num1, @num2; set @num1 := 8299; set @num2 := 8299; execute com using @num1, @num2; set @num1 := 8300; set @num2 := 8300; execute com using @num1, @num2; set @num1 := 8301; set @num2 := 8301; execute com using @num1, @num2; set @num1 := 8302; set @num2 := 8302; execute com using @num1, @num2; set @num1 := 8303; set @num2 := 8303; execute com using @num1, @num2; set @num1 := 8305; set @num2 := 8305; execute com using @num1, @num2;
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...