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 := 4185; set @num2 := 4185; execute com using @num1, @num2; set @num1 := 4193; set @num2 := 4193; execute com using @num1, @num2; set @num1 := 4195; set @num2 := 4195; execute com using @num1, @num2; set @num1 := 4196; set @num2 := 4196; execute com using @num1, @num2; set @num1 := 4200; set @num2 := 4200; execute com using @num1, @num2; set @num1 := 4207; set @num2 := 4207; execute com using @num1, @num2; set @num1 := 4210; set @num2 := 4210; execute com using @num1, @num2; set @num1 := 4213; set @num2 := 4213; execute com using @num1, @num2; set @num1 := 4214; set @num2 := 4214; execute com using @num1, @num2; set @num1 := 4216; set @num2 := 4216; execute com using @num1, @num2; set @num1 := 4218; set @num2 := 4218; execute com using @num1, @num2; set @num1 := 4224; set @num2 := 4224; execute com using @num1, @num2; set @num1 := 4227; set @num2 := 4227; execute com using @num1, @num2; set @num1 := 4230; set @num2 := 4230; execute com using @num1, @num2; set @num1 := 4232; set @num2 := 4232; execute com using @num1, @num2; set @num1 := 4233; set @num2 := 4233; execute com using @num1, @num2; set @num1 := 4237; set @num2 := 4237; execute com using @num1, @num2; set @num1 := 4241; set @num2 := 4241; execute com using @num1, @num2; set @num1 := 4242; set @num2 := 4242; execute com using @num1, @num2; set @num1 := 4243; set @num2 := 4243; execute com using @num1, @num2; set @num1 := 4246; set @num2 := 4246; execute com using @num1, @num2; set @num1 := 4251; set @num2 := 4251; execute com using @num1, @num2; set @num1 := 4260; set @num2 := 4260; execute com using @num1, @num2; set @num1 := 4261; set @num2 := 4261; execute com using @num1, @num2; set @num1 := 4267; set @num2 := 4267; execute com using @num1, @num2; set @num1 := 4283; set @num2 := 4283; execute com using @num1, @num2; set @num1 := 4284; set @num2 := 4284; execute com using @num1, @num2; set @num1 := 4285; set @num2 := 4285; execute com using @num1, @num2; set @num1 := 4293; set @num2 := 4293; execute com using @num1, @num2; set @num1 := 4294; set @num2 := 4294; execute com using @num1, @num2; set @num1 := 4298; set @num2 := 4298; execute com using @num1, @num2; set @num1 := 4306; set @num2 := 4306; execute com using @num1, @num2; set @num1 := 4312; set @num2 := 4312; execute com using @num1, @num2; set @num1 := 4313; set @num2 := 4313; execute com using @num1, @num2; set @num1 := 4314; set @num2 := 4314; execute com using @num1, @num2; set @num1 := 4315; set @num2 := 4315; execute com using @num1, @num2; set @num1 := 4319; set @num2 := 4319; execute com using @num1, @num2; set @num1 := 4320; set @num2 := 4320; execute com using @num1, @num2; set @num1 := 4321; set @num2 := 4321; execute com using @num1, @num2; set @num1 := 4326; set @num2 := 4326; execute com using @num1, @num2; set @num1 := 4327; set @num2 := 4327; execute com using @num1, @num2; set @num1 := 4329; set @num2 := 4329; execute com using @num1, @num2; set @num1 := 4331; set @num2 := 4331; execute com using @num1, @num2; set @num1 := 4332; set @num2 := 4332; execute com using @num1, @num2; set @num1 := 4333; set @num2 := 4333; execute com using @num1, @num2; set @num1 := 4335; set @num2 := 4335; execute com using @num1, @num2; set @num1 := 4339; set @num2 := 4339; execute com using @num1, @num2; set @num1 := 4340; set @num2 := 4340; execute com using @num1, @num2; set @num1 := 4348; set @num2 := 4348; execute com using @num1, @num2; set @num1 := 4356; set @num2 := 4356; execute com using @num1, @num2; set @num1 := 4359; set @num2 := 4359; execute com using @num1, @num2; set @num1 := 4360; set @num2 := 4360; execute com using @num1, @num2; set @num1 := 4362; set @num2 := 4362; execute com using @num1, @num2; set @num1 := 4363; set @num2 := 4363; execute com using @num1, @num2; set @num1 := 4364; set @num2 := 4364; execute com using @num1, @num2; set @num1 := 4366; set @num2 := 4366; execute com using @num1, @num2; set @num1 := 4367; set @num2 := 4367; execute com using @num1, @num2; set @num1 := 4368; set @num2 := 4368; execute com using @num1, @num2; set @num1 := 4374; set @num2 := 4374; execute com using @num1, @num2; set @num1 := 4375; set @num2 := 4375; execute com using @num1, @num2; set @num1 := 4376; set @num2 := 4376; execute com using @num1, @num2; set @num1 := 4377; set @num2 := 4377; execute com using @num1, @num2; set @num1 := 4378; set @num2 := 4378; execute com using @num1, @num2; set @num1 := 4379; set @num2 := 4379; execute com using @num1, @num2; set @num1 := 4380; set @num2 := 4380; execute com using @num1, @num2; set @num1 := 4381; set @num2 := 4381; execute com using @num1, @num2; set @num1 := 4382; set @num2 := 4382; execute com using @num1, @num2; set @num1 := 4384; set @num2 := 4384; execute com using @num1, @num2; set @num1 := 4386; set @num2 := 4386; execute com using @num1, @num2; set @num1 := 4388; set @num2 := 4388; execute com using @num1, @num2; set @num1 := 4389; set @num2 := 4389; execute com using @num1, @num2; set @num1 := 4390; set @num2 := 4390; execute com using @num1, @num2; set @num1 := 4391; set @num2 := 4391; execute com using @num1, @num2; set @num1 := 4392; set @num2 := 4392; execute com using @num1, @num2; set @num1 := 4393; set @num2 := 4393; execute com using @num1, @num2; set @num1 := 4394; set @num2 := 4394; execute com using @num1, @num2; set @num1 := 4396; set @num2 := 4396; execute com using @num1, @num2; set @num1 := 4399; set @num2 := 4399; execute com using @num1, @num2; set @num1 := 4400; set @num2 := 4400; execute com using @num1, @num2; set @num1 := 4401; set @num2 := 4401; execute com using @num1, @num2; set @num1 := 4402; set @num2 := 4402; execute com using @num1, @num2; set @num1 := 4408; set @num2 := 4408; execute com using @num1, @num2; set @num1 := 4410; set @num2 := 4410; execute com using @num1, @num2; set @num1 := 4417; set @num2 := 4417; execute com using @num1, @num2; set @num1 := 4419; set @num2 := 4419; execute com using @num1, @num2; set @num1 := 4427; set @num2 := 4427; execute com using @num1, @num2; set @num1 := 4431; set @num2 := 4431; execute com using @num1, @num2; set @num1 := 4436; set @num2 := 4436; execute com using @num1, @num2; set @num1 := 4443; set @num2 := 4443; execute com using @num1, @num2; set @num1 := 4446; set @num2 := 4446; execute com using @num1, @num2; set @num1 := 4447; set @num2 := 4447; execute com using @num1, @num2; set @num1 := 4449; set @num2 := 4449; execute com using @num1, @num2; set @num1 := 4450; set @num2 := 4450; execute com using @num1, @num2; set @num1 := 4451; set @num2 := 4451; execute com using @num1, @num2; set @num1 := 4452; set @num2 := 4452; execute com using @num1, @num2; set @num1 := 4454; set @num2 := 4454; execute com using @num1, @num2; set @num1 := 4455; set @num2 := 4455; execute com using @num1, @num2; set @num1 := 4456; set @num2 := 4456; execute com using @num1, @num2; set @num1 := 4458; set @num2 := 4458; execute com using @num1, @num2; set @num1 := 4463; set @num2 := 4463; 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...