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 := 10024; set @num2 := 10024; execute com using @num1, @num2; set @num1 := 10026; set @num2 := 10026; execute com using @num1, @num2; set @num1 := 10029; set @num2 := 10029; execute com using @num1, @num2; set @num1 := 10030; set @num2 := 10030; execute com using @num1, @num2; set @num1 := 10037; set @num2 := 10037; execute com using @num1, @num2; set @num1 := 10045; set @num2 := 10045; execute com using @num1, @num2; set @num1 := 10046; set @num2 := 10046; execute com using @num1, @num2; set @num1 := 10048; set @num2 := 10048; execute com using @num1, @num2; set @num1 := 10049; set @num2 := 10049; execute com using @num1, @num2; set @num1 := 10053; set @num2 := 10053; execute com using @num1, @num2; set @num1 := 10055; set @num2 := 10055; execute com using @num1, @num2; set @num1 := 10065; set @num2 := 10065; execute com using @num1, @num2; set @num1 := 10070; set @num2 := 10070; execute com using @num1, @num2; set @num1 := 10071; set @num2 := 10071; execute com using @num1, @num2; set @num1 := 10076; set @num2 := 10076; execute com using @num1, @num2; set @num1 := 10080; set @num2 := 10080; execute com using @num1, @num2; set @num1 := 10081; set @num2 := 10081; execute com using @num1, @num2; set @num1 := 10085; set @num2 := 10085; execute com using @num1, @num2; set @num1 := 10091; set @num2 := 10091; execute com using @num1, @num2; set @num1 := 10093; set @num2 := 10093; execute com using @num1, @num2; set @num1 := 10100; set @num2 := 10100; execute com using @num1, @num2; set @num1 := 10106; set @num2 := 10106; execute com using @num1, @num2; set @num1 := 10110; set @num2 := 10110; execute com using @num1, @num2; set @num1 := 10111; set @num2 := 10111; execute com using @num1, @num2; set @num1 := 10113; set @num2 := 10113; execute com using @num1, @num2; set @num1 := 10118; set @num2 := 10118; execute com using @num1, @num2; set @num1 := 10120; set @num2 := 10120; execute com using @num1, @num2; set @num1 := 10128; set @num2 := 10128; execute com using @num1, @num2; set @num1 := 10133; set @num2 := 10133; execute com using @num1, @num2; set @num1 := 10134; set @num2 := 10134; execute com using @num1, @num2; set @num1 := 10136; set @num2 := 10136; execute com using @num1, @num2; set @num1 := 10139; set @num2 := 10139; execute com using @num1, @num2; set @num1 := 10148; set @num2 := 10148; execute com using @num1, @num2; set @num1 := 10151; set @num2 := 10151; execute com using @num1, @num2; set @num1 := 10152; set @num2 := 10152; execute com using @num1, @num2; set @num1 := 10153; set @num2 := 10153; execute com using @num1, @num2; set @num1 := 10158; set @num2 := 10158; execute com using @num1, @num2; set @num1 := 10160; set @num2 := 10160; execute com using @num1, @num2; set @num1 := 10165; set @num2 := 10165; execute com using @num1, @num2; set @num1 := 10166; set @num2 := 10166; execute com using @num1, @num2; set @num1 := 10172; set @num2 := 10172; execute com using @num1, @num2; set @num1 := 10174; set @num2 := 10174; execute com using @num1, @num2; set @num1 := 10184; set @num2 := 10184; execute com using @num1, @num2; set @num1 := 10186; set @num2 := 10186; execute com using @num1, @num2; set @num1 := 10192; set @num2 := 10192; execute com using @num1, @num2; set @num1 := 10193; set @num2 := 10193; execute com using @num1, @num2; set @num1 := 10221; set @num2 := 10221; execute com using @num1, @num2; set @num1 := 10223; set @num2 := 10223; execute com using @num1, @num2; set @num1 := 10224; set @num2 := 10224; execute com using @num1, @num2; set @num1 := 10225; set @num2 := 10225; execute com using @num1, @num2; set @num1 := 10231; set @num2 := 10231; execute com using @num1, @num2; set @num1 := 10237; set @num2 := 10237; execute com using @num1, @num2; set @num1 := 10243; set @num2 := 10243; execute com using @num1, @num2; set @num1 := 10245; set @num2 := 10245; execute com using @num1, @num2; set @num1 := 10257; set @num2 := 10257; execute com using @num1, @num2; set @num1 := 10258; set @num2 := 10258; execute com using @num1, @num2; set @num1 := 10264; set @num2 := 10264; execute com using @num1, @num2; set @num1 := 10268; set @num2 := 10268; execute com using @num1, @num2; set @num1 := 10270; set @num2 := 10270; execute com using @num1, @num2; set @num1 := 10272; set @num2 := 10272; execute com using @num1, @num2; set @num1 := 10274; set @num2 := 10274; execute com using @num1, @num2; set @num1 := 10277; set @num2 := 10277; execute com using @num1, @num2; set @num1 := 10286; set @num2 := 10286; execute com using @num1, @num2; set @num1 := 10287; set @num2 := 10287; execute com using @num1, @num2; set @num1 := 10290; set @num2 := 10290; execute com using @num1, @num2; set @num1 := 10292; set @num2 := 10292; execute com using @num1, @num2; set @num1 := 10293; set @num2 := 10293; execute com using @num1, @num2; set @num1 := 10294; set @num2 := 10294; execute com using @num1, @num2; set @num1 := 10302; set @num2 := 10302; execute com using @num1, @num2; set @num1 := 10303; set @num2 := 10303; execute com using @num1, @num2; set @num1 := 10307; set @num2 := 10307; execute com using @num1, @num2; set @num1 := 10310; set @num2 := 10310; execute com using @num1, @num2; set @num1 := 10312; set @num2 := 10312; execute com using @num1, @num2; set @num1 := 10313; set @num2 := 10313; execute com using @num1, @num2; set @num1 := 10315; set @num2 := 10315; execute com using @num1, @num2; set @num1 := 10322; set @num2 := 10322; execute com using @num1, @num2; set @num1 := 10326; set @num2 := 10326; execute com using @num1, @num2; set @num1 := 10328; set @num2 := 10328; execute com using @num1, @num2; set @num1 := 10331; set @num2 := 10331; execute com using @num1, @num2; set @num1 := 10333; set @num2 := 10333; execute com using @num1, @num2; set @num1 := 10334; set @num2 := 10334; execute com using @num1, @num2; set @num1 := 10335; set @num2 := 10335; execute com using @num1, @num2; set @num1 := 10336; set @num2 := 10336; execute com using @num1, @num2; set @num1 := 10338; set @num2 := 10338; execute com using @num1, @num2; set @num1 := 10350; set @num2 := 10350; execute com using @num1, @num2; set @num1 := 10354; set @num2 := 10354; execute com using @num1, @num2; set @num1 := 10356; set @num2 := 10356; execute com using @num1, @num2; set @num1 := 10357; set @num2 := 10357; execute com using @num1, @num2; set @num1 := 10358; set @num2 := 10358; execute com using @num1, @num2; set @num1 := 10363; set @num2 := 10363; execute com using @num1, @num2; set @num1 := 10370; set @num2 := 10370; execute com using @num1, @num2; set @num1 := 10371; set @num2 := 10371; execute com using @num1, @num2; set @num1 := 10374; set @num2 := 10374; execute com using @num1, @num2; set @num1 := 10380; set @num2 := 10380; execute com using @num1, @num2; set @num1 := 10384; set @num2 := 10384; execute com using @num1, @num2; set @num1 := 10392; set @num2 := 10392; execute com using @num1, @num2; set @num1 := 10393; set @num2 := 10393; execute com using @num1, @num2; set @num1 := 10400; set @num2 := 10400; execute com using @num1, @num2; set @num1 := 10402; set @num2 := 10402; execute com using @num1, @num2; set @num1 := 10406; set @num2 := 10406; 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...