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 := 12432; set @num2 := 12432; execute com using @num1, @num2; set @num1 := 12436; set @num2 := 12436; execute com using @num1, @num2; set @num1 := 12437; set @num2 := 12437; execute com using @num1, @num2; set @num1 := 12441; set @num2 := 12441; execute com using @num1, @num2; set @num1 := 12446; set @num2 := 12446; execute com using @num1, @num2; set @num1 := 12448; set @num2 := 12448; execute com using @num1, @num2; set @num1 := 12449; set @num2 := 12449; execute com using @num1, @num2; set @num1 := 12454; set @num2 := 12454; execute com using @num1, @num2; set @num1 := 12460; set @num2 := 12460; execute com using @num1, @num2; set @num1 := 12463; set @num2 := 12463; execute com using @num1, @num2; set @num1 := 12466; set @num2 := 12466; execute com using @num1, @num2; set @num1 := 12469; set @num2 := 12469; execute com using @num1, @num2; set @num1 := 12471; set @num2 := 12471; execute com using @num1, @num2; set @num1 := 12472; set @num2 := 12472; execute com using @num1, @num2; set @num1 := 12474; set @num2 := 12474; execute com using @num1, @num2; set @num1 := 12478; set @num2 := 12478; execute com using @num1, @num2; set @num1 := 12486; set @num2 := 12486; execute com using @num1, @num2; set @num1 := 12490; set @num2 := 12490; execute com using @num1, @num2; set @num1 := 12491; set @num2 := 12491; execute com using @num1, @num2; set @num1 := 12492; set @num2 := 12492; execute com using @num1, @num2; set @num1 := 12493; set @num2 := 12493; execute com using @num1, @num2; set @num1 := 12495; set @num2 := 12495; execute com using @num1, @num2; set @num1 := 12501; set @num2 := 12501; execute com using @num1, @num2; set @num1 := 12505; set @num2 := 12505; execute com using @num1, @num2; set @num1 := 12509; set @num2 := 12509; execute com using @num1, @num2; set @num1 := 12511; set @num2 := 12511; execute com using @num1, @num2; set @num1 := 12514; set @num2 := 12514; execute com using @num1, @num2; set @num1 := 12521; set @num2 := 12521; execute com using @num1, @num2; set @num1 := 12523; set @num2 := 12523; execute com using @num1, @num2; set @num1 := 12531; set @num2 := 12531; execute com using @num1, @num2; set @num1 := 12533; set @num2 := 12533; execute com using @num1, @num2; set @num1 := 12537; set @num2 := 12537; execute com using @num1, @num2; set @num1 := 12541; set @num2 := 12541; execute com using @num1, @num2; set @num1 := 12542; set @num2 := 12542; execute com using @num1, @num2; set @num1 := 12546; set @num2 := 12546; execute com using @num1, @num2; set @num1 := 12550; set @num2 := 12550; execute com using @num1, @num2; set @num1 := 12551; set @num2 := 12551; execute com using @num1, @num2; set @num1 := 12552; set @num2 := 12552; execute com using @num1, @num2; set @num1 := 12553; set @num2 := 12553; execute com using @num1, @num2; set @num1 := 12556; set @num2 := 12556; execute com using @num1, @num2; set @num1 := 12557; set @num2 := 12557; execute com using @num1, @num2; set @num1 := 12558; set @num2 := 12558; execute com using @num1, @num2; set @num1 := 12561; set @num2 := 12561; execute com using @num1, @num2; set @num1 := 12562; set @num2 := 12562; execute com using @num1, @num2; set @num1 := 12566; set @num2 := 12566; execute com using @num1, @num2; set @num1 := 12569; set @num2 := 12569; execute com using @num1, @num2; set @num1 := 12576; set @num2 := 12576; execute com using @num1, @num2; set @num1 := 12577; set @num2 := 12577; execute com using @num1, @num2; set @num1 := 12579; set @num2 := 12579; execute com using @num1, @num2; set @num1 := 12581; set @num2 := 12581; execute com using @num1, @num2; set @num1 := 12582; set @num2 := 12582; execute com using @num1, @num2; set @num1 := 12583; set @num2 := 12583; execute com using @num1, @num2; set @num1 := 12590; set @num2 := 12590; execute com using @num1, @num2; set @num1 := 12594; set @num2 := 12594; execute com using @num1, @num2; set @num1 := 12598; set @num2 := 12598; execute com using @num1, @num2; set @num1 := 12601; set @num2 := 12601; execute com using @num1, @num2; set @num1 := 12608; set @num2 := 12608; execute com using @num1, @num2; set @num1 := 12609; set @num2 := 12609; execute com using @num1, @num2; set @num1 := 12610; set @num2 := 12610; execute com using @num1, @num2; set @num1 := 12611; set @num2 := 12611; execute com using @num1, @num2; set @num1 := 12616; set @num2 := 12616; execute com using @num1, @num2; set @num1 := 12618; set @num2 := 12618; execute com using @num1, @num2; set @num1 := 12622; set @num2 := 12622; execute com using @num1, @num2; set @num1 := 12627; set @num2 := 12627; execute com using @num1, @num2; set @num1 := 12628; set @num2 := 12628; execute com using @num1, @num2; set @num1 := 12630; set @num2 := 12630; execute com using @num1, @num2; set @num1 := 12634; set @num2 := 12634; execute com using @num1, @num2; set @num1 := 12635; set @num2 := 12635; execute com using @num1, @num2; set @num1 := 12639; set @num2 := 12639; execute com using @num1, @num2; set @num1 := 12641; set @num2 := 12641; execute com using @num1, @num2; set @num1 := 12645; set @num2 := 12645; execute com using @num1, @num2; set @num1 := 12649; set @num2 := 12649; execute com using @num1, @num2; set @num1 := 12650; set @num2 := 12650; execute com using @num1, @num2; set @num1 := 12653; set @num2 := 12653; execute com using @num1, @num2; set @num1 := 12656; set @num2 := 12656; execute com using @num1, @num2; set @num1 := 12663; set @num2 := 12663; execute com using @num1, @num2; set @num1 := 12665; set @num2 := 12665; execute com using @num1, @num2; set @num1 := 12667; set @num2 := 12667; execute com using @num1, @num2; set @num1 := 12674; set @num2 := 12674; execute com using @num1, @num2; set @num1 := 12677; set @num2 := 12677; execute com using @num1, @num2; set @num1 := 12681; set @num2 := 12681; execute com using @num1, @num2; set @num1 := 12683; set @num2 := 12683; execute com using @num1, @num2; set @num1 := 12686; set @num2 := 12686; execute com using @num1, @num2; set @num1 := 12688; set @num2 := 12688; execute com using @num1, @num2; set @num1 := 12701; set @num2 := 12701; execute com using @num1, @num2; set @num1 := 12702; set @num2 := 12702; execute com using @num1, @num2; set @num1 := 12707; set @num2 := 12707; execute com using @num1, @num2; set @num1 := 12710; set @num2 := 12710; execute com using @num1, @num2; set @num1 := 12712; set @num2 := 12712; execute com using @num1, @num2; set @num1 := 12713; set @num2 := 12713; execute com using @num1, @num2; set @num1 := 12717; set @num2 := 12717; execute com using @num1, @num2; set @num1 := 12719; set @num2 := 12719; execute com using @num1, @num2; set @num1 := 12720; set @num2 := 12720; execute com using @num1, @num2; set @num1 := 12729; set @num2 := 12729; execute com using @num1, @num2; set @num1 := 12731; set @num2 := 12731; execute com using @num1, @num2; set @num1 := 12733; set @num2 := 12733; execute com using @num1, @num2; set @num1 := 12734; set @num2 := 12734; execute com using @num1, @num2; set @num1 := 12737; set @num2 := 12737; execute com using @num1, @num2; set @num1 := 12741; set @num2 := 12741; execute com using @num1, @num2; set @num1 := 12743; set @num2 := 12743; execute com using @num1, @num2; set @num1 := 12744; set @num2 := 12744; execute com using @num1, @num2; set @num1 := 12747; set @num2 := 12747; execute com using @num1, @num2; set @num1 := 12750; set @num2 := 12750; execute com using @num1, @num2; set @num1 := 12754; set @num2 := 12754; execute com using @num1, @num2; set @num1 := 12772; set @num2 := 12772; execute com using @num1, @num2; set @num1 := 12775; set @num2 := 12775; execute com using @num1, @num2; set @num1 := 12787; set @num2 := 12787; execute com using @num1, @num2; set @num1 := 12792; set @num2 := 12792; execute com using @num1, @num2; set @num1 := 12794; set @num2 := 12794; execute com using @num1, @num2; set @num1 := 12796; set @num2 := 12796; execute com using @num1, @num2; set @num1 := 12797; set @num2 := 12797; execute com using @num1, @num2; set @num1 := 12798; set @num2 := 12798; execute com using @num1, @num2; set @num1 := 12799; set @num2 := 12799; execute com using @num1, @num2; set @num1 := 12800; set @num2 := 12800; execute com using @num1, @num2; set @num1 := 12804; set @num2 := 12804; execute com using @num1, @num2; set @num1 := 12806; set @num2 := 12806; execute com using @num1, @num2; set @num1 := 12807; set @num2 := 12807; execute com using @num1, @num2; set @num1 := 12810; set @num2 := 12810; execute com using @num1, @num2; set @num1 := 12822; set @num2 := 12822; execute com using @num1, @num2; set @num1 := 12831; set @num2 := 12831; execute com using @num1, @num2; set @num1 := 12832; set @num2 := 12832; execute com using @num1, @num2; set @num1 := 12835; set @num2 := 12835; execute com using @num1, @num2; set @num1 := 12837; set @num2 := 12837; execute com using @num1, @num2; set @num1 := 12841; set @num2 := 12841; execute com using @num1, @num2; set @num1 := 12848; set @num2 := 12848; execute com using @num1, @num2; set @num1 := 12855; set @num2 := 12855; execute com using @num1, @num2; set @num1 := 12858; set @num2 := 12858; execute com using @num1, @num2; set @num1 := 12859; set @num2 := 12859; execute com using @num1, @num2; set @num1 := 12866; set @num2 := 12866; execute com using @num1, @num2; set @num1 := 12867; set @num2 := 12867; execute com using @num1, @num2; set @num1 := 12882; set @num2 := 12882; execute com using @num1, @num2; set @num1 := 12883; set @num2 := 12883; execute com using @num1, @num2; set @num1 := 12884; set @num2 := 12884; execute com using @num1, @num2; set @num1 := 12888; set @num2 := 12888; execute com using @num1, @num2; set @num1 := 12890; set @num2 := 12890; execute com using @num1, @num2; set @num1 := 12891; set @num2 := 12891; execute com using @num1, @num2; set @num1 := 12896; set @num2 := 12896; execute com using @num1, @num2; set @num1 := 12898; set @num2 := 12898; execute com using @num1, @num2; set @num1 := 12899; set @num2 := 12899; execute com using @num1, @num2; set @num1 := 12902; set @num2 := 12902; execute com using @num1, @num2; set @num1 := 12904; set @num2 := 12904; execute com using @num1, @num2; set @num1 := 12905; set @num2 := 12905; execute com using @num1, @num2; set @num1 := 12908; set @num2 := 12908; execute com using @num1, @num2; set @num1 := 12914; set @num2 := 12914; execute com using @num1, @num2; set @num1 := 12917; set @num2 := 12917; execute com using @num1, @num2; set @num1 := 12919; set @num2 := 12919; execute com using @num1, @num2; set @num1 := 12922; set @num2 := 12922; execute com using @num1, @num2; set @num1 := 12923; set @num2 := 12923; execute com using @num1, @num2; set @num1 := 12926; set @num2 := 12926; execute com using @num1, @num2; set @num1 := 12929; set @num2 := 12929; execute com using @num1, @num2; set @num1 := 12935; set @num2 := 12935; execute com using @num1, @num2; set @num1 := 12936; set @num2 := 12936; execute com using @num1, @num2; set @num1 := 12937; set @num2 := 12937; execute com using @num1, @num2; set @num1 := 12938; set @num2 := 12938; execute com using @num1, @num2; set @num1 := 12945; set @num2 := 12945; execute com using @num1, @num2; set @num1 := 12947; set @num2 := 12947; execute com using @num1, @num2; set @num1 := 12948; set @num2 := 12948; execute com using @num1, @num2; set @num1 := 12950; set @num2 := 12950; execute com using @num1, @num2; set @num1 := 12955; set @num2 := 12955; execute com using @num1, @num2; set @num1 := 12958; set @num2 := 12958; execute com using @num1, @num2; set @num1 := 12960; set @num2 := 12960; execute com using @num1, @num2; set @num1 := 12962; set @num2 := 12962; execute com using @num1, @num2; set @num1 := 12963; set @num2 := 12963; execute com using @num1, @num2; set @num1 := 12964; set @num2 := 12964; execute com using @num1, @num2; set @num1 := 12967; set @num2 := 12967; execute com using @num1, @num2; set @num1 := 12970; set @num2 := 12970; execute com using @num1, @num2; set @num1 := 12976; set @num2 := 12976; execute com using @num1, @num2; set @num1 := 12980; set @num2 := 12980; execute com using @num1, @num2; set @num1 := 12987; set @num2 := 12987; execute com using @num1, @num2; set @num1 := 12988; set @num2 := 12988; execute com using @num1, @num2; set @num1 := 12991; set @num2 := 12991; execute com using @num1, @num2; set @num1 := 12992; set @num2 := 12992; execute com using @num1, @num2; set @num1 := 12994; set @num2 := 12994; execute com using @num1, @num2; set @num1 := 12995; set @num2 := 12995; execute com using @num1, @num2; set @num1 := 12997; set @num2 := 12997; execute com using @num1, @num2; set @num1 := 12998; set @num2 := 12998; execute com using @num1, @num2; set @num1 := 13007; set @num2 := 13007; execute com using @num1, @num2; set @num1 := 13009; set @num2 := 13009; execute com using @num1, @num2; set @num1 := 13010; set @num2 := 13010; execute com using @num1, @num2; set @num1 := 13011; set @num2 := 13011; execute com using @num1, @num2; set @num1 := 13018; set @num2 := 13018; execute com using @num1, @num2; set @num1 := 13022; set @num2 := 13022; execute com using @num1, @num2; set @num1 := 13024; set @num2 := 13024; execute com using @num1, @num2; set @num1 := 13026; set @num2 := 13026; execute com using @num1, @num2; set @num1 := 13027; set @num2 := 13027; execute com using @num1, @num2; set @num1 := 13029; set @num2 := 13029; execute com using @num1, @num2; set @num1 := 13030; set @num2 := 13030; execute com using @num1, @num2; set @num1 := 13032; set @num2 := 13032; execute com using @num1, @num2; set @num1 := 13034; set @num2 := 13034; execute com using @num1, @num2; set @num1 := 13037; set @num2 := 13037; execute com using @num1, @num2; set @num1 := 13038; set @num2 := 13038; execute com using @num1, @num2; set @num1 := 13039; set @num2 := 13039; execute com using @num1, @num2; set @num1 := 13040; set @num2 := 13040; execute com using @num1, @num2; set @num1 := 13049; set @num2 := 13049; execute com using @num1, @num2; set @num1 := 13057; set @num2 := 13057; execute com using @num1, @num2; set @num1 := 13058; set @num2 := 13058; execute com using @num1, @num2; set @num1 := 13064; set @num2 := 13064; execute com using @num1, @num2; set @num1 := 13066; set @num2 := 13066; execute com using @num1, @num2; set @num1 := 13070; set @num2 := 13070; execute com using @num1, @num2; set @num1 := 13072; set @num2 := 13072; 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...