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
LoFat36
.
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 := 8594; set @num2 := 8594; execute com using @num1, @num2; set @num1 := 8599; set @num2 := 8599; execute com using @num1, @num2; set @num1 := 8603; set @num2 := 8603; execute com using @num1, @num2; set @num1 := 8605; set @num2 := 8605; execute com using @num1, @num2; set @num1 := 8608; set @num2 := 8608; execute com using @num1, @num2; set @num1 := 8613; set @num2 := 8613; execute com using @num1, @num2; set @num1 := 8615; set @num2 := 8615; execute com using @num1, @num2; set @num1 := 8618; set @num2 := 8618; execute com using @num1, @num2; set @num1 := 8620; set @num2 := 8620; execute com using @num1, @num2; set @num1 := 8622; set @num2 := 8622; execute com using @num1, @num2; set @num1 := 8623; set @num2 := 8623; execute com using @num1, @num2; set @num1 := 8626; set @num2 := 8626; execute com using @num1, @num2; set @num1 := 8629; set @num2 := 8629; execute com using @num1, @num2; set @num1 := 8630; set @num2 := 8630; execute com using @num1, @num2; set @num1 := 8631; set @num2 := 8631; execute com using @num1, @num2; set @num1 := 8632; set @num2 := 8632; execute com using @num1, @num2; set @num1 := 8633; set @num2 := 8633; execute com using @num1, @num2; set @num1 := 8637; set @num2 := 8637; execute com using @num1, @num2; set @num1 := 8640; set @num2 := 8640; execute com using @num1, @num2; set @num1 := 8642; set @num2 := 8642; execute com using @num1, @num2; set @num1 := 8651; set @num2 := 8651; execute com using @num1, @num2; set @num1 := 8659; set @num2 := 8659; execute com using @num1, @num2; set @num1 := 8660; set @num2 := 8660; execute com using @num1, @num2; set @num1 := 8662; set @num2 := 8662; execute com using @num1, @num2; set @num1 := 8663; set @num2 := 8663; execute com using @num1, @num2; set @num1 := 8667; set @num2 := 8667; execute com using @num1, @num2; set @num1 := 8674; set @num2 := 8674; execute com using @num1, @num2; set @num1 := 8677; set @num2 := 8677; execute com using @num1, @num2; set @num1 := 8683; set @num2 := 8683; execute com using @num1, @num2; set @num1 := 8687; set @num2 := 8687; execute com using @num1, @num2; set @num1 := 8688; set @num2 := 8688; execute com using @num1, @num2; set @num1 := 8690; set @num2 := 8690; execute com using @num1, @num2; set @num1 := 8691; set @num2 := 8691; execute com using @num1, @num2; set @num1 := 8695; set @num2 := 8695; execute com using @num1, @num2; set @num1 := 8703; set @num2 := 8703; execute com using @num1, @num2; set @num1 := 8708; set @num2 := 8708; execute com using @num1, @num2; set @num1 := 8714; set @num2 := 8714; execute com using @num1, @num2; set @num1 := 8716; set @num2 := 8716; execute com using @num1, @num2; set @num1 := 8717; set @num2 := 8717; execute com using @num1, @num2; set @num1 := 8724; set @num2 := 8724; execute com using @num1, @num2; set @num1 := 8728; set @num2 := 8728; execute com using @num1, @num2; set @num1 := 8731; set @num2 := 8731; execute com using @num1, @num2; set @num1 := 8748; set @num2 := 8748; execute com using @num1, @num2; set @num1 := 8753; set @num2 := 8753; execute com using @num1, @num2; set @num1 := 8756; set @num2 := 8756; execute com using @num1, @num2; set @num1 := 8757; set @num2 := 8757; execute com using @num1, @num2; set @num1 := 8758; set @num2 := 8758; execute com using @num1, @num2; set @num1 := 8765; set @num2 := 8765; execute com using @num1, @num2; set @num1 := 8767; set @num2 := 8767; execute com using @num1, @num2; set @num1 := 8769; set @num2 := 8769; execute com using @num1, @num2; set @num1 := 8771; set @num2 := 8771; execute com using @num1, @num2; set @num1 := 8774; set @num2 := 8774; execute com using @num1, @num2; set @num1 := 8777; set @num2 := 8777; execute com using @num1, @num2; set @num1 := 8778; set @num2 := 8778; execute com using @num1, @num2; set @num1 := 8779; set @num2 := 8779; execute com using @num1, @num2; set @num1 := 8781; set @num2 := 8781; execute com using @num1, @num2; set @num1 := 8783; set @num2 := 8783; execute com using @num1, @num2; set @num1 := 8786; set @num2 := 8786; execute com using @num1, @num2; set @num1 := 8791; set @num2 := 8791; execute com using @num1, @num2; set @num1 := 8795; set @num2 := 8795; execute com using @num1, @num2; set @num1 := 8796; set @num2 := 8796; execute com using @num1, @num2; set @num1 := 8799; set @num2 := 8799; execute com using @num1, @num2; set @num1 := 8805; set @num2 := 8805; execute com using @num1, @num2; set @num1 := 8807; set @num2 := 8807; execute com using @num1, @num2; set @num1 := 8816; set @num2 := 8816; execute com using @num1, @num2; set @num1 := 8824; set @num2 := 8824; execute com using @num1, @num2; set @num1 := 8827; set @num2 := 8827; execute com using @num1, @num2; set @num1 := 8828; set @num2 := 8828; execute com using @num1, @num2; set @num1 := 8832; set @num2 := 8832; execute com using @num1, @num2; set @num1 := 8833; set @num2 := 8833; execute com using @num1, @num2; set @num1 := 8835; set @num2 := 8835; execute com using @num1, @num2; set @num1 := 8843; set @num2 := 8843; execute com using @num1, @num2; set @num1 := 8844; set @num2 := 8844; execute com using @num1, @num2; set @num1 := 8845; set @num2 := 8845; execute com using @num1, @num2; set @num1 := 8848; set @num2 := 8848; execute com using @num1, @num2; set @num1 := 8849; set @num2 := 8849; execute com using @num1, @num2; set @num1 := 8850; set @num2 := 8850; execute com using @num1, @num2; set @num1 := 8851; set @num2 := 8851; execute com using @num1, @num2; set @num1 := 8852; set @num2 := 8852; execute com using @num1, @num2; set @num1 := 8855; set @num2 := 8855; execute com using @num1, @num2; set @num1 := 8859; set @num2 := 8859; execute com using @num1, @num2; set @num1 := 8860; set @num2 := 8860; execute com using @num1, @num2; set @num1 := 8875; set @num2 := 8875; execute com using @num1, @num2; set @num1 := 8878; set @num2 := 8878; execute com using @num1, @num2; set @num1 := 8881; set @num2 := 8881; execute com using @num1, @num2; set @num1 := 8882; set @num2 := 8882; execute com using @num1, @num2; set @num1 := 8884; set @num2 := 8884; execute com using @num1, @num2; set @num1 := 8886; set @num2 := 8886; execute com using @num1, @num2; set @num1 := 8888; set @num2 := 8888; execute com using @num1, @num2; set @num1 := 8893; set @num2 := 8893; execute com using @num1, @num2; set @num1 := 8900; set @num2 := 8900; execute com using @num1, @num2; set @num1 := 8905; set @num2 := 8905; execute com using @num1, @num2; set @num1 := 8906; set @num2 := 8906; execute com using @num1, @num2; set @num1 := 8910; set @num2 := 8910; execute com using @num1, @num2; set @num1 := 8912; set @num2 := 8912; execute com using @num1, @num2; set @num1 := 8914; set @num2 := 8914; execute com using @num1, @num2; set @num1 := 8921; set @num2 := 8921; execute com using @num1, @num2; set @num1 := 8927; set @num2 := 8927; execute com using @num1, @num2; set @num1 := 8930; set @num2 := 8930; execute com using @num1, @num2; set @num1 := 8932; set @num2 := 8932; 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...