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 := 8935; set @num2 := 8935; execute com using @num1, @num2; set @num1 := 8942; set @num2 := 8942; execute com using @num1, @num2; set @num1 := 8945; set @num2 := 8945; execute com using @num1, @num2; set @num1 := 8946; set @num2 := 8946; execute com using @num1, @num2; set @num1 := 8953; set @num2 := 8953; execute com using @num1, @num2; set @num1 := 8957; set @num2 := 8957; execute com using @num1, @num2; set @num1 := 8958; set @num2 := 8958; execute com using @num1, @num2; set @num1 := 8964; set @num2 := 8964; execute com using @num1, @num2; set @num1 := 8968; set @num2 := 8968; execute com using @num1, @num2; set @num1 := 8972; set @num2 := 8972; execute com using @num1, @num2; set @num1 := 8987; set @num2 := 8987; execute com using @num1, @num2; set @num1 := 8989; set @num2 := 8989; execute com using @num1, @num2; set @num1 := 8994; set @num2 := 8994; execute com using @num1, @num2; set @num1 := 8997; set @num2 := 8997; execute com using @num1, @num2; set @num1 := 9002; set @num2 := 9002; execute com using @num1, @num2; set @num1 := 9008; set @num2 := 9008; execute com using @num1, @num2; set @num1 := 9010; set @num2 := 9010; execute com using @num1, @num2; set @num1 := 9014; set @num2 := 9014; execute com using @num1, @num2; set @num1 := 9020; set @num2 := 9020; execute com using @num1, @num2; set @num1 := 9021; set @num2 := 9021; execute com using @num1, @num2; set @num1 := 9023; set @num2 := 9023; execute com using @num1, @num2; set @num1 := 9025; set @num2 := 9025; execute com using @num1, @num2; set @num1 := 9032; set @num2 := 9032; execute com using @num1, @num2; set @num1 := 9033; set @num2 := 9033; execute com using @num1, @num2; set @num1 := 9039; set @num2 := 9039; execute com using @num1, @num2; set @num1 := 9048; set @num2 := 9048; execute com using @num1, @num2; set @num1 := 9053; set @num2 := 9053; execute com using @num1, @num2; set @num1 := 9055; set @num2 := 9055; execute com using @num1, @num2; set @num1 := 9061; set @num2 := 9061; execute com using @num1, @num2; set @num1 := 9070; set @num2 := 9070; execute com using @num1, @num2; set @num1 := 9072; set @num2 := 9072; execute com using @num1, @num2; set @num1 := 9079; set @num2 := 9079; execute com using @num1, @num2; set @num1 := 9080; set @num2 := 9080; execute com using @num1, @num2; set @num1 := 9087; set @num2 := 9087; execute com using @num1, @num2; set @num1 := 9090; set @num2 := 9090; execute com using @num1, @num2; set @num1 := 9093; set @num2 := 9093; execute com using @num1, @num2; set @num1 := 9099; set @num2 := 9099; execute com using @num1, @num2; set @num1 := 9103; set @num2 := 9103; execute com using @num1, @num2; set @num1 := 9105; set @num2 := 9105; execute com using @num1, @num2; set @num1 := 9110; set @num2 := 9110; execute com using @num1, @num2; set @num1 := 9111; set @num2 := 9111; execute com using @num1, @num2; set @num1 := 9118; set @num2 := 9118; execute com using @num1, @num2; set @num1 := 9121; set @num2 := 9121; execute com using @num1, @num2; set @num1 := 9130; set @num2 := 9130; execute com using @num1, @num2; set @num1 := 9132; set @num2 := 9132; execute com using @num1, @num2; set @num1 := 9133; set @num2 := 9133; execute com using @num1, @num2; set @num1 := 9135; set @num2 := 9135; execute com using @num1, @num2; set @num1 := 9137; set @num2 := 9137; execute com using @num1, @num2; set @num1 := 9138; set @num2 := 9138; execute com using @num1, @num2; set @num1 := 9140; set @num2 := 9140; execute com using @num1, @num2; set @num1 := 9141; set @num2 := 9141; execute com using @num1, @num2; set @num1 := 9146; set @num2 := 9146; execute com using @num1, @num2; set @num1 := 9163; set @num2 := 9163; execute com using @num1, @num2; set @num1 := 9222; set @num2 := 9222; execute com using @num1, @num2; set @num1 := 9223; set @num2 := 9223; execute com using @num1, @num2; set @num1 := 9225; set @num2 := 9225; execute com using @num1, @num2; set @num1 := 9228; set @num2 := 9228; execute com using @num1, @num2; set @num1 := 9230; set @num2 := 9230; execute com using @num1, @num2; set @num1 := 9232; set @num2 := 9232; execute com using @num1, @num2; set @num1 := 9235; set @num2 := 9235; execute com using @num1, @num2; set @num1 := 9236; set @num2 := 9236; execute com using @num1, @num2; set @num1 := 9239; set @num2 := 9239; execute com using @num1, @num2; set @num1 := 9247; set @num2 := 9247; execute com using @num1, @num2; set @num1 := 9248; set @num2 := 9248; execute com using @num1, @num2; set @num1 := 9251; set @num2 := 9251; execute com using @num1, @num2; set @num1 := 9252; set @num2 := 9252; execute com using @num1, @num2; set @num1 := 9253; set @num2 := 9253; execute com using @num1, @num2; set @num1 := 9256; set @num2 := 9256; execute com using @num1, @num2; set @num1 := 9257; set @num2 := 9257; execute com using @num1, @num2; set @num1 := 9258; set @num2 := 9258; execute com using @num1, @num2; set @num1 := 9262; set @num2 := 9262; execute com using @num1, @num2; set @num1 := 9263; set @num2 := 9263; execute com using @num1, @num2; set @num1 := 9269; set @num2 := 9269; execute com using @num1, @num2; set @num1 := 9277; set @num2 := 9277; execute com using @num1, @num2; set @num1 := 9279; set @num2 := 9279; execute com using @num1, @num2; set @num1 := 9282; set @num2 := 9282; execute com using @num1, @num2; set @num1 := 9284; set @num2 := 9284; execute com using @num1, @num2; set @num1 := 9288; set @num2 := 9288; execute com using @num1, @num2; set @num1 := 9294; set @num2 := 9294; execute com using @num1, @num2; set @num1 := 9297; set @num2 := 9297; execute com using @num1, @num2; set @num1 := 9300; set @num2 := 9300; execute com using @num1, @num2; set @num1 := 9301; set @num2 := 9301; execute com using @num1, @num2; set @num1 := 9302; set @num2 := 9302; execute com using @num1, @num2; set @num1 := 9310; set @num2 := 9310; execute com using @num1, @num2; set @num1 := 9312; set @num2 := 9312; execute com using @num1, @num2; set @num1 := 9316; set @num2 := 9316; execute com using @num1, @num2; set @num1 := 9317; set @num2 := 9317; execute com using @num1, @num2; set @num1 := 9322; set @num2 := 9322; execute com using @num1, @num2; set @num1 := 9324; set @num2 := 9324; execute com using @num1, @num2; set @num1 := 9325; set @num2 := 9325; execute com using @num1, @num2; set @num1 := 9328; set @num2 := 9328; execute com using @num1, @num2; set @num1 := 9331; set @num2 := 9331; execute com using @num1, @num2; set @num1 := 9332; set @num2 := 9332; execute com using @num1, @num2; set @num1 := 9333; set @num2 := 9333; execute com using @num1, @num2; set @num1 := 9334; set @num2 := 9334; execute com using @num1, @num2; set @num1 := 9335; set @num2 := 9335; execute com using @num1, @num2; set @num1 := 9342; set @num2 := 9342; execute com using @num1, @num2; set @num1 := 9348; set @num2 := 9348; execute com using @num1, @num2; set @num1 := 9350; set @num2 := 9350; execute com using @num1, @num2; set @num1 := 9351; set @num2 := 9351; 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...