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 := 2856; set @num2 := 2856; execute com using @num1, @num2; set @num1 := 2861; set @num2 := 2861; execute com using @num1, @num2; set @num1 := 2864; set @num2 := 2864; execute com using @num1, @num2; set @num1 := 2865; set @num2 := 2865; execute com using @num1, @num2; set @num1 := 2871; set @num2 := 2871; execute com using @num1, @num2; set @num1 := 2885; set @num2 := 2885; execute com using @num1, @num2; set @num1 := 2889; set @num2 := 2889; execute com using @num1, @num2; set @num1 := 2890; set @num2 := 2890; execute com using @num1, @num2; set @num1 := 2893; set @num2 := 2893; execute com using @num1, @num2; set @num1 := 2894; set @num2 := 2894; execute com using @num1, @num2; set @num1 := 2905; set @num2 := 2905; execute com using @num1, @num2; set @num1 := 2906; set @num2 := 2906; execute com using @num1, @num2; set @num1 := 2909; set @num2 := 2909; execute com using @num1, @num2; set @num1 := 2911; set @num2 := 2911; execute com using @num1, @num2; set @num1 := 2919; set @num2 := 2919; execute com using @num1, @num2; set @num1 := 2926; set @num2 := 2926; execute com using @num1, @num2; set @num1 := 2927; set @num2 := 2927; execute com using @num1, @num2; set @num1 := 2934; set @num2 := 2934; execute com using @num1, @num2; set @num1 := 2938; set @num2 := 2938; execute com using @num1, @num2; set @num1 := 2940; set @num2 := 2940; execute com using @num1, @num2; set @num1 := 2942; set @num2 := 2942; execute com using @num1, @num2; set @num1 := 2944; set @num2 := 2944; execute com using @num1, @num2; set @num1 := 2945; set @num2 := 2945; execute com using @num1, @num2; set @num1 := 2952; set @num2 := 2952; execute com using @num1, @num2; set @num1 := 2955; set @num2 := 2955; execute com using @num1, @num2; set @num1 := 2956; set @num2 := 2956; execute com using @num1, @num2; set @num1 := 2959; set @num2 := 2959; execute com using @num1, @num2; set @num1 := 2963; set @num2 := 2963; execute com using @num1, @num2; set @num1 := 2965; set @num2 := 2965; execute com using @num1, @num2; set @num1 := 2972; set @num2 := 2972; execute com using @num1, @num2; set @num1 := 2975; set @num2 := 2975; execute com using @num1, @num2; set @num1 := 2983; set @num2 := 2983; execute com using @num1, @num2; set @num1 := 2986; set @num2 := 2986; execute com using @num1, @num2; set @num1 := 2987; set @num2 := 2987; execute com using @num1, @num2; set @num1 := 2992; set @num2 := 2992; execute com using @num1, @num2; set @num1 := 2994; set @num2 := 2994; execute com using @num1, @num2; set @num1 := 2995; set @num2 := 2995; execute com using @num1, @num2; set @num1 := 2999; set @num2 := 2999; execute com using @num1, @num2; set @num1 := 3003; set @num2 := 3003; execute com using @num1, @num2; set @num1 := 3004; set @num2 := 3004; execute com using @num1, @num2; set @num1 := 3010; set @num2 := 3010; execute com using @num1, @num2; set @num1 := 3012; set @num2 := 3012; execute com using @num1, @num2; set @num1 := 3013; set @num2 := 3013; execute com using @num1, @num2; set @num1 := 3014; set @num2 := 3014; execute com using @num1, @num2; set @num1 := 3019; set @num2 := 3019; execute com using @num1, @num2; set @num1 := 3027; set @num2 := 3027; execute com using @num1, @num2; set @num1 := 3029; set @num2 := 3029; execute com using @num1, @num2; set @num1 := 3032; set @num2 := 3032; execute com using @num1, @num2; set @num1 := 3034; set @num2 := 3034; execute com using @num1, @num2; set @num1 := 3035; set @num2 := 3035; 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...