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 := 6787; set @num2 := 6787; execute com using @num1, @num2; set @num1 := 6788; set @num2 := 6788; execute com using @num1, @num2; set @num1 := 6799; set @num2 := 6799; execute com using @num1, @num2; set @num1 := 6804; set @num2 := 6804; execute com using @num1, @num2; set @num1 := 6811; set @num2 := 6811; execute com using @num1, @num2; set @num1 := 6813; set @num2 := 6813; execute com using @num1, @num2; set @num1 := 6821; set @num2 := 6821; execute com using @num1, @num2; set @num1 := 6822; set @num2 := 6822; execute com using @num1, @num2; set @num1 := 6824; set @num2 := 6824; execute com using @num1, @num2; set @num1 := 6827; set @num2 := 6827; execute com using @num1, @num2; set @num1 := 6834; set @num2 := 6834; execute com using @num1, @num2; set @num1 := 6845; set @num2 := 6845; execute com using @num1, @num2; set @num1 := 6846; set @num2 := 6846; execute com using @num1, @num2; set @num1 := 6849; set @num2 := 6849; execute com using @num1, @num2; set @num1 := 6851; set @num2 := 6851; execute com using @num1, @num2; set @num1 := 6852; set @num2 := 6852; execute com using @num1, @num2; set @num1 := 6859; set @num2 := 6859; execute com using @num1, @num2; set @num1 := 6865; set @num2 := 6865; execute com using @num1, @num2; set @num1 := 6868; set @num2 := 6868; execute com using @num1, @num2; set @num1 := 6876; set @num2 := 6876; execute com using @num1, @num2; set @num1 := 6880; set @num2 := 6880; execute com using @num1, @num2; set @num1 := 6881; set @num2 := 6881; execute com using @num1, @num2; set @num1 := 6882; set @num2 := 6882; execute com using @num1, @num2; set @num1 := 6883; set @num2 := 6883; execute com using @num1, @num2; set @num1 := 6884; set @num2 := 6884; execute com using @num1, @num2; set @num1 := 6886; set @num2 := 6886; execute com using @num1, @num2; set @num1 := 6889; set @num2 := 6889; execute com using @num1, @num2; set @num1 := 6902; set @num2 := 6902; execute com using @num1, @num2; set @num1 := 6904; set @num2 := 6904; execute com using @num1, @num2; set @num1 := 6907; set @num2 := 6907; execute com using @num1, @num2; set @num1 := 6910; set @num2 := 6910; execute com using @num1, @num2; set @num1 := 6911; set @num2 := 6911; execute com using @num1, @num2; set @num1 := 6916; set @num2 := 6916; execute com using @num1, @num2; set @num1 := 6921; set @num2 := 6921; execute com using @num1, @num2; set @num1 := 6922; set @num2 := 6922; execute com using @num1, @num2; set @num1 := 6927; set @num2 := 6927; execute com using @num1, @num2; set @num1 := 6928; set @num2 := 6928; execute com using @num1, @num2; set @num1 := 6932; set @num2 := 6932; execute com using @num1, @num2; set @num1 := 6933; set @num2 := 6933; execute com using @num1, @num2; set @num1 := 6936; set @num2 := 6936; execute com using @num1, @num2; set @num1 := 6941; set @num2 := 6941; execute com using @num1, @num2; set @num1 := 6942; set @num2 := 6942; execute com using @num1, @num2; set @num1 := 6962; set @num2 := 6962; execute com using @num1, @num2; set @num1 := 6963; set @num2 := 6963; execute com using @num1, @num2; set @num1 := 6968; set @num2 := 6968; execute com using @num1, @num2; set @num1 := 6972; set @num2 := 6972; execute com using @num1, @num2; set @num1 := 6984; set @num2 := 6984; execute com using @num1, @num2; set @num1 := 6985; set @num2 := 6985; execute com using @num1, @num2; set @num1 := 6991; set @num2 := 6991; execute com using @num1, @num2; set @num1 := 6997; set @num2 := 6997; execute com using @num1, @num2; set @num1 := 6999; set @num2 := 6999; execute com using @num1, @num2; set @num1 := 7000; set @num2 := 7000; execute com using @num1, @num2; set @num1 := 7012; set @num2 := 7012; execute com using @num1, @num2; set @num1 := 7016; set @num2 := 7016; execute com using @num1, @num2; set @num1 := 7018; set @num2 := 7018; execute com using @num1, @num2; set @num1 := 7022; set @num2 := 7022; execute com using @num1, @num2; set @num1 := 7023; set @num2 := 7023; execute com using @num1, @num2; set @num1 := 7025; set @num2 := 7025; execute com using @num1, @num2; set @num1 := 7030; set @num2 := 7030; execute com using @num1, @num2; set @num1 := 7039; set @num2 := 7039; execute com using @num1, @num2; set @num1 := 7043; set @num2 := 7043; execute com using @num1, @num2; set @num1 := 7044; set @num2 := 7044; execute com using @num1, @num2; set @num1 := 7045; set @num2 := 7045; execute com using @num1, @num2; set @num1 := 7053; set @num2 := 7053; execute com using @num1, @num2; set @num1 := 7056; set @num2 := 7056; execute com using @num1, @num2; set @num1 := 7063; set @num2 := 7063; execute com using @num1, @num2; set @num1 := 7067; set @num2 := 7067; execute com using @num1, @num2; set @num1 := 7089; set @num2 := 7089; execute com using @num1, @num2; set @num1 := 7100; set @num2 := 7100; execute com using @num1, @num2; set @num1 := 7104; set @num2 := 7104; execute com using @num1, @num2; set @num1 := 7110; set @num2 := 7110; execute com using @num1, @num2; set @num1 := 7119; set @num2 := 7119; execute com using @num1, @num2; set @num1 := 7122; set @num2 := 7122; execute com using @num1, @num2; set @num1 := 7123; set @num2 := 7123; execute com using @num1, @num2; set @num1 := 7129; set @num2 := 7129; execute com using @num1, @num2; set @num1 := 7131; set @num2 := 7131; execute com using @num1, @num2; set @num1 := 7143; set @num2 := 7143; execute com using @num1, @num2; set @num1 := 7147; set @num2 := 7147; execute com using @num1, @num2; set @num1 := 7164; set @num2 := 7164; execute com using @num1, @num2; set @num1 := 7172; set @num2 := 7172; execute com using @num1, @num2; set @num1 := 7175; set @num2 := 7175; execute com using @num1, @num2; set @num1 := 7176; set @num2 := 7176; execute com using @num1, @num2; set @num1 := 7179; set @num2 := 7179; execute com using @num1, @num2; set @num1 := 7180; set @num2 := 7180; execute com using @num1, @num2; set @num1 := 7182; set @num2 := 7182; execute com using @num1, @num2; set @num1 := 7183; set @num2 := 7183; execute com using @num1, @num2; set @num1 := 7185; set @num2 := 7185; execute com using @num1, @num2; set @num1 := 7188; set @num2 := 7188; execute com using @num1, @num2; set @num1 := 7196; set @num2 := 7196; execute com using @num1, @num2; set @num1 := 7199; set @num2 := 7199; execute com using @num1, @num2; set @num1 := 7200; set @num2 := 7200; execute com using @num1, @num2; set @num1 := 7211; set @num2 := 7211; execute com using @num1, @num2; set @num1 := 7212; set @num2 := 7212; execute com using @num1, @num2; set @num1 := 7218; set @num2 := 7218; execute com using @num1, @num2; set @num1 := 7220; set @num2 := 7220; execute com using @num1, @num2; set @num1 := 7222; set @num2 := 7222; execute com using @num1, @num2; set @num1 := 7230; set @num2 := 7230; execute com using @num1, @num2; set @num1 := 7234; set @num2 := 7234; execute com using @num1, @num2; set @num1 := 7236; set @num2 := 7236; execute com using @num1, @num2; set @num1 := 7239; set @num2 := 7239; 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...