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 := 5785; set @num2 := 5785; execute com using @num1, @num2; set @num1 := 5786; set @num2 := 5786; execute com using @num1, @num2; set @num1 := 5790; set @num2 := 5790; execute com using @num1, @num2; set @num1 := 5796; set @num2 := 5796; execute com using @num1, @num2; set @num1 := 5804; set @num2 := 5804; execute com using @num1, @num2; set @num1 := 5808; set @num2 := 5808; execute com using @num1, @num2; set @num1 := 5810; set @num2 := 5810; execute com using @num1, @num2; set @num1 := 5813; set @num2 := 5813; execute com using @num1, @num2; set @num1 := 5816; set @num2 := 5816; execute com using @num1, @num2; set @num1 := 5820; set @num2 := 5820; execute com using @num1, @num2; set @num1 := 5822; set @num2 := 5822; execute com using @num1, @num2; set @num1 := 5823; set @num2 := 5823; execute com using @num1, @num2; set @num1 := 5826; set @num2 := 5826; execute com using @num1, @num2; set @num1 := 5828; set @num2 := 5828; execute com using @num1, @num2; set @num1 := 5829; set @num2 := 5829; execute com using @num1, @num2; set @num1 := 5830; set @num2 := 5830; execute com using @num1, @num2; set @num1 := 5833; set @num2 := 5833; execute com using @num1, @num2; set @num1 := 5835; set @num2 := 5835; execute com using @num1, @num2; set @num1 := 5844; set @num2 := 5844; execute com using @num1, @num2; set @num1 := 5848; set @num2 := 5848; execute com using @num1, @num2; set @num1 := 5855; set @num2 := 5855; execute com using @num1, @num2; set @num1 := 5859; set @num2 := 5859; execute com using @num1, @num2; set @num1 := 5862; set @num2 := 5862; execute com using @num1, @num2; set @num1 := 5865; set @num2 := 5865; execute com using @num1, @num2; set @num1 := 5866; set @num2 := 5866; execute com using @num1, @num2; set @num1 := 5867; set @num2 := 5867; execute com using @num1, @num2; set @num1 := 5873; set @num2 := 5873; execute com using @num1, @num2; set @num1 := 5876; set @num2 := 5876; execute com using @num1, @num2; set @num1 := 5879; set @num2 := 5879; execute com using @num1, @num2; set @num1 := 5881; set @num2 := 5881; execute com using @num1, @num2; set @num1 := 5882; set @num2 := 5882; execute com using @num1, @num2; set @num1 := 5884; set @num2 := 5884; execute com using @num1, @num2; set @num1 := 5902; set @num2 := 5902; execute com using @num1, @num2; set @num1 := 5905; set @num2 := 5905; execute com using @num1, @num2; set @num1 := 5906; set @num2 := 5906; execute com using @num1, @num2; set @num1 := 5907; set @num2 := 5907; execute com using @num1, @num2; set @num1 := 5910; set @num2 := 5910; execute com using @num1, @num2; set @num1 := 5912; set @num2 := 5912; execute com using @num1, @num2; set @num1 := 5914; set @num2 := 5914; execute com using @num1, @num2; set @num1 := 5920; set @num2 := 5920; execute com using @num1, @num2; set @num1 := 5921; set @num2 := 5921; execute com using @num1, @num2; set @num1 := 5928; set @num2 := 5928; execute com using @num1, @num2; set @num1 := 5931; set @num2 := 5931; execute com using @num1, @num2; set @num1 := 5932; set @num2 := 5932; execute com using @num1, @num2; set @num1 := 5934; set @num2 := 5934; execute com using @num1, @num2; set @num1 := 5935; set @num2 := 5935; execute com using @num1, @num2; set @num1 := 5938; set @num2 := 5938; execute com using @num1, @num2; set @num1 := 5942; set @num2 := 5942; execute com using @num1, @num2; set @num1 := 5943; set @num2 := 5943; execute com using @num1, @num2; set @num1 := 5945; set @num2 := 5945; execute com using @num1, @num2; set @num1 := 5950; set @num2 := 5950; execute com using @num1, @num2; set @num1 := 5951; set @num2 := 5951; execute com using @num1, @num2; set @num1 := 5955; set @num2 := 5955; execute com using @num1, @num2; set @num1 := 5956; set @num2 := 5956; execute com using @num1, @num2; set @num1 := 5959; set @num2 := 5959; execute com using @num1, @num2; set @num1 := 5961; set @num2 := 5961; execute com using @num1, @num2; set @num1 := 5962; set @num2 := 5962; execute com using @num1, @num2; set @num1 := 5966; set @num2 := 5966; execute com using @num1, @num2; set @num1 := 5973; set @num2 := 5973; execute com using @num1, @num2; set @num1 := 5974; set @num2 := 5974; execute com using @num1, @num2; set @num1 := 5976; set @num2 := 5976; execute com using @num1, @num2; set @num1 := 5980; set @num2 := 5980; execute com using @num1, @num2; set @num1 := 5981; set @num2 := 5981; execute com using @num1, @num2; set @num1 := 5985; set @num2 := 5985; execute com using @num1, @num2; set @num1 := 5986; set @num2 := 5986; execute com using @num1, @num2; set @num1 := 5987; set @num2 := 5987; execute com using @num1, @num2; set @num1 := 5992; set @num2 := 5992; execute com using @num1, @num2; set @num1 := 5993; set @num2 := 5993; execute com using @num1, @num2; set @num1 := 5995; set @num2 := 5995; execute com using @num1, @num2; set @num1 := 5999; set @num2 := 5999; execute com using @num1, @num2; set @num1 := 6010; set @num2 := 6010; execute com using @num1, @num2; set @num1 := 6014; set @num2 := 6014; execute com using @num1, @num2; set @num1 := 6015; set @num2 := 6015; execute com using @num1, @num2; set @num1 := 6020; set @num2 := 6020; execute com using @num1, @num2; set @num1 := 6021; set @num2 := 6021; execute com using @num1, @num2; set @num1 := 6035; set @num2 := 6035; execute com using @num1, @num2; set @num1 := 6038; set @num2 := 6038; execute com using @num1, @num2; set @num1 := 6041; set @num2 := 6041; execute com using @num1, @num2; set @num1 := 6042; set @num2 := 6042; execute com using @num1, @num2; set @num1 := 6045; set @num2 := 6045; execute com using @num1, @num2; set @num1 := 6046; set @num2 := 6046; execute com using @num1, @num2; set @num1 := 6056; set @num2 := 6056; execute com using @num1, @num2; set @num1 := 6057; set @num2 := 6057; execute com using @num1, @num2; set @num1 := 6058; set @num2 := 6058; execute com using @num1, @num2; set @num1 := 6059; set @num2 := 6059; execute com using @num1, @num2; set @num1 := 6060; set @num2 := 6060; execute com using @num1, @num2; set @num1 := 6062; set @num2 := 6062; execute com using @num1, @num2; set @num1 := 6066; set @num2 := 6066; execute com using @num1, @num2; set @num1 := 6068; set @num2 := 6068; execute com using @num1, @num2; set @num1 := 6069; set @num2 := 6069; execute com using @num1, @num2; set @num1 := 6082; set @num2 := 6082; execute com using @num1, @num2; set @num1 := 6084; set @num2 := 6084; execute com using @num1, @num2; set @num1 := 6088; set @num2 := 6088; execute com using @num1, @num2; set @num1 := 6095; set @num2 := 6095; execute com using @num1, @num2; set @num1 := 6097; set @num2 := 6097; execute com using @num1, @num2; set @num1 := 6099; set @num2 := 6099; execute com using @num1, @num2; set @num1 := 6100; set @num2 := 6100; execute com using @num1, @num2; set @num1 := 6109; set @num2 := 6109; execute com using @num1, @num2; set @num1 := 6111; set @num2 := 6111; execute com using @num1, @num2; set @num1 := 6112; set @num2 := 6112; 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...