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 := 11621; set @num2 := 11621; execute com using @num1, @num2; set @num1 := 11625; set @num2 := 11625; execute com using @num1, @num2; set @num1 := 11627; set @num2 := 11627; execute com using @num1, @num2; set @num1 := 11631; set @num2 := 11631; execute com using @num1, @num2; set @num1 := 11632; set @num2 := 11632; execute com using @num1, @num2; set @num1 := 11638; set @num2 := 11638; execute com using @num1, @num2; set @num1 := 11643; set @num2 := 11643; execute com using @num1, @num2; set @num1 := 11646; set @num2 := 11646; execute com using @num1, @num2; set @num1 := 11656; set @num2 := 11656; execute com using @num1, @num2; set @num1 := 11657; set @num2 := 11657; execute com using @num1, @num2; set @num1 := 11660; set @num2 := 11660; execute com using @num1, @num2; set @num1 := 11664; set @num2 := 11664; execute com using @num1, @num2; set @num1 := 11665; set @num2 := 11665; execute com using @num1, @num2; set @num1 := 11668; set @num2 := 11668; execute com using @num1, @num2; set @num1 := 11672; set @num2 := 11672; execute com using @num1, @num2; set @num1 := 11673; set @num2 := 11673; execute com using @num1, @num2; set @num1 := 11675; set @num2 := 11675; execute com using @num1, @num2; set @num1 := 11684; set @num2 := 11684; execute com using @num1, @num2; set @num1 := 11685; set @num2 := 11685; execute com using @num1, @num2; set @num1 := 11698; set @num2 := 11698; execute com using @num1, @num2; set @num1 := 11701; set @num2 := 11701; execute com using @num1, @num2; set @num1 := 11702; set @num2 := 11702; execute com using @num1, @num2; set @num1 := 11705; set @num2 := 11705; execute com using @num1, @num2; set @num1 := 11711; set @num2 := 11711; execute com using @num1, @num2; set @num1 := 11715; set @num2 := 11715; execute com using @num1, @num2; set @num1 := 11720; set @num2 := 11720; execute com using @num1, @num2; set @num1 := 11721; set @num2 := 11721; execute com using @num1, @num2; set @num1 := 11729; set @num2 := 11729; execute com using @num1, @num2; set @num1 := 11734; set @num2 := 11734; execute com using @num1, @num2; set @num1 := 11736; set @num2 := 11736; execute com using @num1, @num2; set @num1 := 11740; set @num2 := 11740; execute com using @num1, @num2; set @num1 := 11749; set @num2 := 11749; execute com using @num1, @num2; set @num1 := 11751; set @num2 := 11751; execute com using @num1, @num2; set @num1 := 11755; set @num2 := 11755; execute com using @num1, @num2; set @num1 := 11759; set @num2 := 11759; execute com using @num1, @num2; set @num1 := 11762; set @num2 := 11762; execute com using @num1, @num2; set @num1 := 11763; set @num2 := 11763; execute com using @num1, @num2; set @num1 := 11772; set @num2 := 11772; execute com using @num1, @num2; set @num1 := 11773; set @num2 := 11773; execute com using @num1, @num2; set @num1 := 11776; set @num2 := 11776; execute com using @num1, @num2; set @num1 := 11786; set @num2 := 11786; execute com using @num1, @num2; set @num1 := 11787; set @num2 := 11787; execute com using @num1, @num2; set @num1 := 11790; set @num2 := 11790; execute com using @num1, @num2; set @num1 := 11795; set @num2 := 11795; execute com using @num1, @num2; set @num1 := 11801; set @num2 := 11801; execute com using @num1, @num2; set @num1 := 11807; set @num2 := 11807; execute com using @num1, @num2; set @num1 := 11809; set @num2 := 11809; execute com using @num1, @num2; set @num1 := 11812; set @num2 := 11812; execute com using @num1, @num2; set @num1 := 11815; set @num2 := 11815; execute com using @num1, @num2; set @num1 := 11820; set @num2 := 11820; execute com using @num1, @num2; set @num1 := 11826; set @num2 := 11826; execute com using @num1, @num2; set @num1 := 11830; set @num2 := 11830; execute com using @num1, @num2; set @num1 := 11835; set @num2 := 11835; execute com using @num1, @num2; set @num1 := 11846; set @num2 := 11846; execute com using @num1, @num2; set @num1 := 11857; set @num2 := 11857; execute com using @num1, @num2; set @num1 := 11861; set @num2 := 11861; execute com using @num1, @num2; set @num1 := 11866; set @num2 := 11866; execute com using @num1, @num2; set @num1 := 11867; set @num2 := 11867; execute com using @num1, @num2; set @num1 := 11875; set @num2 := 11875; execute com using @num1, @num2; set @num1 := 11882; set @num2 := 11882; execute com using @num1, @num2; set @num1 := 11883; set @num2 := 11883; execute com using @num1, @num2; set @num1 := 11884; set @num2 := 11884; execute com using @num1, @num2; set @num1 := 11887; set @num2 := 11887; execute com using @num1, @num2; set @num1 := 11888; set @num2 := 11888; execute com using @num1, @num2; set @num1 := 11891; set @num2 := 11891; execute com using @num1, @num2; set @num1 := 11921; set @num2 := 11921; execute com using @num1, @num2; set @num1 := 11924; set @num2 := 11924; execute com using @num1, @num2; set @num1 := 11929; set @num2 := 11929; execute com using @num1, @num2; set @num1 := 11930; set @num2 := 11930; execute com using @num1, @num2; set @num1 := 11935; set @num2 := 11935; execute com using @num1, @num2; set @num1 := 11955; set @num2 := 11955; execute com using @num1, @num2; set @num1 := 11958; set @num2 := 11958; execute com using @num1, @num2; set @num1 := 11959; set @num2 := 11959; execute com using @num1, @num2; set @num1 := 11966; set @num2 := 11966; execute com using @num1, @num2; set @num1 := 11968; set @num2 := 11968; execute com using @num1, @num2; set @num1 := 11973; set @num2 := 11973; execute com using @num1, @num2; set @num1 := 11974; set @num2 := 11974; execute com using @num1, @num2; set @num1 := 11982; set @num2 := 11982; execute com using @num1, @num2; set @num1 := 11984; set @num2 := 11984; execute com using @num1, @num2; set @num1 := 11985; set @num2 := 11985; execute com using @num1, @num2; set @num1 := 11986; set @num2 := 11986; execute com using @num1, @num2; set @num1 := 11988; set @num2 := 11988; execute com using @num1, @num2; set @num1 := 11992; set @num2 := 11992; execute com using @num1, @num2; set @num1 := 11993; set @num2 := 11993; execute com using @num1, @num2; set @num1 := 11994; set @num2 := 11994; execute com using @num1, @num2; set @num1 := 11998; set @num2 := 11998; execute com using @num1, @num2; set @num1 := 12000; set @num2 := 12000; execute com using @num1, @num2; set @num1 := 12001; set @num2 := 12001; execute com using @num1, @num2; set @num1 := 12003; set @num2 := 12003; execute com using @num1, @num2; set @num1 := 12004; set @num2 := 12004; execute com using @num1, @num2; set @num1 := 12005; set @num2 := 12005; execute com using @num1, @num2; set @num1 := 12007; set @num2 := 12007; execute com using @num1, @num2; set @num1 := 12010; set @num2 := 12010; execute com using @num1, @num2; set @num1 := 12012; set @num2 := 12012; execute com using @num1, @num2; set @num1 := 12021; set @num2 := 12021; execute com using @num1, @num2; set @num1 := 12024; set @num2 := 12024; execute com using @num1, @num2; set @num1 := 12025; set @num2 := 12025; execute com using @num1, @num2; set @num1 := 12027; set @num2 := 12027; execute com using @num1, @num2; set @num1 := 12031; set @num2 := 12031; execute com using @num1, @num2; set @num1 := 12035; set @num2 := 12035; execute com using @num1, @num2; set @num1 := 12047; set @num2 := 12047; execute com using @num1, @num2; set @num1 := 12061; set @num2 := 12061; execute com using @num1, @num2; set @num1 := 12065; set @num2 := 12065; execute com using @num1, @num2; set @num1 := 12067; set @num2 := 12067; execute com using @num1, @num2; set @num1 := 12072; set @num2 := 12072; execute com using @num1, @num2; set @num1 := 12075; set @num2 := 12075; execute com using @num1, @num2; set @num1 := 12078; set @num2 := 12078; execute com using @num1, @num2; set @num1 := 12099; set @num2 := 12099; execute com using @num1, @num2; set @num1 := 12102; set @num2 := 12102; execute com using @num1, @num2; set @num1 := 12103; set @num2 := 12103; execute com using @num1, @num2; set @num1 := 12104; set @num2 := 12104; execute com using @num1, @num2; set @num1 := 12108; set @num2 := 12108; execute com using @num1, @num2; set @num1 := 12113; set @num2 := 12113; execute com using @num1, @num2; set @num1 := 12118; set @num2 := 12118; execute com using @num1, @num2; set @num1 := 12120; set @num2 := 12120; execute com using @num1, @num2; set @num1 := 12123; set @num2 := 12123; execute com using @num1, @num2; set @num1 := 12157; set @num2 := 12157; execute com using @num1, @num2; set @num1 := 12163; set @num2 := 12163; execute com using @num1, @num2; set @num1 := 12166; set @num2 := 12166; execute com using @num1, @num2; set @num1 := 12176; set @num2 := 12176; execute com using @num1, @num2; set @num1 := 12184; set @num2 := 12184; execute com using @num1, @num2; set @num1 := 12186; set @num2 := 12186; execute com using @num1, @num2; set @num1 := 12190; set @num2 := 12190; execute com using @num1, @num2; set @num1 := 12194; set @num2 := 12194; execute com using @num1, @num2; set @num1 := 12207; set @num2 := 12207; execute com using @num1, @num2; set @num1 := 12209; set @num2 := 12209; execute com using @num1, @num2; set @num1 := 12212; set @num2 := 12212; execute com using @num1, @num2; set @num1 := 12213; set @num2 := 12213; execute com using @num1, @num2; set @num1 := 12216; set @num2 := 12216; execute com using @num1, @num2; set @num1 := 12221; set @num2 := 12221; execute com using @num1, @num2; set @num1 := 12223; set @num2 := 12223; execute com using @num1, @num2; set @num1 := 12224; set @num2 := 12224; execute com using @num1, @num2; set @num1 := 12228; set @num2 := 12228; execute com using @num1, @num2; set @num1 := 12229; set @num2 := 12229; execute com using @num1, @num2; set @num1 := 12230; set @num2 := 12230; execute com using @num1, @num2; set @num1 := 12231; set @num2 := 12231; execute com using @num1, @num2; set @num1 := 12233; set @num2 := 12233; execute com using @num1, @num2; set @num1 := 12235; set @num2 := 12235; execute com using @num1, @num2; set @num1 := 12239; set @num2 := 12239; execute com using @num1, @num2; set @num1 := 12240; set @num2 := 12240; execute com using @num1, @num2; set @num1 := 12241; set @num2 := 12241; execute com using @num1, @num2; set @num1 := 12242; set @num2 := 12242; execute com using @num1, @num2; set @num1 := 12243; set @num2 := 12243; execute com using @num1, @num2; set @num1 := 12246; set @num2 := 12246; execute com using @num1, @num2; set @num1 := 12248; set @num2 := 12248; execute com using @num1, @num2; set @num1 := 12255; set @num2 := 12255; execute com using @num1, @num2; set @num1 := 12257; set @num2 := 12257; execute com using @num1, @num2; set @num1 := 12265; set @num2 := 12265; execute com using @num1, @num2; set @num1 := 12266; set @num2 := 12266; execute com using @num1, @num2; set @num1 := 12276; set @num2 := 12276; execute com using @num1, @num2; set @num1 := 12277; set @num2 := 12277; execute com using @num1, @num2; set @num1 := 12278; set @num2 := 12278; execute com using @num1, @num2; set @num1 := 12281; set @num2 := 12281; execute com using @num1, @num2; set @num1 := 12284; set @num2 := 12284; execute com using @num1, @num2; set @num1 := 12286; set @num2 := 12286; execute com using @num1, @num2; set @num1 := 12293; set @num2 := 12293; execute com using @num1, @num2; set @num1 := 12300; set @num2 := 12300; execute com using @num1, @num2; set @num1 := 12301; set @num2 := 12301; execute com using @num1, @num2; set @num1 := 12302; set @num2 := 12302; execute com using @num1, @num2; set @num1 := 12304; set @num2 := 12304; execute com using @num1, @num2; set @num1 := 12305; set @num2 := 12305; execute com using @num1, @num2; set @num1 := 12306; set @num2 := 12306; execute com using @num1, @num2; set @num1 := 12307; set @num2 := 12307; execute com using @num1, @num2; set @num1 := 12309; set @num2 := 12309; execute com using @num1, @num2; set @num1 := 12317; set @num2 := 12317; execute com using @num1, @num2; set @num1 := 12318; set @num2 := 12318; execute com using @num1, @num2; set @num1 := 12323; set @num2 := 12323; execute com using @num1, @num2; set @num1 := 12326; set @num2 := 12326; execute com using @num1, @num2; set @num1 := 12327; set @num2 := 12327; execute com using @num1, @num2; set @num1 := 12333; set @num2 := 12333; execute com using @num1, @num2; set @num1 := 12334; set @num2 := 12334; execute com using @num1, @num2; set @num1 := 12336; set @num2 := 12336; execute com using @num1, @num2; set @num1 := 12339; set @num2 := 12339; execute com using @num1, @num2; set @num1 := 12341; set @num2 := 12341; execute com using @num1, @num2; set @num1 := 12343; set @num2 := 12343; execute com using @num1, @num2; set @num1 := 12353; set @num2 := 12353; execute com using @num1, @num2; set @num1 := 12359; set @num2 := 12359; execute com using @num1, @num2; set @num1 := 12361; set @num2 := 12361; execute com using @num1, @num2; set @num1 := 12365; set @num2 := 12365; execute com using @num1, @num2; set @num1 := 12366; set @num2 := 12366; execute com using @num1, @num2; set @num1 := 12367; set @num2 := 12367; execute com using @num1, @num2; set @num1 := 12372; set @num2 := 12372; execute com using @num1, @num2; set @num1 := 12383; set @num2 := 12383; execute com using @num1, @num2; set @num1 := 12384; set @num2 := 12384; execute com using @num1, @num2; set @num1 := 12385; set @num2 := 12385; execute com using @num1, @num2; set @num1 := 12386; set @num2 := 12386; execute com using @num1, @num2; set @num1 := 12388; set @num2 := 12388; execute com using @num1, @num2; set @num1 := 12395; set @num2 := 12395; execute com using @num1, @num2; set @num1 := 12398; set @num2 := 12398; execute com using @num1, @num2; set @num1 := 12401; set @num2 := 12401; execute com using @num1, @num2; set @num1 := 12405; set @num2 := 12405; execute com using @num1, @num2; set @num1 := 12406; set @num2 := 12406; execute com using @num1, @num2; set @num1 := 12408; set @num2 := 12408; execute com using @num1, @num2; set @num1 := 12420; set @num2 := 12420; execute com using @num1, @num2; set @num1 := 12422; set @num2 := 12422; execute com using @num1, @num2; set @num1 := 12424; set @num2 := 12424; execute com using @num1, @num2; set @num1 := 12425; set @num2 := 12425; execute com using @num1, @num2; set @num1 := 12426; set @num2 := 12426; execute com using @num1, @num2; set @num1 := 12430; set @num2 := 12430; execute com using @num1, @num2; set @num1 := 12431; set @num2 := 12431; 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...