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 := 10870; set @num2 := 10870; execute com using @num1, @num2; set @num1 := 10874; set @num2 := 10874; execute com using @num1, @num2; set @num1 := 10875; set @num2 := 10875; execute com using @num1, @num2; set @num1 := 10878; set @num2 := 10878; execute com using @num1, @num2; set @num1 := 10882; set @num2 := 10882; execute com using @num1, @num2; set @num1 := 10885; set @num2 := 10885; execute com using @num1, @num2; set @num1 := 10886; set @num2 := 10886; execute com using @num1, @num2; set @num1 := 10890; set @num2 := 10890; execute com using @num1, @num2; set @num1 := 10891; set @num2 := 10891; execute com using @num1, @num2; set @num1 := 10893; set @num2 := 10893; execute com using @num1, @num2; set @num1 := 10896; set @num2 := 10896; execute com using @num1, @num2; set @num1 := 10902; set @num2 := 10902; execute com using @num1, @num2; set @num1 := 10911; set @num2 := 10911; execute com using @num1, @num2; set @num1 := 10913; set @num2 := 10913; execute com using @num1, @num2; set @num1 := 10918; set @num2 := 10918; execute com using @num1, @num2; set @num1 := 10923; set @num2 := 10923; execute com using @num1, @num2; set @num1 := 10929; set @num2 := 10929; execute com using @num1, @num2; set @num1 := 10930; set @num2 := 10930; execute com using @num1, @num2; set @num1 := 10936; set @num2 := 10936; execute com using @num1, @num2; set @num1 := 10937; set @num2 := 10937; execute com using @num1, @num2; set @num1 := 10938; set @num2 := 10938; execute com using @num1, @num2; set @num1 := 10939; set @num2 := 10939; execute com using @num1, @num2; set @num1 := 10940; set @num2 := 10940; execute com using @num1, @num2; set @num1 := 10946; set @num2 := 10946; execute com using @num1, @num2; set @num1 := 10948; set @num2 := 10948; execute com using @num1, @num2; set @num1 := 10951; set @num2 := 10951; execute com using @num1, @num2; set @num1 := 10957; set @num2 := 10957; execute com using @num1, @num2; set @num1 := 10958; set @num2 := 10958; execute com using @num1, @num2; set @num1 := 10965; set @num2 := 10965; execute com using @num1, @num2; set @num1 := 10969; set @num2 := 10969; execute com using @num1, @num2; set @num1 := 10972; set @num2 := 10972; execute com using @num1, @num2; set @num1 := 10974; set @num2 := 10974; execute com using @num1, @num2; set @num1 := 10975; set @num2 := 10975; execute com using @num1, @num2; set @num1 := 10979; set @num2 := 10979; execute com using @num1, @num2; set @num1 := 10980; set @num2 := 10980; execute com using @num1, @num2; set @num1 := 10991; set @num2 := 10991; execute com using @num1, @num2; set @num1 := 10997; set @num2 := 10997; execute com using @num1, @num2; set @num1 := 10998; set @num2 := 10998; execute com using @num1, @num2; set @num1 := 11001; set @num2 := 11001; execute com using @num1, @num2; set @num1 := 11002; set @num2 := 11002; execute com using @num1, @num2; set @num1 := 11006; set @num2 := 11006; execute com using @num1, @num2; set @num1 := 11007; set @num2 := 11007; execute com using @num1, @num2; set @num1 := 11008; set @num2 := 11008; execute com using @num1, @num2; set @num1 := 11009; set @num2 := 11009; execute com using @num1, @num2; set @num1 := 11010; set @num2 := 11010; execute com using @num1, @num2; set @num1 := 11011; set @num2 := 11011; execute com using @num1, @num2; set @num1 := 11015; set @num2 := 11015; execute com using @num1, @num2; set @num1 := 11020; set @num2 := 11020; execute com using @num1, @num2; set @num1 := 11021; set @num2 := 11021; execute com using @num1, @num2; set @num1 := 11022; set @num2 := 11022; execute com using @num1, @num2; set @num1 := 11023; set @num2 := 11023; execute com using @num1, @num2; set @num1 := 11025; set @num2 := 11025; execute com using @num1, @num2; set @num1 := 11028; set @num2 := 11028; execute com using @num1, @num2; set @num1 := 11033; set @num2 := 11033; execute com using @num1, @num2; set @num1 := 11036; set @num2 := 11036; execute com using @num1, @num2; set @num1 := 11038; set @num2 := 11038; execute com using @num1, @num2; set @num1 := 11041; set @num2 := 11041; execute com using @num1, @num2; set @num1 := 11042; set @num2 := 11042; execute com using @num1, @num2; set @num1 := 11049; set @num2 := 11049; execute com using @num1, @num2; set @num1 := 11054; set @num2 := 11054; execute com using @num1, @num2; set @num1 := 11057; set @num2 := 11057; execute com using @num1, @num2; set @num1 := 11059; set @num2 := 11059; execute com using @num1, @num2; set @num1 := 11062; set @num2 := 11062; execute com using @num1, @num2; set @num1 := 11063; set @num2 := 11063; execute com using @num1, @num2; set @num1 := 11064; set @num2 := 11064; execute com using @num1, @num2; set @num1 := 11090; set @num2 := 11090; execute com using @num1, @num2; set @num1 := 11092; set @num2 := 11092; execute com using @num1, @num2; set @num1 := 11101; set @num2 := 11101; execute com using @num1, @num2; set @num1 := 11104; set @num2 := 11104; execute com using @num1, @num2; set @num1 := 11107; set @num2 := 11107; execute com using @num1, @num2; set @num1 := 11109; set @num2 := 11109; execute com using @num1, @num2; set @num1 := 11110; set @num2 := 11110; execute com using @num1, @num2; set @num1 := 11113; set @num2 := 11113; execute com using @num1, @num2; set @num1 := 11114; set @num2 := 11114; execute com using @num1, @num2; set @num1 := 11118; set @num2 := 11118; execute com using @num1, @num2; set @num1 := 11119; set @num2 := 11119; execute com using @num1, @num2; set @num1 := 11121; set @num2 := 11121; execute com using @num1, @num2; set @num1 := 11127; set @num2 := 11127; execute com using @num1, @num2; set @num1 := 11129; set @num2 := 11129; execute com using @num1, @num2; set @num1 := 11141; set @num2 := 11141; execute com using @num1, @num2; set @num1 := 11142; set @num2 := 11142; execute com using @num1, @num2; set @num1 := 11143; set @num2 := 11143; execute com using @num1, @num2; set @num1 := 11145; set @num2 := 11145; execute com using @num1, @num2; set @num1 := 11157; set @num2 := 11157; execute com using @num1, @num2; set @num1 := 11158; set @num2 := 11158; execute com using @num1, @num2; set @num1 := 11162; set @num2 := 11162; execute com using @num1, @num2; set @num1 := 11164; set @num2 := 11164; execute com using @num1, @num2; set @num1 := 11168; set @num2 := 11168; execute com using @num1, @num2; set @num1 := 11169; set @num2 := 11169; execute com using @num1, @num2; set @num1 := 11170; set @num2 := 11170; execute com using @num1, @num2; set @num1 := 11181; set @num2 := 11181; execute com using @num1, @num2; set @num1 := 11182; set @num2 := 11182; execute com using @num1, @num2; set @num1 := 11184; set @num2 := 11184; execute com using @num1, @num2; set @num1 := 11185; set @num2 := 11185; execute com using @num1, @num2; set @num1 := 11188; set @num2 := 11188; execute com using @num1, @num2; set @num1 := 11194; set @num2 := 11194; execute com using @num1, @num2; set @num1 := 11195; set @num2 := 11195; execute com using @num1, @num2; set @num1 := 11223; set @num2 := 11223; execute com using @num1, @num2; set @num1 := 11225; set @num2 := 11225; execute com using @num1, @num2; set @num1 := 11227; set @num2 := 11227; execute com using @num1, @num2; set @num1 := 11228; set @num2 := 11228; execute com using @num1, @num2; set @num1 := 11232; set @num2 := 11232; execute com using @num1, @num2; set @num1 := 11236; set @num2 := 11236; execute com using @num1, @num2; set @num1 := 11237; set @num2 := 11237; execute com using @num1, @num2; set @num1 := 11238; set @num2 := 11238; execute com using @num1, @num2; set @num1 := 11240; set @num2 := 11240; execute com using @num1, @num2; set @num1 := 11242; set @num2 := 11242; execute com using @num1, @num2; set @num1 := 11246; set @num2 := 11246; execute com using @num1, @num2; set @num1 := 11250; set @num2 := 11250; execute com using @num1, @num2; set @num1 := 11252; set @num2 := 11252; execute com using @num1, @num2; set @num1 := 11253; set @num2 := 11253; execute com using @num1, @num2; set @num1 := 11254; set @num2 := 11254; execute com using @num1, @num2; set @num1 := 11257; set @num2 := 11257; execute com using @num1, @num2; set @num1 := 11258; set @num2 := 11258; execute com using @num1, @num2; set @num1 := 11259; set @num2 := 11259; execute com using @num1, @num2; set @num1 := 11260; set @num2 := 11260; execute com using @num1, @num2; set @num1 := 11262; set @num2 := 11262; execute com using @num1, @num2; set @num1 := 11273; set @num2 := 11273; execute com using @num1, @num2; set @num1 := 11278; set @num2 := 11278; execute com using @num1, @num2; set @num1 := 11282; set @num2 := 11282; execute com using @num1, @num2; set @num1 := 11283; set @num2 := 11283; execute com using @num1, @num2; set @num1 := 11284; set @num2 := 11284; execute com using @num1, @num2; set @num1 := 11285; set @num2 := 11285; execute com using @num1, @num2; set @num1 := 11286; set @num2 := 11286; execute com using @num1, @num2; set @num1 := 11296; set @num2 := 11296; execute com using @num1, @num2; set @num1 := 11298; set @num2 := 11298; execute com using @num1, @num2; set @num1 := 11299; set @num2 := 11299; execute com using @num1, @num2; set @num1 := 11302; set @num2 := 11302; execute com using @num1, @num2; set @num1 := 11303; set @num2 := 11303; execute com using @num1, @num2; set @num1 := 11310; set @num2 := 11310; execute com using @num1, @num2; set @num1 := 11311; set @num2 := 11311; execute com using @num1, @num2; set @num1 := 11313; set @num2 := 11313; execute com using @num1, @num2; set @num1 := 11314; set @num2 := 11314; execute com using @num1, @num2; set @num1 := 11315; set @num2 := 11315; execute com using @num1, @num2; set @num1 := 11318; set @num2 := 11318; execute com using @num1, @num2; set @num1 := 11319; set @num2 := 11319; execute com using @num1, @num2; set @num1 := 11322; set @num2 := 11322; execute com using @num1, @num2; set @num1 := 11323; set @num2 := 11323; execute com using @num1, @num2; set @num1 := 11353; set @num2 := 11353; execute com using @num1, @num2; set @num1 := 11359; set @num2 := 11359; execute com using @num1, @num2; set @num1 := 11360; set @num2 := 11360; execute com using @num1, @num2; set @num1 := 11361; set @num2 := 11361; execute com using @num1, @num2; set @num1 := 11362; set @num2 := 11362; execute com using @num1, @num2; set @num1 := 11363; set @num2 := 11363; execute com using @num1, @num2; set @num1 := 11369; set @num2 := 11369; execute com using @num1, @num2; set @num1 := 11370; set @num2 := 11370; execute com using @num1, @num2; set @num1 := 11376; set @num2 := 11376; execute com using @num1, @num2; set @num1 := 11378; set @num2 := 11378; execute com using @num1, @num2; set @num1 := 11379; set @num2 := 11379; execute com using @num1, @num2; set @num1 := 11380; set @num2 := 11380; execute com using @num1, @num2; set @num1 := 11387; set @num2 := 11387; execute com using @num1, @num2; set @num1 := 11393; set @num2 := 11393; execute com using @num1, @num2; set @num1 := 11397; set @num2 := 11397; execute com using @num1, @num2; set @num1 := 11404; set @num2 := 11404; execute com using @num1, @num2; set @num1 := 11408; set @num2 := 11408; execute com using @num1, @num2; set @num1 := 11411; set @num2 := 11411; execute com using @num1, @num2; set @num1 := 11418; set @num2 := 11418; execute com using @num1, @num2; set @num1 := 11424; set @num2 := 11424; execute com using @num1, @num2; set @num1 := 11426; set @num2 := 11426; execute com using @num1, @num2; set @num1 := 11427; set @num2 := 11427; execute com using @num1, @num2; set @num1 := 11429; set @num2 := 11429; execute com using @num1, @num2; set @num1 := 11432; set @num2 := 11432; execute com using @num1, @num2; set @num1 := 11433; set @num2 := 11433; execute com using @num1, @num2; set @num1 := 11439; set @num2 := 11439; execute com using @num1, @num2; set @num1 := 11442; set @num2 := 11442; execute com using @num1, @num2; set @num1 := 11447; set @num2 := 11447; execute com using @num1, @num2; set @num1 := 11448; set @num2 := 11448; execute com using @num1, @num2; set @num1 := 11456; set @num2 := 11456; execute com using @num1, @num2; set @num1 := 11457; set @num2 := 11457; execute com using @num1, @num2; set @num1 := 11459; set @num2 := 11459; execute com using @num1, @num2; set @num1 := 11461; set @num2 := 11461; execute com using @num1, @num2; set @num1 := 11464; set @num2 := 11464; execute com using @num1, @num2; set @num1 := 11466; set @num2 := 11466; execute com using @num1, @num2; set @num1 := 11472; set @num2 := 11472; execute com using @num1, @num2; set @num1 := 11479; set @num2 := 11479; execute com using @num1, @num2; set @num1 := 11490; set @num2 := 11490; execute com using @num1, @num2; set @num1 := 11491; set @num2 := 11491; execute com using @num1, @num2; set @num1 := 11492; set @num2 := 11492; execute com using @num1, @num2; set @num1 := 11507; set @num2 := 11507; execute com using @num1, @num2; set @num1 := 11508; set @num2 := 11508; execute com using @num1, @num2; set @num1 := 11512; set @num2 := 11512; execute com using @num1, @num2; set @num1 := 11513; set @num2 := 11513; execute com using @num1, @num2; set @num1 := 11515; set @num2 := 11515; execute com using @num1, @num2; set @num1 := 11519; set @num2 := 11519; execute com using @num1, @num2; set @num1 := 11523; set @num2 := 11523; execute com using @num1, @num2; set @num1 := 11524; set @num2 := 11524; execute com using @num1, @num2; set @num1 := 11525; set @num2 := 11525; execute com using @num1, @num2; set @num1 := 11530; set @num2 := 11530; execute com using @num1, @num2; set @num1 := 11536; set @num2 := 11536; execute com using @num1, @num2; set @num1 := 11542; set @num2 := 11542; execute com using @num1, @num2; set @num1 := 11544; set @num2 := 11544; execute com using @num1, @num2; set @num1 := 11551; set @num2 := 11551; execute com using @num1, @num2; set @num1 := 11555; set @num2 := 11555; execute com using @num1, @num2; set @num1 := 11558; set @num2 := 11558; execute com using @num1, @num2; set @num1 := 11579; set @num2 := 11579; execute com using @num1, @num2; set @num1 := 11582; set @num2 := 11582; execute com using @num1, @num2; set @num1 := 11585; set @num2 := 11585; execute com using @num1, @num2; set @num1 := 11593; set @num2 := 11593; execute com using @num1, @num2; set @num1 := 11600; set @num2 := 11600; execute com using @num1, @num2; set @num1 := 11616; set @num2 := 11616; 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...