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 := 9709; set @num2 := 9709; execute com using @num1, @num2; set @num1 := 9712; set @num2 := 9712; execute com using @num1, @num2; set @num1 := 9714; set @num2 := 9714; execute com using @num1, @num2; set @num1 := 9717; set @num2 := 9717; execute com using @num1, @num2; set @num1 := 9724; set @num2 := 9724; execute com using @num1, @num2; set @num1 := 9727; set @num2 := 9727; execute com using @num1, @num2; set @num1 := 9730; set @num2 := 9730; execute com using @num1, @num2; set @num1 := 9734; set @num2 := 9734; execute com using @num1, @num2; set @num1 := 9735; set @num2 := 9735; execute com using @num1, @num2; set @num1 := 9736; set @num2 := 9736; execute com using @num1, @num2; set @num1 := 9737; set @num2 := 9737; execute com using @num1, @num2; set @num1 := 9738; set @num2 := 9738; execute com using @num1, @num2; set @num1 := 9739; set @num2 := 9739; execute com using @num1, @num2; set @num1 := 9740; set @num2 := 9740; execute com using @num1, @num2; set @num1 := 9742; set @num2 := 9742; execute com using @num1, @num2; set @num1 := 9750; set @num2 := 9750; execute com using @num1, @num2; set @num1 := 9751; set @num2 := 9751; execute com using @num1, @num2; set @num1 := 9752; set @num2 := 9752; execute com using @num1, @num2; set @num1 := 9758; set @num2 := 9758; execute com using @num1, @num2; set @num1 := 9760; set @num2 := 9760; execute com using @num1, @num2; set @num1 := 9762; set @num2 := 9762; execute com using @num1, @num2; set @num1 := 9763; set @num2 := 9763; execute com using @num1, @num2; set @num1 := 9764; set @num2 := 9764; execute com using @num1, @num2; set @num1 := 9767; set @num2 := 9767; execute com using @num1, @num2; set @num1 := 9770; set @num2 := 9770; execute com using @num1, @num2; set @num1 := 9775; set @num2 := 9775; execute com using @num1, @num2; set @num1 := 9776; set @num2 := 9776; execute com using @num1, @num2; set @num1 := 9779; set @num2 := 9779; execute com using @num1, @num2; set @num1 := 9789; set @num2 := 9789; execute com using @num1, @num2; set @num1 := 9792; set @num2 := 9792; execute com using @num1, @num2; set @num1 := 9799; set @num2 := 9799; execute com using @num1, @num2; set @num1 := 9804; set @num2 := 9804; execute com using @num1, @num2; set @num1 := 9806; set @num2 := 9806; execute com using @num1, @num2; set @num1 := 9808; set @num2 := 9808; execute com using @num1, @num2; set @num1 := 9810; set @num2 := 9810; execute com using @num1, @num2; set @num1 := 9813; set @num2 := 9813; execute com using @num1, @num2; set @num1 := 9814; set @num2 := 9814; execute com using @num1, @num2; set @num1 := 9815; set @num2 := 9815; execute com using @num1, @num2; set @num1 := 9820; set @num2 := 9820; execute com using @num1, @num2; set @num1 := 9824; set @num2 := 9824; execute com using @num1, @num2; set @num1 := 9827; set @num2 := 9827; execute com using @num1, @num2; set @num1 := 9830; set @num2 := 9830; execute com using @num1, @num2; set @num1 := 9833; set @num2 := 9833; execute com using @num1, @num2; set @num1 := 9835; set @num2 := 9835; execute com using @num1, @num2; set @num1 := 9837; set @num2 := 9837; execute com using @num1, @num2; set @num1 := 9839; set @num2 := 9839; execute com using @num1, @num2; set @num1 := 9840; set @num2 := 9840; execute com using @num1, @num2; set @num1 := 9843; set @num2 := 9843; execute com using @num1, @num2; set @num1 := 9845; set @num2 := 9845; execute com using @num1, @num2; set @num1 := 9857; set @num2 := 9857; execute com using @num1, @num2; set @num1 := 9862; set @num2 := 9862; execute com using @num1, @num2; set @num1 := 9864; set @num2 := 9864; execute com using @num1, @num2; set @num1 := 9865; set @num2 := 9865; execute com using @num1, @num2; set @num1 := 9866; set @num2 := 9866; execute com using @num1, @num2; set @num1 := 9867; set @num2 := 9867; execute com using @num1, @num2; set @num1 := 9869; set @num2 := 9869; execute com using @num1, @num2; set @num1 := 9875; set @num2 := 9875; execute com using @num1, @num2; set @num1 := 9890; set @num2 := 9890; execute com using @num1, @num2; set @num1 := 9891; set @num2 := 9891; execute com using @num1, @num2; set @num1 := 9896; set @num2 := 9896; execute com using @num1, @num2; set @num1 := 9897; set @num2 := 9897; execute com using @num1, @num2; set @num1 := 9901; set @num2 := 9901; execute com using @num1, @num2; set @num1 := 9902; set @num2 := 9902; execute com using @num1, @num2; set @num1 := 9904; set @num2 := 9904; execute com using @num1, @num2; set @num1 := 9907; set @num2 := 9907; execute com using @num1, @num2; set @num1 := 9908; set @num2 := 9908; execute com using @num1, @num2; set @num1 := 9910; set @num2 := 9910; execute com using @num1, @num2; set @num1 := 9911; set @num2 := 9911; execute com using @num1, @num2; set @num1 := 9926; set @num2 := 9926; execute com using @num1, @num2; set @num1 := 9931; set @num2 := 9931; execute com using @num1, @num2; set @num1 := 9932; set @num2 := 9932; execute com using @num1, @num2; set @num1 := 9933; set @num2 := 9933; execute com using @num1, @num2; set @num1 := 9939; set @num2 := 9939; execute com using @num1, @num2; set @num1 := 9941; set @num2 := 9941; execute com using @num1, @num2; set @num1 := 9942; set @num2 := 9942; execute com using @num1, @num2; set @num1 := 9948; set @num2 := 9948; execute com using @num1, @num2; set @num1 := 9949; set @num2 := 9949; execute com using @num1, @num2; set @num1 := 9951; set @num2 := 9951; execute com using @num1, @num2; set @num1 := 9952; set @num2 := 9952; execute com using @num1, @num2; set @num1 := 9953; set @num2 := 9953; execute com using @num1, @num2; set @num1 := 9954; set @num2 := 9954; execute com using @num1, @num2; set @num1 := 9955; set @num2 := 9955; execute com using @num1, @num2; set @num1 := 9956; set @num2 := 9956; execute com using @num1, @num2; set @num1 := 9960; set @num2 := 9960; execute com using @num1, @num2; set @num1 := 9961; set @num2 := 9961; execute com using @num1, @num2; set @num1 := 9962; set @num2 := 9962; execute com using @num1, @num2; set @num1 := 9963; set @num2 := 9963; execute com using @num1, @num2; set @num1 := 9966; set @num2 := 9966; execute com using @num1, @num2; set @num1 := 9974; set @num2 := 9974; execute com using @num1, @num2; set @num1 := 9978; set @num2 := 9978; execute com using @num1, @num2; set @num1 := 9979; set @num2 := 9979; execute com using @num1, @num2; set @num1 := 9992; set @num2 := 9992; execute com using @num1, @num2; set @num1 := 9995; set @num2 := 9995; execute com using @num1, @num2; set @num1 := 9997; set @num2 := 9997; execute com using @num1, @num2; set @num1 := 10005; set @num2 := 10005; execute com using @num1, @num2; set @num1 := 10006; set @num2 := 10006; execute com using @num1, @num2; set @num1 := 10013; set @num2 := 10013; execute com using @num1, @num2; set @num1 := 10016; set @num2 := 10016; execute com using @num1, @num2; set @num1 := 10017; set @num2 := 10017; execute com using @num1, @num2; set @num1 := 10018; set @num2 := 10018; 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...