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 := 4471; set @num2 := 4471; execute com using @num1, @num2; set @num1 := 4472; set @num2 := 4472; execute com using @num1, @num2; set @num1 := 4474; set @num2 := 4474; execute com using @num1, @num2; set @num1 := 4476; set @num2 := 4476; execute com using @num1, @num2; set @num1 := 4477; set @num2 := 4477; execute com using @num1, @num2; set @num1 := 4480; set @num2 := 4480; execute com using @num1, @num2; set @num1 := 4481; set @num2 := 4481; execute com using @num1, @num2; set @num1 := 4482; set @num2 := 4482; execute com using @num1, @num2; set @num1 := 4484; set @num2 := 4484; execute com using @num1, @num2; set @num1 := 4485; set @num2 := 4485; execute com using @num1, @num2; set @num1 := 4487; set @num2 := 4487; execute com using @num1, @num2; set @num1 := 4489; set @num2 := 4489; execute com using @num1, @num2; set @num1 := 4492; set @num2 := 4492; execute com using @num1, @num2; set @num1 := 4495; set @num2 := 4495; execute com using @num1, @num2; set @num1 := 4499; set @num2 := 4499; execute com using @num1, @num2; set @num1 := 4501; set @num2 := 4501; execute com using @num1, @num2; set @num1 := 4502; set @num2 := 4502; execute com using @num1, @num2; set @num1 := 4503; set @num2 := 4503; execute com using @num1, @num2; set @num1 := 4507; set @num2 := 4507; execute com using @num1, @num2; set @num1 := 4512; set @num2 := 4512; execute com using @num1, @num2; set @num1 := 4513; set @num2 := 4513; execute com using @num1, @num2; set @num1 := 4517; set @num2 := 4517; execute com using @num1, @num2; set @num1 := 4518; set @num2 := 4518; execute com using @num1, @num2; set @num1 := 4519; set @num2 := 4519; execute com using @num1, @num2; set @num1 := 4526; set @num2 := 4526; execute com using @num1, @num2; set @num1 := 4527; set @num2 := 4527; execute com using @num1, @num2; set @num1 := 4528; set @num2 := 4528; execute com using @num1, @num2; set @num1 := 4531; set @num2 := 4531; execute com using @num1, @num2; set @num1 := 4536; set @num2 := 4536; execute com using @num1, @num2; set @num1 := 4537; set @num2 := 4537; execute com using @num1, @num2; set @num1 := 4543; set @num2 := 4543; execute com using @num1, @num2; set @num1 := 4544; set @num2 := 4544; execute com using @num1, @num2; set @num1 := 4545; set @num2 := 4545; execute com using @num1, @num2; set @num1 := 4547; set @num2 := 4547; execute com using @num1, @num2; set @num1 := 4548; set @num2 := 4548; execute com using @num1, @num2; set @num1 := 4550; set @num2 := 4550; execute com using @num1, @num2; set @num1 := 4551; set @num2 := 4551; execute com using @num1, @num2; set @num1 := 4552; set @num2 := 4552; execute com using @num1, @num2; set @num1 := 4560; set @num2 := 4560; execute com using @num1, @num2; set @num1 := 4561; set @num2 := 4561; execute com using @num1, @num2; set @num1 := 4563; set @num2 := 4563; execute com using @num1, @num2; set @num1 := 4565; set @num2 := 4565; execute com using @num1, @num2; set @num1 := 4566; set @num2 := 4566; execute com using @num1, @num2; set @num1 := 4569; set @num2 := 4569; execute com using @num1, @num2; set @num1 := 4572; set @num2 := 4572; execute com using @num1, @num2; set @num1 := 4574; set @num2 := 4574; execute com using @num1, @num2; set @num1 := 4579; set @num2 := 4579; execute com using @num1, @num2; set @num1 := 4580; set @num2 := 4580; execute com using @num1, @num2; set @num1 := 4581; set @num2 := 4581; execute com using @num1, @num2; set @num1 := 4582; set @num2 := 4582; execute com using @num1, @num2; set @num1 := 4583; set @num2 := 4583; execute com using @num1, @num2; set @num1 := 4592; set @num2 := 4592; execute com using @num1, @num2; set @num1 := 4607; set @num2 := 4607; execute com using @num1, @num2; set @num1 := 4609; set @num2 := 4609; execute com using @num1, @num2; set @num1 := 4611; set @num2 := 4611; execute com using @num1, @num2; set @num1 := 4614; set @num2 := 4614; execute com using @num1, @num2; set @num1 := 4615; set @num2 := 4615; execute com using @num1, @num2; set @num1 := 4620; set @num2 := 4620; execute com using @num1, @num2; set @num1 := 4621; set @num2 := 4621; execute com using @num1, @num2; set @num1 := 4622; set @num2 := 4622; execute com using @num1, @num2; set @num1 := 4626; set @num2 := 4626; execute com using @num1, @num2; set @num1 := 4633; set @num2 := 4633; execute com using @num1, @num2; set @num1 := 4635; set @num2 := 4635; execute com using @num1, @num2; set @num1 := 4641; set @num2 := 4641; execute com using @num1, @num2; set @num1 := 4642; set @num2 := 4642; execute com using @num1, @num2; set @num1 := 4647; set @num2 := 4647; execute com using @num1, @num2; set @num1 := 4648; set @num2 := 4648; execute com using @num1, @num2; set @num1 := 4649; set @num2 := 4649; execute com using @num1, @num2; set @num1 := 4650; set @num2 := 4650; execute com using @num1, @num2; set @num1 := 4660; set @num2 := 4660; execute com using @num1, @num2; set @num1 := 4662; set @num2 := 4662; execute com using @num1, @num2; set @num1 := 4667; set @num2 := 4667; execute com using @num1, @num2; set @num1 := 4668; set @num2 := 4668; execute com using @num1, @num2; set @num1 := 4670; set @num2 := 4670; execute com using @num1, @num2; set @num1 := 4673; set @num2 := 4673; execute com using @num1, @num2; set @num1 := 4674; set @num2 := 4674; execute com using @num1, @num2; set @num1 := 4675; set @num2 := 4675; execute com using @num1, @num2; set @num1 := 4681; set @num2 := 4681; execute com using @num1, @num2; set @num1 := 4687; set @num2 := 4687; execute com using @num1, @num2; set @num1 := 4688; set @num2 := 4688; execute com using @num1, @num2; set @num1 := 4691; set @num2 := 4691; execute com using @num1, @num2; set @num1 := 4693; set @num2 := 4693; execute com using @num1, @num2; set @num1 := 4695; set @num2 := 4695; execute com using @num1, @num2; set @num1 := 4699; set @num2 := 4699; execute com using @num1, @num2; set @num1 := 4700; set @num2 := 4700; execute com using @num1, @num2; set @num1 := 4702; set @num2 := 4702; execute com using @num1, @num2; set @num1 := 4717; set @num2 := 4717; execute com using @num1, @num2; set @num1 := 4721; set @num2 := 4721; execute com using @num1, @num2; set @num1 := 4726; set @num2 := 4726; execute com using @num1, @num2; set @num1 := 4727; set @num2 := 4727; execute com using @num1, @num2; set @num1 := 4728; set @num2 := 4728; execute com using @num1, @num2; set @num1 := 4729; set @num2 := 4729; execute com using @num1, @num2; set @num1 := 4730; set @num2 := 4730; execute com using @num1, @num2; set @num1 := 4736; set @num2 := 4736; execute com using @num1, @num2; set @num1 := 4737; set @num2 := 4737; execute com using @num1, @num2; set @num1 := 4742; set @num2 := 4742; execute com using @num1, @num2; set @num1 := 4745; set @num2 := 4745; execute com using @num1, @num2; set @num1 := 4746; set @num2 := 4746; execute com using @num1, @num2; set @num1 := 4748; set @num2 := 4748; execute com using @num1, @num2; set @num1 := 4752; set @num2 := 4752; 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...