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 := 17023; set @num2 := 17023; execute com using @num1, @num2; set @num1 := 17025; set @num2 := 17025; execute com using @num1, @num2; set @num1 := 17029; set @num2 := 17029; execute com using @num1, @num2; set @num1 := 17031; set @num2 := 17031; execute com using @num1, @num2; set @num1 := 17037; set @num2 := 17037; execute com using @num1, @num2; set @num1 := 17038; set @num2 := 17038; execute com using @num1, @num2; set @num1 := 17042; set @num2 := 17042; execute com using @num1, @num2; set @num1 := 17043; set @num2 := 17043; execute com using @num1, @num2; set @num1 := 17047; set @num2 := 17047; execute com using @num1, @num2; set @num1 := 17049; set @num2 := 17049; execute com using @num1, @num2; set @num1 := 17056; set @num2 := 17056; execute com using @num1, @num2; set @num1 := 17062; set @num2 := 17062; execute com using @num1, @num2; set @num1 := 17063; set @num2 := 17063; execute com using @num1, @num2; set @num1 := 17064; set @num2 := 17064; execute com using @num1, @num2; set @num1 := 17067; set @num2 := 17067; execute com using @num1, @num2; set @num1 := 17068; set @num2 := 17068; execute com using @num1, @num2; set @num1 := 17070; set @num2 := 17070; execute com using @num1, @num2; set @num1 := 17073; set @num2 := 17073; execute com using @num1, @num2; set @num1 := 17076; set @num2 := 17076; execute com using @num1, @num2; set @num1 := 17077; set @num2 := 17077; execute com using @num1, @num2; set @num1 := 17078; set @num2 := 17078; execute com using @num1, @num2; set @num1 := 17079; set @num2 := 17079; execute com using @num1, @num2; set @num1 := 17080; set @num2 := 17080; execute com using @num1, @num2; set @num1 := 17087; set @num2 := 17087; execute com using @num1, @num2; set @num1 := 17090; set @num2 := 17090; execute com using @num1, @num2; set @num1 := 17095; set @num2 := 17095; execute com using @num1, @num2; set @num1 := 17096; set @num2 := 17096; execute com using @num1, @num2; set @num1 := 17098; set @num2 := 17098; execute com using @num1, @num2; set @num1 := 17100; set @num2 := 17100; execute com using @num1, @num2; set @num1 := 17103; set @num2 := 17103; execute com using @num1, @num2; set @num1 := 17121; set @num2 := 17121; execute com using @num1, @num2; set @num1 := 17123; set @num2 := 17123; execute com using @num1, @num2; set @num1 := 17125; set @num2 := 17125; execute com using @num1, @num2; set @num1 := 17130; set @num2 := 17130; execute com using @num1, @num2; set @num1 := 17134; set @num2 := 17134; execute com using @num1, @num2; set @num1 := 17143; set @num2 := 17143; execute com using @num1, @num2; set @num1 := 17154; set @num2 := 17154; execute com using @num1, @num2; set @num1 := 17156; set @num2 := 17156; execute com using @num1, @num2; set @num1 := 17157; set @num2 := 17157; execute com using @num1, @num2; set @num1 := 17160; set @num2 := 17160; execute com using @num1, @num2; set @num1 := 17163; set @num2 := 17163; execute com using @num1, @num2; set @num1 := 17165; set @num2 := 17165; execute com using @num1, @num2; set @num1 := 17168; set @num2 := 17168; execute com using @num1, @num2; set @num1 := 17171; set @num2 := 17171; execute com using @num1, @num2; set @num1 := 17176; set @num2 := 17176; execute com using @num1, @num2; set @num1 := 17177; set @num2 := 17177; execute com using @num1, @num2; set @num1 := 17202; set @num2 := 17202; execute com using @num1, @num2; set @num1 := 17204; set @num2 := 17204; execute com using @num1, @num2; set @num1 := 17206; set @num2 := 17206; execute com using @num1, @num2; set @num1 := 17214; set @num2 := 17214; execute com using @num1, @num2; set @num1 := 17226; set @num2 := 17226; execute com using @num1, @num2; set @num1 := 17250; set @num2 := 17250; execute com using @num1, @num2; set @num1 := 17253; set @num2 := 17253; execute com using @num1, @num2; set @num1 := 17256; set @num2 := 17256; execute com using @num1, @num2; set @num1 := 17257; set @num2 := 17257; execute com using @num1, @num2; set @num1 := 17268; set @num2 := 17268; execute com using @num1, @num2; set @num1 := 17270; set @num2 := 17270; execute com using @num1, @num2; set @num1 := 17272; set @num2 := 17272; execute com using @num1, @num2; set @num1 := 17273; set @num2 := 17273; execute com using @num1, @num2; set @num1 := 17274; set @num2 := 17274; execute com using @num1, @num2; set @num1 := 17276; set @num2 := 17276; execute com using @num1, @num2; set @num1 := 17282; set @num2 := 17282; execute com using @num1, @num2; set @num1 := 17284; set @num2 := 17284; execute com using @num1, @num2; set @num1 := 17289; set @num2 := 17289; execute com using @num1, @num2; set @num1 := 17291; set @num2 := 17291; execute com using @num1, @num2; set @num1 := 17292; set @num2 := 17292; execute com using @num1, @num2; set @num1 := 17293; set @num2 := 17293; execute com using @num1, @num2; set @num1 := 17300; set @num2 := 17300; execute com using @num1, @num2; set @num1 := 17306; set @num2 := 17306; execute com using @num1, @num2; set @num1 := 17307; set @num2 := 17307; execute com using @num1, @num2; set @num1 := 17313; set @num2 := 17313; execute com using @num1, @num2; set @num1 := 17317; set @num2 := 17317; execute com using @num1, @num2; set @num1 := 17318; set @num2 := 17318; execute com using @num1, @num2; set @num1 := 17320; set @num2 := 17320; execute com using @num1, @num2; set @num1 := 17326; set @num2 := 17326; execute com using @num1, @num2; set @num1 := 17327; set @num2 := 17327; execute com using @num1, @num2; set @num1 := 17333; set @num2 := 17333; execute com using @num1, @num2; set @num1 := 17334; set @num2 := 17334; execute com using @num1, @num2; set @num1 := 17335; set @num2 := 17335; execute com using @num1, @num2; set @num1 := 17337; set @num2 := 17337; execute com using @num1, @num2; set @num1 := 17348; set @num2 := 17348; execute com using @num1, @num2; set @num1 := 17351; set @num2 := 17351; execute com using @num1, @num2; set @num1 := 17353; set @num2 := 17353; execute com using @num1, @num2; set @num1 := 17355; set @num2 := 17355; execute com using @num1, @num2; set @num1 := 17357; set @num2 := 17357; execute com using @num1, @num2; set @num1 := 17359; set @num2 := 17359; execute com using @num1, @num2; set @num1 := 17360; set @num2 := 17360; execute com using @num1, @num2; set @num1 := 17362; set @num2 := 17362; execute com using @num1, @num2; set @num1 := 17363; set @num2 := 17363; execute com using @num1, @num2; set @num1 := 17364; set @num2 := 17364; execute com using @num1, @num2; set @num1 := 17378; set @num2 := 17378; execute com using @num1, @num2; set @num1 := 17379; set @num2 := 17379; execute com using @num1, @num2; set @num1 := 17383; set @num2 := 17383; execute com using @num1, @num2; set @num1 := 17387; set @num2 := 17387; execute com using @num1, @num2; set @num1 := 17390; set @num2 := 17390; execute com using @num1, @num2; set @num1 := 17391; set @num2 := 17391; execute com using @num1, @num2; set @num1 := 17394; set @num2 := 17394; execute com using @num1, @num2; set @num1 := 17396; set @num2 := 17396; execute com using @num1, @num2; set @num1 := 17398; set @num2 := 17398; execute com using @num1, @num2; set @num1 := 17399; set @num2 := 17399; execute com using @num1, @num2; set @num1 := 17410; set @num2 := 17410; execute com using @num1, @num2; set @num1 := 17413; set @num2 := 17413; execute com using @num1, @num2; set @num1 := 17415; set @num2 := 17415; execute com using @num1, @num2; set @num1 := 17418; set @num2 := 17418; execute com using @num1, @num2; set @num1 := 17422; set @num2 := 17422; execute com using @num1, @num2; set @num1 := 17423; set @num2 := 17423; execute com using @num1, @num2; set @num1 := 17424; set @num2 := 17424; execute com using @num1, @num2; set @num1 := 17432; set @num2 := 17432; execute com using @num1, @num2; set @num1 := 17439; set @num2 := 17439; execute com using @num1, @num2; set @num1 := 17440; set @num2 := 17440; execute com using @num1, @num2; set @num1 := 17443; set @num2 := 17443; execute com using @num1, @num2; set @num1 := 17450; set @num2 := 17450; execute com using @num1, @num2; set @num1 := 17454; set @num2 := 17454; execute com using @num1, @num2; set @num1 := 17459; set @num2 := 17459; execute com using @num1, @num2; set @num1 := 17461; set @num2 := 17461; execute com using @num1, @num2; set @num1 := 17467; set @num2 := 17467; execute com using @num1, @num2; set @num1 := 17479; set @num2 := 17479; execute com using @num1, @num2; set @num1 := 17503; set @num2 := 17503; execute com using @num1, @num2; set @num1 := 17505; set @num2 := 17505; execute com using @num1, @num2; set @num1 := 17514; set @num2 := 17514; execute com using @num1, @num2; set @num1 := 17515; set @num2 := 17515; execute com using @num1, @num2; set @num1 := 17524; set @num2 := 17524; execute com using @num1, @num2; set @num1 := 17528; set @num2 := 17528; execute com using @num1, @num2; set @num1 := 17532; set @num2 := 17532; execute com using @num1, @num2; set @num1 := 17537; set @num2 := 17537; execute com using @num1, @num2; set @num1 := 17541; set @num2 := 17541; execute com using @num1, @num2; set @num1 := 17542; set @num2 := 17542; execute com using @num1, @num2; set @num1 := 17546; set @num2 := 17546; execute com using @num1, @num2; set @num1 := 17547; set @num2 := 17547; execute com using @num1, @num2; set @num1 := 17553; set @num2 := 17553; execute com using @num1, @num2; set @num1 := 17556; set @num2 := 17556; execute com using @num1, @num2; set @num1 := 17560; set @num2 := 17560; execute com using @num1, @num2; set @num1 := 17561; set @num2 := 17561; execute com using @num1, @num2; set @num1 := 17562; set @num2 := 17562; execute com using @num1, @num2; set @num1 := 17565; set @num2 := 17565; execute com using @num1, @num2; set @num1 := 17570; set @num2 := 17570; execute com using @num1, @num2; set @num1 := 17575; set @num2 := 17575; execute com using @num1, @num2; set @num1 := 17615; set @num2 := 17615; execute com using @num1, @num2; set @num1 := 17616; set @num2 := 17616; execute com using @num1, @num2; set @num1 := 17618; set @num2 := 17618; execute com using @num1, @num2; set @num1 := 17626; set @num2 := 17626; execute com using @num1, @num2; set @num1 := 17627; set @num2 := 17627; execute com using @num1, @num2; set @num1 := 17628; set @num2 := 17628; execute com using @num1, @num2; set @num1 := 17629; set @num2 := 17629; execute com using @num1, @num2; set @num1 := 17633; set @num2 := 17633; execute com using @num1, @num2; set @num1 := 17637; set @num2 := 17637; execute com using @num1, @num2; set @num1 := 17641; set @num2 := 17641; execute com using @num1, @num2; set @num1 := 17643; set @num2 := 17643; execute com using @num1, @num2; set @num1 := 17644; set @num2 := 17644; execute com using @num1, @num2; set @num1 := 17652; set @num2 := 17652; execute com using @num1, @num2; set @num1 := 17653; set @num2 := 17653; execute com using @num1, @num2; set @num1 := 17659; set @num2 := 17659; execute com using @num1, @num2; set @num1 := 17675; set @num2 := 17675; execute com using @num1, @num2; set @num1 := 17687; set @num2 := 17687; execute com using @num1, @num2; set @num1 := 17696; set @num2 := 17696; execute com using @num1, @num2; set @num1 := 17699; set @num2 := 17699; execute com using @num1, @num2; set @num1 := 17703; set @num2 := 17703; execute com using @num1, @num2; set @num1 := 17704; set @num2 := 17704; execute com using @num1, @num2; set @num1 := 17722; set @num2 := 17722; execute com using @num1, @num2; set @num1 := 17724; set @num2 := 17724; execute com using @num1, @num2; set @num1 := 17725; set @num2 := 17725; execute com using @num1, @num2; set @num1 := 17726; set @num2 := 17726; execute com using @num1, @num2; set @num1 := 17727; set @num2 := 17727; execute com using @num1, @num2; set @num1 := 17730; set @num2 := 17730; execute com using @num1, @num2; set @num1 := 17739; set @num2 := 17739; execute com using @num1, @num2; set @num1 := 17740; set @num2 := 17740; execute com using @num1, @num2; set @num1 := 17741; set @num2 := 17741; execute com using @num1, @num2; set @num1 := 17743; set @num2 := 17743; execute com using @num1, @num2; set @num1 := 17744; set @num2 := 17744; execute com using @num1, @num2; set @num1 := 17745; set @num2 := 17745; execute com using @num1, @num2; set @num1 := 17746; set @num2 := 17746; execute com using @num1, @num2; set @num1 := 17747; set @num2 := 17747; execute com using @num1, @num2; set @num1 := 17748; set @num2 := 17748; execute com using @num1, @num2; set @num1 := 17750; set @num2 := 17750; execute com using @num1, @num2; set @num1 := 17752; set @num2 := 17752; execute com using @num1, @num2; set @num1 := 17758; set @num2 := 17758; execute com using @num1, @num2; set @num1 := 17759; set @num2 := 17759; execute com using @num1, @num2; set @num1 := 17760; set @num2 := 17760; execute com using @num1, @num2; set @num1 := 17764; set @num2 := 17764; execute com using @num1, @num2; set @num1 := 17765; set @num2 := 17765; execute com using @num1, @num2; set @num1 := 17770; set @num2 := 17770; execute com using @num1, @num2; set @num1 := 17771; set @num2 := 17771; execute com using @num1, @num2; set @num1 := 17772; set @num2 := 17772; execute com using @num1, @num2; set @num1 := 17773; set @num2 := 17773; execute com using @num1, @num2; set @num1 := 17774; set @num2 := 17774; execute com using @num1, @num2; set @num1 := 17775; set @num2 := 17775; execute com using @num1, @num2; set @num1 := 17777; set @num2 := 17777; execute com using @num1, @num2; set @num1 := 17779; set @num2 := 17779; execute com using @num1, @num2; set @num1 := 17781; set @num2 := 17781; execute com using @num1, @num2; set @num1 := 17782; set @num2 := 17782; execute com using @num1, @num2; set @num1 := 17791; set @num2 := 17791; execute com using @num1, @num2; set @num1 := 17792; set @num2 := 17792; execute com using @num1, @num2; set @num1 := 17797; set @num2 := 17797; execute com using @num1, @num2; set @num1 := 17804; set @num2 := 17804; execute com using @num1, @num2; set @num1 := 17805; set @num2 := 17805; execute com using @num1, @num2; set @num1 := 17806; set @num2 := 17806; execute com using @num1, @num2; set @num1 := 17809; set @num2 := 17809; execute com using @num1, @num2; set @num1 := 17810; set @num2 := 17810; execute com using @num1, @num2; set @num1 := 17828; set @num2 := 17828; execute com using @num1, @num2; set @num1 := 17831; set @num2 := 17831; 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...