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 := 10407; set @num2 := 10407; execute com using @num1, @num2; set @num1 := 10408; set @num2 := 10408; execute com using @num1, @num2; set @num1 := 10409; set @num2 := 10409; execute com using @num1, @num2; set @num1 := 10426; set @num2 := 10426; execute com using @num1, @num2; set @num1 := 10475; set @num2 := 10475; execute com using @num1, @num2; set @num1 := 10477; set @num2 := 10477; execute com using @num1, @num2; set @num1 := 10479; set @num2 := 10479; execute com using @num1, @num2; set @num1 := 10480; set @num2 := 10480; execute com using @num1, @num2; set @num1 := 10481; set @num2 := 10481; execute com using @num1, @num2; set @num1 := 10484; set @num2 := 10484; execute com using @num1, @num2; set @num1 := 10486; set @num2 := 10486; execute com using @num1, @num2; set @num1 := 10487; set @num2 := 10487; execute com using @num1, @num2; set @num1 := 10489; set @num2 := 10489; execute com using @num1, @num2; set @num1 := 10501; set @num2 := 10501; execute com using @num1, @num2; set @num1 := 10503; set @num2 := 10503; execute com using @num1, @num2; set @num1 := 10510; set @num2 := 10510; execute com using @num1, @num2; set @num1 := 10511; set @num2 := 10511; execute com using @num1, @num2; set @num1 := 10515; set @num2 := 10515; execute com using @num1, @num2; set @num1 := 10518; set @num2 := 10518; execute com using @num1, @num2; set @num1 := 10520; set @num2 := 10520; execute com using @num1, @num2; set @num1 := 10531; set @num2 := 10531; execute com using @num1, @num2; set @num1 := 10553; set @num2 := 10553; execute com using @num1, @num2; set @num1 := 10568; set @num2 := 10568; execute com using @num1, @num2; set @num1 := 10573; set @num2 := 10573; execute com using @num1, @num2; set @num1 := 10574; set @num2 := 10574; execute com using @num1, @num2; set @num1 := 10576; set @num2 := 10576; execute com using @num1, @num2; set @num1 := 10577; set @num2 := 10577; execute com using @num1, @num2; set @num1 := 10591; set @num2 := 10591; execute com using @num1, @num2; set @num1 := 10596; set @num2 := 10596; execute com using @num1, @num2; set @num1 := 10597; set @num2 := 10597; execute com using @num1, @num2; set @num1 := 10606; set @num2 := 10606; execute com using @num1, @num2; set @num1 := 10612; set @num2 := 10612; execute com using @num1, @num2; set @num1 := 10618; set @num2 := 10618; execute com using @num1, @num2; set @num1 := 10620; set @num2 := 10620; execute com using @num1, @num2; set @num1 := 10622; set @num2 := 10622; execute com using @num1, @num2; set @num1 := 10623; set @num2 := 10623; execute com using @num1, @num2; set @num1 := 10624; set @num2 := 10624; execute com using @num1, @num2; set @num1 := 10628; set @num2 := 10628; execute com using @num1, @num2; set @num1 := 10633; set @num2 := 10633; execute com using @num1, @num2; set @num1 := 10635; set @num2 := 10635; execute com using @num1, @num2; set @num1 := 10636; set @num2 := 10636; execute com using @num1, @num2; set @num1 := 10646; set @num2 := 10646; execute com using @num1, @num2; set @num1 := 10653; set @num2 := 10653; execute com using @num1, @num2; set @num1 := 10654; set @num2 := 10654; execute com using @num1, @num2; set @num1 := 10671; set @num2 := 10671; execute com using @num1, @num2; set @num1 := 10672; set @num2 := 10672; execute com using @num1, @num2; set @num1 := 10678; set @num2 := 10678; execute com using @num1, @num2; set @num1 := 10680; set @num2 := 10680; execute com using @num1, @num2; set @num1 := 10683; set @num2 := 10683; execute com using @num1, @num2; set @num1 := 10685; set @num2 := 10685; execute com using @num1, @num2; set @num1 := 10687; set @num2 := 10687; execute com using @num1, @num2; set @num1 := 10689; set @num2 := 10689; execute com using @num1, @num2; set @num1 := 10693; set @num2 := 10693; execute com using @num1, @num2; set @num1 := 10703; set @num2 := 10703; execute com using @num1, @num2; set @num1 := 10707; set @num2 := 10707; execute com using @num1, @num2; set @num1 := 10724; set @num2 := 10724; execute com using @num1, @num2; set @num1 := 10737; set @num2 := 10737; execute com using @num1, @num2; set @num1 := 10741; set @num2 := 10741; execute com using @num1, @num2; set @num1 := 10770; set @num2 := 10770; execute com using @num1, @num2; set @num1 := 10772; set @num2 := 10772; execute com using @num1, @num2; set @num1 := 10773; set @num2 := 10773; execute com using @num1, @num2; set @num1 := 10775; set @num2 := 10775; execute com using @num1, @num2; set @num1 := 10777; set @num2 := 10777; execute com using @num1, @num2; set @num1 := 10778; set @num2 := 10778; execute com using @num1, @num2; set @num1 := 10779; set @num2 := 10779; execute com using @num1, @num2; set @num1 := 10783; set @num2 := 10783; execute com using @num1, @num2; set @num1 := 10784; set @num2 := 10784; execute com using @num1, @num2; set @num1 := 10790; set @num2 := 10790; execute com using @num1, @num2; set @num1 := 10791; set @num2 := 10791; execute com using @num1, @num2; set @num1 := 10793; set @num2 := 10793; execute com using @num1, @num2; set @num1 := 10802; set @num2 := 10802; execute com using @num1, @num2; set @num1 := 10803; set @num2 := 10803; execute com using @num1, @num2; set @num1 := 10808; set @num2 := 10808; execute com using @num1, @num2; set @num1 := 10814; set @num2 := 10814; execute com using @num1, @num2; set @num1 := 10815; set @num2 := 10815; execute com using @num1, @num2; set @num1 := 10819; set @num2 := 10819; execute com using @num1, @num2; set @num1 := 10821; set @num2 := 10821; execute com using @num1, @num2; set @num1 := 10823; set @num2 := 10823; execute com using @num1, @num2; set @num1 := 10825; set @num2 := 10825; execute com using @num1, @num2; set @num1 := 10826; set @num2 := 10826; execute com using @num1, @num2; set @num1 := 10828; set @num2 := 10828; execute com using @num1, @num2; set @num1 := 10831; set @num2 := 10831; execute com using @num1, @num2; set @num1 := 10834; set @num2 := 10834; execute com using @num1, @num2; set @num1 := 10835; set @num2 := 10835; execute com using @num1, @num2; set @num1 := 10837; set @num2 := 10837; execute com using @num1, @num2; set @num1 := 10841; set @num2 := 10841; execute com using @num1, @num2; set @num1 := 10843; set @num2 := 10843; execute com using @num1, @num2; set @num1 := 10845; set @num2 := 10845; execute com using @num1, @num2; set @num1 := 10846; set @num2 := 10846; execute com using @num1, @num2; set @num1 := 10847; set @num2 := 10847; execute com using @num1, @num2; set @num1 := 10852; set @num2 := 10852; execute com using @num1, @num2; set @num1 := 10854; set @num2 := 10854; execute com using @num1, @num2; set @num1 := 10855; set @num2 := 10855; execute com using @num1, @num2; set @num1 := 10857; set @num2 := 10857; execute com using @num1, @num2; set @num1 := 10858; set @num2 := 10858; execute com using @num1, @num2; set @num1 := 10859; set @num2 := 10859; execute com using @num1, @num2; set @num1 := 10861; set @num2 := 10861; execute com using @num1, @num2; set @num1 := 10862; set @num2 := 10862; execute com using @num1, @num2; set @num1 := 10868; set @num2 := 10868; execute com using @num1, @num2; set @num1 := 10869; set @num2 := 10869; 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...