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 := 13076; set @num2 := 13076; execute com using @num1, @num2; set @num1 := 13077; set @num2 := 13077; execute com using @num1, @num2; set @num1 := 13078; set @num2 := 13078; execute com using @num1, @num2; set @num1 := 13080; set @num2 := 13080; execute com using @num1, @num2; set @num1 := 13082; set @num2 := 13082; execute com using @num1, @num2; set @num1 := 13084; set @num2 := 13084; execute com using @num1, @num2; set @num1 := 13088; set @num2 := 13088; execute com using @num1, @num2; set @num1 := 13090; set @num2 := 13090; execute com using @num1, @num2; set @num1 := 13095; set @num2 := 13095; execute com using @num1, @num2; set @num1 := 13097; set @num2 := 13097; execute com using @num1, @num2; set @num1 := 13098; set @num2 := 13098; execute com using @num1, @num2; set @num1 := 13104; set @num2 := 13104; execute com using @num1, @num2; set @num1 := 13109; set @num2 := 13109; execute com using @num1, @num2; set @num1 := 13114; set @num2 := 13114; execute com using @num1, @num2; set @num1 := 13120; set @num2 := 13120; execute com using @num1, @num2; set @num1 := 13134; set @num2 := 13134; execute com using @num1, @num2; set @num1 := 13137; set @num2 := 13137; execute com using @num1, @num2; set @num1 := 13146; set @num2 := 13146; execute com using @num1, @num2; set @num1 := 13148; set @num2 := 13148; execute com using @num1, @num2; set @num1 := 13149; set @num2 := 13149; execute com using @num1, @num2; set @num1 := 13151; set @num2 := 13151; execute com using @num1, @num2; set @num1 := 13152; set @num2 := 13152; execute com using @num1, @num2; set @num1 := 13154; set @num2 := 13154; execute com using @num1, @num2; set @num1 := 13156; set @num2 := 13156; execute com using @num1, @num2; set @num1 := 13159; set @num2 := 13159; execute com using @num1, @num2; set @num1 := 13160; set @num2 := 13160; execute com using @num1, @num2; set @num1 := 13162; set @num2 := 13162; execute com using @num1, @num2; set @num1 := 13169; set @num2 := 13169; execute com using @num1, @num2; set @num1 := 13171; set @num2 := 13171; execute com using @num1, @num2; set @num1 := 13172; set @num2 := 13172; execute com using @num1, @num2; set @num1 := 13191; set @num2 := 13191; execute com using @num1, @num2; set @num1 := 13192; set @num2 := 13192; execute com using @num1, @num2; set @num1 := 13207; set @num2 := 13207; execute com using @num1, @num2; set @num1 := 13208; set @num2 := 13208; execute com using @num1, @num2; set @num1 := 13210; set @num2 := 13210; execute com using @num1, @num2; set @num1 := 13212; set @num2 := 13212; execute com using @num1, @num2; set @num1 := 13219; set @num2 := 13219; execute com using @num1, @num2; set @num1 := 13224; set @num2 := 13224; execute com using @num1, @num2; set @num1 := 13225; set @num2 := 13225; execute com using @num1, @num2; set @num1 := 13236; set @num2 := 13236; execute com using @num1, @num2; set @num1 := 13250; set @num2 := 13250; execute com using @num1, @num2; set @num1 := 13253; set @num2 := 13253; execute com using @num1, @num2; set @num1 := 13255; set @num2 := 13255; execute com using @num1, @num2; set @num1 := 13256; set @num2 := 13256; execute com using @num1, @num2; set @num1 := 13257; set @num2 := 13257; execute com using @num1, @num2; set @num1 := 13258; set @num2 := 13258; execute com using @num1, @num2; set @num1 := 13264; set @num2 := 13264; execute com using @num1, @num2; set @num1 := 13265; set @num2 := 13265; execute com using @num1, @num2; set @num1 := 13266; set @num2 := 13266; execute com using @num1, @num2; set @num1 := 13270; set @num2 := 13270; execute com using @num1, @num2; set @num1 := 13275; set @num2 := 13275; execute com using @num1, @num2; set @num1 := 13276; set @num2 := 13276; execute com using @num1, @num2; set @num1 := 13277; set @num2 := 13277; execute com using @num1, @num2; set @num1 := 13279; set @num2 := 13279; execute com using @num1, @num2; set @num1 := 13288; set @num2 := 13288; execute com using @num1, @num2; set @num1 := 13289; set @num2 := 13289; execute com using @num1, @num2; set @num1 := 13290; set @num2 := 13290; execute com using @num1, @num2; set @num1 := 13292; set @num2 := 13292; execute com using @num1, @num2; set @num1 := 13293; set @num2 := 13293; execute com using @num1, @num2; set @num1 := 13297; set @num2 := 13297; execute com using @num1, @num2; set @num1 := 13298; set @num2 := 13298; execute com using @num1, @num2; set @num1 := 13299; set @num2 := 13299; execute com using @num1, @num2; set @num1 := 13305; set @num2 := 13305; execute com using @num1, @num2; set @num1 := 13306; set @num2 := 13306; execute com using @num1, @num2; set @num1 := 13308; set @num2 := 13308; execute com using @num1, @num2; set @num1 := 13311; set @num2 := 13311; execute com using @num1, @num2; set @num1 := 13312; set @num2 := 13312; execute com using @num1, @num2; set @num1 := 13315; set @num2 := 13315; execute com using @num1, @num2; set @num1 := 13316; set @num2 := 13316; execute com using @num1, @num2; set @num1 := 13371; set @num2 := 13371; execute com using @num1, @num2; set @num1 := 13373; set @num2 := 13373; execute com using @num1, @num2; set @num1 := 13374; set @num2 := 13374; execute com using @num1, @num2; set @num1 := 13375; set @num2 := 13375; execute com using @num1, @num2; set @num1 := 13376; set @num2 := 13376; execute com using @num1, @num2; set @num1 := 13383; set @num2 := 13383; execute com using @num1, @num2; set @num1 := 13393; set @num2 := 13393; execute com using @num1, @num2; set @num1 := 13394; set @num2 := 13394; execute com using @num1, @num2; set @num1 := 13396; set @num2 := 13396; execute com using @num1, @num2; set @num1 := 13398; set @num2 := 13398; execute com using @num1, @num2; set @num1 := 13404; set @num2 := 13404; execute com using @num1, @num2; set @num1 := 13409; set @num2 := 13409; execute com using @num1, @num2; set @num1 := 13414; set @num2 := 13414; execute com using @num1, @num2; set @num1 := 13428; set @num2 := 13428; execute com using @num1, @num2; set @num1 := 13433; set @num2 := 13433; execute com using @num1, @num2; set @num1 := 13435; set @num2 := 13435; execute com using @num1, @num2; set @num1 := 13436; set @num2 := 13436; execute com using @num1, @num2; set @num1 := 13443; set @num2 := 13443; execute com using @num1, @num2; set @num1 := 13446; set @num2 := 13446; execute com using @num1, @num2; set @num1 := 13447; set @num2 := 13447; execute com using @num1, @num2; set @num1 := 13450; set @num2 := 13450; execute com using @num1, @num2; set @num1 := 13451; set @num2 := 13451; execute com using @num1, @num2; set @num1 := 13453; set @num2 := 13453; execute com using @num1, @num2; set @num1 := 13456; set @num2 := 13456; execute com using @num1, @num2; set @num1 := 13458; set @num2 := 13458; execute com using @num1, @num2; set @num1 := 13459; set @num2 := 13459; execute com using @num1, @num2; set @num1 := 13460; set @num2 := 13460; execute com using @num1, @num2; set @num1 := 13462; set @num2 := 13462; execute com using @num1, @num2; set @num1 := 13463; set @num2 := 13463; execute com using @num1, @num2; set @num1 := 13465; set @num2 := 13465; execute com using @num1, @num2; set @num1 := 13466; set @num2 := 13466; execute com using @num1, @num2; set @num1 := 13471; set @num2 := 13471; execute com using @num1, @num2; set @num1 := 13475; set @num2 := 13475; execute com using @num1, @num2; set @num1 := 13478; set @num2 := 13478; execute com using @num1, @num2; set @num1 := 13479; set @num2 := 13479; execute com using @num1, @num2; set @num1 := 13483; set @num2 := 13483; execute com using @num1, @num2; set @num1 := 13485; set @num2 := 13485; execute com using @num1, @num2; set @num1 := 13486; set @num2 := 13486; execute com using @num1, @num2; set @num1 := 13487; set @num2 := 13487; execute com using @num1, @num2; set @num1 := 13499; set @num2 := 13499; execute com using @num1, @num2; set @num1 := 13509; set @num2 := 13509; execute com using @num1, @num2; set @num1 := 13519; set @num2 := 13519; execute com using @num1, @num2; set @num1 := 13523; set @num2 := 13523; execute com using @num1, @num2; set @num1 := 13525; set @num2 := 13525; execute com using @num1, @num2; set @num1 := 13531; set @num2 := 13531; execute com using @num1, @num2; set @num1 := 13532; set @num2 := 13532; execute com using @num1, @num2; set @num1 := 13533; set @num2 := 13533; execute com using @num1, @num2; set @num1 := 13535; set @num2 := 13535; execute com using @num1, @num2; set @num1 := 13543; set @num2 := 13543; execute com using @num1, @num2; set @num1 := 13544; set @num2 := 13544; execute com using @num1, @num2; set @num1 := 13545; set @num2 := 13545; execute com using @num1, @num2; set @num1 := 13546; set @num2 := 13546; execute com using @num1, @num2; set @num1 := 13547; set @num2 := 13547; execute com using @num1, @num2; set @num1 := 13550; set @num2 := 13550; execute com using @num1, @num2; set @num1 := 13554; set @num2 := 13554; execute com using @num1, @num2; set @num1 := 13560; set @num2 := 13560; execute com using @num1, @num2; set @num1 := 13563; set @num2 := 13563; execute com using @num1, @num2; set @num1 := 13570; set @num2 := 13570; execute com using @num1, @num2; set @num1 := 13574; set @num2 := 13574; execute com using @num1, @num2; set @num1 := 13575; set @num2 := 13575; execute com using @num1, @num2; set @num1 := 13578; set @num2 := 13578; execute com using @num1, @num2; set @num1 := 13586; set @num2 := 13586; execute com using @num1, @num2; set @num1 := 13588; set @num2 := 13588; execute com using @num1, @num2; set @num1 := 13590; set @num2 := 13590; execute com using @num1, @num2; set @num1 := 13595; set @num2 := 13595; execute com using @num1, @num2; set @num1 := 13601; set @num2 := 13601; execute com using @num1, @num2; set @num1 := 13603; set @num2 := 13603; execute com using @num1, @num2; set @num1 := 13606; set @num2 := 13606; execute com using @num1, @num2; set @num1 := 13609; set @num2 := 13609; execute com using @num1, @num2; set @num1 := 13610; set @num2 := 13610; execute com using @num1, @num2; set @num1 := 13615; set @num2 := 13615; execute com using @num1, @num2; set @num1 := 13616; set @num2 := 13616; execute com using @num1, @num2; set @num1 := 13617; set @num2 := 13617; execute com using @num1, @num2; set @num1 := 13621; set @num2 := 13621; execute com using @num1, @num2; set @num1 := 13623; set @num2 := 13623; execute com using @num1, @num2; set @num1 := 13624; set @num2 := 13624; execute com using @num1, @num2; set @num1 := 13627; set @num2 := 13627; execute com using @num1, @num2; set @num1 := 13628; set @num2 := 13628; execute com using @num1, @num2; set @num1 := 13629; set @num2 := 13629; execute com using @num1, @num2; set @num1 := 13631; set @num2 := 13631; execute com using @num1, @num2; set @num1 := 13633; set @num2 := 13633; execute com using @num1, @num2; set @num1 := 13635; set @num2 := 13635; execute com using @num1, @num2; set @num1 := 13636; set @num2 := 13636; execute com using @num1, @num2; set @num1 := 13637; set @num2 := 13637; execute com using @num1, @num2; set @num1 := 13644; set @num2 := 13644; execute com using @num1, @num2; set @num1 := 13645; set @num2 := 13645; execute com using @num1, @num2; set @num1 := 13652; set @num2 := 13652; execute com using @num1, @num2; set @num1 := 13654; set @num2 := 13654; execute com using @num1, @num2; set @num1 := 13658; set @num2 := 13658; execute com using @num1, @num2; set @num1 := 13677; set @num2 := 13677; execute com using @num1, @num2; set @num1 := 13681; set @num2 := 13681; execute com using @num1, @num2; set @num1 := 13682; set @num2 := 13682; execute com using @num1, @num2; set @num1 := 13684; set @num2 := 13684; execute com using @num1, @num2; set @num1 := 13688; set @num2 := 13688; execute com using @num1, @num2; set @num1 := 13692; set @num2 := 13692; execute com using @num1, @num2; set @num1 := 13693; set @num2 := 13693; execute com using @num1, @num2; set @num1 := 13694; set @num2 := 13694; execute com using @num1, @num2; set @num1 := 13699; set @num2 := 13699; execute com using @num1, @num2; set @num1 := 13706; set @num2 := 13706; execute com using @num1, @num2; set @num1 := 13711; set @num2 := 13711; execute com using @num1, @num2; set @num1 := 13713; set @num2 := 13713; execute com using @num1, @num2; set @num1 := 13717; set @num2 := 13717; execute com using @num1, @num2; set @num1 := 13722; set @num2 := 13722; execute com using @num1, @num2; set @num1 := 13729; set @num2 := 13729; execute com using @num1, @num2; set @num1 := 13730; set @num2 := 13730; execute com using @num1, @num2; set @num1 := 13734; set @num2 := 13734; execute com using @num1, @num2; set @num1 := 13743; set @num2 := 13743; execute com using @num1, @num2; set @num1 := 13749; set @num2 := 13749; execute com using @num1, @num2; set @num1 := 13756; set @num2 := 13756; execute com using @num1, @num2; set @num1 := 13761; set @num2 := 13761; execute com using @num1, @num2; set @num1 := 13763; set @num2 := 13763; execute com using @num1, @num2; set @num1 := 13764; set @num2 := 13764; execute com using @num1, @num2; set @num1 := 13765; set @num2 := 13765; execute com using @num1, @num2; set @num1 := 13768; set @num2 := 13768; execute com using @num1, @num2; set @num1 := 13770; set @num2 := 13770; execute com using @num1, @num2; set @num1 := 13774; set @num2 := 13774; execute com using @num1, @num2; set @num1 := 13776; set @num2 := 13776; execute com using @num1, @num2; set @num1 := 13777; set @num2 := 13777; execute com using @num1, @num2; set @num1 := 13782; set @num2 := 13782; execute com using @num1, @num2; set @num1 := 13786; set @num2 := 13786; execute com using @num1, @num2; set @num1 := 13787; set @num2 := 13787; execute com using @num1, @num2; set @num1 := 13790; set @num2 := 13790; execute com using @num1, @num2; set @num1 := 13792; set @num2 := 13792; execute com using @num1, @num2; set @num1 := 13793; set @num2 := 13793; execute com using @num1, @num2; set @num1 := 13802; set @num2 := 13802; execute com using @num1, @num2; set @num1 := 13804; set @num2 := 13804; execute com using @num1, @num2; set @num1 := 13806; set @num2 := 13806; execute com using @num1, @num2; set @num1 := 13808; set @num2 := 13808; execute com using @num1, @num2; set @num1 := 13810; set @num2 := 13810; execute com using @num1, @num2; set @num1 := 13811; set @num2 := 13811; execute com using @num1, @num2; set @num1 := 13813; set @num2 := 13813; 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...