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 := 5134; set @num2 := 5134; execute com using @num1, @num2; set @num1 := 5142; set @num2 := 5142; execute com using @num1, @num2; set @num1 := 5163; set @num2 := 5163; execute com using @num1, @num2; set @num1 := 5165; set @num2 := 5165; execute com using @num1, @num2; set @num1 := 5166; set @num2 := 5166; execute com using @num1, @num2; set @num1 := 5170; set @num2 := 5170; execute com using @num1, @num2; set @num1 := 5176; set @num2 := 5176; execute com using @num1, @num2; set @num1 := 5177; set @num2 := 5177; execute com using @num1, @num2; set @num1 := 5178; set @num2 := 5178; execute com using @num1, @num2; set @num1 := 5180; set @num2 := 5180; execute com using @num1, @num2; set @num1 := 5184; set @num2 := 5184; execute com using @num1, @num2; set @num1 := 5185; set @num2 := 5185; execute com using @num1, @num2; set @num1 := 5187; set @num2 := 5187; execute com using @num1, @num2; set @num1 := 5188; set @num2 := 5188; execute com using @num1, @num2; set @num1 := 5192; set @num2 := 5192; execute com using @num1, @num2; set @num1 := 5193; set @num2 := 5193; execute com using @num1, @num2; set @num1 := 5194; set @num2 := 5194; execute com using @num1, @num2; set @num1 := 5195; set @num2 := 5195; execute com using @num1, @num2; set @num1 := 5196; set @num2 := 5196; execute com using @num1, @num2; set @num1 := 5197; set @num2 := 5197; execute com using @num1, @num2; set @num1 := 5199; set @num2 := 5199; execute com using @num1, @num2; set @num1 := 5211; set @num2 := 5211; execute com using @num1, @num2; set @num1 := 5215; set @num2 := 5215; execute com using @num1, @num2; set @num1 := 5216; set @num2 := 5216; execute com using @num1, @num2; set @num1 := 5218; set @num2 := 5218; execute com using @num1, @num2; set @num1 := 5222; set @num2 := 5222; execute com using @num1, @num2; set @num1 := 5224; set @num2 := 5224; execute com using @num1, @num2; set @num1 := 5232; set @num2 := 5232; execute com using @num1, @num2; set @num1 := 5233; set @num2 := 5233; execute com using @num1, @num2; set @num1 := 5236; set @num2 := 5236; execute com using @num1, @num2; set @num1 := 5237; set @num2 := 5237; execute com using @num1, @num2; set @num1 := 5247; set @num2 := 5247; execute com using @num1, @num2; set @num1 := 5248; set @num2 := 5248; execute com using @num1, @num2; set @num1 := 5249; set @num2 := 5249; execute com using @num1, @num2; set @num1 := 5254; set @num2 := 5254; execute com using @num1, @num2; set @num1 := 5259; set @num2 := 5259; execute com using @num1, @num2; set @num1 := 5267; set @num2 := 5267; execute com using @num1, @num2; set @num1 := 5269; set @num2 := 5269; execute com using @num1, @num2; set @num1 := 5270; set @num2 := 5270; execute com using @num1, @num2; set @num1 := 5272; set @num2 := 5272; execute com using @num1, @num2; set @num1 := 5278; set @num2 := 5278; execute com using @num1, @num2; set @num1 := 5282; set @num2 := 5282; execute com using @num1, @num2; set @num1 := 5288; set @num2 := 5288; execute com using @num1, @num2; set @num1 := 5295; set @num2 := 5295; execute com using @num1, @num2; set @num1 := 5299; set @num2 := 5299; execute com using @num1, @num2; set @num1 := 5300; set @num2 := 5300; execute com using @num1, @num2; set @num1 := 5306; set @num2 := 5306; execute com using @num1, @num2; set @num1 := 5309; set @num2 := 5309; execute com using @num1, @num2; set @num1 := 5311; set @num2 := 5311; execute com using @num1, @num2; set @num1 := 5313; set @num2 := 5313; execute com using @num1, @num2; set @num1 := 5314; set @num2 := 5314; execute com using @num1, @num2; set @num1 := 5315; set @num2 := 5315; execute com using @num1, @num2; set @num1 := 5320; set @num2 := 5320; execute com using @num1, @num2; set @num1 := 5321; set @num2 := 5321; execute com using @num1, @num2; set @num1 := 5322; set @num2 := 5322; execute com using @num1, @num2; set @num1 := 5323; set @num2 := 5323; execute com using @num1, @num2; set @num1 := 5326; set @num2 := 5326; execute com using @num1, @num2; set @num1 := 5329; set @num2 := 5329; execute com using @num1, @num2; set @num1 := 5330; set @num2 := 5330; execute com using @num1, @num2; set @num1 := 5336; set @num2 := 5336; execute com using @num1, @num2; set @num1 := 5346; set @num2 := 5346; execute com using @num1, @num2; set @num1 := 5347; set @num2 := 5347; execute com using @num1, @num2; set @num1 := 5350; set @num2 := 5350; execute com using @num1, @num2; set @num1 := 5355; set @num2 := 5355; execute com using @num1, @num2; set @num1 := 5360; set @num2 := 5360; execute com using @num1, @num2; set @num1 := 5363; set @num2 := 5363; execute com using @num1, @num2; set @num1 := 5367; set @num2 := 5367; execute com using @num1, @num2; set @num1 := 5371; set @num2 := 5371; execute com using @num1, @num2; set @num1 := 5373; set @num2 := 5373; execute com using @num1, @num2; set @num1 := 5374; set @num2 := 5374; execute com using @num1, @num2; set @num1 := 5375; set @num2 := 5375; execute com using @num1, @num2; set @num1 := 5376; set @num2 := 5376; execute com using @num1, @num2; set @num1 := 5377; set @num2 := 5377; execute com using @num1, @num2; set @num1 := 5378; set @num2 := 5378; execute com using @num1, @num2; set @num1 := 5382; set @num2 := 5382; execute com using @num1, @num2; set @num1 := 5388; set @num2 := 5388; execute com using @num1, @num2; set @num1 := 5390; set @num2 := 5390; execute com using @num1, @num2; set @num1 := 5391; set @num2 := 5391; execute com using @num1, @num2; set @num1 := 5395; set @num2 := 5395; execute com using @num1, @num2; set @num1 := 5399; set @num2 := 5399; execute com using @num1, @num2; set @num1 := 5401; set @num2 := 5401; execute com using @num1, @num2; set @num1 := 5403; set @num2 := 5403; execute com using @num1, @num2; set @num1 := 5405; set @num2 := 5405; execute com using @num1, @num2; set @num1 := 5407; set @num2 := 5407; execute com using @num1, @num2; set @num1 := 5408; set @num2 := 5408; execute com using @num1, @num2; set @num1 := 5412; set @num2 := 5412; execute com using @num1, @num2; set @num1 := 5415; set @num2 := 5415; execute com using @num1, @num2; set @num1 := 5416; set @num2 := 5416; execute com using @num1, @num2; set @num1 := 5421; set @num2 := 5421; execute com using @num1, @num2; set @num1 := 5430; set @num2 := 5430; execute com using @num1, @num2; set @num1 := 5437; set @num2 := 5437; execute com using @num1, @num2; set @num1 := 5438; set @num2 := 5438; execute com using @num1, @num2; set @num1 := 5439; set @num2 := 5439; execute com using @num1, @num2; set @num1 := 5447; set @num2 := 5447; execute com using @num1, @num2; set @num1 := 5455; set @num2 := 5455; execute com using @num1, @num2; set @num1 := 5468; set @num2 := 5468; execute com using @num1, @num2; set @num1 := 5470; set @num2 := 5470; execute com using @num1, @num2; set @num1 := 5471; set @num2 := 5471; execute com using @num1, @num2; set @num1 := 5478; set @num2 := 5478; execute com using @num1, @num2; set @num1 := 5479; set @num2 := 5479; 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...