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 := 7243; set @num2 := 7243; execute com using @num1, @num2; set @num1 := 7252; set @num2 := 7252; execute com using @num1, @num2; set @num1 := 7257; set @num2 := 7257; execute com using @num1, @num2; set @num1 := 7258; set @num2 := 7258; execute com using @num1, @num2; set @num1 := 7264; set @num2 := 7264; execute com using @num1, @num2; set @num1 := 7271; set @num2 := 7271; execute com using @num1, @num2; set @num1 := 7272; set @num2 := 7272; execute com using @num1, @num2; set @num1 := 7273; set @num2 := 7273; execute com using @num1, @num2; set @num1 := 7274; set @num2 := 7274; execute com using @num1, @num2; set @num1 := 7279; set @num2 := 7279; execute com using @num1, @num2; set @num1 := 7283; set @num2 := 7283; execute com using @num1, @num2; set @num1 := 7293; set @num2 := 7293; execute com using @num1, @num2; set @num1 := 7294; set @num2 := 7294; execute com using @num1, @num2; set @num1 := 7295; set @num2 := 7295; execute com using @num1, @num2; set @num1 := 7299; set @num2 := 7299; execute com using @num1, @num2; set @num1 := 7300; set @num2 := 7300; execute com using @num1, @num2; set @num1 := 7301; set @num2 := 7301; execute com using @num1, @num2; set @num1 := 7303; set @num2 := 7303; execute com using @num1, @num2; set @num1 := 7304; set @num2 := 7304; execute com using @num1, @num2; set @num1 := 7306; set @num2 := 7306; execute com using @num1, @num2; set @num1 := 7312; set @num2 := 7312; execute com using @num1, @num2; set @num1 := 7316; set @num2 := 7316; execute com using @num1, @num2; set @num1 := 7322; set @num2 := 7322; execute com using @num1, @num2; set @num1 := 7324; set @num2 := 7324; execute com using @num1, @num2; set @num1 := 7327; set @num2 := 7327; execute com using @num1, @num2; set @num1 := 7329; set @num2 := 7329; execute com using @num1, @num2; set @num1 := 7333; set @num2 := 7333; execute com using @num1, @num2; set @num1 := 7341; set @num2 := 7341; execute com using @num1, @num2; set @num1 := 7344; set @num2 := 7344; execute com using @num1, @num2; set @num1 := 7345; set @num2 := 7345; execute com using @num1, @num2; set @num1 := 7346; set @num2 := 7346; execute com using @num1, @num2; set @num1 := 7355; set @num2 := 7355; execute com using @num1, @num2; set @num1 := 7362; set @num2 := 7362; execute com using @num1, @num2; set @num1 := 7363; set @num2 := 7363; execute com using @num1, @num2; set @num1 := 7366; set @num2 := 7366; execute com using @num1, @num2; set @num1 := 7376; set @num2 := 7376; execute com using @num1, @num2; set @num1 := 7378; set @num2 := 7378; execute com using @num1, @num2; set @num1 := 7380; set @num2 := 7380; execute com using @num1, @num2; set @num1 := 7381; set @num2 := 7381; execute com using @num1, @num2; set @num1 := 7382; set @num2 := 7382; execute com using @num1, @num2; set @num1 := 7383; set @num2 := 7383; execute com using @num1, @num2; set @num1 := 7388; set @num2 := 7388; execute com using @num1, @num2; set @num1 := 7390; set @num2 := 7390; execute com using @num1, @num2; set @num1 := 7392; set @num2 := 7392; execute com using @num1, @num2; set @num1 := 7397; set @num2 := 7397; execute com using @num1, @num2; set @num1 := 7398; set @num2 := 7398; execute com using @num1, @num2; set @num1 := 7400; set @num2 := 7400; execute com using @num1, @num2; set @num1 := 7401; set @num2 := 7401; execute com using @num1, @num2; set @num1 := 7406; set @num2 := 7406; execute com using @num1, @num2; set @num1 := 7407; set @num2 := 7407; execute com using @num1, @num2; set @num1 := 7411; set @num2 := 7411; execute com using @num1, @num2; set @num1 := 7426; set @num2 := 7426; execute com using @num1, @num2; set @num1 := 7431; set @num2 := 7431; execute com using @num1, @num2; set @num1 := 7434; set @num2 := 7434; execute com using @num1, @num2; set @num1 := 7437; set @num2 := 7437; execute com using @num1, @num2; set @num1 := 7441; set @num2 := 7441; execute com using @num1, @num2; set @num1 := 7447; set @num2 := 7447; execute com using @num1, @num2; set @num1 := 7451; set @num2 := 7451; execute com using @num1, @num2; set @num1 := 7455; set @num2 := 7455; execute com using @num1, @num2; set @num1 := 7462; set @num2 := 7462; execute com using @num1, @num2; set @num1 := 7463; set @num2 := 7463; execute com using @num1, @num2; set @num1 := 7471; set @num2 := 7471; execute com using @num1, @num2; set @num1 := 7472; set @num2 := 7472; execute com using @num1, @num2; set @num1 := 7473; set @num2 := 7473; execute com using @num1, @num2; set @num1 := 7475; set @num2 := 7475; execute com using @num1, @num2; set @num1 := 7482; set @num2 := 7482; execute com using @num1, @num2; set @num1 := 7485; set @num2 := 7485; execute com using @num1, @num2; set @num1 := 7489; set @num2 := 7489; execute com using @num1, @num2; set @num1 := 7491; set @num2 := 7491; execute com using @num1, @num2; set @num1 := 7499; set @num2 := 7499; execute com using @num1, @num2; set @num1 := 7502; set @num2 := 7502; execute com using @num1, @num2; set @num1 := 7504; set @num2 := 7504; execute com using @num1, @num2; set @num1 := 7512; set @num2 := 7512; execute com using @num1, @num2; set @num1 := 7514; set @num2 := 7514; execute com using @num1, @num2; set @num1 := 7517; set @num2 := 7517; execute com using @num1, @num2; set @num1 := 7519; set @num2 := 7519; execute com using @num1, @num2; set @num1 := 7522; set @num2 := 7522; execute com using @num1, @num2; set @num1 := 7525; set @num2 := 7525; execute com using @num1, @num2; set @num1 := 7527; set @num2 := 7527; execute com using @num1, @num2; set @num1 := 7541; set @num2 := 7541; execute com using @num1, @num2; set @num1 := 7546; set @num2 := 7546; execute com using @num1, @num2; set @num1 := 7548; set @num2 := 7548; execute com using @num1, @num2; set @num1 := 7550; set @num2 := 7550; execute com using @num1, @num2; set @num1 := 7555; set @num2 := 7555; execute com using @num1, @num2; set @num1 := 7558; set @num2 := 7558; execute com using @num1, @num2; set @num1 := 7561; set @num2 := 7561; execute com using @num1, @num2; set @num1 := 7564; set @num2 := 7564; execute com using @num1, @num2; set @num1 := 7573; set @num2 := 7573; execute com using @num1, @num2; set @num1 := 7577; set @num2 := 7577; execute com using @num1, @num2; set @num1 := 7578; set @num2 := 7578; execute com using @num1, @num2; set @num1 := 7585; set @num2 := 7585; execute com using @num1, @num2; set @num1 := 7586; set @num2 := 7586; execute com using @num1, @num2; set @num1 := 7587; set @num2 := 7587; execute com using @num1, @num2; set @num1 := 7591; set @num2 := 7591; execute com using @num1, @num2; set @num1 := 7592; set @num2 := 7592; execute com using @num1, @num2; set @num1 := 7593; set @num2 := 7593; execute com using @num1, @num2; set @num1 := 7597; set @num2 := 7597; execute com using @num1, @num2; set @num1 := 7599; set @num2 := 7599; execute com using @num1, @num2; set @num1 := 7601; set @num2 := 7601; execute com using @num1, @num2; set @num1 := 7602; set @num2 := 7602; 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...