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 := 3793; set @num2 := 3793; execute com using @num1, @num2; set @num1 := 3794; set @num2 := 3794; execute com using @num1, @num2; set @num1 := 3797; set @num2 := 3797; execute com using @num1, @num2; set @num1 := 3802; set @num2 := 3802; execute com using @num1, @num2; set @num1 := 3805; set @num2 := 3805; execute com using @num1, @num2; set @num1 := 3806; set @num2 := 3806; execute com using @num1, @num2; set @num1 := 3808; set @num2 := 3808; execute com using @num1, @num2; set @num1 := 3810; set @num2 := 3810; execute com using @num1, @num2; set @num1 := 3823; set @num2 := 3823; execute com using @num1, @num2; set @num1 := 3826; set @num2 := 3826; execute com using @num1, @num2; set @num1 := 3827; set @num2 := 3827; execute com using @num1, @num2; set @num1 := 3833; set @num2 := 3833; execute com using @num1, @num2; set @num1 := 3837; set @num2 := 3837; execute com using @num1, @num2; set @num1 := 3838; set @num2 := 3838; execute com using @num1, @num2; set @num1 := 3845; set @num2 := 3845; execute com using @num1, @num2; set @num1 := 3846; set @num2 := 3846; execute com using @num1, @num2; set @num1 := 3850; set @num2 := 3850; execute com using @num1, @num2; set @num1 := 3851; set @num2 := 3851; execute com using @num1, @num2; set @num1 := 3856; set @num2 := 3856; execute com using @num1, @num2; set @num1 := 3858; set @num2 := 3858; execute com using @num1, @num2; set @num1 := 3860; set @num2 := 3860; execute com using @num1, @num2; set @num1 := 3861; set @num2 := 3861; execute com using @num1, @num2; set @num1 := 3862; set @num2 := 3862; execute com using @num1, @num2; set @num1 := 3864; set @num2 := 3864; execute com using @num1, @num2; set @num1 := 3873; set @num2 := 3873; execute com using @num1, @num2; set @num1 := 3875; set @num2 := 3875; execute com using @num1, @num2; set @num1 := 3876; set @num2 := 3876; execute com using @num1, @num2; set @num1 := 3912; set @num2 := 3912; execute com using @num1, @num2; set @num1 := 3914; set @num2 := 3914; execute com using @num1, @num2; set @num1 := 3916; set @num2 := 3916; execute com using @num1, @num2; set @num1 := 3921; set @num2 := 3921; execute com using @num1, @num2; set @num1 := 3933; set @num2 := 3933; execute com using @num1, @num2; set @num1 := 3936; set @num2 := 3936; execute com using @num1, @num2; set @num1 := 3947; set @num2 := 3947; execute com using @num1, @num2; set @num1 := 3954; set @num2 := 3954; execute com using @num1, @num2; set @num1 := 3956; set @num2 := 3956; execute com using @num1, @num2; set @num1 := 3957; set @num2 := 3957; execute com using @num1, @num2; set @num1 := 3962; set @num2 := 3962; execute com using @num1, @num2; set @num1 := 3967; set @num2 := 3967; execute com using @num1, @num2; set @num1 := 3968; set @num2 := 3968; execute com using @num1, @num2; set @num1 := 3969; set @num2 := 3969; execute com using @num1, @num2; set @num1 := 3970; set @num2 := 3970; execute com using @num1, @num2; set @num1 := 3973; set @num2 := 3973; execute com using @num1, @num2; set @num1 := 3975; set @num2 := 3975; execute com using @num1, @num2; set @num1 := 3978; set @num2 := 3978; execute com using @num1, @num2; set @num1 := 3979; set @num2 := 3979; execute com using @num1, @num2; set @num1 := 3985; set @num2 := 3985; execute com using @num1, @num2; set @num1 := 3986; set @num2 := 3986; execute com using @num1, @num2; set @num1 := 3992; set @num2 := 3992; execute com using @num1, @num2; set @num1 := 3995; set @num2 := 3995; execute com using @num1, @num2; set @num1 := 3996; set @num2 := 3996; execute com using @num1, @num2; set @num1 := 3997; set @num2 := 3997; execute com using @num1, @num2; set @num1 := 4009; set @num2 := 4009; execute com using @num1, @num2; set @num1 := 4010; set @num2 := 4010; execute com using @num1, @num2; set @num1 := 4012; set @num2 := 4012; execute com using @num1, @num2; set @num1 := 4013; set @num2 := 4013; execute com using @num1, @num2; set @num1 := 4016; set @num2 := 4016; execute com using @num1, @num2; set @num1 := 4024; set @num2 := 4024; execute com using @num1, @num2; set @num1 := 4031; set @num2 := 4031; execute com using @num1, @num2; set @num1 := 4032; set @num2 := 4032; execute com using @num1, @num2; set @num1 := 4035; set @num2 := 4035; execute com using @num1, @num2; set @num1 := 4036; set @num2 := 4036; execute com using @num1, @num2; set @num1 := 4037; set @num2 := 4037; execute com using @num1, @num2; set @num1 := 4041; set @num2 := 4041; execute com using @num1, @num2; set @num1 := 4045; set @num2 := 4045; execute com using @num1, @num2; set @num1 := 4050; set @num2 := 4050; execute com using @num1, @num2; set @num1 := 4054; set @num2 := 4054; execute com using @num1, @num2; set @num1 := 4057; set @num2 := 4057; execute com using @num1, @num2; set @num1 := 4059; set @num2 := 4059; execute com using @num1, @num2; set @num1 := 4060; set @num2 := 4060; execute com using @num1, @num2; set @num1 := 4063; set @num2 := 4063; execute com using @num1, @num2; set @num1 := 4069; set @num2 := 4069; execute com using @num1, @num2; set @num1 := 4071; set @num2 := 4071; execute com using @num1, @num2; set @num1 := 4077; set @num2 := 4077; execute com using @num1, @num2; set @num1 := 4078; set @num2 := 4078; execute com using @num1, @num2; set @num1 := 4086; set @num2 := 4086; execute com using @num1, @num2; set @num1 := 4092; set @num2 := 4092; execute com using @num1, @num2; set @num1 := 4093; set @num2 := 4093; execute com using @num1, @num2; set @num1 := 4097; set @num2 := 4097; execute com using @num1, @num2; set @num1 := 4098; set @num2 := 4098; execute com using @num1, @num2; set @num1 := 4099; set @num2 := 4099; execute com using @num1, @num2; set @num1 := 4101; set @num2 := 4101; execute com using @num1, @num2; set @num1 := 4106; set @num2 := 4106; execute com using @num1, @num2; set @num1 := 4107; set @num2 := 4107; execute com using @num1, @num2; set @num1 := 4110; set @num2 := 4110; execute com using @num1, @num2; set @num1 := 4116; set @num2 := 4116; execute com using @num1, @num2; set @num1 := 4119; set @num2 := 4119; execute com using @num1, @num2; set @num1 := 4124; set @num2 := 4124; execute com using @num1, @num2; set @num1 := 4146; set @num2 := 4146; execute com using @num1, @num2; set @num1 := 4147; set @num2 := 4147; execute com using @num1, @num2; set @num1 := 4149; set @num2 := 4149; execute com using @num1, @num2; set @num1 := 4157; set @num2 := 4157; execute com using @num1, @num2; set @num1 := 4163; set @num2 := 4163; execute com using @num1, @num2; set @num1 := 4165; set @num2 := 4165; execute com using @num1, @num2; set @num1 := 4166; set @num2 := 4166; execute com using @num1, @num2; set @num1 := 4169; set @num2 := 4169; execute com using @num1, @num2; set @num1 := 4173; set @num2 := 4173; execute com using @num1, @num2; set @num1 := 4177; set @num2 := 4177; execute com using @num1, @num2; set @num1 := 4182; set @num2 := 4182; execute com using @num1, @num2; set @num1 := 4183; set @num2 := 4183; 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...