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 := 6516; set @num2 := 6516; execute com using @num1, @num2; set @num1 := 6520; set @num2 := 6520; execute com using @num1, @num2; set @num1 := 6526; set @num2 := 6526; execute com using @num1, @num2; set @num1 := 6532; set @num2 := 6532; execute com using @num1, @num2; set @num1 := 6533; set @num2 := 6533; execute com using @num1, @num2; set @num1 := 6535; set @num2 := 6535; execute com using @num1, @num2; set @num1 := 6542; set @num2 := 6542; execute com using @num1, @num2; set @num1 := 6543; set @num2 := 6543; execute com using @num1, @num2; set @num1 := 6546; set @num2 := 6546; execute com using @num1, @num2; set @num1 := 6547; set @num2 := 6547; execute com using @num1, @num2; set @num1 := 6548; set @num2 := 6548; execute com using @num1, @num2; set @num1 := 6555; set @num2 := 6555; execute com using @num1, @num2; set @num1 := 6558; set @num2 := 6558; execute com using @num1, @num2; set @num1 := 6561; set @num2 := 6561; execute com using @num1, @num2; set @num1 := 6569; set @num2 := 6569; execute com using @num1, @num2; set @num1 := 6576; set @num2 := 6576; execute com using @num1, @num2; set @num1 := 6583; set @num2 := 6583; execute com using @num1, @num2; set @num1 := 6585; set @num2 := 6585; execute com using @num1, @num2; set @num1 := 6586; set @num2 := 6586; execute com using @num1, @num2; set @num1 := 6587; set @num2 := 6587; execute com using @num1, @num2; set @num1 := 6589; set @num2 := 6589; execute com using @num1, @num2; set @num1 := 6590; set @num2 := 6590; execute com using @num1, @num2; set @num1 := 6591; set @num2 := 6591; execute com using @num1, @num2; set @num1 := 6592; set @num2 := 6592; execute com using @num1, @num2; set @num1 := 6596; set @num2 := 6596; execute com using @num1, @num2; set @num1 := 6597; set @num2 := 6597; execute com using @num1, @num2; set @num1 := 6598; set @num2 := 6598; execute com using @num1, @num2; set @num1 := 6599; set @num2 := 6599; execute com using @num1, @num2; set @num1 := 6600; set @num2 := 6600; execute com using @num1, @num2; set @num1 := 6601; set @num2 := 6601; execute com using @num1, @num2; set @num1 := 6603; set @num2 := 6603; execute com using @num1, @num2; set @num1 := 6604; set @num2 := 6604; execute com using @num1, @num2; set @num1 := 6610; set @num2 := 6610; execute com using @num1, @num2; set @num1 := 6611; set @num2 := 6611; execute com using @num1, @num2; set @num1 := 6612; set @num2 := 6612; execute com using @num1, @num2; set @num1 := 6614; set @num2 := 6614; execute com using @num1, @num2; set @num1 := 6621; set @num2 := 6621; execute com using @num1, @num2; set @num1 := 6623; set @num2 := 6623; execute com using @num1, @num2; set @num1 := 6626; set @num2 := 6626; execute com using @num1, @num2; set @num1 := 6627; set @num2 := 6627; execute com using @num1, @num2; set @num1 := 6628; set @num2 := 6628; execute com using @num1, @num2; set @num1 := 6629; set @num2 := 6629; execute com using @num1, @num2; set @num1 := 6630; set @num2 := 6630; execute com using @num1, @num2; set @num1 := 6634; set @num2 := 6634; execute com using @num1, @num2; set @num1 := 6639; set @num2 := 6639; execute com using @num1, @num2; set @num1 := 6641; set @num2 := 6641; execute com using @num1, @num2; set @num1 := 6643; set @num2 := 6643; execute com using @num1, @num2; set @num1 := 6644; set @num2 := 6644; execute com using @num1, @num2; set @num1 := 6645; set @num2 := 6645; execute com using @num1, @num2; set @num1 := 6649; set @num2 := 6649; execute com using @num1, @num2; set @num1 := 6651; set @num2 := 6651; execute com using @num1, @num2; set @num1 := 6652; set @num2 := 6652; execute com using @num1, @num2; set @num1 := 6653; set @num2 := 6653; execute com using @num1, @num2; set @num1 := 6654; set @num2 := 6654; execute com using @num1, @num2; set @num1 := 6660; set @num2 := 6660; execute com using @num1, @num2; set @num1 := 6663; set @num2 := 6663; execute com using @num1, @num2; set @num1 := 6667; set @num2 := 6667; execute com using @num1, @num2; set @num1 := 6669; set @num2 := 6669; execute com using @num1, @num2; set @num1 := 6670; set @num2 := 6670; execute com using @num1, @num2; set @num1 := 6671; set @num2 := 6671; execute com using @num1, @num2; set @num1 := 6673; set @num2 := 6673; execute com using @num1, @num2; set @num1 := 6675; set @num2 := 6675; execute com using @num1, @num2; set @num1 := 6677; set @num2 := 6677; execute com using @num1, @num2; set @num1 := 6678; set @num2 := 6678; execute com using @num1, @num2; set @num1 := 6681; set @num2 := 6681; execute com using @num1, @num2; set @num1 := 6682; set @num2 := 6682; execute com using @num1, @num2; set @num1 := 6690; set @num2 := 6690; execute com using @num1, @num2; set @num1 := 6695; set @num2 := 6695; execute com using @num1, @num2; set @num1 := 6696; set @num2 := 6696; execute com using @num1, @num2; set @num1 := 6697; set @num2 := 6697; execute com using @num1, @num2; set @num1 := 6698; set @num2 := 6698; execute com using @num1, @num2; set @num1 := 6700; set @num2 := 6700; execute com using @num1, @num2; set @num1 := 6704; set @num2 := 6704; execute com using @num1, @num2; set @num1 := 6710; set @num2 := 6710; execute com using @num1, @num2; set @num1 := 6713; set @num2 := 6713; execute com using @num1, @num2; set @num1 := 6716; set @num2 := 6716; execute com using @num1, @num2; set @num1 := 6719; set @num2 := 6719; execute com using @num1, @num2; set @num1 := 6720; set @num2 := 6720; execute com using @num1, @num2; set @num1 := 6724; set @num2 := 6724; execute com using @num1, @num2; set @num1 := 6725; set @num2 := 6725; execute com using @num1, @num2; set @num1 := 6728; set @num2 := 6728; execute com using @num1, @num2; set @num1 := 6731; set @num2 := 6731; execute com using @num1, @num2; set @num1 := 6736; set @num2 := 6736; execute com using @num1, @num2; set @num1 := 6739; set @num2 := 6739; execute com using @num1, @num2; set @num1 := 6742; set @num2 := 6742; execute com using @num1, @num2; set @num1 := 6744; set @num2 := 6744; execute com using @num1, @num2; set @num1 := 6745; set @num2 := 6745; execute com using @num1, @num2; set @num1 := 6746; set @num2 := 6746; execute com using @num1, @num2; set @num1 := 6747; set @num2 := 6747; execute com using @num1, @num2; set @num1 := 6749; set @num2 := 6749; execute com using @num1, @num2; set @num1 := 6751; set @num2 := 6751; execute com using @num1, @num2; set @num1 := 6752; set @num2 := 6752; execute com using @num1, @num2; set @num1 := 6753; set @num2 := 6753; execute com using @num1, @num2; set @num1 := 6760; set @num2 := 6760; execute com using @num1, @num2; set @num1 := 6771; set @num2 := 6771; execute com using @num1, @num2; set @num1 := 6773; set @num2 := 6773; execute com using @num1, @num2; set @num1 := 6776; set @num2 := 6776; execute com using @num1, @num2; set @num1 := 6777; set @num2 := 6777; execute com using @num1, @num2; set @num1 := 6780; set @num2 := 6780; execute com using @num1, @num2; set @num1 := 6784; set @num2 := 6784; 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...