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 := 7604; set @num2 := 7604; execute com using @num1, @num2; set @num1 := 7605; set @num2 := 7605; execute com using @num1, @num2; set @num1 := 7610; set @num2 := 7610; execute com using @num1, @num2; set @num1 := 7611; set @num2 := 7611; execute com using @num1, @num2; set @num1 := 7618; set @num2 := 7618; execute com using @num1, @num2; set @num1 := 7627; set @num2 := 7627; execute com using @num1, @num2; set @num1 := 7628; set @num2 := 7628; execute com using @num1, @num2; set @num1 := 7630; set @num2 := 7630; execute com using @num1, @num2; set @num1 := 7638; set @num2 := 7638; execute com using @num1, @num2; set @num1 := 7642; set @num2 := 7642; execute com using @num1, @num2; set @num1 := 7647; set @num2 := 7647; execute com using @num1, @num2; set @num1 := 7661; set @num2 := 7661; execute com using @num1, @num2; set @num1 := 7668; set @num2 := 7668; execute com using @num1, @num2; set @num1 := 7669; set @num2 := 7669; execute com using @num1, @num2; set @num1 := 7672; set @num2 := 7672; execute com using @num1, @num2; set @num1 := 7673; set @num2 := 7673; execute com using @num1, @num2; set @num1 := 7676; set @num2 := 7676; execute com using @num1, @num2; set @num1 := 7677; set @num2 := 7677; execute com using @num1, @num2; set @num1 := 7683; set @num2 := 7683; execute com using @num1, @num2; set @num1 := 7689; set @num2 := 7689; execute com using @num1, @num2; set @num1 := 7697; set @num2 := 7697; execute com using @num1, @num2; set @num1 := 7701; set @num2 := 7701; execute com using @num1, @num2; set @num1 := 7708; set @num2 := 7708; execute com using @num1, @num2; set @num1 := 7712; set @num2 := 7712; execute com using @num1, @num2; set @num1 := 7716; set @num2 := 7716; execute com using @num1, @num2; set @num1 := 7720; set @num2 := 7720; execute com using @num1, @num2; set @num1 := 7721; set @num2 := 7721; execute com using @num1, @num2; set @num1 := 7729; set @num2 := 7729; execute com using @num1, @num2; set @num1 := 7730; set @num2 := 7730; execute com using @num1, @num2; set @num1 := 7731; set @num2 := 7731; execute com using @num1, @num2; set @num1 := 7732; set @num2 := 7732; execute com using @num1, @num2; set @num1 := 7738; set @num2 := 7738; execute com using @num1, @num2; set @num1 := 7739; set @num2 := 7739; execute com using @num1, @num2; set @num1 := 7740; set @num2 := 7740; execute com using @num1, @num2; set @num1 := 7742; set @num2 := 7742; execute com using @num1, @num2; set @num1 := 7756; set @num2 := 7756; execute com using @num1, @num2; set @num1 := 7757; set @num2 := 7757; execute com using @num1, @num2; set @num1 := 7765; set @num2 := 7765; execute com using @num1, @num2; set @num1 := 7770; set @num2 := 7770; execute com using @num1, @num2; set @num1 := 7774; set @num2 := 7774; execute com using @num1, @num2; set @num1 := 7783; set @num2 := 7783; execute com using @num1, @num2; set @num1 := 7786; set @num2 := 7786; execute com using @num1, @num2; set @num1 := 7794; set @num2 := 7794; execute com using @num1, @num2; set @num1 := 7796; set @num2 := 7796; execute com using @num1, @num2; set @num1 := 7797; set @num2 := 7797; execute com using @num1, @num2; set @num1 := 7801; set @num2 := 7801; execute com using @num1, @num2; set @num1 := 7806; set @num2 := 7806; execute com using @num1, @num2; set @num1 := 7807; set @num2 := 7807; execute com using @num1, @num2; set @num1 := 7810; set @num2 := 7810; execute com using @num1, @num2; set @num1 := 7811; set @num2 := 7811; execute com using @num1, @num2; set @num1 := 7816; set @num2 := 7816; execute com using @num1, @num2; set @num1 := 7819; set @num2 := 7819; execute com using @num1, @num2; set @num1 := 7820; set @num2 := 7820; execute com using @num1, @num2; set @num1 := 7821; set @num2 := 7821; execute com using @num1, @num2; set @num1 := 7822; set @num2 := 7822; execute com using @num1, @num2; set @num1 := 7829; set @num2 := 7829; execute com using @num1, @num2; set @num1 := 7830; set @num2 := 7830; execute com using @num1, @num2; set @num1 := 7837; set @num2 := 7837; execute com using @num1, @num2; set @num1 := 7839; set @num2 := 7839; execute com using @num1, @num2; set @num1 := 7840; set @num2 := 7840; execute com using @num1, @num2; set @num1 := 7843; set @num2 := 7843; execute com using @num1, @num2; set @num1 := 7844; set @num2 := 7844; execute com using @num1, @num2; set @num1 := 7845; set @num2 := 7845; execute com using @num1, @num2; set @num1 := 7849; set @num2 := 7849; execute com using @num1, @num2; set @num1 := 7851; set @num2 := 7851; execute com using @num1, @num2; set @num1 := 7885; set @num2 := 7885; execute com using @num1, @num2; set @num1 := 7886; set @num2 := 7886; execute com using @num1, @num2; set @num1 := 7888; set @num2 := 7888; execute com using @num1, @num2; set @num1 := 7890; set @num2 := 7890; execute com using @num1, @num2; set @num1 := 7891; set @num2 := 7891; execute com using @num1, @num2; set @num1 := 7892; set @num2 := 7892; execute com using @num1, @num2; set @num1 := 7893; set @num2 := 7893; execute com using @num1, @num2; set @num1 := 7896; set @num2 := 7896; execute com using @num1, @num2; set @num1 := 7900; set @num2 := 7900; execute com using @num1, @num2; set @num1 := 7901; set @num2 := 7901; execute com using @num1, @num2; set @num1 := 7902; set @num2 := 7902; execute com using @num1, @num2; set @num1 := 7903; set @num2 := 7903; execute com using @num1, @num2; set @num1 := 7921; set @num2 := 7921; execute com using @num1, @num2; set @num1 := 7922; set @num2 := 7922; execute com using @num1, @num2; set @num1 := 7923; set @num2 := 7923; execute com using @num1, @num2; set @num1 := 7925; set @num2 := 7925; execute com using @num1, @num2; set @num1 := 7928; set @num2 := 7928; execute com using @num1, @num2; set @num1 := 7930; set @num2 := 7930; execute com using @num1, @num2; set @num1 := 7931; set @num2 := 7931; execute com using @num1, @num2; set @num1 := 7935; set @num2 := 7935; execute com using @num1, @num2; set @num1 := 7938; set @num2 := 7938; execute com using @num1, @num2; set @num1 := 7940; set @num2 := 7940; execute com using @num1, @num2; set @num1 := 7941; set @num2 := 7941; execute com using @num1, @num2; set @num1 := 7946; set @num2 := 7946; execute com using @num1, @num2; set @num1 := 7950; set @num2 := 7950; execute com using @num1, @num2; set @num1 := 7951; set @num2 := 7951; execute com using @num1, @num2; set @num1 := 7952; set @num2 := 7952; execute com using @num1, @num2; set @num1 := 7954; set @num2 := 7954; execute com using @num1, @num2; set @num1 := 7955; set @num2 := 7955; execute com using @num1, @num2; set @num1 := 7957; set @num2 := 7957; execute com using @num1, @num2; set @num1 := 7959; set @num2 := 7959; execute com using @num1, @num2; set @num1 := 7966; set @num2 := 7966; execute com using @num1, @num2; set @num1 := 7970; set @num2 := 7970; execute com using @num1, @num2; set @num1 := 7976; set @num2 := 7976; execute com using @num1, @num2; set @num1 := 7978; set @num2 := 7978; 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...