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 := 4760; set @num2 := 4760; execute com using @num1, @num2; set @num1 := 4768; set @num2 := 4768; execute com using @num1, @num2; set @num1 := 4770; set @num2 := 4770; execute com using @num1, @num2; set @num1 := 4772; set @num2 := 4772; execute com using @num1, @num2; set @num1 := 4776; set @num2 := 4776; execute com using @num1, @num2; set @num1 := 4778; set @num2 := 4778; execute com using @num1, @num2; set @num1 := 4781; set @num2 := 4781; execute com using @num1, @num2; set @num1 := 4788; set @num2 := 4788; execute com using @num1, @num2; set @num1 := 4789; set @num2 := 4789; execute com using @num1, @num2; set @num1 := 4792; set @num2 := 4792; execute com using @num1, @num2; set @num1 := 4796; set @num2 := 4796; execute com using @num1, @num2; set @num1 := 4800; set @num2 := 4800; execute com using @num1, @num2; set @num1 := 4802; set @num2 := 4802; execute com using @num1, @num2; set @num1 := 4805; set @num2 := 4805; execute com using @num1, @num2; set @num1 := 4806; set @num2 := 4806; execute com using @num1, @num2; set @num1 := 4810; set @num2 := 4810; execute com using @num1, @num2; set @num1 := 4816; set @num2 := 4816; execute com using @num1, @num2; set @num1 := 4820; set @num2 := 4820; execute com using @num1, @num2; set @num1 := 4821; set @num2 := 4821; execute com using @num1, @num2; set @num1 := 4822; set @num2 := 4822; execute com using @num1, @num2; set @num1 := 4823; set @num2 := 4823; execute com using @num1, @num2; set @num1 := 4824; set @num2 := 4824; execute com using @num1, @num2; set @num1 := 4827; set @num2 := 4827; execute com using @num1, @num2; set @num1 := 4829; set @num2 := 4829; execute com using @num1, @num2; set @num1 := 4831; set @num2 := 4831; execute com using @num1, @num2; set @num1 := 4833; set @num2 := 4833; execute com using @num1, @num2; set @num1 := 4836; set @num2 := 4836; execute com using @num1, @num2; set @num1 := 4840; set @num2 := 4840; execute com using @num1, @num2; set @num1 := 4845; set @num2 := 4845; execute com using @num1, @num2; set @num1 := 4848; set @num2 := 4848; execute com using @num1, @num2; set @num1 := 4851; set @num2 := 4851; execute com using @num1, @num2; set @num1 := 4854; set @num2 := 4854; execute com using @num1, @num2; set @num1 := 4856; set @num2 := 4856; execute com using @num1, @num2; set @num1 := 4860; set @num2 := 4860; execute com using @num1, @num2; set @num1 := 4862; set @num2 := 4862; execute com using @num1, @num2; set @num1 := 4866; set @num2 := 4866; execute com using @num1, @num2; set @num1 := 4868; set @num2 := 4868; execute com using @num1, @num2; set @num1 := 4869; set @num2 := 4869; execute com using @num1, @num2; set @num1 := 4870; set @num2 := 4870; execute com using @num1, @num2; set @num1 := 4871; set @num2 := 4871; execute com using @num1, @num2; set @num1 := 4874; set @num2 := 4874; execute com using @num1, @num2; set @num1 := 4875; set @num2 := 4875; execute com using @num1, @num2; set @num1 := 4876; set @num2 := 4876; execute com using @num1, @num2; set @num1 := 4878; set @num2 := 4878; execute com using @num1, @num2; set @num1 := 4880; set @num2 := 4880; execute com using @num1, @num2; set @num1 := 4882; set @num2 := 4882; execute com using @num1, @num2; set @num1 := 4884; set @num2 := 4884; execute com using @num1, @num2; set @num1 := 4886; set @num2 := 4886; execute com using @num1, @num2; set @num1 := 4887; set @num2 := 4887; execute com using @num1, @num2; set @num1 := 4888; set @num2 := 4888; execute com using @num1, @num2; set @num1 := 4892; set @num2 := 4892; execute com using @num1, @num2; set @num1 := 4893; set @num2 := 4893; execute com using @num1, @num2; set @num1 := 4900; set @num2 := 4900; execute com using @num1, @num2; set @num1 := 4904; set @num2 := 4904; execute com using @num1, @num2; set @num1 := 4905; set @num2 := 4905; execute com using @num1, @num2; set @num1 := 4906; set @num2 := 4906; execute com using @num1, @num2; set @num1 := 4910; set @num2 := 4910; execute com using @num1, @num2; set @num1 := 4911; set @num2 := 4911; execute com using @num1, @num2; set @num1 := 4916; set @num2 := 4916; execute com using @num1, @num2; set @num1 := 4917; set @num2 := 4917; execute com using @num1, @num2; set @num1 := 4921; set @num2 := 4921; execute com using @num1, @num2; set @num1 := 4922; set @num2 := 4922; execute com using @num1, @num2; set @num1 := 4925; set @num2 := 4925; execute com using @num1, @num2; set @num1 := 4927; set @num2 := 4927; execute com using @num1, @num2; set @num1 := 4930; set @num2 := 4930; execute com using @num1, @num2; set @num1 := 4941; set @num2 := 4941; execute com using @num1, @num2; set @num1 := 4942; set @num2 := 4942; execute com using @num1, @num2; set @num1 := 4946; set @num2 := 4946; execute com using @num1, @num2; set @num1 := 4948; set @num2 := 4948; execute com using @num1, @num2; set @num1 := 4949; set @num2 := 4949; execute com using @num1, @num2; set @num1 := 4950; set @num2 := 4950; execute com using @num1, @num2; set @num1 := 4952; set @num2 := 4952; execute com using @num1, @num2; set @num1 := 4953; set @num2 := 4953; execute com using @num1, @num2; set @num1 := 4964; set @num2 := 4964; execute com using @num1, @num2; set @num1 := 4965; set @num2 := 4965; execute com using @num1, @num2; set @num1 := 4969; set @num2 := 4969; execute com using @num1, @num2; set @num1 := 4971; set @num2 := 4971; execute com using @num1, @num2; set @num1 := 4973; set @num2 := 4973; execute com using @num1, @num2; set @num1 := 4980; set @num2 := 4980; execute com using @num1, @num2; set @num1 := 4986; set @num2 := 4986; execute com using @num1, @num2; set @num1 := 4988; set @num2 := 4988; execute com using @num1, @num2; set @num1 := 4997; set @num2 := 4997; execute com using @num1, @num2; set @num1 := 5003; set @num2 := 5003; execute com using @num1, @num2; set @num1 := 5008; set @num2 := 5008; execute com using @num1, @num2; set @num1 := 5011; set @num2 := 5011; execute com using @num1, @num2; set @num1 := 5015; set @num2 := 5015; execute com using @num1, @num2; set @num1 := 5020; set @num2 := 5020; execute com using @num1, @num2; set @num1 := 5026; set @num2 := 5026; execute com using @num1, @num2; set @num1 := 5030; set @num2 := 5030; execute com using @num1, @num2; set @num1 := 5033; set @num2 := 5033; execute com using @num1, @num2; set @num1 := 5034; set @num2 := 5034; execute com using @num1, @num2; set @num1 := 5035; set @num2 := 5035; execute com using @num1, @num2; set @num1 := 5038; set @num2 := 5038; execute com using @num1, @num2; set @num1 := 5040; set @num2 := 5040; execute com using @num1, @num2; set @num1 := 5046; set @num2 := 5046; execute com using @num1, @num2; set @num1 := 5047; set @num2 := 5047; execute com using @num1, @num2; set @num1 := 5048; set @num2 := 5048; execute com using @num1, @num2; set @num1 := 5050; set @num2 := 5050; execute com using @num1, @num2; set @num1 := 5051; set @num2 := 5051; execute com using @num1, @num2; set @num1 := 5132; set @num2 := 5132; 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...