db_id,question,darija_question,evidence,SQL,schema,db_size video_games,List down at least five publishers of the games with number of sales less than 10000.,يمكن لك تذكر لي خمسة ديال الناشرين ديال الألعاب اللي تباعو قل من 10000 مرة.,publishers refers to publisher_name; number of sales less than 10000 refers to num_sales < 0.1;,SELECT T.publisher_name FROM ( SELECT DISTINCT T5.publisher_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN publisher AS T5 ON T4.publisher_id = T5.id WHERE T1.region_name = 'North America' AND T2.num_sales * 100000 < 10000 LIMIT 5 ) t,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,How many games did BMG Interactive Entertainment release in 2012?,شحال من لعبة خرجات BMG Interactive Entertainment ف 2012؟,BMG Interactive Entertainment refers to publisher_name = 'BMG Interactive Entertainment'; release in 2012 refers to release_year = 2012;,SELECT COUNT(DISTINCT T2.game_id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id WHERE T3.release_year = 2012,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Please list the departments the students are absent from school for 9 months are in.,عفاك جبد ليا الشُعب ديال التلامذ اللي غائبين على المدرسة هادي 9 شهور.,absent from school for 9 months refers to month = 9,SELECT T2.organ FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T1.`month` = 9,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,How many crimes had happened in the community area with the most population?,شحال من جريمة وقعات ف المنطقة اللي فيها اكثر نسبة دسكان؟,the most population refers to max(population),SELECT COUNT(T2.report_no) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no GROUP BY T1.community_area_name ORDER BY T1.population DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,List 10 students that have no due payments and are not males.,عطيني لائحة ديال 10 ديال الطالبات اللي ما عندهومش شي مستحقات.,no due payments refers to bool = 'neg'; not males refers to not in male table,SELECT T1.name FROM no_payment_due AS T1 INNER JOIN person AS T2 ON T1.`name` = T2.`name` WHERE T2.`name` NOT IN ( SELECT name FROM male ) AND T1.bool = 'neg',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,"For a game had a score of 1-8 in the year of 2011, what division was that game in? Give the full name of the division.","الماتش اللي تسالا ب 1-8 فعام 2011, شمن ديفيزيون كان داك الماتش؟عطيني السمية كاملة ديال الديفيزيون",2011 refers to season; a score of 1-8 refers to FTHG = '1' and FTAG = '8';,"SELECT T2.division, T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2011 AND T1.FTHG = 1 AND T1.FTAG = 8","CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,What is the name of the district with the highest number of domestic violence cases?,شنو سميّة المنطقة اللي فيها أعلى عدد ديال حالات العنف الأسري؟,domestic violence refers to domestic = 'TRUE'; highest number of case refers to Max(Count(district_no)); name of district refers to distric_name,SELECT T2.district_name FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.domestic = 'TRUE' GROUP BY T2.district_name ORDER BY COUNT(T1.district_no) DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many SMC's students that absent for 7 months?,شحال من طالب فالSMC اللي غابو 7 شهور؟,SMC's students refers to school = 'smc'; absent for 7 months refers to month = 7,SELECT COUNT(T1.name) FROM enrolled AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name WHERE T1.school = 'smc' AND T2.month = 7,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,List the names of disabled students enlisted in the navy.,قوللي السميات ديال الطلبة المعاقين اللي مسجلين فالبحرية.,navy refers to organ = 'navy';,SELECT T1.name FROM enlist AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.organ = 'navy',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,"In 2004, what are the names of the platforms where Codemasters publish its games?",فـ 2004، شنو السميات ديال البلاتفورمات اللي كتبيبليي فيهم Codemasters الألعاب ديالها ؟,name of platform refers to platform_name; Codemasters refers to publisher_name = 'Codemasters'; in 2004 refers to release_year = 2004,SELECT T4.platform_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T3.release_year = 2004 AND T1.publisher_name = 'Codemasters',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,List all students that have been absent for 6 months.,سجل جميع التلاميذ اللي غابوا لمدة 6 شهور.,absent for 6 months `month` = 6;,SELECT name FROM longest_absense_from_school WHERE `month` = 6,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,How many games were released in the year 2001?,شحال من لعبة خرجات ف عام 2001؟,released in the year 2001 refers to release_year = 2001;,SELECT COUNT(id) FROM game_platform AS T WHERE T.release_year = 2001,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,List down the game platform ID and region name where the games achieved 20000 sales and below.,كتّب لي الID ديال المنصات دالالعاب والسميات دالجهات اللي حقّقو فيهم الالعاب 20000 مبيعة ولا قل.,20000 sales and below refers to num_sales < 0.2;,"SELECT T2.game_platform_id, T1.region_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T2.num_sales * 100000 <= 20000","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,What genres are the games published by 'Agatsuma Entertainment'?,شنو أنواع الألعاب اللي كتنشرهم 'Agatsuma Entertainment'؟,genres refers to genre_name; 'Agatsuma Entertainment' refers to publisher_name = 'Agatsuma Entertainment';,SELECT T4.genre_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T1.publisher_name = 'Agatsuma Entertainment',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Which year has the most number of PC games releases?,اينا عام كان الانتاج ديال أكبر عدد ألعاب للبيسي؟,year refers to release_year; the most number of releases refers to max(count(game_id)),"SELECT T.release_year FROM ( SELECT T2.release_year, COUNT(DISTINCT T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T1.platform_name = 'PC' GROUP BY T2.release_year ORDER BY COUNT(DISTINCT T3.game_id) DESC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,What are the sales made by the games in Japan region?,شنو هي المبيعات لي دروها الألعاب فاليابان؟,sales = SUM(num_sales); Japan region refers to region_name = 'Japan';,SELECT SUM(CASE WHEN T2.region_name = 'Japan' THEN T1.num_sales ELSE 0 END) AS nums FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,How many shooter games are there?,شحال من لعبة ديال التير كاينة؟,shooter games refers to game_name WHERE genre_name = 'shooter';,SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Shooter',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,"Among students with 1 month of absenses, how many of them are enlisted in the air force department?",ما بين التلاميذ اللي غابوا شهر، شحال منهم مسجلين في قسم القوات الجوية؟,1 month of absences refers to month = 1; department refers to organ; organ = 'air_force';,SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T1.month = 1 AND T2.organ = 'air_force',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,List down the game platform IDs of games with a region ID of 1.,كتب الأرقام ديال منصات الألعاب اللي رقم الجهة ديالهم هو 1,,SELECT T.game_platform_id FROM region_sales AS T WHERE T.region_id = 1,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Calculate the difference in sales between the games released in 1990 and 2000.,حسب الفرق فالمبيعات بين الألعاب اللي خرجات ف 1990 و 2000.,"difference = SUBTRACT(SUM(num_sales WHERE release_year = 2000), SUM(num_sales WHERE release_year = 1990));",SELECT SUM(CASE WHEN T2.release_year = 2000 THEN T1.num_sales ELSE 0 END) - SUM(CASE WHEN T2.release_year = 1990 THEN T1.num_sales ELSE 0 END) FROM region_sales AS T1 INNER JOIN game_platform AS T2 ON T1.game_platform_id = T2.id,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,How many home victories does the Bundesliga division have in more or less than the Premier League division in the 2021 season?,شحال من رباح فالدار عند الاندية ديال Bundesliga كثر ولاّ قل من الاندية ديال Premier League فموسم 2021؟,"Bundesliga and the Premier League are names of division; home victories refer to FTR = 'H', where H stands for home victory; SUBTRACT(COUNT(FTR = 'H' where season = 2021, name = 'Bundesliga'), COUNT(FTR = 'H' where season = 2021, name = 'Premier League'));",SELECT COUNT(CASE WHEN T2.name = 'Bundesliga' THEN 1 ELSE NULL END) - COUNT(CASE WHEN T2.name = 'Premier League' THEN 1 ELSE NULL END) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T1.FTR = 'H',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 european_football_1,In how many matches in the Seria A division did both teams have equal goals?,شحال من ماتش ف دوري Seria A كانو فيه الجوج ديال الفرق جابو نفس العدد ديال الأهداف؟,"Seria A is a name of division; equal goals refers to FTR = 'D', where D stands for draft;",SELECT COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Seria A' AND T1.FTR = 'D',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,What is the general description for case number JB106010?,شنو الوصف العام ديال الحالة رقم JB106010؟,general description refers to primary_description,SELECT T1.primary_description FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T2.case_number = 'JB106010',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many disabled students are male?,شحال من طالب ذكر معاق؟,male students are mentioned in male.name;,SELECT COUNT(T1.name) FROM male AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,What is the least common game genre?,شنو هو النوع د الألعاب الأقل شعبية؟,the least common game genre refers to min(count(genre_id)); genre refers to genre_name,"SELECT T.game_name FROM ( SELECT T2.game_name, COUNT(T2.id) FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id GROUP BY T2.game_name ORDER BY COUNT(T2.id) ASC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Calculate the average duration of absense of female students.,حَسّب المُدة المُتوسّطة ديال الغياب ديال الطالبات.,"average duration = DIVIDE(SUM(month), COUNT(longest_absence_from_school.name which are NOT in male.name)); female students refers to longest_absence_from_school.name who are NOT in male.name;",SELECT AVG(T2.month) FROM person AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T1.name = T3.name WHERE T3.name IS NULL,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,Which organization did student285 enlist?,فأي منظمة تْسَجّل الطالب 285؟,,SELECT organ FROM enlist WHERE name = 'student285',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many students have been absent less than 4 months?,شحال من تلميذ غاب أقل من 4 شهور؟,absent less than 4 months refers to month < 4;,SELECT COUNT(name) FROM longest_absense_from_school WHERE month < 4,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,List the longest duration of absense for a student enlisted in the fire department.,وريني أطول مدة غياب لطالب مسجل في فرقة الإطفاء.,longest duration of absence refers to MAX(month); department refers to organ; organ = 'fire_department';,SELECT T1.month FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'fire_department' ORDER BY T1.month DESC LIMIT 1,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,What genre is the game 2010 FIFA World Cup South Africa?,اشنو النوع د اللعبة 2010 FIFA World Cup South Africa؟,genre refers to genre_name; 2010 FIFA World Cup South Africa refers to game_name = '2010 FIFA World Cup South Africa';,SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = '2010 FIFA World Cup South Africa',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"Among the incidents reported in Harrison, what percentage are disorderly conduct?",بين الحوادث اللي تبلَّغوا بيها في Harrison، شحال فالمية كتخصّ السلوك الفوضوي؟,"""Harrison"" is the district_name;  'Disorderly Conduct' is the title; percentage = Divide (Count(title = 'Disorderly Conduct'), Count(report_no)) * 100; incident report refers to report_no",SELECT COUNT(CASE WHEN T3.title = 'Disorderly Conduct' THEN T2.report_no END) * 100.0 / COUNT(T2.report_no) AS per FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no INNER JOIN FBI_Code AS T3 ON T3.fbi_code_no = T2.fbi_code_no WHERE T1.district_name = 'Harrison',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,State the name of the publisher with the most games.,من فضلك قول ليا اسم الناشر اللي عندو أكبر عدد ديال الألعاب.,name of publisher refers to publisher_name; the most games refers to max(game_id),"SELECT T.publisher_name FROM ( SELECT T2.publisher_name, COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id GROUP BY T2.publisher_name ORDER BY COUNT(DISTINCT T1.game_id) DESC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Which district had the most number of first degree murders? Give the district number.,شنو هي المنطقة اللي كان فيها أكبر عدد دجرائم القتل من الدرجة الأولى؟ عطيني رقم المنطقة.,the most number refers to max(count(case_number)); first degree murder refers to secondary_description = 'FIRST DEGREE MURDER'; district number refers to district_no,SELECT T2.district_no FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.secondary_description = 'FIRST DEGREE MURDER' GROUP BY T2.district_no ORDER BY COUNT(*) DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 craftbeer,What is the average alcohol content per 12-ounce beer bottle produced by Boston Beer Company?,شحال هو المتوسط ديال النسبة ديال الكحول فالقنينة ديال الجعة ديال 12 أونس اللي كتصايبها Boston Beer Company؟,,SELECT AVG(T1.abv) FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T2.name = 'Boston Beer Company' AND T1.ounces = 12,"CREATE TABLE breweries ( id INTEGER not null primary key, name TEXT null, city TEXT null, state TEXT null ); CREATE TABLE IF NOT EXISTS ""beers"" ( id INTEGER not null primary key, brewery_id INTEGER not null constraint beers_ibfk_1 references breweries, abv REAL, ibu REAL, name TEXT not null, style TEXT, ounces REAL not null ); CREATE INDEX brewery_id on beers (brewery_id); ",2 chicago_crime,How many different neighborhoods are there in Roseland community?,شحال من حي مختلف كاين فمجتمع Roseland؟,Roseland community refers to community_area_name = 'Roseland',SELECT SUM(CASE WHEN T1.community_area_name = 'Roseland' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What are the top 2 platforms with the most sales in North America?,شنو هما الجوج ديال المنصات اللي عندهم أكثر مبيعات فشمال أمريكا؟,platforms refers to platform_name; most sales refers to MAX(num_sales); North America refers to region_name = 'North America';,SELECT T4.platform_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T1.region_name = 'North America' ORDER BY T2.num_sales DESC LIMIT 2,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,When was the game ID 156 released?,أمتى خرجات اللعبة اللي رقمها 156?,when the game was released refers to release_year;,SELECT T1.release_year FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id WHERE T2.game_id = 156,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Mention the name of unemployed students who have never been absent from school.,عطيني السميات ديال التلاميد اللي ماخدامينش وما عمرهم غيبو للمدرسة.,have never been absent from school refers to month = 0,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name WHERE T1.month = 0,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,List the game IDs of the games produced by Abylight.,عطيني أرقام التعريف ديال الألعاب اللي صوبهم Abylight.,Abylight refers to publisher_name = 'Abylight';,SELECT T1.game_id FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Abylight',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,"Which male students are unemployed, disable and were absent for 5 month?",شكون هما التلاميذ الذكور لي ما خدمينش، معاقين و غابو لمدة 5 شهور؟,male students are mentioned in male.name; unemployed and disabled refers to unemployed.name = disabled.name; absent for 5 month refers to month = 5;,SELECT T1.name FROM unemployed AS T1 INNER JOIN disabled AS T2 ON T2.name = T1.name INNER JOIN longest_absense_from_school AS T3 ON T3.name = T2.name WHERE T3.month = 5,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,"How many Scottish League One games took place on the day that ""Pro Vercelli"" and ""Pescara""had a 5-2 game?","شحال من ماتش في الدوري الاسكتلندي الدرجة الأولى(Scottish League One) تلعب النهار اللي ""Pro Vercelli"" و ""Pescara"" طيحو فيه ماتش 5-2؟",Pro Vercelli and Pescara are names of teams; HomeTeam = 'Pro Vercelli'; AwayTeam = 'Pescara'; 5-2 is a score where FTHG = '5' and FTAG = '2'; Scottish League One is a name of division; games refer to Div;,SELECT COUNT(T1.Date) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Scottish League One' AND T1.Date = ( SELECT Date FROM matchs WHERE FTHG = 5 AND FTAG = 2 AND HomeTeam = 'Pro Vercelli' AND AwayTeam = 'Pescara' ),"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,List out the number of students who filed for bankruptcy and enlisted in navy.,سجل ليا عدد الطلبة اللي علنو الإفلاس ديالهم وتسجلوا فالبحرية.,navy refers to organ = 'navy';,SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name WHERE T1.organ = 'navy',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Give the name of the community area which had the most pocket-picking thefts.,عطيني اسم المنطقة اللي كان فيها أعلى عدد ديال السرقات بالنشل.,name of the community area refers to community_area_name; the most refers to max(case_number); pocket-picking theft refers to primary_description = 'THEFT' AND secondary_description = 'POCKET-PICKING',SELECT T3.community_area_name FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T1.primary_description = 'THEFT' AND T1.secondary_description = 'POCKET-PICKING' GROUP BY T2.community_area_no ORDER BY T2.case_number DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many students have absences of no more than 3 months?,شحال من طالب عندهم غيابات اقل من 3 شهور؟,absences of no more than 3 months refers to month < 3;,SELECT COUNT(name) FROM longest_absense_from_school WHERE month < 3,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,What is the average number of games published by a publisher?,شحال هو العدد المتوسط ديال الألعاب لي كيخرجها كل ناشر ألعاب؟,"average number = divide(count(game_id), count(publisher_id))",SELECT CAST(COUNT(T.game_id) AS REAL) / COUNT(DISTINCT T.publisher_id) FROM game_publisher AS T,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,How many crimes happened in longitude -8772658001?,شحال من جريمة وقعات فخط الطول -8772658001؟,,SELECT COUNT(*) FROM Crime WHERE longitude = '-87.72658001',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,"When was the ""Adventure Island"" game released?","فأشمن عام خرجات لعبة ""Adventure Island""؟","when refers to release_year; the ""Adventure Island"" game refers to game_name = 'Adventure Island'",SELECT T3.release_year FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id WHERE T1.game_name = 'Adventure Island',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,List the genre id of the game Pro Evolution Soccer 2012.,سيفط ليّا نوع اللّعبة Pro Evolution Soccer 2012.,Pro Evolution Soccer 2012 refers to game_name = 'Pro Evolution Soccer 2012',SELECT T.genre_id FROM game AS T WHERE T.game_name = 'Pro Evolution Soccer 2012',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,What are the genres of games published by the publisher with an ID of 464?,شْنُو هِيَ الأنواع دْيال اللعاب اللي كيْنشْرهم الناشر اللي عْندو ID 464؟,genres of games refers to genre_name; publisher with an ID of 464 refers to publisher_id = 464;,SELECT DISTINCT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id INNER JOIN game_publisher AS T3 ON T1.id = T3.game_id WHERE T3.publisher_id = 464,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,How many crimes were Misc Non-Index Offense?,شحال من جريمة كانت ضمن Misc Non-Index Offense؟,Misc Non-Index Offense refers to title = 'Misc Non-Index Offense',SELECT SUM(CASE WHEN T1.title = 'Misc Non-Index Offense' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,What is the average time for a disabled student to be absent from school?,اشنو هو الوقت المتوسط باش يكون التلميد المعاق غايب على المدرسة؟,"average time refers to DIVIDE(SUM(`month`), COUNT(name))",SELECT AVG(T1.month) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.`name` = T2.`name`,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,What is the average population of the wards where apartment crimes have been reported without arrests?,شحال هي الساكنة المتوسطة في الدوائر اللي وقعو فيها جرائم الشقق بلا ما يكونو اعتقالات؟,apartment crime refers to location_description = 'APARTMENT';  without arrest refers to arrest = 'FALSE'; average population = AVG(Population),SELECT AVG(T2.Population) FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.location_description = 'APARTMENT' AND T1.arrest = 'FALSE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,Please list the precise location coordinates of all the crimes in Central Chicago.,عفاك عطني الإحداثيات الدقيقة لجميع الجرائم اللي وقعات في Central Chicago.,"location coordinates refers to latitude, longitude; Central Chicago refers to district_name = 'Central'","SELECT T2.latitude, T2.longitude FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T1.district_name = 'Central'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,"What is the employment, disability, gender and school debt status for student180 and student117?",شنو الحالة ديال الخدمة، الإعاقة، الجنس، والكريديات المدرسية ديال الطالب180 والطالب117؟,school debt status refers to bool; bool = 'pos' means has payment due; bool = 'neg' means doesn't has payment due; student appear in male.name means he is a male; student does not appear in male.name means she is a female;,"SELECT ( SELECT COUNT(name) FROM disabled WHERE name IN ('student180', 'student117') ), ( SELECT COUNT(name) FROM unemployed WHERE name IN ('student180', 'student117') ), ( SELECT COUNT(name) FROM male WHERE name IN ('student180', 'student117') ), ( SELECT COUNT(name) FROM no_payment_due WHERE name IN ('student180', 'student117'))","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,What percentage of games are sports?,شحال البورسونطاج د الألعاب الرياضية؟,"percentage = MULTIPLY(DIVIDE(SUM(genre_name = 'sport'), COUNT(game_name)), 100.0); sports refers to genre_name = 'sport';",SELECT CAST(COUNT(CASE WHEN T1.genre_name = 'Sports' THEN T2.id ELSE NULL END) AS REAL) * 100 / COUNT(T2.id) FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Name the game released in 2011.,سمّي اللعب اللي خرجو ف 2011.,game refers to game_name; released in 2011 refers to release_year = 2011,SELECT T3.game_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.release_year = 2011,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,How many crimes against society happened in the Wentworth district according to the FBI?,شحال من جريمة ضد المجتمع لي وقعات في منطقة Wentworth حسب مكتب التحقيقات الفيدرالي؟,"""Wentworth"" is the district_name; crime against society refers to crime_against = 'Society""",SELECT SUM(CASE WHEN T1.crime_against = 'Society' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T3.district_name = 'Wentworth',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Mention the status of payment of student 299.,ذكر لي حالة الدفع ديال الطالب 299.,status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student299 is a name of student;,SELECT bool FROM no_payment_due WHERE name = 'student299',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Which community area has the highest number of crimes reported on the street?,أي منطقة فالمجتمع عندها أعلى عدد جرائم تم التبليغ عليها فالزنقة؟,reported on the street refers to location_description = 'STREET'; community area with highest number of crime refers to Max(Count(location_description)); community area refers to community_area_no,SELECT T1.community_area_no FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T2.location_description = 'STREET' GROUP BY T1.community_area_no ORDER BY COUNT(T2.location_description) DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,What is the percentage of unemployed students who have been absent for 5 months from school?,شحال في المية ديال التلاميذ اللي ما خدمينش و لي غايبين على المدرسة مدة 5 شهور؟,"percentage refers to DIVIDE(COUNT(month > 5), COUNT(month))","SELECT CAST(SUM(IIF(T1.month > 5, 1, 0)) AS REAL) * 100 / COUNT(T1.month) FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Please list the case numbers of all the crimes with no arrest made in Central Chicago.,عافك عطيني لائحة ديال ارقام القضايا ديال الجرائم اللي ما تشد فيهم تا واحد ف Central Chicago.,no arrest made refers to arrest = 'FALSE'; Central Chicago refers to district_name = 'Central',SELECT COUNT(*) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T2.district_name = 'Central' AND T1.arrest = 'FALSE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Name the publisher of the Chronicles of the Sword game.,عطيني اسم الناشر ديال لعبة Chronicles of the Sword.,publisher refers to publisher_name; the Chronicles of the Sword game refers to game_name = 'Chronicles of the Sword',SELECT T3.publisher_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T1.game_name = 'Chronicles of the Sword',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,"Find out the platform of the game ""Final Fantasy XIII-2"".","لقا المنصة ديال اللعبة ""Final Fantasy XIII-2"".","platform of the game refers to platform_name; ""Final Fantasy XIII-2"" refers to game_name = 'Final Fantasy XIII-2';",SELECT T4.platform_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T1.game_name = 'Final Fantasy XIII-2',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Please list the blocks where all the incidents in the district commanded by Robert A. Rubio took place.,عفاك كتب لي البلوكات فين وقعات جميع الحوادث فالدائرة اللي كيقودها Robert A. Rubio .,"""Robert A. Rubio"" is the commander",SELECT T2.block FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T1.commander = 'Robert A. Rubio',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,How many games were published by Acclaim Entertainment?,شحال من لعبة صدّرات شركة Acclaim Entertainment؟,published by Acclaim Entertainment refers to publisher_name = 'Acclaim Entertainment',SELECT COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Acclaim Entertainment',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,What is the population of the district with the least population?,شحال كاين د السكان ف الدائرة اللي فيها أقل عدد ديال السكان؟,the least population refers = min(sum(population)),SELECT SUM(population) FROM Community_Area GROUP BY side ORDER BY SUM(population) LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Please list the names of the male students that belong to the navy department.,عافاك سمي ليا التلاميذ الذكور اللي تابعين لقسم البحرية.,belong to the navy department refers to organ = 'navy';,SELECT T1.name FROM enlist AS T1 INNER JOIN male AS T2 ON T1.`name` = T2.`name` WHERE T1.organ = 'navy',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,List down the platform IDs of the games with a region ID of 3.,سجّل ليا لِيست ديال IDs ديال البلاتفورم ديال الألعاب لّي عندهم ID ديال الريجون كيساوي 3.,,SELECT T2.id FROM region_sales AS T1 INNER JOIN game_platform AS T2 ON T1.game_platform_id = T2.id WHERE T1.region_id = 3,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Find the percentage of male students enlisted in the fire department.,لقا النسبة ديال الطلاب الذكور اللي خدامين في قسم الاطفاء.,"percentage refers to DIVIDE(COUNT(organ = 'fire_department'), COUNT(name))",SELECT CAST(COUNT(T2.name) AS REAL) * 100 / COUNT(T1.name) FROM enlist AS T1 LEFT JOIN male AS T2 ON T1.name = T2.name WHERE T1.organ = 'fire_department',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"Where is the coordinate (41.66236555, -87.63470194) located? Give the name of the district.","فين كاينة الإحداثية (41.66236555, -87.63470194)؟ عطيني اسم الحي.","coordinate (41.66236555, -87.63470194) refers to latitude = '41.66236555' AND longitude = '-87.63470194'; name of the district refers to district_name",SELECT T2.district_name FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.longitude = '-87.63470194' AND T1.latitude = '41.66236555',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many unemployed disabled students have been absent for 8 months from school?,شحال من تلميذ معاق عاطل على العمل غايب على المدرسة لمدة ديال 8 شهور؟,absent for 8 months refers to month = 8;,SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name INNER JOIN disabled AS T3 ON T2.name = T3.name WHERE T1.month = 8,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Find the community area where the least number of domestic crimes happened.,لقا المنطقة ديال المجتمع اللي وقع فيها أقل عدد ديال الجرائم المنزلية.,"least number of domestic crime refers to Min(Count(domestic = ""TRUE"")); community area refers to community_area_no",SELECT T2.community_area_no FROM Crime AS T1 INNER JOIN Community_Area AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.domestic = 'TRUE' GROUP BY T2.community_area_no ORDER BY COUNT(T2.community_area_no) ASC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,"What is the genre of the game ""Mario vs. Donkey Kong""?","شنو النوع ديال اللعبة ""Mario vs. Donkey Kong""؟","genre refers to genre_name; game ""Mario vs. Donkey Kong"" refers to game_name = 'Mario vs. Donkey Kong'",SELECT T1.genre_name FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id WHERE T2.game_name = 'Mario vs. Donkey Kong',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,How many games do not have any sales in Europe?,شحال من لعبة ما تباعتش كاع ف أوروبا؟,do not have any sales refers to num_sales = 0; in Europe refers to region_name = 'Europe',SELECT COUNT(*) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id WHERE T2.region_name = 'Europe' AND T1.num_sales = 0,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,How many vandalisms were arrested in the ward represented by Edward Burke?,شحال من واحد دار التخريب وتعتاقل فالمنطقة اللي كيتمثلها Edward Burke؟,vandalism refers to title = 'Vandalism'; arrested refers to arrest = 'TRUE',SELECT SUM(CASE WHEN T1.alderman_last_name = 'Burke' THEN 1 ELSE 0 END) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T3.title = 'Vandalism' AND T2.arrest = 'TRUE' AND T1.alderman_first_name = 'Edward',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,What is the ratio of disable female to male students?,شنو هي النسبة ديال الطالبات المعاقات مقارنة مع الطلبة المعاقين؟,"ratio refers to DIVIDE(COUNT(name not from male), COUNT(name from male))","SELECT CAST(SUM(IIF(T2.name IS NULL, 1, 0)) AS REAL) * 100 / COUNT(T2.name) FROM disabled AS T1 LEFT JOIN male AS T2 ON T1.`name` = T2.`name`","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 craftbeer,"Of all the beer styles produced by Stevens Point Brewery, how many percent do they allot for American Adjunct Lager?","من جميع أنواع البيرة اللي كيصنعوها في ""Stevens Point Brewery""، شحال النسبة ديال American Adjunct Lager؟",Percent allotted = count(American Adjunct Lager beer styles) / count(styles) * 100%,"SELECT CAST(SUM(IIF(T1.style = 'American Adjunct Lager', 1, 0)) AS REAL) * 100 / COUNT(T1.brewery_id) FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T2.name = 'Stevens Point Brewery'","CREATE TABLE breweries ( id INTEGER not null primary key, name TEXT null, city TEXT null, state TEXT null ); CREATE TABLE IF NOT EXISTS ""beers"" ( id INTEGER not null primary key, brewery_id INTEGER not null constraint beers_ibfk_1 references breweries, abv REAL, ibu REAL, name TEXT not null, style TEXT, ounces REAL not null ); CREATE INDEX brewery_id on beers (brewery_id); ",2 chicago_crime,How many cases have been arrested among the crimes that happened in the restaurant of Englewood?,شحال من قضية تشدّت من بين الجرائم اللي وقعو فـ المطعم ديال Englewood؟,arrested refers to arrest = 'TRUE'; restaurant refers to location_description = 'RESTAURANT'; Englewood refers to district_name = 'Englewood',SELECT SUM(CASE WHEN T1.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T2.district_name = 'Englewood' AND T1.location_description = 'RESTAURANT',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,Please name three communities that experience the fraud incident.,من فضلك سمي ثلاث مجتمعات اللي تعرضوا لحالة التزوير.,communities refers to community_area_name; 'Fraud Incident' is the title of crime,SELECT T3.community_area_name FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T1.title = 'Criminal Sexual Assault' LIMIT 3,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,What is the percentage of severe cases that are related to sexual assault?,شحال كتمثل نسبة الحالات الخطيرة اللي عندها علاقة بالإعتداء الجنسي؟,"related to sexual assault refers to primary_description = 'CRIME SEXUAL ASSAULT'; severe case refers to index_code = 'I'; percentage = Divide (Count (iucr_no where primary_description = 'CRIME SEXUAL ASSAULT'), Count (iucr_no)) * 100",SELECT CAST(SUM(CASE WHEN primary_description = 'CRIM SEXUAL ASSAULT' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM IUCR WHERE index_code = 'I',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,What is the number of unemployed and bankrupt students?,شنو هو عدد الطلبة لي ما خدامينش و مفلسين؟,,SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,How many role-playing games did Microsoft Game Studios publish?,شحال من لعبة ديال تقمص الأدوار نشرتها Microsoft Game Studios؟,role-playing game refers to genre_name = 'Role-Playing'; Microsoft Game Studios refers to publisher_name = 'Microsoft Game Studios',SELECT COUNT(T3.id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T4.genre_name = 'Role-Playing' AND T1.publisher_name = 'Microsoft Game Studios',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Calculate the ratio in percentage between the average number of female and male students who joined Fire Department organization.,حسب النسبة المئوية بين العدد المتوسط للطالبات والطلاب اللي التحقوا بمنظمة الإطفاء fire_department.,"ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is NOT in male.name), COUNT(enlist.name WHERE organ = 'fire_department),'%'))) AS FEMALE; ratio = CONCAT(MULTIPLY(DIVIDE(COUNT(enlist.name WHERE organ = 'fire_department' which is IN male.name), COUNT(enlist.name WHERE organ = 'fire_department), 100))) AS MALE; female students refers to enlist.name who are NOT in male.name; male students refers to enlist.name who are IN male.name; organization refers to organ; organ = 'fire_department';","SELECT CAST(SUM(IIF(T2.name IS NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.name), CAST(SUM(IIF(T2.name IS NOT NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.name) FROM enlist AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name WHERE T1.organ = 'fire_department'","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,List out the number of students who have the longest duration of absense from school and enlisted in the peace corps.,عدد التلاميذ اللي عندهم أطول مدة غياب عن المدرسة ومسجلين في فيلق السلام (peace_corps).,longest duration of absence refers to MAX(month); peace corps refers to organ = 'peace_corps';,SELECT COUNT(T1.NAME) FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'peace_corps' ORDER BY T1.month DESC LIMIT 1,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,List the name of all games published in Japan.,عطيني أسماء جميع الألعاب اللي تنشروا في اليابان.,name of games refers to game_name; Japan refers to region_name = 'Japan';,SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN region_sales AS T4 ON T3.id = T4.game_platform_id INNER JOIN region AS T5 ON T4.region_id = T5.id WHERE T5.region_name = 'Japan',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,How many matches played in the 2019 season of Scottish Championship league were ended with an equal result of 2-2?,شحال من ماتش تلعب فموسم 2019 ديال دوري Scottish Championship و سالى بنتيجة متساوية 2-2؟,matches refer to Div; Scottish Championship is a name of the league; equal result of 2-2 refers to FTAG = 2 AND FTHG = 2;,SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2019 AND T2.name = 'Scottish Championship' AND T1.FTAG = 2 AND T1.FTHG = 2,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,What is the email address to contact the administrator of Central Chicago?,شنو هو الإيميل باش نتواصلو مع المدير ديال Central Chicago؟,email address refers to email; Central Chicago refers to district_name = 'Central',SELECT email FROM District WHERE district_name = 'Central',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"What is the percentage of crime cases that have been classified as ""drug abuse"" by the FBI and happened on the street?",شنو هي النسبة ديال الجرائم لّي تصنفت كمخدرات من طرف الـ FBI و وقعات فالزنقة؟,"""Drug Abuse"" is the title of crime; happened on the street refers to location_description = 'STREET';  percentage = Divide (Count(fbi_code_no where location_description = 'STREET'), Count(fbi_code_no)) * 100",SELECT CAST(SUM(CASE WHEN T2.title = 'Drug Abuse' AND T1.location_description = 'STREET' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.fbi_code_no) FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Calculate the percentage of female students.,حَسِّب النسبة ديال الطالبات.,"percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(person.name which is not in male.name)), 100), COUNT(person.name that is IN male.name),'%'); female students refers to person.name who are NOT in male.name;","SELECT CAST(SUM(IIF(T2.name IS NULL, 1, 0)) AS REAL) * 100 / COUNT(T1.name) FROM person AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Calculate the number of game publisher IDs for games released in 1984.,حسب عدد ارقام التعريف ديال ناشري الألعاب اللي تطرحات فـ 1984.,released in 1984 refers to release_year = 1984;,SELECT COUNT(T.game_publisher_id) FROM game_platform AS T WHERE T.release_year = 1984,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"How many crime cases have been classified as ""Weapons Violation"" by the FBI?",شحال من قضية ديال الجريمة تصنفات كخرق للسلاح 'Weapons Violation' من طرف الFBI؟,"""Weapons Violation"" is the title of crime; crime cases refers to report_no;",SELECT SUM(CASE WHEN T2.title = 'Weapons Violation' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"Between Deering and Near West districts, which district reported the most number of crime incidents that happened in a library?",بين منطقة Deering و Near West ، إينا منطقة سجلات أكبر عدد من الحوادث الإجرامية اللي وقعات فْ مكتبة؟,"""Deering"" and ""Near West"" are both district_name; 'LIBRARY' is the location_description; district with the most number of crime Max(Count(district_no))","SELECT T1.district_name FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T1.district_name IN ('Deering', 'Near West') AND T2.location_description = 'LIBRARY' GROUP BY T1.district_name ORDER BY COUNT(T2.district_no) DESC LIMIT 1","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many female students joined a marines and air force organization?,شحال من طالبة التحقت بمنظمة البحرية والقوات الجوية؟,joined a marines refers to organ = 'marines'; air force organization refers to organ = 'air_force';,"SELECT COUNT(name) FROM enlist WHERE organ IN ('marines', 'air_force') AND name NOT IN ( SELECT name FROM male )","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,How many games were released on PS4 in 2014?,شحال من لعبة خرجات ل PS4 فـ 2014؟,on PS4 refers to platform_name = 'PS4'; in 2014 refers to release_year = 2014,SELECT COUNT(DISTINCT T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T1.platform_name = 'PS4' AND T2.release_year = 2014,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,How much are the sales of the games in region ID 4?,شحال هيا مبيعات الألعاب في المنطقة رقم 4؟,how much are the sales = SUM(num_sales);,SELECT SUM(T.num_sales) * 100000 FROM region_sales AS T WHERE T.region_id = 4,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,How many teams that played in the 2012 season belong to any of the English divisions and what percentage play in each of the divisions?,شحال ديال الفرق اللي لعبو في موسم 2012 اللي كينتميو لأي ديفيزيون نجليزية (English) و شحال فالمية كيلعبو فكل ديفيزيون؟,matches = Div,"SELECT ( SELECT COUNT(T1.Div) AS total FROM matchs T1 INNER JOIN divisions T2 ON T2.division = T1.Div WHERE T2.country = 'England' AND T1.season = 2012 ) AS num , CASE WHEN 1 THEN T.result END AS percentage FROM ( SELECT 100.0 * COUNT(T1.Div) / ( SELECT COUNT(T1.Div) FROM matchs T1 INNER JOIN divisions T2 ON T2.division = T1.Div WHERE T2.country = 'England' AND T1.season = 2012 ) AS result FROM matchs T1 INNER JOIN divisions T2 ON T2.division = T1.Div WHERE T2.country = 'England' AND T1.season = 2012 GROUP BY T2.division ) AS T","CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,List down the titles and descriptions of the crimes cases against persons.,عطيني العناوين والوصف ديال الجرائم اللي دارت ضد الناس؟,crime case against persons refers to crime_against = 'Persons',"SELECT title, description FROM FBI_Code WHERE crime_against = 'Persons'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,"For all the games which were published by Namco Bandai Games, what percentage of them were adventure games?",شحال ف المية د الألعاب اللي تنشرو من طرف Namco Bandai Games كانو ألعاب مغامرة؟,"published by Namco Bandai Games refers to publisher_name = 'Namco Bandai Games'; adventure game refers to genre_name = 'Adventure'; percentage = divide(sum(game_id where genre_name = 'Adventure'), count(game_id)) * 100% where publisher_name = 'Namco Bandai Games'",SELECT CAST(COUNT(CASE WHEN T4.genre_name = 'Adventure' THEN T1.id ELSE NULL END) AS REAL) * 100 / COUNT(T1.id) FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T3.publisher_name = 'Namco Bandai Games',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"Calculate the total beat of the crimes reported in a community area in the central side with population of 50,000 and above.","حسب مجموع الجرائم المصرح بها ف منطقة مجتمعية ف الجهة الوسطى بعدد سكان كيفوت 50,000.","the central side refers to side = 'Central'; population of 50,000 and above refers to population > '50000'; total beat = sum(beat) where side = 'Central' and population > '50000'",SELECT 1.0 * SUM(CASE WHEN T1.population > 50000 THEN T2.beat ELSE 0 END) AS sum FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.side = 'Central',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many disabled male students joined an organization?,شحال من طالب ذكر معاق التحق بالمنظمة؟,organization refers to organ; disabled male students refers to disabled.name who are IN male.name;,SELECT COUNT(T1.name) FROM disabled AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name INNER JOIN enlist AS T3 ON T3.name = T2.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Calculate the difference between sales of games from region ID 2 and region ID 3.,حسب الفرق بين مبيعات الألعاب ف المنقطة رقم 2 و المنقطة رقم 3.,"difference = SUBTRACT(SUM(num_sales WHERE region_id = 2), SUM(num_sales WHERE region_id = 3));",SELECT SUM(CASE WHEN T.region_id = 2 THEN T.num_sales ELSE 0 END) - SUM(CASE WHEN T.region_id = 3 THEN T.num_sales ELSE 0 END) FROM region_sales t,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Find the average number of absences for each student.,لقا المتوسط ديال عدد الغيابات لكل تلميذ.,"average refers to DIVIDE(SUM(month), COUNT(name))",SELECT AVG(month) FROM longest_absense_from_school,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,What is the release year of the game that gained 350000 sales in North America?,فإينا عام خرجات اللعبة اللي وصلات 350000 مبيعة فـأمريكا الشمالية؟,gained 350000 sales refers to num_sales = 3.5; in North America refers to region_name = 'North America',SELECT T3.release_year FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id WHERE T2.num_sales * 100000 = 350000 AND T1.region_name = 'North America',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Provide the ID of the most popular platform in Europe.,عطيني الـ ID ديال أكثر منصة مشهورة ف أوروبا.,ID refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe',"SELECT T.game_platform_id FROM ( SELECT T1.game_platform_id, SUM(T1.num_sales) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id WHERE T2.region_name = 'Europe' GROUP BY T1.game_platform_id ORDER BY SUM(T1.num_sales) DESC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,In which district have there been more intimidation-type crimes?,فإينا حي كانو اكتر عدد د الجرائم ديال الترهيب؟,more intimidation-type crime refers to Max(Count(primary_description = 'INTIMIDATION')); district refers to district_name,SELECT T3.district_name FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T1.primary_description = 'INTIMIDATION' GROUP BY T3.district_name ORDER BY COUNT(T1.primary_description) DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,What are the communities that are grouped together on the central side?,شكون هي الجماعات اللي تجمعت في الجهة الوسطانية ؟,central side refers to side = 'Central'; community refers to community_area_name,SELECT community_area_name FROM Community_Area WHERE side = 'Central',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"Give the FBI code for the crime described by ""The killing of one human being by another.""","عطيني الكود ديال مكتب التحقيق الفدرالي للجريمة لي الوصف ديالها هو "".The killing of one human being by another""","""The killing of one human being by another"" is the description; FBI code refers to fbi_code_no",SELECT fbi_code_no FROM FBI_Code WHERE description = 'The killing of one human being by another.',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,What is the name of the student with the longest duration of absence?,شنو السمية ديال التلميد اللي غيب بزاف؟,longest duration of absence refers to MAX(month);,SELECT name FROM longest_absense_from_school WHERE month = ( SELECT MAX(month) FROM longest_absense_from_school ),"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,Count the number of students from UCSD enlisted in the peace corps.,حسب عدد الطلاب من جامعة UCSD اللي التحقو في فيالق السلام (peace corps).,in the peace corps refers to organ = 'peace_corps'; from UCSD refers to school = 'ucsd';,SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN enrolled AS T2 ON T1.`name` = T2.`name` WHERE T2.school = 'ucsd' AND T1.organ = 'peace_corps',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many disabled students have zero absences?,شحال من تلميذ معاق ماعندو حتى غياب؟,zero absences refers to month = 0;,SELECT COUNT(T1.name) FROM disabled AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name WHERE T2.month = 0,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,List any ten male students who enlisted for foreign legion.,عطيني لائحة ديال أي عشرة تلاميذ ذكور لي تسجلوا فالفيلق الأجنبي.,male students are mentioned in male.name; foreign legion refers to organ = 'foreign_legion';,SELECT T1.name FROM enlist AS T1 INNER JOIN male AS T2 ON T2.name = T1.name WHERE T1.organ = 'foreign_legion' LIMIT 10,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,Please list the male students that are disabled and have filed for bankruptcy.,عفاك جاوبني على الولاد اللي معاقين و دارو ديكلاراسيون بالإفلاس.,"male students that are disabled and have filed for bankruptcy refers to name that appeared in all three male, disabled and filed_for_bankrupcy tables.","SELECT T1.name, T2.name, T3.name FROM disabled AS T1 INNER JOIN male AS T2 ON T1.`name` = T2.`name` INNER JOIN filed_for_bankrupcy AS T3 ON T1.`name` = T3.`name`","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,What is the status of payment of student 124?,كيف داير الوضع ديال الأداء ديال الطالب رقم 124؟,status of payment is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student124 is a name of student;,SELECT `bool` FROM no_payment_due WHERE name = 'student124',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,"Among the unemployed students, how many of them have no payment due?",من بين الطلبة العاطلين عن العمل، شحال فيهم اللي ما عندهمش شي دفوعات مستحقة؟,"have no payment due refers to bool = 'neg'; ",SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T2.bool = 'neg',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,What is the name of the community that has the highest number of crimes related to prostitution?,شنو سميّة المجتمع اللي فيه أكبر عدد ديال الجرائم المرتبطة بالدعارة؟,name of the community refers to community_area_name; the highest number of crimes refers to max(case_number); prostitution refers to primary_description = 'PROSTITUTION',SELECT T3.community_area_name FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.iucr_no = T2.iucr_no INNER JOIN Community_Area AS T3 ON T1.community_area_no = T3.community_area_no WHERE T2.primary_description = 'PROSTITUTION' GROUP BY T1.iucr_no ORDER BY T1.case_number DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,What is the general and specific description of incident 275?,شنو هو الوصف العام والوصف الخاص للحادث رقم 275؟,incident 275 refers to iucr_no = 275; general description refers to primary_description; specific description refers to secondary_description,"SELECT primary_description, secondary_description FROM IUCR WHERE iucr_no = 275","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,Which division had the most draft matches in the 2008 season?,إينا ديفيزيون كانت عندها أكبر عدد د الماتشات ف موسم 2008؟,the most draft matches refer to MAX(COUNT(Div)) where FTR = 'D';,SELECT Div FROM matchs WHERE season = 2008 AND FTR = 'D' GROUP BY Div ORDER BY COUNT(FTR) DESC LIMIT 1,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,How many arrests have been made due to forcible entry burglary that took place in a day care center?,شحال من توقيف تدار بسبب اقتحام وسرقة وقعات ف روض الأطفال؟,"""BURGLARY"" is the primary_description; 'FORCIBLE ENTRY' is the secondary_description; 'DAY CARE CENTER' is the location_description; arrests have been made refers to arrest = 'TRUE'",SELECT SUM(CASE WHEN T2.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T2.location_description = 'DAY CARE CENTER' AND T1.secondary_description = 'FORCIBLE ENTRY' AND T1.primary_description = 'BURGLARY',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,List down the platform IDs of the games released in 2007.,عطيني الآيدي ديال البلاتفورمات ديال الألعاب اللي بانو ف 2007.,released in 2007 refers to release_year = 2007;,SELECT DISTINCT T.platform_id FROM game_platform AS T WHERE T.release_year = 2007,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Name of the publisher of the game id 10031.,سمي الناشر ديال اللعبة رقم 10031.,name of publisher refers to publisher_name; the game id 10031 refers to game_id = '10031',SELECT T2.publisher_name FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.game_id = 10031,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Calculate the average crime rate per month in the highest populous area.,حسب معدل الجريمة الشهري فـي المنطقة اللي فيها أكبر عدد من السكان.,"the highest populous refers to max(population); average crime rate per month = divide(count(report_no where population = max(population)), 12)",SELECT CAST(COUNT(T2.report_no) AS REAL) / 12 FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no GROUP BY T1.community_area_no HAVING COUNT(T1.population) ORDER BY COUNT(T1.population) LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Provide the release year of record ID 1 to 10.,عطيني سنة إصدار السجلات من 1 إلى 10.,record ID 1 to 10 refers to game.id BETWEEN 1 AND 10,SELECT T.release_year FROM game_platform AS T WHERE T.id BETWEEN 1 AND 10,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Calculate the average duration of absense of disabled students.,حسب المتوسط ديال مدة الغياب ديال التلاميذ المعاقين.,"average refers to DIVIDE(SUM(month), COUNT(name))",SELECT AVG(T1.month) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,List the location descriptions and aldermen's full names of the arson by explosive.,عطيني عافاك الأماكن والوصف ديالهم و الأسماء الكاملة ديال المستشارين اللي مرتبطين بالحريق بالمتفجرات.,"aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; arson by explosive refers to primary_description = 'ARSON' AND secondary_description = 'BY EXPLOSIVE'","SELECT T2.location_description, T1.alderman_first_name, T1.alderman_last_name, T1.alderman_name_suffix FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no INNER JOIN IUCR AS T3 ON T3.iucr_no = T2.iucr_no WHERE T3.primary_description = 'ARSON' AND T3.secondary_description = 'BY EXPLOSIVE'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What publishers have the word 'Entertainment' in their name?,شنو هما دور النشر اللي عندهم كلمة 'Entertainment' فسمياتهم؟,publishers that have the word 'Entertainment' in their name refers to publisher_name LIKE '%Entertainment%';,SELECT T.publisher_name FROM publisher AS T WHERE T.publisher_name LIKE '%Entertainment%',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Provide the name of disabled male students that are unemployed.,عطيني سميات الطلبة الذكور اللي عندهم إعاقات وما خدامينش.,disabled male students that are unemployed refers to unemployed.name = male.name = disabled.name;,SELECT T2.NAME FROM unemployed AS T1 INNER JOIN male AS T2 ON T1.name = T2.name INNER JOIN disabled AS T3 ON T3.name = T2.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,What are the platform IDs of records released in 2006?,شنو هي المعرفات ديال المنصات ديال السجلات اللي خرجو فـ2006؟,released in 1990 refers to release_year = 1990; 2000 refers to release_year = 2000;,SELECT DISTINCT T.platform_id FROM game_platform AS T WHERE T.release_year = 2006,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,What is the employment and payment status of student110?,شنو هي حالة الشغل و الأداء د طالب 110؟,"employment status is mentioned in unemployment; unemployed.name = 'student110' means the student is unemployed; if 'student110' can not be found in unemployed.name, it means the student is employed; payment status is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due; student110 is a name of student;",SELECT T1.bool FROM no_payment_due AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name WHERE T1.name = 'student110',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Provide the name of game produced by 505 Games in 2006.,عطيني سميّة اللعبة اللي دارتها 505 Games فـ 2006.,name of game refers to game_name; 505 Games refers to publisher_name = '505 Games'; in 2006 refers to release_year = 2006;,SELECT T3.game_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN publisher AS T4 ON T2.publisher_id = T4.id WHERE T4.publisher_name = '505 Games' AND T1.release_year = 2006,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,List down the game ID of games with genre ID 2.,كتّب ليا الأرقام ديال الألعاب اللي عندهم النوع 2.,game ID refers to game.id; genre ID 2 refers to genre_id = 2,SELECT T.id FROM game AS T WHERE T.genre_id = 2,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Count the number of female students who belong to marines organization.,حسب عدد الطالبات اللي كينتميو لتنظيم البحرية.,female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'marines';,SELECT COUNT(*) FROM person AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T1.name = T3.name WHERE T2.organ = 'marines' AND T3.name IS NULL,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,List the name of all games published by 'Pioneer LDC'.,عطيني السميات ديال الألعاب اللي خرجاتهم Pioneer LDC.,name of games refers to game_name; 'Pioneer LDC' refers to publisher_name = 'Pioneer LDC';,SELECT T3.game_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.publisher_name = 'Pioneer LDC',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,"Sum up the number of students enlisted in foreign legion, peace corps and army.",جمع لي عدد الطلاب المسجلين فالفيلق الأجنبي، هيئة السلام والجيش.,enlisted in foreign legion refers to organ = 'foreign_legion'; peace corps refers to organ = 'peace_corps'; army refers to organ = 'army',"SELECT COUNT(name) FROM enlist WHERE organ IN ('army', 'peace_corps', 'foreign_legion')","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Which publisher has published the game 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3'?,شكون هي دار النشر اللي نشرات اللعبة 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3'?,which publisher refers to publisher_name; 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3' refers to game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3';,SELECT T1.publisher_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T3.game_name = 'Pachi-Slot Kanzen Kouryaku 3: Universal Koushiki Gaido Volume 3',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Which students have absents the most?,شكون التلاميذ اللي كيغيبوا بزاف؟,absents the most refers to MAX(month),SELECT name FROM longest_absense_from_school WHERE month = ( SELECT MAX(month) FROM longest_absense_from_school ),"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,How many football divisions does England have?,شحال من ديڤيزيون ديال الكورة كاينين ف النجليز (England)؟,England is the name of country;,SELECT COUNT(division) FROM divisions WHERE country = 'England',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,What types of domestic crimes have occurred the most in the North Lawndale community?,شنو هو النوع د الجرائم اللي وقع بزاف ف مجتمع North Lawndale ؟,"""North Lawndale' is the community_area_name; occur the most domestic crime refers to Max(Count(domestic = 'TRUE'))",SELECT T2.domestic FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'North Lawndale' AND T2.domestic = 'TRUE' GROUP BY T2.domestic ORDER BY COUNT(T2.domestic) DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,Which crime was committed the most by criminals?,شنو هي الجريمة اللي تدارت بزاف؟,crime refers to title; committed the most refers to max(fbi_code_no),SELECT T2.title FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no ORDER BY T2.fbi_code_no DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,How many strategy games are there?,شحال كاينة من لعبة ديال التخطيط؟,strategy games refers game_name WHERE genre_name = 'Strategy';,SELECT COUNT(CASE WHEN T1.genre_name = 'Strategy' THEN T2.id ELSE NULL END) FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,State the number of disabled students who have payment due.,شحال من طالب معاق لي خاصو يخلص شي فلوس؟,have payment due refers to bool = 'pos';,SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.bool = 'neg',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,How many arrests were made in 2018 in an animal hospital under FBI code 08B?,شحال من توقيف تدار فـ 2018 فـ شي سبيطار د الحيوانات والكود د FBI كيساوي 08B؟,arrest refers to arrest = 'TRUE'; in 2018 refers to date LIKE '%2018%'; in an animal hospital refers to location_description = 'ANIMAL HOSPITAL'; FBI code 08B refers to fbi_code_no = '08B',SELECT SUM(CASE WHEN arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Crime WHERE date LIKE '%2018%' AND location_description = 'ANIMAL HOSPITAL' AND fbi_code_no = '08B',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many students are unemployed and have payment due?,شحال من طالب عاطل و عندو مصاريف خصو يخلصها؟,are unemployed and have payment due refers to,SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN no_payment_due AS T2 ON T1.`name` = T2.`name`,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,What is the name of the genre with the most number of video games?,اشنو هو النوع د الألعاب اللي فيه أكبر عدد ديال ألعاب الفيديو؟,name of the genre refers to genre_name; genre with the most number of video games refers to MAX(COUNT(genre_name));,SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T2.id = T1.genre_id GROUP BY T2.genre_name ORDER BY COUNT(T1.genre_id) DESC LIMIT 1,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,What is the number of sales in region ID 2 with game platform ID 9615?,أشحال من مبيعة كاينة ف المنطقة رقم 2 مع المنصة ديال اللعب رقم 9615؟,"number of sales refers to multiply(num_sales, 100000)",SELECT T.num_sales * 100000 FROM region_sales AS T WHERE T.region_id = 2 AND T.game_platform_id = 9615,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many male students filed for bankruptcy as compare to female students?,شحال من طالب دربو السيزي مقارنة مع الطالبات؟,"difference = SUBTRACT(COUNT(filed_for_bankrupcy.name who are In male.name), COUNT(filed_for_bankrupcy.name who are NOT in male.name)); male students are mentioned in male.name; female students refers to filed_for_bankrupy.name who are NOT in male.name;","SELECT COUNT(T2.name) - SUM(IIF(T2.name IS NULL, 1, 0)) AS num FROM filed_for_bankrupcy AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,What is the name of the organization which most of the students are enlisted in?,شنو سميّة المنظمة اللي الأغلبية ديال التلاميذ منخرطين فيها؟,name of the organization refers to organ; organization which most of the students are enlisted in refers to MAX(COUNT(organ));,"SELECT organ FROM ( SELECT organ, COUNT(organ) AS num FROM enlist GROUP BY organ ) T ORDER BY T.num DESC LIMIT 1","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"In Albany Park, how many arrests were made in an apartment due to criminal sexual abuse?",ف Albany Park، شحال من واحد تشد ف شقة بسباب اعتداء جنسي؟,Albany Park refers to district_name = 'Albany Park'; in an apartment refers to location_description = 'APARTMENT'; criminal sexual abuse refers to title = 'Criminal Sexual Abuse',SELECT SUM(CASE WHEN T3.title = 'Criminal Sexual Abuse' THEN 1 ELSE 0 END) FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T1.district_name = 'Albany Park' AND T2.arrest = 'TRUE' AND T2.location_description = 'APARTMENT',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,In which regions has the game 'Pengo' been sold?,شنو هي الجهات اللي تباعت فيهم 'Pengo'؟,which regions refers to region_name; 'Pengo' refers to game_name = 'Pengo';,SELECT T5.region_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN region_sales AS T4 ON T3.id = T4.game_platform_id INNER JOIN region AS T5 ON T4.region_id = T5.id WHERE T1.game_name = 'Pengo',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Give the name of the publisher of the game ID 75.,عطيني اسم الناشر ديال اللعبة لي عندها ID 75.,name of publisher refers to publisher_name; the game ID 75 refers to game_id = 75,SELECT T2.publisher_name FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.game_id = 75,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Calculate the ratio between unemployed students and disabled students.,حسب النسبة بين الطلاب العاطلين و الطلاب المعاقين.,"ratio refers to DIVIDE(COUNT(name from unemployed), COUNT(name from disabled))",SELECT CAST(( SELECT COUNT(name) FROM unemployed ) AS REAL ) / ( SELECT COUNT(name) FROM disabled ),"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many female students are enlisted in the Navy organization?,شحال من طالبة مسجلة في منظمة البحرية؟,female students refers to enlist.name who are NOT in male.name; organization refers to organ; organ = 'navy';,SELECT COUNT(name) FROM enlist WHERE organ = 'navy' AND name NOT IN ( SELECT name FROM male ),"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many male students have no due payments?,شحال من طالب ذكر معندوش شي خلاص مزال ما خلصو؟,have no due payments refers to bool = 'neg';,SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN male AS T2 ON T1.name = T2.name WHERE T1.bool = 'neg',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,List all the organisations of students who filed for bankcrupcy.,عطينا لائحة دكاع منظمات الطلبة اللي طلبو الإفلاس.,organization refers to organ; students who filed for bankrupcy refers to file_for_bankrupcy.name,SELECT T2.organ FROM filed_for_bankrupcy AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,"Among the students that have a payment due, how many students are unemployed?",شحال من طالب ما خدامش عندو شي دفعة مامخلصاش؟,students that have a payment due refers to bool = 'pos';,SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name WHERE T1.bool = 'pos',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,"Among games sold in Europe, list the platform ID of games with sales lesser than 30% of the average number of sales.",من بين الألعاب اللي تباعت ف أوروبا، عطي لائحة أرقام التعريف دمنصات للألعاب اللي المبيعات ديالها قل من 30% من المعدل ديال عدد المبيعات.,"Europe refers to region_name = 'Europe'; sales lesser than 30% of the average number of sales refers to SUM(num_sales) < MULTIPLY(AVG(num_sales), 0.3);",SELECT DISTINCT T3.platform_id FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id WHERE T1.region_name = 'Europe' AND T2.num_sales * 100 * 100000 < ( SELECT AVG(T2.num_sales * 100000) * 30 FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Europe' ),"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"Among the crimes in all the districts in Chicago, what is the percentage of them happening in the Central district?",من بين الجرائم ف جميع المناطق ف Chicago، شحال هي النسبة ديال اللي كتوقع ف المنطقة الوسطى؟,"the Central district refers to district_name = 'Central'; percentage = divide(count(case_number where district_name = 'Central'), count(case_number)) * 100%",SELECT CAST(SUM(CASE WHEN T2.district_name = 'Central' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.case_number) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Which school has the highest number of disabled students?,آش من مدرسة فيها أكبر عدد ديال التلامد المعاقين؟,highest number of disabled students refers to MAX(COUNT(disabled.name)),"SELECT T.school FROM ( SELECT T2.school, COUNT(T2.name) AS num FROM disabled AS T1 INNER JOIN enrolled AS T2 ON T1.name = T2.name GROUP BY T2.school ) T ORDER BY T.num DESC LIMIT 1","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,When was the game titled 3DS Classic Collection released?,إمتى تلاحت اللعبة لي سميتها 3DS Classic Collection؟,when refers to release_year; the game titled 3DS Classic Collection refers to game_name = '3DS Classic Collection',SELECT T1.release_year FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T3.game_name = '3DS Classic Collection',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,"Among all students, calculate the percentage of male students.",حسب نسبة الطلاب الذكور من بين جميع الطلاب.,"percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name;",SELECT CAST(COUNT(T2.name) AS REAL) * 100 / COUNT(T1.name) FROM person AS T1 LEFT JOIN male AS T2 ON T1.name = T2.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,What is the full name of the alderman of ward no.21?,اشنو هو الاسم الكامل ديال العمدة ديال المنطقة رقم 21؟,"full name of alderman refers to alderman_first_name, alderman_last_name, alderman_name_suffix","SELECT alderman_first_name, alderman_last_name, alderman_name_suffix FROM Ward WHERE ward_no = 21","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,List down the neighborhood areas of Douglas.,عطيني المناطق اللي حدا Douglas.,neighborhood area refers to neighborhood_name; Douglas refers to community_area_name = 'Douglas',SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Douglas',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many months did a student in the Air Force miss school the most?,شحال من شهر غيب فيه تلميذ فالجيش الجوي بزاف؟,Air Force refers to organ = 'air_force'; number of months a student miss school the most refers to MAX(COUNT(month));,SELECT T1.month FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name ORDER BY T1.month DESC LIMIT 1,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,Which team has the most victories as the home team in matches of the Bundesliga division?,شنو هي الفرقة اللي عندها أكبر عدد د الانتصارات فماتشات دوري البوندسليغا (Bundesliga) كفريق المضيف؟,Bundesliga is the name of division; the most victories as the home team refers to MAX(COUNT(FTR = 'H'));,SELECT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.FTR = 'H' GROUP BY T1.HomeTeam ORDER BY COUNT(T1.FTR) DESC LIMIT 1,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,Which company published the game with the most sales in North America?,شنو هي الشركة اللي نشرات اللعبة اللي حققات أعلى المبيعات ف أمريكا الشمالية؟,company refers to publisher_name; the most sales refers to max(num_sales); in North America refers to region_name = 'North America',"SELECT T.publisher_name FROM ( SELECT T5.publisher_name, SUM(T2.num_sales) * 100000 FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN publisher AS T5 ON T4.publisher_id = T5.id WHERE T1.region_name = 'North America' GROUP BY T5.publisher_name ORDER BY SUM(T2.num_sales) * 100000 DESC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,How many incidents of domestic violence occurred in an abandoned building in 2018?,شحال من حالة ديال العنف العائلي وقعات فبناية مهجورة فـ 2018؟,domestic violence refers to domestic = 'TRUE'; in an abandoned building refers to location_description = 'ABANDONED BUILDING'; in 2018 refers to date LIKE '%2018%',SELECT SUM(CASE WHEN location_description = 'ABANDONED BUILDING' THEN 1 ELSE 0 END) FROM Crime WHERE date LIKE '%2018%' AND domestic = 'TRUE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"List the report number of crimes reported in a community area in the far north side with a population greater than 60,000.","قوليَّا رقم التقارير ديال الجرائم لّي تسجلو ف منطقة مجتمع في الشمال البعيد اللّي ساكنين فيها أكثر من 60,000 شخص.","report number refers to report_no; the far north side refers to side = 'Far North'; population greater than 60,000 refers to population > '60000'",SELECT SUM(CASE WHEN T1.population > 60000 THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.side = 'Far North ',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,What percentage of non-domestic crimes have occurred in the Jefferson Park district?,شحال النسبة ديال الجرائم اللي مافياش لعلاقة بالدّار اللي وقعات فـ حي Jefferson Park؟,"non domestic crime refers to domestic = 'FALSE'; 'Jefferson Park' is the district_name; percentage = Divide (Count (case_number where domestic = 'FALSE'), Count(case_number)) * 100",SELECT CAST(COUNT(CASE WHEN T2.domestic = 'FALSE' THEN T2.case_number END) AS REAL) * 100 / COUNT(T2.case_number) FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no WHERE T1.district_name = 'Jefferson Park',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What is the name of the company that produced the game titled Adventure Time: Explore the Dungeon Because I Don't Know!?,اشنو سميت الشركة اللي صايبات اللعبة اللي سميتها Adventure Time: Explore the Dungeon Because I Don't Know!؟,name of the company that produced the game refers to publisher_name; Adventure Time: Explore the Dungeon Because I Don't Know! Refers to game_name = 'Adventure Time: Explore the Dungeon Because I Don''t Know!';,SELECT T3.publisher_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T1.game_name = 'Adventure Time: Explore the Dungeon Because I Don''t Know!',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,"Among the games published by Nintendo, what is the percentage of those in the genre of sports?",من بين الألعاب اللي نشراتها Nintando، شحال النسبة اللي فصنف الرياضة؟,"published by Nintendo refers to publisher_name = 'Nintendo'; in the genre of sports refers to genre_name = 'Sports'; percentage = divide(count(game_id where genre_name = 'Sports'), count(game_id)) * 100% where publisher_name = 'Nintendo'",SELECT CAST(COUNT(CASE WHEN T4.genre_name = 'Sports' THEN T1.id ELSE NULL END) AS REAL) * 100/ COUNT(T1.id) FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T3.publisher_name = 'Nintendo',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many students have been absent above 2 months?,شحال من تلميذ غيب كتر من شهراين؟,absent above 2 months refers to month > 2;,SELECT COUNT(name) FROM longest_absense_from_school WHERE month > 2,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,Please provide a gender breakdown for each organization.,عفاك عطيني توزيع الرجال والعيالات ف كل منظمة.,gender breakdown refers to the number of male and female; male are mentioned in male.name; female refers to enlist.name who are NOT in male.name; organization refers to organ;,"SELECT IIF(T2.name IS NULL, 'female', 'male') AS gender FROM enlist AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name GROUP BY T1.organ","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"Among the criminal sexual assaults in the district of Adnardo Gutierrez, how many cases happened in the residence?",من بين الجرائم الجنسية في منطقة Adnardo Gutierrez، شحال من حالة وقعات فالإقامة؟,criminal sexual assault refers to title = 'Criminal Sexual Assault'; Adnardo Gutierrez refers to commander = 'Adnardo Gutierrez'; in the residence refers to location_description = 'RESIDENCE',SELECT COUNT(T2.report_no) FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no INNER JOIN FBI_Code AS T3 ON T3.fbi_code_no = T2.fbi_code_no WHERE T3.title = 'Criminal Sexual Assault' AND T1.commander = 'Adnardo Gutierrez' AND T2.location_description = 'RESIDENCE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"Provide case numbers, aldermen's full names, and district names of the crimes that happened in 0000X N FRANCISCO AVE.",عطي نمرة القضايا، السمية كاملة ديال الأعضاء ديال المجالس، السميات ديال النواحي ديال الجرائم اللي وقعات ف 0000X N FRANCISCO AVE.,"aldermen's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; 0000X N FRANCISCO AVE refers to block = '0000X N FRANCISCO AVE'","SELECT T2.case_number, T3.alderman_first_name, T3.alderman_last_name, T1.district_name FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no INNER JOIN Ward AS T3 ON T2.ward_no = T3.ward_no WHERE T2.block = '0000X N FRANCISCO AVE' GROUP BY T2.case_number, T3.alderman_first_name, T3.alderman_last_name, T1.district_name","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Calculate the average enlisted students per organization.,حسب متوسط التلاميذ المسجلين ف كل منظمة.,"average = DIVIDE(FLOOR(COUNT(NAME), COUNT(DISTINCT organ)));",SELECT CAST(COUNT(NAME) AS REAL) * 100 / COUNT(DISTINCT organ) FROM enlist,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"How many crimes are commited on January 1, 2018?",شحال من جريمة ترتاكبت ف 1 يناير 2018؟,on January 1 2018 refers to date LIKE '1/1/2018%',SELECT COUNT(*) FROM Crime WHERE date LIKE '1/1/2018%',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Provide the game publisher's name of the game with sales greater than 90% of the average sales in Japan.,عطيني اسم الناشر ديال اللعبة اللي مبيعاتها كثر من 90% من المبيعات المتوسطة في اليابان.,"game publisher's name refers to publisher_name; sales greater than 90% of the average sales refers to num_sales > multiply(0.9, avg(num_sales)); in Japan refers to region_name = 'Japan'",SELECT DISTINCT T5.publisher_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN publisher AS T5 ON T4.publisher_id = T5.id WHERE T2.num_sales * 10000000 > ( SELECT AVG(T2.num_sales) * 100000 * 90 FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Japan' ),"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many unemployed students still have payment due?,شحال من طالب ما خدامش مزال خاصو يخلص؟,still have payment due refers to bool = 'pos',SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T2.bool = 'pos',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many unemployed students filed for bankruptcy?,شحال من طالب ماخدامش دربو السيزي؟,unemployed students who filed for bankruptcy refers to unemployed.name who are IN filed_for_bankrupcy.name;,SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T2.name = T1.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Where did case No. JB100065 happen? Give the name of the district.,فين وقعات القضية رقم JB100065؟ عطيني اسم المنطقة.,case No. JB100065 refers to case_number = 'JB100065'; name of the district refers to district_name,SELECT T1.district_name FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T2.case_number = 'JB100065',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Which game has the longest name?,شْنو هي اللّعبة اللّي عندها أطْوَل سْمِية؟,game refers to game_name; the longest name refers to max(length(game_name)),SELECT T.game_name FROM game AS T ORDER BY LENGTH(T.game_name) DESC LIMIT 1,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Which community has the highest number of neighborhoods?,شنو هو المجتمع اللي عندو أكتر عدد ديال الأحياء؟,community with highest number of neighborhoods refers to Max(Count(community_area_no)); community refers to community_area_name,SELECT T1.community_area_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no ORDER BY T2.community_area_no DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,How many crimes were handled by Brendan Reilly on 7th October 2018?,شحال من جريمة تكلف بيها Brendan Reilly نهار 7 أكتوبر 2018؟,7th October 2018 refers to date like '10/7/2018%',SELECT SUM(CASE WHEN T2.alderman_last_name = 'Reilly' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN Ward AS T2 ON T1.ward_no = T2.ward_no WHERE T2.alderman_name_suffix IS NULL AND T2.alderman_first_name = 'Brendan' AND date LIKE '10/7/2018%',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many of the unemployed students are disabled?,شحال من طالب معاق ماخدامش؟,,SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,"What is the genre of the game ""Grand Theft Auto V""?","شنو هو النوع ديال اللعبة ""Grand Theft Auto V""؟","genre refers to genre_name; ""Grand Theft Auto V"" refers to game_name = 'Grand Theft Auto V';",SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = 'Grand Theft Auto V',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,Please list the home teams in the matches of the Bundesliga division that ended with a home victory in the 2021 season.,عافك عطيني لائحة ديال الفراقي اللي لعبو فتيرانهم فماتشات Bundesliga اللي سالاو بالبح ديال الفرقة المستضافة فموسم 2021.,"Bundesliga is the name of division; home victory refers to refer to FTR = 'H', where H stands for home victory;",SELECT DISTINCT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T1.FTR = 'H' AND T2.name = 'Bundesliga',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,Give the coordinate of the alleys where a crime was reported and an arrest was made.,عطيني الاحداثيات ديال الزناقي فين تم التبليغ على الجريمة وتدار الاعتقال.,"coordinate refers to latitude, longitude; alley refers to location_description = 'ALLEY'; an arrest was made refers to arrest = 'TRUE'","SELECT latitude, longitude FROM Crime WHERE location_description = 'ALLEY' AND arrest = 'TRUE' GROUP BY latitude, longitude","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,How many role-playing games are there?,شحال من لعبة ديال تقمص الأدوار كاينة؟,role-playing game refers to genre_name = 'Role-Playing',SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Role-Playing',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Calculate the total number of sales in North America.,حساب مجموع المبيعات في أمريكا الشمالية.,"total number of sales = MULTIPLY(SUM(num_sales), 100000); North America refers to region_name = 'North America';",SELECT SUM(T2.num_sales) * 100000 AS nums FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'North America',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,How many games were sold on PS3 platform in Japan?,شحال من لعبة تباعت من منصة PS3 فاليابان؟,"how many games = MULTIPLY(SUM(num_sales), 100000); PS3 refers to platform_name = 'PS3'; Japan refers to region_name = 'Japan';",SELECT SUM(T1.num_sales * 100000) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id INNER JOIN game_platform AS T3 ON T1.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T2.region_name = 'Japan' AND T4.platform_name = 'PS3',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,List out all bankrupt students that are able to make payment before due?,عطيني لائحة ديال جميع الطلاب المفلسين اللي قادرين يخلصو قبل الوقت المحدد؟,make payment before due refers to bool = 'neg';,SELECT T1.name FROM filed_for_bankrupcy AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T2.bool = 'neg',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,How many games are puzzle genre?,شحال من لعبة ديال نوع لغز؟,puzzle genre refers to genre_name = 'Puzzle',SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Puzzle',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,List crimes that the FBI has classified as Drug Abuse by their report number.,سجّل الجرائم اللي اعتبراتهم الـ FBI تعاطي المخدرات بالتقرير ديالها.,"""Drug Abuse"" is the title of crime",SELECT T2.report_no FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no WHERE T1.title = 'Drug Abuse',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,List the name and population of the communities where more than average solicit for prostitutes were reported.,جبد ليا الاسامي وعدد السكان ديال الجماعات اللي تسجلو فيها طلبات للبغاء كثر من المتوسط.,"""SOLICIT FOR PROSTITUTE"" is the secondary_description; more than average refers to count(iucr_no) > Divide (Count(secondary_description = 'SOLICIT FOR PROSTITUTE'), Count(iucr_no)); name of community refers to community_area_name","SELECT T2.community_area_name, T2.population FROM Crime AS T1 INNER JOIN Community_Area AS T2 ON T2.community_area_no = T1.community_area_no INNER JOIN IUCR AS T3 ON T3.iucr_no = T1.iucr_no WHERE T3.iucr_no = ( SELECT iucr_no FROM IUCR WHERE secondary_description = 'SOLICIT FOR PROSTITUTE' GROUP BY iucr_no HAVING COUNT(iucr_no) > ( SELECT SUM(CASE WHEN secondary_description = 'SOLICIT FOR PROSTITUTE' THEN 1.0 ELSE 0 END) / COUNT(iucr_no) AS average FROM IUCR ) )","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,"How many different publishers have published a game that starts with ""Marvel""?","شحال من ناشر مختلف نَشَر لعبة اللي كاتَبدى بـ ""Marvel""؟","game that starts with ""Marvel"" refers to game_name LIKE 'Marvel%';",SELECT COUNT(DISTINCT T1.publisher_id) FROM game_publisher AS T1 INNER JOIN game AS T2 ON T1.game_id = T2.id WHERE T2.game_name LIKE 'Marvel%',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Give the number of students who have payment due.,عطيني عدد الطلاب اللي سالاو الخلاص.,who have payment due refers to bool = 'pos';,SELECT COUNT(name) FROM no_payment_due WHERE bool = 'pos',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,How many simple assaults happened on 2018/9/8?,شحال من اعتداء بسيط وقع ف 2018/9/8؟,simple assault refers to primary_description = 'ASSAULT'AND secondary_description = 'SIMPLE'; on 2018/9/8 refers to date like '%9/8/2018%',SELECT SUM(CASE WHEN T2.secondary_description = 'SIMPLE' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.date LIKE '%9/8/2018%' AND T2.primary_description = 'ASSAULT',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,What is the longest students absence duration from school?,شحال هي أطول مدة الغياب ديال التلامذ على المدرسة؟,longest students absence duration MAX(month),"SELECT name, month FROM longest_absense_from_school WHERE `month` = ( SELECT MAX(month) FROM longest_absense_from_school )","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Give the game name of the game ID 44.,عطيني اسم اللعبة رقم 44.,,SELECT T.game_name FROM game AS T WHERE T.id = 44,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Give the case number and coordinates of the places where child abduction is reported.,عطيني رقم القضية والإحداثيات ديال الأماكن اللي تبلغو فيها على حالات اختطاف الأطفال.,"""CHILD ABDUCTION"" is the secondary_description; coordinates refers to latitude, longitude","SELECT T1.case_number, T1.latitude, T1.longitude FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T2.iucr_no = T1.iucr_no WHERE T2.secondary_description = 'CHILD ABDUCTION'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,List down the name of games published by 3DO.,كتب لي سميات الألعاب اللي نشرتهم 3DO.,name of game refers to game_name; published by 3DO refers to publisher_name = '3DO',SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T3.publisher_name = '3DO',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many students were absence for 4 month?,شحال من تلميذ غيب لمدة 4 شهور؟,absence for 4 month refers to month = 4;,SELECT COUNT(name) FROM longest_absense_from_school WHERE month = 4,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,How many crimes were committed at 018XX S KOMENSKY AVEin May 2018?,شحال د الجرايم لي وقعو فـ 018XX S KOMENSKY AVE فـ مايو 2018؟, in May 2018 refers to date LIKE '5/%/2018%',SELECT SUM(CASE WHEN date LIKE '5/%/2018%' THEN 1 ELSE 0 END) FROM Crime WHERE block = '018XX S KOMENSKY AVE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,How many matches of the Bundesliga division ended with an away victory in the 2021 season?,شحال ديال الماتشات فالدوري الألماني ديال 2021 لي سالاو بفوز الفريق الضيف؟,"Bundesliga is the name of division; away victory refers to FTR = 'A', where 'A' stands for away victory;",SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.FTR = 'A' AND T1.season = 2021,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,In which region where a game had the lowest number of sales?,فإينا منطقة كان عدد مبيعات اللعبة هو الأقل؟,which region refers to region_name; lowest number of sales refers to MIN(num_sales);,SELECT DISTINCT T1.region_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id ORDER BY T2.num_sales LIMIT 1,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,List the case numbers of domestic violence crimes reported in Lincoln Square.,ذكر لي الأرقام ديال الحالات ديال جرائم العنف المنزلي اللي تبلغو عليهم ف Lincoln Square.,domestic violence refers to domestic = 'TRUE'; Lincoln Square refers to community_area_name = 'Lincoln Square',SELECT T2.case_number FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Lincoln Square' AND T2.domestic = 'TRUE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,Please state the district name where incident number JB106545 took place.,عافاك قوليا سمية المنطقة فين وقعات الحادثة رقم JB106545.,incident number JB106545 refers to case_number = 'JB106545',SELECT T1.case_number FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T2.title = 'Criminal Sexual Assault' AND T2.crime_against = 'Persons' AND T1.arrest = 'TRUE' LIMIT 3,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,"Among the students that filed for bankruptcy, how many of them have been enrolled in OCC?",من بين التلاميذ اللي دارو السيزي، شحال فيهم كان مسجل فـ OCC؟,OCC refers to school = 'occ';,SELECT COUNT(T1.name) FROM filed_for_bankrupcy AS T1 INNER JOIN enrolled AS T2 ON T1.name = T2.name WHERE T2.school = 'occ',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,How many Sports games did Nintendo publish?,شحال من لعبة رياضية نشرات Nintendo؟,Sports games refers to game_name WHERE genre_name = 'Sports'; Nintendo refers to publisher_name = 'Nintendo';,SELECT COUNT(T3.id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T4.genre_name = 'Sports' AND T1.publisher_name = 'Nintendo',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,How many neighborhoods can be found in the Forest Glen community area?,شحال من حي كاين ف المنطقة ديال 'Forest Glen' ؟,"""Forest Glen"" is the community_area_name; neighborhoods refers to neighborhood_name",SELECT SUM(CASE WHEN T2.community_area_name = 'Forest Glen' THEN 1 ELSE 0 END) FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Student21 is enlisted in which organization and has the student been absent?,فأي منظمة مسجل الطالب 21؟ واش هاد الطالب غيب؟ ,organization refers to organ,"SELECT T2.month, T1.organ FROM enlist AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.`name` = T2.`name` WHERE T1.name = 'student21'","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,How many matches were played in the Scottish Premiership division from 2006 to 2008?,شحال من ماتش تلعَب فالدرجة الممتازة ديال الدوري الإسكتلندي من 2006 حتى 2008؟,Scottish Premiership is a name of division; from 2006 to 2008 means seasons between 2006 and 2008;,SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Scottish Premiership' AND (T1.season BETWEEN 2006 AND 2008),"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,Calculate the total sales made by the games released in 2000.,حساب المبيعات الإجمالية للي ديال الألعاب اللي خرجو فـ 2000.,total sales = SUM(num_sales); released in 2000 refers to release_year = 2000;,SELECT SUM(T1.num_sales) FROM region_sales AS T1 INNER JOIN game_platform AS T2 ON T1.game_platform_id = T2.id WHERE T2.release_year = 2000,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,What is the beat and location description of the case JB112212?,شنو هو الوصف للضرب و موقع للحالة JB112212؟,case JB112212 refers to case_number = 'JB112212',"SELECT beat, location_description FROM Crime WHERE case_number = 'JB112212'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,Which country had the game that Away team made the most goals?,اش من بلاد لي كانت فيها الماتش لي الفرقة ديال برا دارت فيه بزاف ديال الأهداف ؟,"the most goals refer to MAX(FTAG), which is a short name for Final-time Away-team Goals;",SELECT T2.country FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division GROUP BY T2.country ORDER BY SUM(T1.FTAG) DESC LIMIT 1,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 european_football_1,What is the name of all the teams that played in the EFL League One division?,شنو سميات جميع الفراقي اللي لعبو فالدوري الدرجة الأولى ف الدوري الإنجليزي؟,all the teams include both HomeTeam and AwayTeam; name = 'EFL League One'; DIV = 'E2';,"SELECT T1.HomeTeam,T1.AwayTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div=T2.division WHERE T2.name = 'EFL League One' and T1.Div = 'E2' ","CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,How many community areas are in the Far North side?,شحال من منطقة فيها الناس كاينة في الشمال البعيد؟,the Far North side refers to side = 'Far North',SELECT COUNT(*) FROM Community_Area WHERE side = 'Far North ',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Which department has the most disabled students?,شنو هو القسم اللي فيه أكبر عدد ديال الطلبة المعاقين؟,department refers to organ; most disabled students refers to MAX(disabled.name),"SELECT T2.organ, COUNT(T1.name) FROM disabled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` GROUP BY T2.organ ORDER BY COUNT(T1.name) DESC LIMIT 1","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many disabled students have payment due?,شحال من طالب معاق عندو خلصة واجدة؟,payment due refers to bool = 'pos';,SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.bool = 'pos',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,What was the final score for the game Bursaspor vs Denizlispor on 2009/4/26?,شنو كانت النتيجة النهائية ديال الماتش Bursaspor ضد Denizlispor ف 2009/4/26؟,"Bursaspor vs Denizlispor are names of teams where HomeTeam = 'Bursaspor' and AwayTeam = 'Denizlispor'; Date = '2009-04-26'; final score refers to FTHG, FTAG;","SELECT FTHG, FTAG FROM matchs WHERE Date = '2009-04-26' AND HomeTeam = 'Bursaspor' AND AwayTeam = 'Denizlispor'","CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,To which community area does the neighborhood Albany Park belong?,ف أي منطقة كاين الحي Albany Park؟,community area refers to community_area_name; the neighborhood Albany Park refers to neighborhood_name = 'Albany Park',SELECT T2.community_area_name FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.neighborhood_name = 'Albany Park',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Calculate the average number of disabled female students enrolled in UCI.,"حسب لي المتوسط ديال عدد الطالبات المعاقات المسجلات ف UCI,","average = DIVIDE(SUM(disabled.name who are not in male.name WHERE school = 'uci'), COUNT(enrolled.name)); female students refers to disabled.name who are NOT in male.name; UCI refers to school = 'uci';","SELECT CAST(SUM(IIF(T1.school = 'uci' AND T4.name IS NULL, 1, 0)) AS REAL) / COUNT(T1.name) FROM enrolled AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name INNER JOIN person AS T3 ON T1.name = T3.name LEFT JOIN male AS T4 ON T3.name = T4.name","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Indicate the release year of the game with more than 200000 sales in Japan.,حدد لي عام الإصدار ديال اللعبة اللي فاتت 200000 مبيعة ف اليابان.,more than 200000 sales refers to SUM(num_sales) > 2; Japan refers to region_name = 'Japan';,SELECT DISTINCT T3.release_year FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id WHERE T2.num_sales * 100000 > 200000 AND T1.region_name = 'Japan',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,What percentage of all tied games did the Sassuolo team play in?,شنو هي النسبة المئوية ديال جميع المباريات اللي تعادل فيها الفريق Sassuolo؟,"tied games refer FTR = 'D'; DIVIDE(COUNT(Div where FTR = 'D', HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo'), COUNT(Div where HomeTeam = 'Sassuolo' or AwayTeam = 'Sassuolo')) as percentage;",SELECT CAST(SUM(CASE WHEN HomeTeam = 'Sassuolo' OR AwayTeam = 'Sassuolo' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(FTR) FROM matchs WHERE FTR = 'D',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,What is the diffrence between the number of games produced by Culture Brain that can be played on SNES and DS?,شنو الفرق بين عدد الألعاب اللي دارتهم Culture Brain وكيتلعبو على SNES و DS؟,"difference = SUBTRACT(SUM(platform_name = 'SNES'), SUM(platform_name = 'DS')); SNES refers to platform_name = SNES ; DS refers to platform_name = 'DS' ;",SELECT COUNT(CASE WHEN T1.platform_name = 'SNES' THEN T3.game_id ELSE NULL END) - COUNT(CASE WHEN T1.platform_name = 'DS' THEN T3.game_id ELSE NULL END) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id INNER JOIN publisher AS T4 ON T3.publisher_id = T4.id WHERE T4.publisher_name = 'Culture Brain',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,List down the name of strategy games.,عطيني السميات ديال الالعاب الاستراتيجية.,strategy games refers to game_name WHERE genre_name = 'Strategy';,SELECT T1.game_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Strategy',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,How many games available on PSP were released in 2004?,شحال من لعبة لي كانت ف PSP اللي خرجو في 2004؟,PSP refers to platform_name = 'PSP'; released in 2004 refers to release_year = 2004;,SELECT COUNT(T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T1.platform_name = 'PSP' AND T2.release_year = 2004,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,State the region id of Japan.,عطي لي على الرقم ديال الجهة ديال اليابان.,region id refers to region.id; Japan refers to region_name = 'Japan',SELECT T.id FROM region AS T WHERE T.region_name = 'Japan',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,"Among the students with payment due, how many of them are unemployed?",شحال من تلميذ اللي باقي خاصهم يخلصو وما خدامينش؟,with payment due refers to bool = 'pos';,SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN unemployed AS T2 ON T2.name = T1.name WHERE T1.bool = 'pos',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,How severe was case JB296775? Give the index code for severity.,إينا كانت الخطورة ديال الحالة JB296775؟ عطي الكود ديال الخطورة.,index code refers to iucr_no; case JB296775 refers to case_number = 'JB296775',SELECT T2.iucr_no FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.case_number = 'JB296775',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,How many games can be played on the Wii platform?,شحال من لعبة كاينة اللي تقدر تلعبها على منصة الـWii؟,on the Wii platform refers to platform_name = 'Wii',SELECT COUNT(T1.id) FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id WHERE T2.platform_name = 'Wii',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"Please list the case numbers of all the crimes whose short description of the kind of crime is ""Homicide 1st & 2nd Degree"" in the FBI classification.","عفاك عطيني أرقام القضايا ديال كاع الجرائم اللي التعريف الصغير ديال نوع الجريمة فيها هو ""القتل من الدرجة الأولى والتانية"" (Homicide 1st & 2nd Degree) فتصنيف FBI.","""Homicide 1st & 2nd Degree"" is the title",SELECT T2.case_number FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T1.title = 'Homicide 1st & 2nd Degree',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"Please list the area name of the communities in the Far north side, which has a population of more than 50000 but less than 70000.",عفاك عطيني سميات المناطق اللي فالجهة الشمالية البعيدة، اللي عندها سكان كثر من 50000 و قل من 70000. ,area name refers to community_area_name; the Far north side refers to side = 'Far North'; a population of more than 50000 but less than 70000 refers to population BETWEEN '50000' AND '70000',"SELECT community_area_name, side FROM Community_Area WHERE side = 'Far North ' AND population BETWEEN 50000 AND 70000","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,Calculate the average population of community areas in the West side.,شحال من ليست ديال الأفلام دار اليوزر 83373278 ملي كان مشترك؟,the West side refers to side = 'West'; average population = avg(population) where side = 'West',SELECT AVG(population) FROM Community_Area WHERE side = 'West ',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,State the number of students who filed for bankruptcy and have payment due.,لقى ليا شحال من طالب اللي علنو الإفلاس ومازال متسلفين.,have payment due refers to bool = 'pos';,SELECT COUNT(T1.name) FROM filed_for_bankrupcy AS T1 INNER JOIN no_payment_due AS T2 ON T2.name = T1.name WHERE T2.bool = 'pos',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"How many domestic violence cases were brought in the ward that uses ""ward13@cityofchicago.org""?","شحال من قضية ديال العنف الأسري لي جاو فالحي لي كيخدم ""ward13@cityofchicago.org""؟","domestic violence refers to domestic = 'TRUE'; uses ""ward13@cityofchicago.org"" refers to ward_email = 'ward13@cityofchicago.org'",SELECT SUM(CASE WHEN T2.domestic = 'TRUE' THEN 1 ELSE 0 END) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no WHERE T1.ward_email = 'ward13@cityofchicago.org',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What are the game IDs of the games published by Bethesda Softworks?,شنو هما أرقام الألعاب ديال الألعاب اللي نشراتها Bethesda Softworks؟,Bethesda Softworks refers to publisher_name = 'Bethesda Softworks';,SELECT T1.game_id FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'Bethesda Softworks',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,What is the average number of less severe crimes reported a day in February of 2018?,شحال هو العدد المتوسط ديال الجرائم الخفيفة اللي كيتبلغ عليها يوميا ففبراير ديال 2018؟,"day in February of 2018 refers to date LIKE '2/%/2018'; less severe crime refers to index_code = 'N'; average = Divide (Count(case_number), 28)",SELECT CAST(COUNT(T2.case_number) AS REAL) / 28 FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no WHERE T2.date LIKE '2/%/2018%' AND T1.index_code = 'N',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,What is the percentage ratio of students who are enlisted in foreign legions that have a due payment?,شحال نسبة الطلبة اللي مسجلين في الجيوش الأجنبية و اللي عندهم واجب يخلصوه؟,"have a due payment refers to bool = 'pos'; in foreign legions refers to organ = 'foreign_legion'; ratio refers to DIVIDE(COUNT(bool = 'pos'), COUNT(bool = 'neg'))","SELECT CAST(SUM(IIF(T1.bool = 'pos', 1, 0)) AS REAL) * 100 / SUM(IIF(T1.bool = 'neg', 1, 0)) FROM no_payment_due AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T2.organ = 'foreign_legion'","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Which region has the highest number of games sold on all platforms?,شمن جهة اللي فيها أكبر عدد ديال الألعاب المبيوعة فكاع المنصات؟,which region refers to region_name; highest number of games sold on all platforms refers to MAX(SUM(num_sales));,"SELECT T.region_name FROM ( SELECT T2.region_name, SUM(T1.num_sales) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id INNER JOIN game_platform AS T3 ON T1.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id GROUP BY T4.platform_name ORDER BY SUM(T1.num_sales) DESC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,List by name all the games released in the year 2010.,عَطيني سميات ديال كاع الألعاب اللي تْصَدْرو ف عام 2010.,name of the games refers to game_name; released in the year 2010 refers to release_year = 2010;,SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id WHERE T3.release_year = '2010',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,What is the average absence period of a student?,شحال هي المدّة المتوسطة لغياب طالب؟,"average refers to DIVIDE(SUM(month), COUNT(name))",SELECT AVG(month) FROM longest_absense_from_school,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"In the South side community, what is the name of the community with the most reported incidents of unlawful taking, carrying, leading, or riding away of property from the possession or constructive possession of another person?",ف الجهة الجنوبية، شنو سميّة البلاصة اللي فيه بزاف ديال الحالات المسجّلة ديال ناس دايين شي حاجا لشي واحد اخر ولا هازينها ولا صايقينها ولا راكبينها او فحلة ماشي قانونيه؟,"""unlawful taking, carrying, leading, or riding away of property from the possession or constructive possession of another person"" is the description; name of community refer to community_area_name; most reported incidents refers to Max(Count(fbi_code_no))","SELECT T3.community_area_name FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T3.side = 'South' AND T1.description = 'The unlawful taking, carrying, leading, or riding away of property FROM the possession or constructive possession of another person.' GROUP BY T3.community_area_name ORDER BY COUNT(T1.fbi_code_no) DESC LIMIT 1","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,What was the difference in home team and away team win percentages across all divisions in 2010?,شنو كان الفرق ف نسبة الفوز ديال الفريق المضيف والفريق الزائر ف كاع ديفيزون ديال عام 2010؟,"2010 refers to season = 2010; SUBTRACT(DIVIDE(COUNT(Div where FTR = 'H', season = 2010), COUNT(Div where season = 2010)), COUNT(Div where FTR = 'A', season = 2010), COUNT(Div where season = 2010)) as percentage;",SELECT CAST(COUNT(CASE WHEN FTR = 'H' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(FTR) - CAST(COUNT(CASE WHEN FTR = 'A' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(FTR) DIFFERENCE FROM matchs WHERE season = 2010,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,What is the average of absence for an employed students?,شحال هي نسبة الغياب المتوسطة بالنسبة للطلبة اللي خدامين؟,"average refers to DIVIDE(SUM(month), COUNT(name))",SELECT AVG(month) FROM longest_absense_from_school WHERE name NOT IN ( SELECT name FROM unemployed ),"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,What is the name of the publisher that released the most video games in 2007?,اشنو هي سميت الناشر اللي خرج أكبر عدد ديال الألعاب في 2007؟,name of the publisher refers to publisher_name; publisher that released the most video games in 2007 refers to MAX(COUNT(publisher_name)) WHERE release_year = 2007;,SELECT T3.publisher_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T1.release_year = 2007 GROUP BY T3.publisher_name ORDER BY COUNT(DISTINCT T2.game_id) DESC LIMIT 1,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,Please provide the names of any three away teams that competed in the Italian divisions.,عفاك عطيني سميات ديال شي تلاتة ديال الفرق اللي لعبو في الأقسام الإيطالية كضيوف.,"Italian means belong to country = 'Italy"";",SELECT T1.AwayTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div=T2.division WHERE T2.country = 'Italy' LIMIT 3,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,How many students enlist in the air force organization?,شحال من طالب كايتسجل ف منضمة القوات الجوية؟,organization refers to organ; organ = 'air_force';,SELECT COUNT(name) FROM enlist WHERE organ = 'air_force',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"In the most populated ward, how many incidents of domestic violence were reported in a bar or tavern?",فحي اللي فيه أكبر عدد ديال السكان، شحال من حالة عنف أسري تبلّغو عليها فبار ولا تقصيرة ؟,the most populated refers to max(population); domestic violence refers to domestic = 'TRUE'; in a bar or tavern refers to location_description = 'BAR OR TAVERN',SELECT COUNT(T2.report_no) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.domestic = 'TRUE' AND T2.location_description = 'BAR OR TAVERN' ORDER BY T1.Population DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,What percentage of students who enlisted in the navy make up the number of students enrolled in OCC?,شحال في المية ديال التلامذ اللي دخلو للبحرية وكتشكّلو العدد ديال التلامذ لي مسجّلين فـ OCC؟,in the navy refers to organ = 'navy'; enrolled in OCC refers to school = 'occ',"SELECT CAST(SUM(IIF(T1.school = 'occ', 1.0, 0)) AS REAL) * 100 / COUNT(T1.name) FROM enrolled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T2.organ = 'navy'","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,"Among the students from the navy department, how many of them have payment due?",شحال من طالب من قسم ديال البحرية اللي خاصهم يخلصو؟,from the navy department refers to organ = 'navy'; have payment due refers to bool = 'pos';,SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN no_payment_due AS T2 ON T1.`name` = T2.`name` WHERE T1.organ = 'navy' AND T2.bool = 'pos',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"How many different types of crimes, according to the primary description, have occurred in the Hermosa neighborhood?",شحال من نوع ديال الجرائم اللي وقعات فـحي Hermosa حسب الوصف الأساسي؟,"""Hermosa"" is the neighborhood_name",SELECT SUM(CASE WHEN T4.neighborhood_name = 'Hermosa' THEN 1 ELSE 0 END) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no INNER JOIN Neighborhood AS T4 ON T4.community_area_no = T3.community_area_no,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,How many sales does game platform id 3871 make in Europe?,شحال ديال المبيعات كيعملو المنصة ديال الألعاب رقم 3871 ف أوروبا؟,"number of sales = multiply(num_sales, 100000); in Europe refers to region_name = 'Europe'",SELECT T2.num_sales * 100000 FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Europe' AND T2.game_platform_id = 3871,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Who is responsible for crime cases in district Lincoln?,شكون المسؤول على الجرائم في منطقة Lincoln؟,"""Lincoln"" is the district_name; responsible for crime case refers to commander",SELECT commander FROM District WHERE district_name = 'Lincoln',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Show the id of the game platform with the most sales in region 2.,ورّيني ال ID ديال بلاتفورم ديال اللعبة اللي عندها أكثر مبيعات في البلاصة 2.,id of the game platform refers to game_platform_id; the most sales refers to max(num_sales); region 2 refers to region_id = '2',"SELECT T1.game_platform_id FROM ( SELECT T.game_platform_id, SUM(T.num_sales) FROM region_sales AS T WHERE T.region_id = 2 GROUP BY T.game_platform_id ORDER BY SUM(T.num_sales) DESC LIMIT 1 ) T1","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Please list any three criminal sexual assault cases against persons where the criminals have been arrested.,عفاك جيب ليّا ثلاثة ديال القضايا ديال الاعتداء الجنسي اللي فيهوم المجرمين تْشدو.,"""Criminal Sexual Assault"" is the title of crime; against person refers to crime_against = 'Persons'; criminals have been arrested refers to arrest = 'TRUE'; cases refers to case_number",SELECT T2.case_number FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T1.title = 'Criminal Sexual Assault' AND T2.arrest = 'TRUE' AND T1.crime_against = 'Persons' LIMIT 3,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,List down the enrolled schools and duration of student214.,عافاك قدم ليا سميات المدارس المسجل فيهم ومدة الدراسة ديال الطالب 214.,enrolled schools refers to school; duration refers to month; student214 is a name of student;,"SELECT school, month FROM enrolled WHERE name = 'student214'","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"How many incidents have the general description of ""ASSAULT"" in the IUCR classification?","شحال من حادثة عندها الوصف ديال ""إعتداء"" فتصنيف IUCR؟",general description refers to primary_description; 'ASSAULT' is the primary_description; incidents refers to iucr_no,SELECT COUNT(*) FROM IUCR WHERE primary_description = 'ASSAULT',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Please list all the games that have the same game genre as 3D Lemmings.,عافاك عطيني لائحة بكاع الألعاب اللي عندهم نفس نوع اللعبة بحال 3D Lemmings.,game refers to game_name; 3D Lemmings refers to game_name = '3D Lemmings',SELECT T1.game_name FROM game AS T1 WHERE T1.genre_id = ( SELECT T.genre_id FROM game AS T WHERE T.game_name = '3D Lemmings' ),"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Which year has the most number of video game releases?,شحال من عام فيه أكبر عدد ديال الألعاب الفيديو؟,year that has the most number of video game releases refers to MAX(COUNT(release_year));,"SELECT T1.release_year FROM ( SELECT T.release_year, COUNT(id) FROM game_platform AS T GROUP BY T.release_year ORDER BY COUNT(T.id) DESC LIMIT 1 ) T1","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,"Among the students that have filed for bankruptcy, how many of them have been absent from school for over 5 months?",من بين الطلبة اللي قدمو طلب إفلاس، شحال منهم غابو على المدرسة أكثر من 5 شهور؟,absent from school for over 5 months refers to `month` > 5;,SELECT COUNT(T1.name) FROM filed_for_bankrupcy AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.`name` = T2.`name` WHERE T2.`month` > 5,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,"Among the games released in 2004, what is the percentage of games on PSP?",من بين الألعاب اللي تخرجوا ف عام 2004، شحال النسبة ديال الألعاب اللي كاينين في PSP؟,"in 2004 refers to release_year = 2004; on PSP refers to platform_name = 'PSP'; percentage = divide(sum(platform_id where platform_name = 'PSP'), count(platform_id)) * 100% where release_year = 2004",SELECT CAST(COUNT(CASE WHEN T1.platform_name = 'PSP' THEN T3.game_id ELSE NULL END) AS REAL) * 100 / COUNT(T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T2.release_year = 2004,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many students enlisted in the fire-department?,شحال من طالب تسجّل فـ الوقاية المدنية؟,enlisted in the fire-department refers to organ = 'fire_department';,SELECT COUNT(name) FROM enlist WHERE organ = 'fire_department',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"On average, how many community areas are there in a side?",في المتوسط، شحال من منطقة كاينة في جنب؟,"average = Divide(Count(ward_no), Count(side))",SELECT CAST(COUNT(T1.ward_no) AS REAL) / COUNT(DISTINCT T3.side) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Please provide a disability breakdown for each school.,عفاك عطي تفصيل ديال الإعاقة لكل مدرسة.,disability breakdown refers to the number of disabled students;,SELECT COUNT(T1.name) FROM enrolled AS T1 INNER JOIN disabled AS T2 ON T2.name = T1.name GROUP BY T1.school,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many male stuents do not have payment due?,شحال من طالب ذكر ما عليهومش خلصة؟,do not have payment due refers to bool = 'neg';,SELECT COUNT(T1.name) FROM male AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T2.bool = 'neg',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,"In which division was the match between Hibernian, the away team, and Hearts, the home team, played? To which country does this division belong?",فأي قسم كانت المباراة بين Hibernian، الفريق الزائر، و Hearts، الفريق المضيف؟ لأي بلد كينتمي هاد القسم؟,FALSE;,"SELECT DISTINCT T2.division,T2.country FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.HomeTeam = 'Hearts' AND T1.AwayTeam = 'Hibernian'","CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,How many female students have no payment due?,شحال من طالبة معندهاش شي واجب خلاص؟,have no payment due refers to bool = 'neg'; female students refers to name NOT in male table,SELECT COUNT(name) FROM no_payment_due WHERE name NOT IN ( SELECT name FROM male ),"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,State name of students who have been absent for 5 months from school and do not have payment due.,ذكر أسماء التلاميذ اللي غابو على المدرسة لمدة خمسة شهور وما كاينش عليهم فلوس مستحقّة.,absent for 5 months refers to month = 5; do not have payment due refers to bool = 'neg';,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T1.month = 5 AND T2.bool = 'neg',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"Among the crimes in the Central, calculate the percentage of larceny incidents.",من بين الجرائم فالسنترال، احسب النسبة ديال حالات السرقة.,"Central refers to side = 'Central'; larceny refers to title = 'Larceny'; percentage = divide(count(report_no where title = 'Larceny'), count(report_no)) where side = 'Central' * 100%",SELECT CAST(COUNT(CASE WHEN T3.title = 'Larceny' THEN T2.report_no END) AS REAL) * 100 / COUNT(T2.report_no) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no INNER JOIN FBI_Code AS T3 ON T3.fbi_code_no = T2.fbi_code_no WHERE T1.side = 'Central',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What is the total number of adventure games released in 2005?,شحال من لعبة مغامرة خرجات فـ2005؟,adventure games refers to game_name WHERE genre_name = 'Adventure'; released in 2005 refers to release_year = 2005;,SELECT COUNT(DISTINCT T3.id) FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T4.genre_name = 'Adventure' AND T1.release_year = 2005,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 craftbeer,Which distinct state makes beer that has the least amount of bitterness?,أش من ولاية كتدير البيرة اللي فيها أقل نسبة مرورة؟,,"SELECT DISTINCT T2.state, T1.ibu FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T1.ibu IS NOT NULL AND T1.ibu = ( SELECT MIN(ibu) FROM beers )","CREATE TABLE breweries ( id INTEGER not null primary key, name TEXT null, city TEXT null, state TEXT null ); CREATE TABLE IF NOT EXISTS ""beers"" ( id INTEGER not null primary key, brewery_id INTEGER not null constraint beers_ibfk_1 references breweries, abv REAL, ibu REAL, name TEXT not null, style TEXT, ounces REAL not null ); CREATE INDEX brewery_id on beers (brewery_id); ",2 student_loan,Calculate the percentage of students who have never been absent.,حسب النسبة ديال التلامذ لي عمرهم تغيبو.,"percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(name WHERE month = 0), 100), COUNT(name)),'%'); never been absent refers to month = 0;","SELECT CAST(SUM(IIF(month = 0, 1, 0)) AS REAL) * 100 / COUNT(name) FROM longest_absense_from_school","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,What is the school and gender of student34?,شنو المدرسة والجنس ديال الطالب 34؟,"male.name = 'student34' means student34's gender is male; if 'student34' can't be found in 'male.name', it means student34 is female; student34 is a name of student;","SELECT T1.school , IIF(T3.name IS NULL, 'female', 'male') AS gender FROM enrolled AS T1 INNER JOIN person AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T2.name = T3.name WHERE T2.name = 'student34'","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Compute the average number of sales in region ID 3.,حسب المتوسط ديال المبيعات فالمنطقة رقم 3.,"average = AVG(MULTIPLY(num_sales, 100000));",SELECT AVG(T.num_sales * 100000) FROM region_sales AS T WHERE T.region_id = 3,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many students are enlisted in the Army organization?,شحال من طالب مجنّد ف التنضيم ديال العسكر؟,enlisted in the army refers to organ = 'army';,SELECT COUNT(name) FROM enlist WHERE organ = 'army',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,What is the precise location or coordinate where most of the robberies in Rogers Park occurred?,فين بالضبط البلاصة فين وقعوا اغلبية السرقات فـ الحي ديال Rogers Park؟,"precise location or coordinate refers to latitude, longitude; most refers to fbi_code_no = 3; robbery refers to title = 'Robbery'; Rogers Park refers to community_area_name = 'Rogers Park'","SELECT T2.latitude, T2.longitude FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T1.community_area_name = 'Rogers Park' AND T3.title = 'Robbery' AND T3.fbi_code_no = 3","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,What is the name of the home team in division P1 with the highest final time goal in all seasons?,اشنو سميّة الفريق المحلي فالقسم P1 اللي عندو أعلى هدف فآخر وقت فكل المواسم؟,the highest final time goal refers to MAX(FTHG); P1 = Div;,SELECT HomeTeam FROM matchs WHERE Div = 'P1' AND season = 2021 ORDER BY FTHG DESC LIMIT 1,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,What are the names of the games that were published by 505 Games?,شْنُو سْمْيات الألعاب لي صْدْراتْهُم 505 Games؟,name of game refers to game_name; published by 505 Games refers to publisher_name = '505 Games',SELECT T3.game_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.publisher_name = '505 Games',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,"Tell the genre of the game ""Resident Evil: Revelations"".","قول لي النوع ديال اللعبة ""Resident Evil: Revelations"".","genre refers to genre_name; game ""Resident Evil: Revelations"" refers to game_name = 'Resident Evil: Revelations'",SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = 'Resident Evil: Revelations',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many students enlisted in the navy?,شحال من طالب تسجّل فالجيش البحري؟,navy refers to organ = 'navy';,SELECT COUNT(name) FROM enlist WHERE organ = 'navy',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,Does student348 have a due payment?,واش الطالب348 عندو شي خلصة واجبة؟,"payment due refers to bool = 'pos' means the student has payment due , bool = 'neg' means the student does not have payment due;",SELECT bool FROM no_payment_due WHERE name = 'student348',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many students have been absents for more than 6 months?,شحال من تلميذ غاب أكثر من 6 شهور؟,absents for more than 6 months refers to month > 6,SELECT COUNT(name) FROM longest_absense_from_school WHERE month > 6,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,What is the average number of reckless homicides that happened in a district?,شحال فالمعدل ديال جرائم القتل العمد اللي وقعات فشي منطقة؟,"""RECKLESS HOMICIDE"" is the secondary_description; average = Divide (Count(report_no), Count(district_name))",SELECT CAST(COUNT(T2.report_no) AS REAL) / COUNT(DISTINCT T1.district_name) FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no INNER JOIN IUCR AS T3 ON T3.iucr_no = T2.iucr_no WHERE T3.secondary_description = 'RECKLESS HOMICIDE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,How many draw games happened on 2018/8/7 for National League?,شحال من ماتش تاع التعادل جا ف نهار 7 غشت 2018 فالبوطولة الوطنية؟,National League is the name of division; Date = '2018-08-07'; draw refers to FTR = 'D'; games refer to Div;,SELECT COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'National League' AND T1.Date = '2018-08-07' AND T1.FTR = 'D',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,List out students that enrolled in occ school and enlisted in a fire department.,قيد لائحة الطلبة اللي تسجلو في مدرسة OCC والتحقو بفرقة الإطفاء.,occ school refers to school = 'occ'; department refers to organ; organ = 'fire_department';,SELECT T1.name FROM enlist AS T1 INNER JOIN enrolled AS T2 ON T2.name = T1.name WHERE T2.school = 'occ' AND T1.organ = 'fire_department',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,State the game publisher IDs of the games with a platform ID of 16.,ذكر معرّفات ناشري الألعاب ديال الألعاب اللي عندها معرّف المنصة ديالها 16.,,SELECT T.game_publisher_id FROM game_platform AS T WHERE T.platform_id = 16,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,What's the winning rate of Club Brugge in the 2021 Premier League?,شنو نسبة الربح ديال Club Brugge فالدوري الإنجليزي الممتاز ديال 2021؟,"Premier League is name of division; season = 2021; Club Brugge is name of team; Club Brugge wins implies HomeTeam = 'Club Brugge' and FTR = 'H' and AwayTeam = 'Club Brugge' and FTR = 'A'; DIVIDE(SUM(COUNT(FTR = 'H' where HomeTeam = 'Club Brugge', name = 'Premier League', season = 2021), COUNT(FTR = 'A'where AwayTeam = 'Club Brugge', name = 'Premier League', season = 2021)), COUNT(Div where name = 'Premier League', season = 2021));",SELECT CAST(COUNT(CASE WHEN T1.FTR = 'H' THEN 1 ELSE NULL END) + COUNT(CASE WHEN T1.FTR = 'A' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(t1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T1.AwayTeam = 'Club Brugge' OR T1.HomeTeam = 'Club Brugge',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,Calculate the ratio of disabled students who have never been absent from school.,حسب النسبة ديال الطلبة المعاقين اللي عمرهم ما تغيبوا على المدرسة.,"ratio = MULTIPLY(DIVIDE(SUM(month = 0), COUNT(disabled.name)), 100); never been absent from school refers to month = 0;","SELECT 100 * SUM(IIF(T2.month = 0, 1, 0)) AS num FROM disabled AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,How many domestic violence cases were reported in May 2018?,شحال من حالة ديال العنف الأسري تبلغات ف شهر ماي 2018؟,domestic violence refers to domestic = 'TRUE'; in May 2018 refers to date LIKE '5/%/2018%',SELECT COUNT(*) FROM Crime WHERE date LIKE '5/%/2018%' AND domestic = 'TRUE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,"Does disable students join organization. If yes, please indicate the organization joined by the students.",واش التلاميذ اللي عندهم إعاقة كيشاركوا فشي منظمة؟ إلا كان نعم، عفاك قولينا شنو هي المنظمة اللي كينضموا ليها التلاميذ.,organization refers to organ,SELECT DISTINCT T2.organ FROM disabled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name`,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"How many severe crime incidents were reported at coordinate 41.64820151, -87.54430496?","شحال من حالة جريمة خطيرة تبلّغات فهاد الإحداثيات 41.64820151, -87.54430496؟","coordinates refers to latitude, longitude; severe crime refers to index_code = 'I'",SELECT SUM(CASE WHEN T1.longitude = '-87.54430496' THEN 1 ELSE 0 END) FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.report_no = T2.iucr_no WHERE T2.index_code = 'I' AND T1.latitude = '41.64820251',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,What is the school and organization enrolled by student211?,شنو المدرسة والتنظيم اللي كيشارك فيهم الطالب211؟,organization refers to organ; student211 is a name of student;,"SELECT T2.school, T1.organ FROM enlist AS T1 INNER JOIN enrolled AS T2 ON T2.name = T1.name WHERE T1.name = 'student211'","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,How many times did the team Werder Bremen win as the away team in matches of the Bundesliga division?,شحال من مرة ربح فريق Werder Bremen وهو كيلعب خارج الدار فالماتشات ديال البطولة الألمانية؟,"Bundesliga is the name of division; win as the away team refers to FTR = 'A', where 'A' stands for away victory;",SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.AwayTeam = 'Werder Bremen' AND T1.FTR = 'A',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,State name of female students who filed for bankruptcy.,سمية ليا أسماء الطالبات اللي دارو الإفلاس.,female students refers to filed_for_bankrupcy.name who are NOT in male.name;,SELECT T1.name FROM person AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T1.name = T3.name WHERE T3.name IS NULL,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,State the unemployed students who enlisted in marines.,ذكّر الطلاب العاطلين عن العمل اللي التحقو بالمارينز.,enlisted in marines refers to organ = 'marines';,SELECT T1.name FROM unemployed AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'marines',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,In which year did the record ID 19 with game publisher ID 6657 released?,في أي عام تم إصدار السجل رقم 19 مع ناشر الألعاب رقم 6657؟,which year refers to release_year; record ID 19 refers to game platform.id; id = 19,SELECT T.release_year FROM game_platform AS T WHERE T.game_publisher_id = 6657 AND T.id = 19,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Give the genre of the games released from 2000 to 2002.,عطيني النوع ديال الألعاب اللي تخرجو ما بين 2000 و 2002.,genre refers to genre_name; released from 2000 to 2002 refers to release_year BETWEEN 2000 AND 2002,SELECT DISTINCT T4.genre_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T1.release_year BETWEEN 2000 AND 2002,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Name the neighborhood of the community area in crime with report number 23843?,اشنو هو اسم الحيّ ديال المنطقة ديال الجريمة اللي فيها التقرير رقم 23843؟,neighborhood refers to neighborhood_name; '23778' is the report_no,SELECT T3.neighborhood_name FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN Neighborhood AS T3 ON T2.community_area_no = T3.community_area_no WHERE T2.report_no = 23778,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What is the genre of the game ID 119?,شْنُو هُو النَّوع ديال اللّعبة اللِّي عندها الرقم 119؟,genre of the game refers to genre_name; game ID 119 refers to game.id = 119;,SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.id = 119,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,"List out the organization joined and school enrolled by student27, student17 and student101?",قائمة المنظمات اللي التحقو بها و المدارس اللي تسجلو فيها الطالب27، الطالب17 والطالب101؟,organization joined refers to organ,"SELECT T1.school, T2.organ FROM enrolled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T1.`name` IN ('student27,student17,studetn101')","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,Give the number of students who enlisted in marines and have payment due.,عطيني عدد التلامذ اللي سجلو فالبحرية و عندهم فلوس واجدة.,marines refers to organ = 'marines'; have payment due refers to bool = 'pos';,SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T1.bool = 'pos' AND T2.organ = 'marines',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"Out of all the incidents of domestic violence reported at the ward represented by alderman Walter Burnett Jr., how many were arrested?",من بين جميع الحوادث ديال العنف الأسري اللي ترفعو فالمنطقة اللي كيمثلها العضو البلدي Walter Burnett Jr، شحال من واحد تشد؟,domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE',SELECT SUM(CASE WHEN T2.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T1.alderman_first_name = 'Walter' AND T1.alderman_last_name = 'Burnett' AND alderman_name_suffix = 'Jr.' AND T2.domestic = 'TRUE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,"Among the students that have been absent from school for more than 5 months, how many of them are male?",بين التلاميذ اللي غابو على المدرسة مدة أكثر من 5 شهور، شحال فيهم من ولد؟,absent from school for more than 5 months refers to `month`  > = 5;,SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN male AS T2 ON T1.`name` = T2.`name` WHERE T1.`month` >= 5,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,Please list all the female students that have filed for bankruptcy.,عافاك اعطيني أسماء الطالبات اللي طلبو الإفلاس.,females students have filed for bankruptcy refers to name that appeared in both filed_for_bankrupcy and male tables,SELECT name FROM filed_for_bankrupcy WHERE name NOT IN ( SELECT name FROM male ),"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,What is the name of the division that has had the lowest number of draft matches in the 2019 season?,شنو سمية الفرقة اللي كان فيها أقل عدد د الماتشات د السحب ف موسم 2019؟,the lowest number of draft matches refers to MIN(COUNT(FTR = 'D'));,SELECT T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2019 AND T1.FTR = 'D' GROUP BY T2.division ORDER BY COUNT(FTR) LIMIT 1,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,How many video game publishers have Interactive in their names?,"شحال من ناشر ديال الألعاب الفيديو اللي عندهم كلمة ""Interactive"" ف سميتهم؟",publishers that have Interactive in their names refers to publisher_name LIKE '%Interactive%';,SELECT COUNT(T.id) FROM publisher AS T WHERE T.publisher_name LIKE '%Interactive%',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Which game has the most sales in Japan?,أي لعبة عندها أكثر مبيعات في اليابان؟," which game refers to game_name; most sales refers to MAX(num_sales); Japan refers to region_name = 'Japan';",SELECT T5.game_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN game AS T5 ON T4.game_id = T5.id WHERE T1.region_name = 'Japan' ORDER BY T2.num_sales DESC LIMIT 1,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many disabled students are female?,شحال من تلميذة معاقة كاينة؟,female refers to disabled.name who are NOT in male.name;,SELECT COUNT(name) FROM disabled WHERE name NOT IN ( SELECT name FROM male ),"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,State the number of students do not have payment due.,ذكر ليا عدد التلاميذ لي ما عندهمش شي مبلغ مستحق.,do not have payment due refers to bool = 'neg';,SELECT COUNT(name) FROM no_payment_due WHERE bool = 'neg',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"Which district commander was responsible for more incidents in January, 2018, Robert A. Rubio or Glenn White?",شكون القائد ديال المنطقة اللي كان مسؤول على بزاف ديال الحوادث ف شهر يناير 2018، Robert A. Rubio ولاGlenn White؟,"in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; 'Robert A. Rubio' and 'Glenn White' are both commander; responsible for more incident refers to Max(count(ward_no))","SELECT T1.commander FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T1.commander IN ('Robert A. Rubio', 'Glenn White') AND SUBSTR(T2.date, 1, 1) = '1' AND SUBSTR(T2.date, 5, 4) = '2018' GROUP BY T1.commander","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,"Which is the publisher for the game ""Prism: Light the Way""?","شكون هو الناشر ديال اللعبة ""Prism: Light the Way""?","publisher refers to publisher_name; game ""Prism: Light the Way"" refers to game_name = 'Prism: Light the Way'",SELECT T1.publisher_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T3.game_name = 'Prism: Light the Way',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,How many Away Victories happened on 2016/3/27 in the LaLiga 2 division?,شحال من انتصار اياب كان نهار 2016/3/27 فالقسم الثاني ديال لا ليغا؟,Away victories refer to FTR = 'A'; LaLiga 2 is the name of division; Date = '2016-03-27';,SELECT COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'LaLiga 2' AND T1.Date = '2016-03-27' AND T1.FTR = 'A',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,Which publisher has published the most games in the 'Puzzle' genre?,شكون الناشر اللي نشر أكثر لعاب فصنف 'Puzzle'؟,which publisher refers to publisher_name; publisher that has published the most games refers to MAX(COUNT(publisher_name)); puzzle genre refers to genre_name = 'Puzzle';,"SELECT T.publisher_name FROM ( SELECT T1.publisher_name, COUNT(T3.id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T4.genre_name = 'Puzzle' GROUP BY T1.publisher_name ORDER BY COUNT(T3.id) DESC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"Among the crimes in Woodlawn, how many of them happened in January, 2018?",من بين الجرائم في Woodlawn، شحال منهم وقعو في يناير 2018؟,Woodlawn refers to community_area_name = 'Woodlawn'; in January 2018 refers to date like '%1/2018%',SELECT SUM(CASE WHEN T1.community_area_name = 'Woodlawn' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.date LIKE '%1/2018%',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,How many publishers have published more than 3 puzzle games?,شحال من ناشر نشر كتر من 3 د الألعاب ديال الألغاز؟,puzzle refers to genre_name = 'Puzzle'; more than 3 puzzle games refers to count(game_id where genre_name = 'Puzzle') > 3,"SELECT COUNT(T.publisher_name) FROM ( SELECT T3.publisher_name, COUNT(DISTINCT T1.id) FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T4.genre_name = 'Puzzle' GROUP BY T3.publisher_name HAVING COUNT(DISTINCT T1.id) > 3 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,List any five female students' names who enlisted for the air force.,عطيني خمسة ديال الأسماء ديال الطالبات اللي تسجلو فالقوات الجوية.,female students refers to enlist.name who are NOT in male.name; air force refers to organ = 'air_force';,SELECT T1.name FROM enlist AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name WHERE T2.name IS NULL AND T1.organ = 'air_force' LIMIT 5,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Tell the number of cases with arrests in North Lawndale community.,قوليا الشحال ديال القضايا مع الاعتقالات فمجتمع North Lawndale.,number of cases refers to count(case_number); arrest refers to arrest = 'TRUE'; North Lawndale community refers to community_area_name = 'North Lawndale',SELECT SUM(CASE WHEN T1.community_area_name = 'North Lawndale' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.arrest = 'TRUE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,What is the total number of students in the school?,شحال فالمجموع ديال التلاميذ فالمدرسة؟,,SELECT COUNT(name) FROM person,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,List the game IDs that were released in 2017.,عطيني لائحة ديال الأرقام ديال الألعاب اللي تخرجو فـ 2017.,game ID refers to game.id; released in 2017 refers to release_year = 2017,SELECT T.id FROM game_platform AS T WHERE T.release_year = 2017,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,What are the general and specific descriptions of the most common crime incidents that happened in an aircraft?,شنو هي الأوصاف العامة والخاصة لحوادث الجرائم الأكثر شيوعًا اللي وقعت ف الطيارة؟,in aircraft refers to location_description = 'AIRCRAFT'; general description refers to primary_description; specific description refers to secondary_description; most common crime incidents refers to Max(Count(iucr_no)),"SELECT T2.primary_description, T2.secondary_description FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.location_description = 'AIRCRAFT' GROUP BY T1.iucr_no ORDER BY COUNT(T1.iucr_no) DESC LIMIT 1","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many students are enlisted in the Peace Corps organization are enrolled in UCSD school?,شحال من طالب مسجلين في منظمة Peace Corps مسجلين ف مدرسة UCSD؟,enlisted in the Peace Corps refers to organ = 'peace_corps'; enrolled in UCSD school refers to school = 'ucsd';,SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN enrolled AS T2 ON T1.name = T2.name WHERE T1.organ = 'peace_corps' AND T2.school = 'ucsd',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,What is the title of the game that gained the most sales in Japan?,شنو هو العنوان ديال اللعبة اللي دارت أكبر مبيعات فاليابان؟,title of the game refers to game_name; gained the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan',SELECT T.game_name FROM ( SELECT T5.game_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN game_publisher AS T4 ON T3.game_publisher_id = T4.id INNER JOIN game AS T5 ON T4.game_id = T5.id WHERE T1.region_name = 'Japan' ORDER BY T2.num_sales DESC LIMIT 1 ) t,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Provide the ward number with the highest population.,أعطيني رقم الحي اللي فيه أكبر عدد ديال السكان.,highest population refers to Max(Population); ward number refers to ward_no,SELECT ward_no FROM Ward ORDER BY Population DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Tell the number of games whose publisher id is 352.,قول ليا شحال ديال الألعاب اللي الناشر ديالهم عندو الرقم 352.,number of games refers to count(game_id),SELECT DISTINCT T.game_id FROM game_publisher AS T WHERE T.publisher_id = 352,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,List all the crimes of the narcotic type that exist.,ذكر لي جميع الجرائم المتعلقة بالمخدرات اللي كاينة.,narcotic type refers to primary_description = 'NARCOTICS'; crime refers to secondary_description,SELECT secondary_description FROM IUCR WHERE primary_description = 'NARCOTICS' GROUP BY secondary_description,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,Which away team in the division of Bundesliga has the highest final time goals?,شكون هو الفريق لي كيلعب برا فالدفيزيون ديال Bundesliga لي عندو أعلى عدد ديال الأهداف فالأوقات الأخيرة؟,Bundesliga is a name of division; the highest final time goals refers to MAX(FTAG);,SELECT T1.AwayTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div=T2.division WHERE T2.name = 'Bundesliga' ORDER BY T1.FTAG DESC LIMIT 1,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 european_football_1,What's the home win ratio of the Bundesliga division in 2021?,شحال النسبة ديال الإنتصارات فالدار ديال Bundesliga فـ 2021؟,"home win refers to FTR = 'H', where H stands for home victory; season = '2021'; Bundesliga is a name of division; DIVIDE(COUNT(Div where FTR = 'H, season = '2021' and name = 'Bundesliga'), COUNT(Div where season = '2021' and name = 'Bundesliga')) as percentage;",SELECT CAST(COUNT(CASE WHEN T1.FTR = 'H' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T1.FTR) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T2.name = 'Bundesliga',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,Which game has sold the fewest units?,أي لعبة باعت أقل عدد من النسخ؟,which game refers to game_name; sold the fewest units refers to MIN(num_sales);,SELECT T.game_name FROM ( SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN region_sales AS T4 ON T3.id = T4.game_platform_id ORDER BY T4.num_sales LIMIT 1 ) t,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Provide the platform where the Panzer Tactics can be played.,عطيلي البلاصة فين يمكن لعب Panzer Tactics.,platform refers to platform_name; the Panzer Tactics is a game name.,SELECT T4.platform_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T1.game_name = 'Panzer Tactics',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,List the platform ID of the game titled Airborne Troops: Countdown to D-Day.,عاوني برقم البلاتفورم ديال اللعبة اللي سميتها Airborne Troops: Countdown to D-Day.,Airborne Troops: Countdown to D-Day refers to game_name = 'Airborne Troops: Countdown to D-Day';,SELECT T1.platform_id FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T3.game_name = 'Airborne Troops: Countdown to D-Day',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many unemployed students have payment due?,شحال من طالب عاطل عندهم خلص كيطالبهم؟,have payment due refers to bool = 'pos';,SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN unemployed AS T2 ON T2.name = T1.name WHERE T1.bool = 'pos',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,What is the highest final-time score across all divisions in the 2021 season? Which team was the team that made up that score?,اشْنُو هُوَ أَعلَى نَتيجة فِي نِهَاية المُبَاراة فِي جَمِيع الفَرِيق دِيال مَوسِم 2021؟ أََي فريق كَانَ هُوَ اللِّي سَجَّل هاد النتيجة؟,"MAX(SUM where FTHG, FTAG, season = 2021);","SELECT ( SELECT MAX(MAX(FTAG), MAX(FTHG)) FROM matchs WHERE season = 2021 ) AS T1, AwayTeam FROM matchs WHERE season = 2021 AND FTHG = T1 OR FTAG = T1","CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,What is the number of games sold in Europe for game platform ID 26?,شحال من لعبة تباعة ف أوروبا للبلاطفرم ديال الألعاب اللي عندها الرقم 26؟,"total number of games sold = MULTIPLY(num_sales, 100000); Europe refers to region_name = 'Europe';",SELECT T2.num_sales * 100000 AS nums_eur FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T2.game_platform_id = 26 AND T1.region_name = 'Europe',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,How many teams playing in divisions in Greece have ever scored 4 or more goals?,شحال من فريق كيلعب في الأقسام فGreece سبق ليهم سجلو 4 أهداف أو أكثر؟,"teams include both HomeTeam and AwayTeam; country = 'Greece'; scored 4 or more goals refer to FTAG≥4, which is short name for Final-time Away-team Goals;",SELECT COUNT(DISTINCT CASE WHEN T1.FTHG >= 4 THEN HomeTeam ELSE NULL end) + COUNT(DISTINCT CASE WHEN T1.FTAG >= 4 THEN AwayTeam ELSE NULL end) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.country = 'Greece' ,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,How many female students are disabled?,شحال من طالبة معاقة؟,females students are disabled refers to name that appeared in both disabled and male tables,SELECT COUNT(name) FROM disabled WHERE name NOT IN ( SELECT name FROM male ),"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,"Among the students with disabilities, list any five students' names who are unemployed.",من بين التلاميذ اللي عندهم إعاقة، عطيني سميت خمسة تلاميذ اللي ما خدموش.,students with disabilities who are unemployed refers to disabled.name who are IN unemployed.name;,SELECT T1.name FROM disabled AS T1 INNER JOIN unemployed AS T2 ON T2.name = T1.name LIMIT 5,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,What is the ratio of students who have payment due and those who do not have payment due?,شنو هي النسبة بين الطلبة اللي خاصهم يخلصو و اللي لا؟,"ratio =  DIVIDE(COUNT(name WHERE `bool` = 'pos'), COUNT(name WHERE `bool` = 'neg')); have payment due refers to `bool` = 'pos'; no payment due refers to `bool` = 'neg';","SELECT CAST(SUM(IIF(`bool` = 'pos', 1, 0)) AS REAL) / SUM(IIF(`bool` = 'neg', 1, 0)) FROM no_payment_due","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Find the ward office's address and phone number of the ward where the most crimes without arrest occurred.,لقا العنوان ورقم التليفون د المكتب ديال المقاطعة اللي وقعات فيها أكتر جرائم بلا ما يتشد مول الفعلة.,the most crime without arrest refers to Max(Count(arrest = 'FALSE')); phone number refers to ward_office_phone; address refers to ward_office_address,"SELECT T2.ward_office_address, T2.ward_office_phone FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.arrest = 'FALSE' GROUP BY T2.ward_office_address, T2.ward_office_phone ORDER BY COUNT(T1.arrest) DESC LIMIT 1","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Which students that filed for bankruptcy are also in the foreign legion?,شكون هاد الطلاب اللي دوزو الإفلاس ومازالين مع الفريق الأجنبي؟,in the foreign legion refers to organ = 'foreign_legion';,SELECT T2.name FROM enlist AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.`name` = T2.`name` WHERE T1.organ = 'foreign_legion',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,List the IUCR numbers and index status of homicide incidents.,عطيني لائحة أرقام IUCR وحالة الفهرسة ديال حوادث القتل.,index status refers to index_code; homicide incident refers to primary_description = 'HOMICIDE',SELECT index_code FROM IUCR WHERE primary_description = 'HOMICIDE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Calculate the total number of IDs for the game published by Capcom and Sony Computer Entertainment.,حسب ليا العدد الإجمالي ديال معرفات اللعبة اللي نشرها Capcom وSony Computer Entertainment.,Capcom refers to publisher_name = 'Capcom';  Sony Computer Entertainment refers to publisher_name = 'Sony Computer Entertainment';,"SELECT COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name IN ('Capcom', 'Sony Computer Entertainment')","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,What is the total number of crimes that happened in Bridgeport with beat less than 1000?,شحال كاين فـ المجموع ديال الجرائم اللي وقعات فـ Bridgeport مع beat أقل من 1000؟,Bridgeport refers to community_area_name = 'Bridgeport'; with beat less than 1000 refers to beat < 1000; total number = count(beat) where community_area_name = 'Bridgeport' and beat < 1000,SELECT SUM(CASE WHEN T2.beat < 1000 THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Bridgeport',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,Who is the alderman in the ward associated with the crime with report number 23769?,شكون هو أكبر واحد ف الحي المرتابط بالجريمة اللي عندها رقم التقرير 23769؟,"alderman refers to alderman_suffix, alderman_first_name, alderman_last_name; report number 23769 refers to report_no = 23769","SELECT T2.alderman_first_name, T2.alderman_last_name FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.report_no = 23769","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,Which team was the home team in the match of the Bundesliga division on 2020/10/2?,أش من فريق كان هو المستضيف فالماتش ديال الدوري الألماني فـ 2020/10/2؟,Bundesliga is the name of division; Date = '2020/10/2';,SELECT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.Date = '2020-10-02' AND T2.name = 'Bundesliga',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,What is the percentage of male students in the navy department?,شحال نسبة الطلاب الدكور فالقسم البحري؟,"in the navy department refers to organ = 'navy'; percentage refers to DIVIDE(COUNT(name where organ = 'navy'), COUNT(name))",SELECT CAST(COUNT(T2.name) AS REAL) * 100 / COUNT(T1.name) FROM enlist AS T1 LEFT JOIN male AS T2 ON T1.`name` = T2.`name` WHERE T1.organ = 'navy',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"Among the crimes located in the community area with the highest population, what is the percentage of domestic violence?",شحال النسبة ديال العنف الأسري من بين الجرائم لي كاينة فالبلاصة اللي فيها أكبر عدد ديال السكان؟,"the highest population refers to max(population); domestic violence refers to domestic = 'TRUE'; percentage = divide(count(domestic = 'TRUE'), count(domestic)) where population = max(population) * 100%",SELECT CAST(COUNT(CASE WHEN T2.domestic = 'TRUE' THEN T2.domestic END) AS REAL) * 100 / COUNT(T2.domestic) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no GROUP BY T1.community_area_no HAVING COUNT(T1.population) ORDER BY COUNT(T1.population) DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,What is the neighborhood name in the community area of Lake View?,شنو سمية الحي فالمنطقة ديال Lake View؟,"""Lake View"" is the community_area_name",SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.community_area_name = 'Lake View',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,How many final-time home-team goals were there in total in all the matches of the Bundesliga division in the 2021 season?,شحال كان من هدف دالفريق المضيف فالوقت النهائي فالمجموع فالماتشات كاملين ديال الدوري الألماني فموسم 2021؟,Bundesliga is the name of division; final-time home-team goals refers to FTHG;,SELECT SUM(T1.FTHG) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.season = 2021,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,How many students are filed for bankruptcy?,شحال من طالب دار الإفلاس؟,,SELECT COUNT(name) FROM filed_for_bankrupcy,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many students belong to the navy department?,شحال من طالب كاينين ف قسم البحرية؟,belong to the navy department refers to organ = 'navy';,SELECT COUNT(name) FROM enlist WHERE organ = 'navy',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,"Among the students enrolled in UCLA, what is the percentage of male students in the air force department?",شحال النسبة ديال الطلبة الذكورا لي مسجلين ف قسم القوات الجوية ف جامعة UCLA؟,"UCLA refers to school = 'ucla'; percentage = MULTIPLY(DIVIDE(COUNT(male.name), COUNT(person.name)), 100); male students are mentioned in male.name; department refers to organ; organ = 'air_force';",SELECT CAST(COUNT(T4.name) AS REAL) * 100 / COUNT(T2.name) FROM enlist AS T1 INNER JOIN person AS T2 ON T1.name = T2.name INNER JOIN enrolled AS T3 ON T3.name = T2.name LEFT JOIN male AS T4 ON T2.name = T4.name WHERE T3.school = 'ucla' AND T1.organ = 'air_force',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,How many games were published by Activision?,شحال من لعبة صدرات Activision؟,Activision refers to publisher_name = 'Activision';,SELECT COUNT(DISTINCT T3.id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN game AS T3 ON T1.game_id = T3.id WHERE T2.publisher_name = 'Activision',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,List down the names of the games in the racing genre.,اكتب سميات الألعاب ديال السباق.,name of games refers to game_name; racing genre refers to genre_name = 'Racing';,SELECT T1.game_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Racing',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Provide the number of games sold in North America on the PS4 platform.,سمح ليا شحال من لعبة تباعت ف شمال أمريكا على المنصة ديال PS4 .,"number of games sold refers to sum(multiply(num_sales, 100000)); in North America refers to region_name = 'North America'; on the PS4 platform refers to platform_name = 'PS4'",SELECT SUM(T1.num_sales * 100000) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id INNER JOIN game_platform AS T3 ON T1.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T2.region_name = 'North America' AND T4.platform_name = 'PS4',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,"Of all the teams that played as a team away against Caen in the 2010 season, which one has the highest winning percentage?",من جميع الفرق اللي لعبوا كفريق ضيف ضد فريق Caen ف موسم 2010، شكون هو الفريق اللي عندو أعلى نسبة ديال الربح؟,"Caen refers to HomeTeam; which one refers to AwayTeam; the highest winning percentage = MAX(DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Caen', season = '2010')), COUNT(Div where HomeTeam = 'Caen', season = '2010')) as percentage;",SELECT AwayTeam FROM matchs WHERE HomeTeam = 'Caen' AND season = 2010 AND FTR = 'A' GROUP BY AwayTeam ORDER BY COUNT(AwayTeam) DESC LIMIT 1,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,Calculate the average number of female students who are disabled and who joined Foreign Legion organization.,حسّب المتوسط ديال عدد الطالبات اللي عندهم إعاقة و اللي التحقوا بمنظمة الفريق الأجنبي.,"average = DIVIDE(COUNT(disabled.name who are not in male.name WHERE organ = 'foreign_legion'), COUNT(disabled.name)); female students who are disabled refers to disabled.name who are NOT in male.name; organization refers to organ; organ = 'Foreign Legion';","SELECT CAST(SUM(IIF(T3.name IS NULL, 1, 0)) AS REAL) / COUNT(T1.name) FROM disabled AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T2.name = T3.name WHERE T2.organ = 'foreign_legion'","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,"Among the students enlisted in marines, how many of them are disabled?",من بين الطلبة اللي تسجلو ف البحرية، شحال كن واحد عندهم إعاقة؟,enlisted in marines refers to organ = 'marines';,SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.organ = 'marines',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,"Among the students who have been absent for four months, provide any five students' names and enlisted organizations.",من بين التلاميذ اللي غيبو أربع شهور، عطيني سميات خمسة تلاميذ والبلايص اللي كيتسجلو فيهم.,absent for four months refers to month = 4; enlisted organizations refers to organ;,"SELECT T2.name, T2.organ FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T2.name = T1.name WHERE T1.month = 4 LIMIT 5","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,"Among the games published by 10TACLE Studios, how many of them are puzzles?",من بين الألعاب اللي نشرتها شركة 10TACLE Studios، شحال فيهم ألعاب ديال ألغاز؟,published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'; puzzle refers to genre_name = 'Puzzle',SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T4.genre_name = 'Puzzle' AND T3.publisher_name = '10TACLE Studios',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 craftbeer,"Which city and state produces the most and least bitter beer, and what is the difference in bitterness between the two? List also the names of the beer.",أي مدينة وولاية كيصاوبو أكثر وأقل بيرة مرة، وشحال الفرق فالمرورة بيناتهم؟ وعفاك كولي سميات هاد البيرات.,"The more IBU, the more bitter the beer is, most bitter means highest IBU; The less IBU, the less bitter the beer is, least bitter means lowest IBU","SELECT T1.state, T1.city, T2.name, T2.ibu FROM breweries AS T1 INNER JOIN beers AS T2 ON T1.id = T2.brewery_id GROUP BY T1.state, T1.city, T2.name, T2.ibu HAVING MAX(ibu) AND MIN(ibu) LIMIT 2","CREATE TABLE breweries ( id INTEGER not null primary key, name TEXT null, city TEXT null, state TEXT null ); CREATE TABLE IF NOT EXISTS ""beers"" ( id INTEGER not null primary key, brewery_id INTEGER not null constraint beers_ibfk_1 references breweries, abv REAL, ibu REAL, name TEXT not null, style TEXT, ounces REAL not null ); CREATE INDEX brewery_id on beers (brewery_id); ",2 chicago_crime,What is the name of the community with the highest population?,شنو سمية المجتمع اللي فيه أَكبر سكان؟,name of the community refers to community_area_name; the highest population refers to max(population),SELECT community_area_name FROM Community_Area ORDER BY population DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What is the ratio of game sales between North America and Japan?,شحال هي نسبة مبيعات الألعاب بين أمريكا الشمالية و اليابان؟,"ratio = DIVIDE(SUM(num_sales WHERE region_name = 'North America'), SUM(num_sales WHERE region_name = 'Japan')); North America refers to region_name = 'North America'; Japan refers to region_name = 'Japan';",SELECT SUM(CASE WHEN T2.region_name = 'North America' THEN T1.num_sales ELSE 0 END) / SUM(CASE WHEN T2.region_name = 'Japan' THEN T1.num_sales ELSE 0 END) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,What percentage of matches played on 2005/07/30 belong to the F1 division?,شحال في المية ديال المباريات اللي تلعبو في 30/07/2005 كينين فالديفيزيو ديال F1؟,"Division refers to Div; DIVIDE(COUNT(Div = 'F1', Date = '2005/07/30'), COUNT(Div, Date = '2005/07/30')) as percentage;",SELECT CAST(SUM(CASE WHEN Div = 'F1' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Div) FROM matchs WHERE Date = '2005-07-30' ,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,How many students from SMC are unemployed?,شحال من طالب من SMC ما خدمش؟,from SMC refers to school = 'smc';,SELECT T2.name FROM enrolled AS T1 INNER JOIN unemployed AS T2 ON T1.`name` = T2.`name` WHERE T1.school = 'smc',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,What is the weekly average number of fraud incidents that were reported in January 2018? Provide the description of the location where the majority of fraud incidents occurred in the said month.,شحال هو المتوسط الأسبوعي لعدد حالات الغش اللي تبلغات عليها ف يناير 2018. عفاك عطني الوصف ديال البلاصة اللي وقعت فيها أغلب حالات الغش ف داك الشهر؟,"fraud incident refers to title = 'Fraud'; reported in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; description of location refers to location_description; weekly average refers to Divide (Count(report_no), 4); majority of incidents occurred refers to Max(Count(location_description))","SELECT CAST(COUNT(T1.fbi_code_no) AS REAL) / 4 FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE SUBSTR(T2.date, 1, 1) = '1' AND SUBSTR(T2.date, 5, 4) = '2018'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"Among the crimes reported to the ward located at 1958 N. Milwaukee Ave., list down the report number of the crimes happened inside the apartment.",من بين الجرائم اللي تم تبليغ عليها للبوليس اللي كاين فـ 1958 N. Milwaukee Ave. كتب لي رقم تقارير الجرائم اللي وقعات فشي دار .,1958 N. Milwaukee Ave. refers to ward_office_address = '1958 N. Milwaukee Ave.'; report number refers to case_number; inside the apartment refers to location_description = 'APARTMENT',SELECT T1.case_number FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T1.location_description = 'APARTMENT' AND T2.ward_office_address = '1958 N. Milwaukee Ave.',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Please list the names of the publishers of all the puzzle games.,عافاك عطني السميات ديال الناشرين ديال كاع لألعاب اللّي كيحلو الألغاز.,name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle',SELECT DISTINCT T3.publisher_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T4.genre_name = 'Puzzle',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many disabled students have payment due?,شحال من تلميذ معاق عندو خلصة؟,have payment due refers to bool = 'pos';,SELECT COUNT(T1.name) FROM disabled AS T1 INNER JOIN no_payment_due AS T2 ON T2.name = T1.name WHERE T2.bool = 'pos',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many students in the Air Force?,شحال من تلميذ فالقوات الجوية؟,Air Force refers to organ = 'air_force';,SELECT COUNT(name) FROM enlist WHERE organ = 'air_force',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,"In 2010, how many PS3 games were released?",فـ 2010، شحال من لعبة ديال PS3 خرجات؟,in 2010 refers to release_year = 2010; PS3 refers to platform_name = 'PS3';,SELECT COUNT(T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T1.platform_name = 'PS3' AND T2.release_year = 2010,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Who is the crime against criminal sexual abuse?,شكون خصو يتعاقب على الاعتداء الجنسي الجنائي؟,"""Criminal Sexual Abuse"" is the title of crime",SELECT crime_against FROM FBI_Code WHERE title = 'Criminal Sexual Abuse',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Which organization does student 313 belong to?,أي منظمة كينتمي ليها الطالب 313؟,organization refers to organ,SELECT organ FROM enlist WHERE name = 'studenT113',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Who is the commander of Morgan Park district?,شكون هو القائد ديال منطقة Morgan Park؟,Morgan Park district refers to district_name = 'Morgan Park',SELECT commander FROM District WHERE district_name = 'Morgan Park',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Calculate the number of students who are not disabled.,حسب عدد التلاميذ اللي ما عنهمش إعاقة.,students who are not disabled refers to person.name who are NOT in disabled.name;,"SELECT COUNT(CASE WHEN T2.name IS NULL THEN T1.name END) AS ""number"" FROM person AS T1 LEFT JOIN disabled AS T2 ON T2.name = T1.name","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Calculate the number of games in the fighting genre.,حسب عدد الألعاب ديال القتيلة.,fighting genre refers to genre_name = 'Fighting';,SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Fighting',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many students are enlisted to the air force?,شحال من طالب مسجلين فالقوات الجوية؟,Air Force refers to organ = 'air_force';,SELECT COUNT(name) FROM enlist WHERE organ = 'air_force',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Provide the genre name of the genre ID 3.,ممكن تعطيني سميت نوع الموسيقى اللي عندو رقم التعريف 3؟,genre ID 3 refers to genre.id = 3,SELECT T.genre_name FROM genre AS T WHERE T.id = 3,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"Which alderman represents the ward with the most number of crimes in January, 2018? Please give his or her full name.",شكون هو عضو المجلس البلدي لي كيمثل المنطقة لي كان فيها أكبر عدد ديال الجرائم فيناير 2018؟ عفاك عطيني السمية الكاملة ديالو.,"in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; ward with the most number of crime refers to Max (Count(ward_no)); full name refers to alderman_first_name, alderman_last_name, alderman_name_suffix","SELECT T1.ward_no, T1.alderman_first_name, T1.alderman_last_name, T1.alderman_name_suffix FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE SUBSTR(T2.date, 1, 1) = '1' AND SUBSTR(T2.date, 5, 4) = '2018' GROUP BY T1.ward_no ORDER BY COUNT(T1.ward_no) DESC LIMIT 1","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What year were the first game released?,شمن عام خرجو أول لعبة؟,year the first game was released refers to MIN(release_year);,SELECT T.release_year FROM game_platform AS T ORDER BY T.release_year ASC LIMIT 1,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,How many community areas are there in Central Chicago?,شحال من منطقة جماعية كاينة ف Central Chicago؟,Central Chicago refers to side = 'Central',SELECT COUNT(*) FROM Community_Area WHERE side = 'Central',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many students has the longest absense from school for 5 months?,شحال من تلميذ عندو أطول غياب ف المدرسة لمدة 5 شهور؟,absense from school for 5 month refers to month = 5,SELECT COUNT(name) FROM longest_absense_from_school WHERE month = 5,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,"In games that can be played on Wii, what is the percentage of games released in 2007?",شحال نسبة الألعاب اللي تصدروا فـ 2007 بين الألعاب اللي كيمكن يتلعْبو فـ Wii؟,"Wii refers to platform_name = 'Wii'; percentage = MULTIPLY(DIVIDE(SUM(release_year = 2007), COUNT(release_year)), 100.0); released in 2007 refers to release_year = 2007;",SELECT CAST(COUNT(CASE WHEN T2.release_year = 2007 THEN T3.game_id ELSE NULL END) AS REAL) * 100 / COUNT(T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T1.platform_name = 'Wii',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"Please list any three community areas with a population of more than 50,000.","عفاك سمي ليّا أي ثلاث مناطق سكانية اللي فيها عدد السكان كي يفوت 50,000.",population of more than 50000 refers to Population > 50000; community area refers to community_area_name,SELECT community_area_name FROM Community_Area WHERE population > 50000 LIMIT 3,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"How many incidents are considered ""severe"" in the IUCR classification?","شحال من حادثة كيتعتابروها ""خطيرة"" فتصنيف IUCR؟",severe refers to index_code = 'I'; incidents refers to iucr_no,SELECT COUNT(*) FROM IUCR WHERE index_code = 'I',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Mention the genre of the 2Xtreme.,ذكر لينا النوع ديال 2Xtreme.,genre refers to genre_name; the 2Xtreme game refers to game_name = '2Xtreme',SELECT T2.id FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = '2Xtreme',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"What is the first name of the aldermen of wards with more than 50,000 inhabitants?","اشنو هو السمية اللولة د فُرَّاشِين ديال المِنطَقات اللي فيها كتر من 50,000 نسمة؟",more than 50000 inhabitants refers to Population > 50000; first name of alderman refers to alderman_first_name,SELECT alderman_first_name FROM Ward WHERE Population > 50000,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,How many FIFA games are there across all platforms?,شحال ديال لعاب ديال الفيفا كاينين ف كاع المنصات؟,FIFA games refers to game_name LIKE '%FIFA%';,SELECT COUNT(*) FROM ( SELECT T.game_name FROM game AS T WHERE T.game_name LIKE '%FIFA%' ),"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many students are enrolled in UCLA school?,شحال من طالب مسجّل ف مدرسة UCLA؟,enrolled in UCLA refers to school = 'ucla';,SELECT COUNT(name) FROM enrolled WHERE school = 'ucla',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,List at least 10 students who have no payment due and are enlisted in Fire Department organization.,سجل على الأقل 10 تلاميذ اللي ما عليهمش شي مبلغ مستحق ومسجلين ف منظمة Fire Department.,no payment due refers to bool = 'neg'; organization refers to organ; organ = 'fire_department';,SELECT T1.name FROM no_payment_due AS T1 INNER JOIN enlist AS T2 ON T2.name = T1.name WHERE T1.bool = 'neg' AND T2.organ = 'fire_department' LIMIT 10,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,Which country did Bradford Team belongs to?,لأي بلاد كينتمي فريق Bradford؟,Bradford team refers to HomeTeam = 'Bradford' or AwayTeam = 'Bradford';,SELECT DISTINCT T2.country FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.HomeTeam = 'Bradford' OR T1.AwayTeam = 'Bradford',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,Which organization has the highest number of male students? Calculate for the percentage of the male students in the said organization.,أي منظمة عندها أكبر عدد ديال الطلبة الذكور؟ حسب النسبة ديال الطلبة الذكور ف هاد المنظمة.,"organization refers to organ; highest number of male students refers to MAX(COUNT(male.name)); percentage = DIVIDE(COUNT(male.name), COUNT(person.name)), 1.0;","SELECT T.organ, T.per FROM ( SELECT T1.organ, CAST(COUNT(T3.name) AS REAL) / COUNT(T2.name) AS per , COUNT(T3.name) AS num FROM enlist AS T1 INNER JOIN person AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T2.name = T3.name GROUP BY T1.organ ) T ORDER BY T.num DESC LIMIT 1","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,List down the report number of crimes associated with the district commander named Jill M. Stevens.,سجل أرقام تقارير الجرائم المرتبطة بالمنطقة اللي مسؤولة عليها القائدة Jill M. Stevens.,"report number refers report_no; 'Jill M. Stevens"" is the commander",SELECT SUM(CASE WHEN T1.commander = 'Jill M. Stevens' THEN 1 ELSE 0 END) FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What are the names of games that were released in 2007?,شنو سميات د الألعاب اللي صدرات ف 2007؟,names of games refers to game_name; released in 2007 refers to release_year = 2007;,SELECT T3.game_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.release_year = 2007,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,"Among the students who filed for bankruptcy with an absence in school of no more than 6 months, how many students enlisted for the fire department?",من بين الطلاب اللي هزو لافاليط و ما غيبوش على المدرسة كتر من 6 شهور، شحال عدد الطلاب اللي التحقو بفرق الإطفاء؟,absence of no more than 6 months refers to month < 6; department refers to organ; organ = 'fire_department';,SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name INNER JOIN enlist AS T3 ON T3.name = T2.name WHERE T3.organ = 'fire_department',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,What is the genre of 3D Lemmings?,اشنو هو النوع ديال 3D Lemmings؟,genre refers to genre_name; 3D Lemmings refers to game_name = '3D Lemmings',SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = '3D Lemmings',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"In drug abuse crimes, what percentage is related to cannabis?",مابين الجرائم د المخدرات، شحال فالمية كاتعلق بالكيف؟,"drug abuse crime refer to title = 'Drug Abuse'; percentage = Divide (Count (secondary_description LIKE '%CANNABIS%'), Count (secondary_description)) * 100",SELECT CAST(COUNT(CASE WHEN T1.secondary_description LIKE '%CANNABIS%' THEN T1.secondary_description END) AS REAL) * 100 / COUNT(T1.secondary_description) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN FBI_Code AS T3 ON T3.fbi_code_no = T2.fbi_code_no WHERE T3.title = 'Drug Abuse',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,Provide the responsible person and his/her email address of Chicago Lawn.,عطيني الشخص المسؤول و البريد الإلكتروني ديالو ف Chicago Lawn,responsible person refers to commander; email address refers to email; Chicago Lawn refers to district_name = 'Chicago Lawn',"SELECT commander, email FROM District WHERE district_name = 'Chicago Lawn'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,List down the district's commander associated with the crime that happened at the yard and has a beat of 532.,كتب لي اسميت قائد المنطقة المرتبطة بالجريمة اللي وقعات فالساحة وعندو المنطقة الأمنية رقم 532.,beat of 532 refers to beat = 532; happened in the Yard refers to location_description = 'YARD'; district commander refers to commander,"SELECT T2.address, T2.commander FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.location_description = 'YARD' AND T1.beat = 532","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,"Among all students, calculate the percentage of disabled students.",من بين كاع التلاميذ، حسب النسبة ديال التلاميذ لي عندهم إعاقة.,"percentage = CONCAT(DIVIDE(MULTIPLY(COUNT(disabled.name), 100), (COUNT(person.name that is not in disabled.name))),'%');",SELECT CAST(COUNT(T2.name) AS REAL) * 100 / COUNT(T1.name) FROM person AS T1 LEFT JOIN disabled AS T2 ON T2.name = T1.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,What is the total number of games sold in region ID 1?,شحال هو مجموع الألعاب اللي تبيعات فـالمنطقة رقم 1؟,"total number of games sold = MULTIPLY(SUM(num_sales), 100000);",SELECT SUM(T.num_sales * 100000) FROM region_sales AS T WHERE T.region_id = 1,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,"Indicate, by region, which platform has sold the most games.",دكر ، على حسب الجهة، أش من منصة باعت أكثر ألعاب.,region refers to region_name; platform refers to game_platform; sold the most games refers to MAX(SUM(num_sales));,"SELECT T.region_name FROM ( SELECT T1.platform_name, T4.region_name, SUM(T3.num_sales) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN region_sales AS T3 ON T1.id = T3.game_platform_id INNER JOIN region AS T4 ON T3.region_id = T4.id GROUP BY T1.platform_name, T4.region_name ORDER BY SUM(T3.num_sales) DESC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,State the name of the platforms for games released in 2000.,قولي أسماء المنصات ديال الألعاب اللي خرجات ف سنة 2000.,name of the platforms refers to platform_name; released in 2000 refers to release_year = 2000;,SELECT DISTINCT T2.platform_name FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id WHERE T1.release_year = 2000,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Find out the difference between the number of publishers who released the games on the PS3 and X360.,لقى الفرق بين رقم الناشرين اللي صادرو الألعاب على PS3 و X360.,"difference = SUBTRACT(SUM(platform_name = 'PS3'), SUM(platform_name = 'X360')); PS3 refers to platform_name = 'PS3'; X360 refers to platform_name = 'X360';",SELECT COUNT(CASE WHEN T2.platform_name = 'PS3' THEN T1.game_publisher_id ELSE NULL END) - COUNT(CASE WHEN T2.platform_name = 'X360' THEN T1.game_publisher_id ELSE NULL END) FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,List the names of all the publishers who published one game only.,عطيني السميات ديال كاع لي. كينشرو لي نشرو غير لعبة وحدة.,name of publisher refers to publisher_name; published one game only refers to count(publisher_id) = 1,"SELECT T.publisher_name FROM ( SELECT T2.publisher_name, COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id GROUP BY T2.publisher_name HAVING COUNT(DISTINCT T1.game_id) = 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"More crimes happened in which community area in January, 2018, Woodlawn or Lincoln Square?",واش كانو كتر ديال الجرائم ف Woodlawn ولا ساحة lincoln ف يناير 2018؟,"in January 2018 refers to date like '%1/2018%'; Woodlawn or Lincoln Square refers to community_area_name in ('Woodlawn', 'Lincoln Square'); number of crime refers to COUNT(report_no); the higher the report_no, the more crimes happened in the community;","SELECT T1.community_area_name FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.community_area_name IN ('Woodlawn', 'Lincoln Square') AND T2.date LIKE '%1/2018%' GROUP BY T1.community_area_name ORDER BY COUNT(T1.community_area_name) DESC LIMIT 1","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"Among the crimes with no arrest made, how many of them happened in the ward represented by alderman Pat Dowell?",شحال من جريمة اللي ما تشد فيها حد وقعات فالدائرة اللي كيتمثلها المستشار Pat Dowell؟,no arrest has been made refers to arrest = 'FALSE',SELECT SUM(CASE WHEN T1.alderman_last_name = 'Dowell' THEN 1 ELSE 0 END) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.arrest = 'FALSE' AND T1.alderman_first_name = 'Pat',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,What is the percentage difference between month 0 absence and month 9 absence?,شحال الفرق فالنسبة بين الغياب فالشهر 0 والغياب فالشهر 9؟,"percentage difference = CONCAT(DIVIDE(MULTIPLY(SUBTRACT(COUNT(name WHERE month = 0), COUNT(name WHERE month = 9)), 100), COUNT(name WHERE month = 0)),'%');","SELECT CAST(((SUM(IIF(month = 0, 1, 0)) - SUM(IIF(month = 9, 1, 0)))) AS REAL) * 100 / SUM(IIF(month = 0, 1, 0)) FROM longest_absense_from_school","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,How many crime against property are there?,شحال من جريمة على الملكية كاينة؟,,SELECT COUNT(*) AS cnt FROM FBI_Code WHERE crime_against = 'Property',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Name all students enlisted in the foreign legion.,سميات كاع الطلة لي تسجلو ف العسكر النكليزي,in the foreign legion organ = 'foreign_legion';,SELECT name FROM enlist WHERE organ = 'foreign_legion',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,List all the platform games.,لائحة كاع منصات د الألعاب.,platform game refers to genre_name = 'Platform'; game refers to game_name,SELECT T2.game_name FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id WHERE T1.genre_name = 'Platform',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,State name of disabled students who have the longest duration of absense from school.,عطيني سميات التلاميذ المعاقين اللي عندهم أطول مدة د غياب على المدرسة.,longest duration of absense refers to MAX(month),SELECT T1.name FROM disabled AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name ORDER BY T2.month DESC LIMIT 1,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,What is the organization enlisted by student168?,شنو هي organisation للي سُجّل فيها الطالب 168؟,organization refers to organ; student168 is a name of student;,SELECT organ FROM enlist WHERE name = 'student168',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Provide at least 5 ward office addresses associated with the crimes that happened in the community of Montclare.,عطيني على الأقل 5 عناوين ديال مكاتب ديال الدائرة اللي مرتبطين بالجرائم اللي وقعو فـ Montclare.,"""Montclare"" is the community_area_name",SELECT T3.ward_office_address FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN Ward AS T3 ON T2.ward_no = T3.ward_no WHERE T1.community_area_name = 'Montclare' GROUP BY T3.ward_office_address LIMIT 5,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,List all students in the air force and which school they were enrolled at.,قيد لي جميع الطلبة فالطيران و فاش مدرسة كانوا مسجلين.,in the air force refers to organ = 'air_force';,"SELECT T1.name, T1.school FROM enrolled AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T2.organ = 'air_force'","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,What is the percentage of games that were released on PS4 in 2014 among all platforms?,شحال هي النسبة ديال الألعاب اللي خرجو على PS4 فـ 2014 مقارنة مع كاع المنصات؟,"percentage - MULTIPLY(DIVIDE(SUM(platform_name = 'PS4'), COUNT(game_id)), 100); in 2014 refers to release_year = 2014;",SELECT CAST(COUNT(CASE WHEN T2.platform_name = 'PS4' THEN T3.game_id ELSE NULL END) AS REAL) * 100 / COUNT(T3.game_id) FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id INNER JOIN game_publisher AS T3 ON T1.game_publisher_id = T3.id WHERE T1.release_year = 2014,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Please check if student 124 is disabled male.,شوف واش الطالب 124 راه معاق وذكر.,if student name appear in disabled then student is disabled and vice versa; if student name appear in male then student is male and vice versa,"SELECT IIF(T2.name IS NULL, 'female', 'male') FROM male AS T1 LEFT JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.name = 'student124'","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many unemployed and bankrupt students that have payment dues?,شحال من تلميذ مخدامش و عندو مستحقات خاصو يخلصها؟,have payment dues refers to bool = 'pos',SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name INNER JOIN no_payment_due AS T3 ON T2.name = T3.name WHERE T3.bool = 'pos',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Which publisher published Overwatch?,شكون الناشر اللي نشر Overwatch ؟,which publisher refers to publisher_name; Overwatch refers to game_name = 'Overwatch';,SELECT T3.publisher_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T1.game_name = 'Overwatch',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,List out student IDs that have the longest absence duration from school.,عطيني لوائح د أرقام التلاميذ اللي عندهم أطول مدة ف غياب على المدرسة.,longest absence duration refers to MAX(month),SELECT name FROM longest_absense_from_school WHERE `month` = ( SELECT MAX(month) FROM longest_absense_from_school ),"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,How many games in the database belong to the genre of sports?,شحال من لعبة فالداتا كاينين اللي ماتيعلقو بنوع ديال الرياضة؟,the genre of sports refers to genre_name = 'Sports',SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Sports',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Give the neighborhood name of West Englewood community.,عطيني اسميت الحي ديال منطقة West Englewood.,West Englewood community refers to community_area_name = 'West Englewood',SELECT T1.neighborhood_name FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.community_area_name = 'West Englewood',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,How many weapons violation crimes have occurred in the Calumet district?,"شحال من جريمة فيها خرق ديال السلاح وقعات ف Culumet district ؟ ","""Calumet"" is the district_name; 'WEAPON VIOLATION' is the primary_description of crime",SELECT SUM(CASE WHEN T3.district_name = 'Calumet' THEN 1 ELSE 0 END) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T1.primary_description = 'WEAPONS VIOLATION',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"The ward represented by which alderman had more incidents in January, 2018, Pat Dowell or Sophia King?",شكون من المستشارين لي كان عندو أكثر حوادث في يناير 2018، Pat Dowell ولا Sophia king ؟,"January, 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; had more incidents refers to Max(Count(ward_no))","SELECT T1.alderman_first_name, T1.alderman_last_name, COUNT(T1.ward_no) AS num FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE (SUBSTR(T2.date, 1, 1) = '1' AND SUBSTR(T2.date, 5, 4) = '2018' AND T1.alderman_first_name = 'Pat' AND T1.alderman_last_name = 'Dowell') OR (T1.alderman_first_name = 'Sophia' AND T1.alderman_last_name = 'King') GROUP BY T1.ward_no","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What is the first year a game is released?,شنو هو أول عام خرجات فيه شي لعبة؟,the first year refers to min(release_year),SELECT MIN(T.release_year) FROM game_platform t,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,List down the student names who did not file for bankruptcy.,عطيني لائحة ديال سميات التلاميذ اللي ما علنوش سيزي.,students name who did not file a bankruptcy refers to person.name who are NOT in filed_for_bankrupcy.name;,SELECT name FROM person WHERE name NOT IN ( SELECT name FROM filed_for_bankrupcy ),"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,How many violation of laws are there where no arrest has been made?,شحال كاين من خرق ديال القوانين ما فيهش اعتقال؟,"""The violation of laws "" is the description of incidents; no arrest has been made refers to arrest = 'FALSE'",SELECT SUM(CASE WHEN T1.description LIKE '%The violation of laws%' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T2.Arrest = 'FALSE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,"What percentage of games won, games lost and games drawn does Cittadella have as a home team in total?",شنو هي نسبة الماتشات اللي ربحات Cittadella، الماتشات اللي خسرات والماتشات اللي سالاو بالتعادل كفريق مستضيف؟,"Percentage of games won = DIVIDE(COUNT(FTR = 'H' where HomeTeam = 'Cittadella'), COUNT(Div where HomeTeam = 'Cittadella')) as percentage; Percentage of games lost = DIVIDE(COUNT(FTR = 'A' where HomeTeam = 'Cittadella')), COUNT(Div where HomeTeam = 'Cittadella') as percentage; percentage of games drawn = DIVIDE(SUM(FTR = 'D'where HomeTeam = 'Cittadella'), COUNT(Div where HomeTeam = 'Cittadella')) as percentage; ","SELECT CAST(COUNT(CASE WHEN FTR = 'H' THEN 1 ELSE NULL END) / COUNT(HomeTeam) AS REAL) * 100, CAST(COUNT(CASE WHEN FTR = 'A' THEN 1 ELSE NULL END) AS REAL) / COUNT(HomeTeam), CAST(COUNT(CASE WHEN FTR = 'D' THEN 1 ELSE NULL END) AS REAL) / COUNT(HomeTeam) FROM matchs WHERE HomeTeam = 'Cittadella'","CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,"How many games are not of the genres 'Role-Playing', 'Shooter' and 'Simulation'?","شحال من لعبة ماشي من النوع ديال 'Role-Playing', 'Shooter' و 'Simulation'?","not of the genres 'Role-Playing', 'Shooter' and 'Simulation' refers to genre_name NOT IN ('Role-Playing', 'Shooter', 'Simulation');","SELECT COUNT(T2.id) FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id WHERE T1.genre_name NOT IN ('Role-Playing', 'Shooter', 'Simulation')","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Please list all of the contact information for the police district Near West.,عافاك عطيّني كاع معلومات الاتصال ديال البوليس ديال Near West.,"""Near West"" is the district_name; all contact information refers to phone, fax, tty, twitter","SELECT phone, fax, tty, twitter FROM District WHERE district_name = 'Near West'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"District commander Robert A. Rubio was responsible for how many incidents in January, 2018?",شحال من واقعة كان مسؤول عليها قائد المنطقة Robert A. Rubio ف يناير 2018؟,"in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'","SELECT SUM(CASE WHEN SUBSTR(T2.date, 5, 4) = '2018' THEN 1 ELSE 0 END) FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T1.commander = 'Robert A. Rubio' AND SUBSTR(T2.date, 1, 1) = '1'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Name all disabled students that are enrolled in SMC.,سميات كاع الطلبة المعاقين لي مسجلين ف SMC.,enrolled in SMC refers to school = 'smc';,SELECT T2.name FROM enrolled AS T1 INNER JOIN disabled AS T2 ON T1.`name` = T2.`name` WHERE T1.school = 'smc',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,Which school have the highest student enrollment? How many of those students are filed for bankruptcy?,أي مدرسة عندها أعلى نسبة تسجيل ديال التلاميذ؟ شحال من واحد من هاد التلاميذ لي معندهمش فلوس؟,highest student enrollment refers to MAX(COUNT(school));,"SELECT T.school, num FROM ( SELECT T1.school, COUNT(T2.name) AS num FROM enrolled AS T1 LEFT JOIN filed_for_bankrupcy AS T2 ON T2.name = T1.name GROUP BY T1.school ) T ORDER BY T.num DESC LIMIT 1","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,How many districts are there in the police district building with a zip code of 60608?,شحال من حي كاينين فالمبنى د البوليس لي عندو الكود البريدي 60608؟,district refers to district_name,SELECT COUNT(*) AS cnt FROM District WHERE zip_code = 60608,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Name 5 students with due payments that are enlisted alongside which organization they were enlisted.,سمّيت 5 طلبة اللي عليهم كريدي و اللي مسجلين و مع أي منظمة مسجلين.,with due payments refers to bool = 'pos'; organization refers to organ,"SELECT T2.organ, T1.name FROM no_payment_due AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T1.bool = 'pos' LIMIT 5","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many unemployed students have never been absent?,شحال من طالب عاطل عمرهم ما غيبو ؟,never been absent refers to month = 0;,SELECT COUNT(T2.name) FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T2.name = T1.name WHERE T1.month = 0,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Provide the name of games released in 2015.,عطيني السميات ديال الألعاب اللي خرجات فـ2015.,names of games refers to game_name; released in 2015 refers to release_year = 2015;,SELECT T3.game_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.release_year = 2015,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,What is the percentage difference between the attendence of disabled and non-disable students? Do the disable students show better attendance than non-disable students?,شحال هي النسبة المئوية ديال الفرق بين الحضور ديال التلاميذ المعاقين والتلاميذ اللي ماعندهمش إعاقات؟ واش التلاميذ المعاقين كيحضروا بشكل أحسن من التلاميذ اللي ماعندهمش إعاقات؟,"difference = MULTIPLY(DIVIDE(SUBTRACT(COUNT(longest_absense_from_school.name that is in disabled.name), COUNT(longest _absense_from_school.name that is NOT in disabled.name), longest _absense_from_school.name), 100)); IF COUNT(longest_absense_from_school.name that is in disabled.name) < COUNT(longest _absense_from_school.name that is NOT in disabled.name), it means, the disabled students have better attendance than non-disabled students; IF COUNT(longest_absense_from_school.name that is in disabled.name) > COUNT(longest _absense_from_school.name that is NOT in disabled.name), it means the disabled students do not have a better attendance than non-disabled students;","SELECT CAST((SUM(IIF(T2.name IS NOT NULL AND T1.month = 0, 1, 0)) - SUM(IIF(T2.name IS NULL AND T1.month = 0, 1, 0))) AS REAL) * 100 / COUNT(T1.name), IIF(SUM(IIF(T2.name IS NOT NULL AND T1.month = 0, 1, 0)) - SUM(IIF(T2.name IS NULL AND T1.month = 0, 1, 0)) > 0, 'YES', 'NO') AS isHigh FROM longest_absense_from_school AS T1 LEFT JOIN disabled AS T2 ON T2.name = T1.name","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,State name of students who filed for bankruptcy and have the longest duration of absense from school.,عطيني سميات ديال التلاميذ اللي علنو سيزي ديالهم و غيبو أطول مدة على المدرسة.,longest duration of absense refers to MAX(month),SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name ORDER BY T1.month DESC LIMIT 1,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Who is the commanding officer in the district with the highest number of disorderly conduct?,شكون هو القائد ديال المنطقة اللي فيها أكبر عدد ديال التصرفات الغير منضبطة؟,commanding officer refers to commander; the highest number refers to max(count(district_no)); disorderly conduct refers to title = 'Disorderly Conduct',SELECT T1.commander FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T3.title = 'Disorderly Conduct' AND T2.fbi_code_no = 24 GROUP BY T2.fbi_code_no ORDER BY COUNT(T1.district_no) DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many months has student217 been absent?,شحال من شهر غيب الطالب217؟,,SELECT month FROM longest_absense_from_school WHERE name = 'student217',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many students are disabled?,شحال من تلميذ معاق ؟,,SELECT COUNT(name) FROM disabled,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,List at least 5 students who have payment due and are enlisted in Peace Corps organization?,لائحة 5 طلاب اللي خاصهم يخلصو و كاينين ف منظمة Peace Corps.,have payment due refers to bool = 'pos'; organization refers to organ; organ = 'Peace Corps';,SELECT T1.name FROM no_payment_due AS T1 INNER JOIN enlist AS T2 ON T2.name = T1.name WHERE T2.organ = 'peace_corps' AND T1.bool = 'pos' LIMIT 5,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Which publisher has published the most games?,أش من ناشر نشر أكبر عدد د الألعاب؟,publisher refers to publisher_name; the most games refers to max(count(game_id)),"SELECT T.publisher_name FROM ( SELECT T2.publisher_name, COUNT(DISTINCT T2.id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id GROUP BY T1.publisher_id ORDER BY COUNT(T2.id) DESC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Show the id of game platform which makes the most sales in Japan.,وريني المعرف ديال منصة الألعاب اللي كتدير أكتر مبيعات ف اليابان.,id of game platform refers to game_platform_id; the most sales refers to max(num_sales); in Japan refers to region_name = 'Japan',"SELECT T.game_platform_id FROM ( SELECT T2.game_platform_id, MAX(T2.num_sales) FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Japan' ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"Among the crimes happened in the neighborhood called ""Avalon Park"", what is the percentage of crimes that happened inside the house?","من بين الجرائم اللي وقعات فالحومة اللي مسمية ""Avalon Park ""، شحال هي النسبة ديال الجرائم اللي وقعات ف دار؟","""Avalon Park"" is the neghborhood_name; happened inside the house refers to location_description = 'HOUSE'; percentage = Divide (Count(location_description = 'HOUSE'), Count(location_description)) * 100",SELECT CAST(SUM(CASE WHEN T2.location_description = 'HOUSE' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.location_description) AS persent FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN Neighborhood AS T3 ON T2.community_area_no = T3.community_area_no WHERE T3.neighborhood_name = 'Avalon Park',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,How many games did Electronic Arts publish?,شحال من لعبة نشرتها Electronic Arts؟,Electronic Arts refers to publisher_name = 'Electronic Arts',SELECT COUNT(DISTINCT T2.game_id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id WHERE T1.publisher_name = 'Electronic Arts',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Is student281 disabled and which school is the student enrolled in?,واش الطالب281 معاق؟ و فين مسجل الطالب؟,,"SELECT T2.name, T1.school FROM enrolled AS T1 INNER JOIN disabled AS T2 ON T1.`name` = T2.`name` WHERE T1.name = 'student281'","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,List the games available on Wii.,الألعاب للي كاينين ف Wii.,games available refers to game_name; Wii refers to platform_name = 'Wii';,SELECT T4.game_name FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T1.platform_name = 'Wii',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"What is the difference between the number of communities that are located on the north and south sides with a population of more than 30,000?","شنو الفرق بين عدد المجتمعات اللي كاينة فالشمال والجنوب و اللي سكانها كثر من 30,000؟","population of more than 30000 refers to Population > 30000; 'North' and 'South' both are the side; different number of community refers to Subtract(Count(Community_area_no where side = 'South'), Count(Community_area_no where side = 'North'))",SELECT SUM(CASE WHEN side = 'South ' THEN 1 ELSE 0 END) - SUM(CASE WHEN side = 'North' THEN 1 ELSE 0 END) AS DIFF FROM Community_Area WHERE population > 300000,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"Among all the crimes that had happened in Central Chicago, how many of them were cases of domestic violence?",من بين كاع الجرائم اللي وقعو وسط شيكاغو، شحال منهم كانوا حالات ديال العنف المنزلي؟,Central Chicago refers to district_name = 'Central'; case of domestic violence refers to domestic = 'TRUE',SELECT COUNT(*) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T2.district_name = 'Central' AND T1.domestic = 'TRUE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What platform is the game 3Xtreme available on?,شْنُو هي البْلَاتْفُورْمْ اللِّي كَاينَة فِيهَا لْعْبَة 3Xtreme؟,what platform refers to platform_name; 3Xtreme refers to game_name = '3Xtreme';,SELECT T2.platform_name FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id INNER JOIN game_publisher AS T3 ON T1.game_publisher_id = T3.id INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T4.game_name = '3Xtreme',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Please list the names of all the games published by 10TACLE Studios and are puzzles.,عفاك لائحة سميات كاع الألعاب اللي خرجاتهم 10TACLE Studios و اللي هما ألعاب د ألغاز.,name refers to game_name; published by 10TACLE Studios refers to publisher_name = '10TACLE Studios'; puzzle refers to genre_name = 'Puzzle',SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T3.publisher_name = '10TACLE Studios' AND T4.genre_name = 'Puzzle',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,List the number of games that ended up with 5-0 in Greece.,لائحة عدد الماتشات اللي سالاو بـ 5-0 ف اليونان.,5-0 is a score where FTHG = '5' and FTAG = '0'; Greece is a name of country; games refer to Div;,SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.country = 'Greece' AND T1.FTHG = 5 AND T1.FTAG = 0,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,How many neighborhoods are there in the community area of Lincoln Square?,شحال من حي كاين في منطقة المجتمع ديال Lincoln Square؟,the community area of Lincoln Square refers to community_area_name = 'Lincoln Square',SELECT COUNT(T3.community_area_no) FROM ( SELECT T1.community_area_no FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE community_area_name = 'Lincoln Square' GROUP BY T1.community_area_no ) T3,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Give the number of games which were published by Ascaron Entertainment GmbH.,عطيني عدد الألعاب اللي نشراتهم Ascaron Entertainment GmbH .,published by Ascaron Entertainment GmbH refers to publisher_name = 'Ascaron Entertainment GmbH',SELECT COUNT(T2.game_id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id WHERE T1.publisher_name = 'Ascaron Entertainment GmbH',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,What is the percentage of larceny cases among all cases that happened in Edgewater community?,شنو هي النسبة ديال حالات الشفرة مقارنة مع كاع الحالات اللي وقعات ف منطقة Edgewater؟,"larceny case refers to title = 'Larceny'; Edgewater community refers to community_area_name = 'Edgewater'; percentage = divide(count(case_number where title = 'Larceny'), count(case_number)) where community_area_name = 'Edgewater' * 100%",SELECT CAST(SUM(CASE WHEN T3.title = 'Larceny' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.case_number) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no WHERE T1.community_area_name = 'Edgewater',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,Give the FBI code description of case No.JB134191.,عطي وصف الكود ديال مكتب التحقيقات الفدرالي للقضية رقم JB134191.,case No.JB134191 refers to case_number = 'JB134191',SELECT description FROM Crime AS T1 INNER JOIN FBI_Code AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T1.case_number = 'JB134191',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"How many aldermen have ""James"" as their first name?","شحال من عضو مجلس سميتو ""James""؟",,SELECT COUNT(*) FROM Ward WHERE alderman_first_name = 'James',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,How many Eredivisie teams have played in 2008?,شحال من فريق من فرق Eredivisie لعبو فـ2008؟,Eredivisie is the name of division; 2008 refers to season; teams refer to HomeTeam;,SELECT COUNT(DISTINCT T1.HomeTeam) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Eredivisie' AND T1.season = 2008,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,Who is the commanding officer in the district with the highest number of reported crimes where no arrest has been made?,شكون هو القائد ديال المنطقة اللي فيها أكبر عدد ديال الجرائم اللي تبلغ عليها وما دّار عليها حتى اعتقال؟,where no arrest refers to arrest = 'FALSE'; highest number of crime refers to Max(Count(report_no)); commanding officer refers to commander,SELECT T2.commander FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T1.arrest = 'FALSE' GROUP BY T2.commander ORDER BY COUNT(T1.report_no) DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,How many neighborhoods are there in Near North Side?,شحال من حي كاين ف Near North Side؟,Near North Side refers to community_area_name = 'Near North Side',SELECT SUM(CASE WHEN T1.community_area_name = 'Near North Side' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Provide the ID of 1C Company.,عطيني الـID ديال شركة 1C.,ID refers to publisher.id; 1C Company refers to publisher_name = '1C Company',SELECT T.id FROM publisher AS T WHERE T.publisher_name = '1C Company',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many students have never been absent from school?,شحال ديال التلاميذ عمرهم ما تغيبوا على المدرسة؟,have never been absent refers to `month` = 0;,SELECT COUNT(name) FROM longest_absense_from_school WHERE `month` = 0,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,How many games were released in 1981?,شحال من لعبة خرجات ف 1981؟,released in 1981 refers to release_year = 1981,SELECT COUNT(T.id) FROM game_platform AS T WHERE T.release_year = 1981,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Which publisher has published the most number of Action games?,شنو هي الشركة اللي نشرات أكبر عدد ديال ألعاب action ؟,which publisher refers to publisher_name; publisher that has published the most number of Action games refers to MAX(COUNT(publisher_name)) WHERE genre_name = 'Action'; Action games refers to game_name WHERE genre_name = 'Action';,"SELECT T.publisher_name FROM ( SELECT T4.publisher_name, COUNT(DISTINCT T2.id) FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id INNER JOIN game_publisher AS T3 ON T2.id = T3.game_id INNER JOIN publisher AS T4 ON T3.publisher_id = T4.id WHERE T1.genre_name = 'Action' GROUP BY T4.publisher_name ORDER BY COUNT(DISTINCT T2.id) DESC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,List all the disabled female students., لائحة ديال الطالبات اللي عندهم إعاقة.,,SELECT T1.name FROM disabled AS T1 INNER JOIN male AS T2 ON T1.name <> T2.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,State the number of male students who do not have payment due.,قول عدد التلاميذ الذكور اللي ما عندهمش منحة .,do not have payment due refers to bool = 'neg';,SELECT COUNT(T1.name) FROM no_payment_due AS T1 INNER JOIN male AS T2 ON T2.name = T1.name WHERE T1.bool = 'pos',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,What phone number does alderman Emma Mitts have to call if she wants to speak to the commander in charge of the investigation of the crimes that have occurred in her ward?,شنو هو رقم التليفون اللي خاص على Emma Mitts تتاصل بيه إلا بغات تهدر مع القايد المسؤول على التحقيق فالجريمات اللي وقعات فالدائرة ديالها؟,,SELECT T3.phone FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T1.alderman_first_name = 'Emma' AND T1.alderman_last_name = 'Mitts',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Who is the publisher of 3D Lemmings?,شكون اللي نشر 3D Lemmings؟,publisher refers to publisher_name; 3D Lemmings refers to game_name = '3D Lemmings',SELECT T3.publisher_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T1.game_name = '3D Lemmings',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"Among the incidents with the generic description of ""BATTERY"" in the IUCR classification, how many of them do not have arrests made?","من بين الحوادث اللي عندهم الوصف العام ""BATTERY"" في تصنيف IUCR ، شحال فيهم ما تدارتش فيهم اعتقالات؟",general description refers to primary_description; 'BATTERY' is the primary_description; do not have arrest made refers to arrest = 'FALSE',SELECT SUM(CASE WHEN T2.arrest = 'FALSE' THEN 1 ELSE 0 END) FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.primary_description = 'BATTERY',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,How many game publisher IDs have published games on the X360 platform?,شحال من ناشر د الألعاب نشر ألعاب ف منصة X360؟,X360 refers to platform_name = 'X360';,SELECT COUNT(T1.game_publisher_id) FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id WHERE T2.platform_name = 'X360',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"Among the crimes in the ward with the most population, how many of them are cases of domestic violence?",من بين الجرائم فالحومة اللي فيها بزاف دالناس، شحال من حالة منهم ديال العنف الأسري؟,most population refers to Max(Population); domestic violence refers to domestic = 'TRUE',SELECT COUNT(T1.ward_no) AS num FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.domestic = 'TRUE' ORDER BY T1.Population = ( SELECT Population FROM Ward ORDER BY Population DESC LIMIT 1 ),"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,How many games include the word 'Box' in their name?,شحال من لعبة اللي فيها كلمة 'بوكس' ف سميتها؟,games include the word 'Box' in their name refers to game_name = '%Box%';,SELECT COUNT(*) FROM ( SELECT T.game_name FROM game AS T WHERE T.game_name LIKE '%Box%' ),"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Which game platform is the most popular in Europe?,شنو هي منصة الألعاب اللي مشهورة فـأوروبا؟,game platform refers to game_platform_id; the most popular refers to max(num_sales); in Europe refers to region_name = 'Europe',"SELECT T.platform_name FROM ( SELECT T4.platform_name, SUM(T2.num_sales) FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T1.region_name = 'Europe' ORDER BY T2.num_sales DESC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,What is the total number of sales across all regions?,شنو هو العدد الإجمالي للمبيعات ف جميع المناطق؟,total number of sales = sum(num_sales),SELECT SUM(T.num_sales) * 100000 FROM region_sales t,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,"Among the male students, list down the names of students with payment due.",بين الطلاب الذكور، عطي أسماء الطلاب اللي باقي خاصهم يخلصو.,male students are mentioned in male.name; with payment due refers to bool = 'pos';,SELECT T1.name FROM male AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T2.bool = 'pos',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,What is the FBI code and definition of Gambling?,شنو هو الكود والتعريف ديال الـFBI للعب القمار؟,FBI code refers to fbi_code_no; definition refers to description; Gambling refers to title = 'Gambling',"SELECT fbi_code_no, description FROM FBI_Code WHERE title = 'Gambling'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Provide the students' names and schools who enrolled for 15 months.,عطيني أسامي التلاميذ و المدارس لي تسجلو لمدة 15 شهر.,enrolled for 15 months refers to month = 15;,"SELECT name, school FROM enrolled WHERE month = 15","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many employed disabled students have zero absences?,كم من طالب معاق خدام ما غابش ولا مرة؟,employed students refers to disabled.name who are NOT in unemployed.name; zero absences refers to month = 0;,SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name INNER JOIN unemployed AS T3 ON T3.name = T2.name WHERE T1.month = 0,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,What is the exact location of the crimes that occurred in the Belmont Cragin community?,فين بالضبط مكان الجرائم اللي وقعو في مجتمع Belmont Cragin؟,"Belmont Cragin community refers to community_area_name = 'Belmont Cragin'; exact location refers to latitude, longitude","SELECT T2.latitude, T2.longitude FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'Belmont Cragin' GROUP BY T2.latitude, T2.longitude","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,What is the short description of the crime committed the most by criminals in the least populated community?,شنو هي الوصف المختصر للجريمة الأكثر ارتكابا من طرف المجرمين في الجماعة الأقل سكانا؟,short description refers to title; committed the most refers to max(fbi_code_no); the least populated community refers to min(population),"SELECT T3.title FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN FBI_Code AS T3 ON T2.fbi_code_no = T3.fbi_code_no GROUP BY T3.title ORDER BY T1.population ASC, T3.fbi_code_no DESC LIMIT 1","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What is the genre of the game '2 Games in 1: Sonic Advance & ChuChu Rocket!'?,شنو النوع ديال اللعبة '2 Games in 1: Sonic Advance & ChuChu Rocket!'؟,genre refers to genre_name; '2 Games in 1: Sonic Advance & ChuChu Rocket!' is a game name;,SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = '2 Games in 1: Sonic Advance & ChuChu Rocket!',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,State name of students who have the longest duration of absense from school and do not have payment due.,قيد ليا سمية التلاميذ لي عندهم اكبر مدة غياب و ماعندهمش خلصة.,longest duration of absence from school refers to MAX(month); do not have payment due refers to bool = 'neg';,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN no_payment_due AS T2 ON T1.name = T2.name WHERE T2.bool = 'neg' ORDER BY T1.month DESC LIMIT 1,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many disabled students have been absent for 3 months from school?,شحال من طالب دوي الإحتياجات الخاصة غابو على المدرسة لمدة ديال 3 شهور؟,have been absent for 3 months from school refers to month = 3,SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.month = 3,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,State name of unemployed students who have the longest duration of absense from school.,قدم ليا أسماء التلاميذ اللي ما خدامينش و عندهم أطول مدة ديال الغياب من المدرسة.,longest duration of absense refers to MAX(month),SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T1.name = T2.name ORDER BY T1.month DESC LIMIT 1,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Indicate the name of all the games published for the 'SCD' platform.,عافاك قوليا أسماء جميع الألعاب اللي تصدرو على لوحة 'SCD'.,name of games refers to game_name;  'SCD' platform refers to platform_name = 'SCD';,SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN game_platform AS T3 ON T2.id = T3.game_publisher_id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T4.platform_name = 'SCD',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many unemployed students are there that have been absent for 6 months?,شحال من طالب عاطل كاين لي غاب لمدة ستة شهور؟,absent for 6 months refers to month = 6;,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN unemployed AS T2 ON T1.`name` = T2.name WHERE T1.`month` = 6,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,List all the navy students who are disabled.,لائحة جميع التلاميذ ديال البحرية اللي معاقين.,navy students refers to organ = 'navy'; disabled student refers to disabled.name,SELECT T1.name FROM disabled AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'navy',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,Count the number of male students who belong to foreign legion.,حسب عدد التلاميذ الذكور اللي كينتميو للفيلق الأجنبي.,belong to foreign legion refers to organ = 'foreign_legion';,SELECT COUNT(T1.name) FROM male AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'foreign_legion',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,What is the alderman's full name of the most crowded ward?,شنو السمية كاملة د المستشار ديال الدائرة اللي فيها زحام بزاف؟,"alderman's full name refers to alderman_name_suffix, alderman_first_name, alderman_last_name; the most crowded refers to max(population)","SELECT alderman_name_suffix, alderman_first_name, alderman_last_name FROM Ward ORDER BY population DESC LIMIT 1","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Sum the total game sales in every region for platform ID 9658.,جمع مبيعات الألعاب الكلية في كل منطقة للمنصة اللي رقمها 9658.,"total game sales refers to multiply(sum(num_sales), 100000); platform ID 9658 refers to game_platform_id = 9658",SELECT SUM(T.num_sales) * 100000 FROM region_sales AS T WHERE T.game_platform_id = 9658,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Which genre has the most games? Show its id.,أي نوع من الألعاب كاين بزاف؟ وريها ليا رقم التعريف.,the most games refers to max(game_id); genre id refers to genre_id,"SELECT genre_id FROM ( SELECT T.genre_id, COUNT(T.id) FROM game AS T GROUP BY T.genre_id ORDER BY COUNT(T.id) DESC LIMIT 1 )","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"What is the fax number for the district with the most number of crimes in January, 2018?",شنو هو رقم الفاكس ديال المقاطعة اللّي فيها أكبر عدد ديال الجرائم ف يناير 2018؟,fax number refers to fax; the most number of crimes refers to max(count(case_number)); in January 2018 refers to date like '%1/2018%',SELECT T1.fax FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T2.date LIKE '%1/2018%' GROUP BY T2.district_no ORDER BY COUNT(case_number) DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,Mention the name of disabled students who have never been absent from school.,قول سميات التلاميذ المعاقين اللي عمرهم ما غابوا على المدرسة.,never been absent from school refers to month = 0,SELECT T1.name FROM disabled AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name = T2.name WHERE T2.month = 0,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,What is the ward ID of the most crowded ward?,اشنو هو رقم الجناح الأكثر ازدحام؟,most crowded ward refers to Max(Population),SELECT ward_no FROM Ward ORDER BY Population DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many bankrupt students are there in the Marines?,شحال من طالب مفلس كاين فMarines؟,Marines refers to organ = 'marines';,SELECT COUNT(T1.name) FROM filed_for_bankrupcy AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'marines',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,"For the Ligue 2 game that made the most goals, who is the winner of that game?",فالماتش ديال ليغ 2 اللي كان فيه أكتر الأهداف، شكون ربح هاد الماتش؟,"Ligue 2 is the name of division; the most goals refer to MAX(SUM(FTHG, FTAG)) which are short names for Final-time Home-team Goals and Final-time Away-team Goals; winner refers to FTR = 'A';",SELECT CASE WHEN T1.FTR = 'H' THEN T1.HomeTeam ELSE T1.AwayTeam END WINNER FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Ligue 2' ORDER BY T1.FTAG + T1.FTHG DESC LIMIT 1,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,"Please list the case numbers of all the incidents with the generic description of ""BATTERY"" in the IUCR classification.","عفاك عطيني نمرة القضايا ديال جميع الحوادث لي عندها الوصف العام ""Battery"" فالتصنيف ديال IUCR.",general description refers to primary_description; 'BATTERY' is the primary_description,SELECT T2.case_number FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T1.primary_description = 'BATTERY',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many students have never been absent in school?,شحال من تلميذ عمرهم ما تغيبو ف المدرسة؟,never been absent in school refers to month = 0;,SELECT COUNT(name) FROM longest_absense_from_school WHERE month = 0,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,Give the full name of the divison that had the most 0-0 games.,عطيني الاسم الكامل للقسم اللي كان عنده أكبر عدد من المباريات اللي سالات بنتيجة 0-0.,the most 0-0 games means a no-score draw and refers to MAX(COUNT(Div where FTHG = '0' and FTAG = '0'));,SELECT T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.FTAG = 0 AND T1.FTHG = 0 GROUP BY T2.division ORDER BY COUNT(T1.FTAG) DESC LIMIT 1,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 european_football_1,What is the most consecutive games tied by Ebbsfleet as an away team in the 2008 season?,شحال هو عدد المبارايات المتتالية اللي سالات بالتعادل لفريق Ebbsfleet كفريق ضيف ف موسم 2008؟,consecutive games mean happen one after the other without interruption and refer to Date; tied refers to FTR = 'D';,SELECT COUNT(*) FROM matchs WHERE season = 2008 AND AwayTeam = 'Ebbsfleet' AND FTR = 'D',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,Give the detailed description of all the crimes against society.,عطيني الوصف المفصل لجميع الجرائم ضد المجتمع.,crime against society refers to crime_against = 'Society',SELECT description FROM FBI_Code WHERE crime_against = 'Society',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,What is the precise coordinate of the location where simple assault incidents happened the most in Chatham?,أشنو هي النقطة الدقيقة للمكان اللي وقعوا فيه أكثر حالات العنف البسيط في Chatham؟,"precise coordinates refers to latitude, longitude; 'Simple Assault' is the title of incident; 'Chatham' is the community_area_name; most incident happened refers to Max(Count(latitude, longitude))","SELECT T2.latitude, T2.longitude FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T1.title = 'Simple Assault' AND T3.community_area_name = 'Chatham' AND T3.community_area_no = 44 ORDER BY T2.latitude DESC, T2.longitude DESC LIMIT 1","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,On which platform was Panzer Tactics released in 2007?,فاشن بلاتفورم خرجو Panzer Tactics فـ 2007؟,platform refers to platform_name; Panzer Tactics refers to game_name = 'Panzer Tactics'; released in 2007 refers to release_year = 2007,SELECT T5.platform_name FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN game AS T3 ON T1.game_id = T3.id INNER JOIN game_platform AS T4 ON T1.id = T4.game_publisher_id INNER JOIN platform AS T5 ON T4.platform_id = T5.id WHERE T3.game_name = 'Panzer Tactics' AND T4.release_year = 2007,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,List out the number of disabled students who enlisted in marines.,مكن تحصي عدد التلاميذ المعاقين اللي سجلو ف البحرية؟,marines refers to organ = 'marines';,SELECT COUNT(T1.name) FROM disabled AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'marines',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Which commander has had to deal with more cases of criminal sexual abuse?,اش من قائد تهلا فكثرية ديال الحالات ديال الاعتداء الجنسي؟,more cases of criminal sexual abuse refers to Max(Count(secondary_description = 'CRIMINAL SEXUAL ABUSE')),SELECT T3.commander FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no WHERE T1.secondary_description = 'CRIMINAL SEXUAL ABUSE' GROUP BY T3.commander ORDER BY COUNT(T1.secondary_description) DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,List down the names of platform where the games released in 2016 can be played on.,كتّب ليا أسماء المنصات اللي اللعب ديال 2016 قدّرت تلعب فيهم.,name of platform refers to platform_name; released in 2016 refers to release_year = 2016,SELECT DISTINCT T1.platform_name FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id WHERE T2.release_year = 2016,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,Which 2 Scottish teams scored 10 goals playing as a local team and in which seasons?,شنو هما الجوج ديال الفراقي السكوتلنديين اللي جابو 10 د الجواو وهمّا كي لعبو ف البلاد ومع أي مواسم؟,"local team refers to HomeTeam; Scottish means belong to the country = 'Scotland'; scored 10 goals refer to FTHG = 10, which is short name for Final-time Away-team Goals;",SELECT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.country = 'Scotland' AND T1.FTHG = 10,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 european_football_1,How many matches were held during the 2021 season's Premier League?,شحال عدد الماتشات اللي كانو فموسم البريمير ليغ ديال 2021؟,Premier League is the name of division;,SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T2.name = 'Premier League',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,"Among students who have been absent for nine months, how many of them are disabled?",من بين التلاميذ اللي غابوا مدة تسعة شهور، شحال فيهم اللي عندهم إعاقة؟,absent for 9 months refers to month = 9;,SELECT COUNT(T1.name) FROM disabled AS T1 LEFT JOIN longest_absense_from_school AS T2 ON T2.name = T1.name WHERE T2.month = 9,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,How many times did Valencia's home team win in the LaLiga division?,شحال من مرة ربحت الفريق فالانسيا فالديفيزيون ديال لا ليغا؟,LaLiga is a name of the division; Valencia's home team refers to HomeTeam = 'Valencia'; win refers to FTR = 'H';,SELECT COUNT(T1.HomeTeam) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'LaLiga' AND T1.HomeTeam = 'Valencia' AND T1.FTR = 'H',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,What are the games that were released in 2006?,شْنُو هما اللَعَب اللي خْرَجَو فـ 2006؟,game refers to game_name; released in 2006 refers to release_year = 2006,SELECT T3.game_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.release_year = 2006,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Which students that are in the marines have been absent for 6 months?,شكون من التلامد اللي فالبحرية كانوا غيابين لمدة 6 شهور؟,in the marines refers to organ = 'marines'; absent for 6 months refers to month = 6,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T2.organ = 'marines' AND T1.`month` = 6,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,List the platforms that release the most games each year.,عداد لي البلاطفرومات اللي كتصدر اكتر عدد ديال الألعاب كل عام.,platform refers to platform_id; the most games refers to max(count(game_publisher_id)),"SELECT T1.platform_name FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id GROUP BY T2.release_year, T1.platform_name ORDER BY COUNT(DISTINCT T3.game_id) DESC","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Describe the specific description and case locations under IUCR 142.,وصف الوصف المحدد وأماكن الحوادث تحت كود IUCR 142. ,"specific description refers to secondary_description; location refers to latitude, longitude; IUCR 142 refers to iucr_no = 142","SELECT T1.secondary_description, T2.latitude, T2.longitude FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T2.iucr_no = 142","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many disabled students have never been absent from school?,شحال من تلميذ معاق اللي عمرهم ما غابو على المدرسة؟,never been absent from school refers to month = 0,SELECT COUNT(T1.name) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.`name` = T2.`name` WHERE T1.`month` = 0,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,"State the publisher name of the game ""ModNation Racers"".","سمي ليّ ناقل ديال لعبة ""ModNation Racers"".","game ""ModNation Racers"" refers to game_name = 'ModNation Racers'",SELECT T1.publisher_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T3.game_name = 'ModNation Racers',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,What is the average number of incidents per month in 2018 in the ward with the most population?,شحال هو العدد المتوسط ديال الحوادث فالشهر في 2018 فالحومة اللي فيها كثر سكان؟,"in 2018 refers to date like '%2018%'; ward with most population refers to Max(Population); average number of incident per month refers to Divide(Count(ward_no), 12)",SELECT COUNT(T1.ward_no) / 12 AS average FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.date LIKE '%2018%' AND T1.Population = ( SELECT MAX(T1.Population) FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.date LIKE '%2018%' ),"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,When did the first match that score more than 10 goals happen?,إيمتى كانت أول ماتش الّي تسجّل فيه أكثر من 10 دوال؟,"score more than 10 goals refers to SUM(FTHG, FTAG)>10, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; the first means the earliest and refers to MIN(Date);",SELECT MIN(Date) FROM matchs WHERE FTHG + FTAG > 10,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,Indicate the publisher who has published the most games of all time.,شكون الناشر اللي نشر أكبر عدد د الألعاب ف التاريخ.,publisher refers to publisher_name; publisher who has published the most games of all time refers to MAX(COUNT(publisher_name));,"SELECT T.publisher_name FROM ( SELECT T2.publisher_name, COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id GROUP BY T2.publisher_name ORDER BY COUNT(DISTINCT T1.game_id) DESC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,"Which team had more home victories in the 2021 season's matches of the Bundesliga division, Augsburg or Mainz?",أي فريق كان عندو بزاف ديال الإنتصارات في الدار فماتشات موسم 2021 لبطولة البوندسليغا، Augsburg ولا Mainz؟,Bundesliga is the name of division; more home victories refer to MAX(FTR = 'H)'; Augsburg and Mainz are names of teams and refer to HomeTeam;,SELECT CASE WHEN COUNT(CASE WHEN T1.HomeTeam = 'Augsburg' THEN 1 ELSE NULL END) - COUNT(CASE WHEN T1.HomeTeam = ' Mainz' THEN 1 ELSE NULL END) > 0 THEN 'Augsburg' ELSE 'Mainz' END FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.season = 2021 AND T1.FTR = 'H',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,"Among the incidents in January, 2018, how many of them were stated ""against Property"" in the FBI classification?","من بين الحوادث في يناير 2018، شحال منهم كيمثلو ""ضد الممتلكات"" ف التصنيف ديال المخابرات الفيدرالية؟","in January 2018 refers to Substr(date, 1, 1) = '1' AND Substr(date, 5, 4) = '2018'; against property refers to crime_against = 'Property'","SELECT SUM(CASE WHEN SUBSTR(T2.date, 5, 4) = '2018' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T1.crime_against = 'Property' AND SUBSTR(T2.date, 1, 1) = '1'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Please list the names of all the games published by 10TACLE Studios.,عفاك لوّح لينا سميات كاع الألعاب اللي صادرتها شركة 10TACLE Studios.,name refers to game_name; published by 10TACLE Studios refers to publisher_name = '10TACLE Studios',SELECT T1.game_name FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id WHERE T3.publisher_name = '10TACLE Studios',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many students enlisted in the Navy?,شحال من طالب تسجلو فالبحرية؟,Navy refers to organ = 'navy';,SELECT COUNT(name) FROM enlist WHERE organ = 'navy',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Give the game publisher ID of records with platform ID 15.,عطيني رقم الهوية ديال ناشر اللعبة ديال السجلات اللي عندهم رقم الهوية ديال المنصة 15.,platform ID 15 refers to platform_id = 15,SELECT T.game_publisher_id FROM game_platform AS T WHERE T.platform_id = 15,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,List out the number of female students who enlisted in the air force.,حدد عدد الطالبات اللي تسجلو فالجيش الجوي.,enlisted in the air force refers to organ = 'air_force';,SELECT COUNT(name) FROM enlist WHERE organ = 'air_force' AND name NOT IN ( SELECT name FROM male ),"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,List out female students that enrolled in occ school and ulca?,عطي لائحة الطالبات اللي تسجلو فمدرسة OCC و UCLA؟,"female students refers to enrolled.name who are NOT in male.name; occ school and ulca refers to school IN('occ', 'ulca');","SELECT name FROM enrolled WHERE school IN ('occ', 'ulca') AND name NOT IN ( SELECT name FROM male )","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,"Of all the divisions in the world, what percentage of them belong to England?",من بين جميع التقسيمات في العالم، شحال فالمية منهم كيتبعو لEngland؟,"DIVIDE(COUNT(division where country = 'England'), COUNT(division)) as percentage;",SELECT CAST(COUNT(CASE WHEN country = 'England' THEN division ELSE NULL END) AS REAL) * 100 / COUNT(division) FROM divisions,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,What is the name of the publisher that has published the most puzzle games?,شنو سميّة الناشر اللي نشر أكبر عدد ديال لألعاب ديال الأحاجي؟,name of publisher refers to publisher_name; puzzle refers to genre_name = 'Puzzle'; the most puzzle games refers to max(count(game_id where genre_name = 'Puzzle')),"SELECT T.publisher_name FROM ( SELECT T3.publisher_name, COUNT(DISTINCT T1.id) FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id INNER JOIN genre AS T4 ON T1.genre_id = T4.id WHERE T4.genre_name = 'Puzzle' GROUP BY T3.publisher_name ORDER BY COUNT(DISTINCT T1.id) DESC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,In which year was Panzer Tactics released on DS?,ف أي عام صدرت لعبت Panzer Tactics على جهاز ال DS؟,year refers to release_year; Panzer Tactics refers to game_name = 'Panzer Tactics'; on DS refers to platform_name = 'DS',SELECT T4.release_year FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN game AS T3 ON T1.game_id = T3.id INNER JOIN game_platform AS T4 ON T1.id = T4.game_publisher_id INNER JOIN platform AS T5 ON T4.platform_id = T5.id WHERE T3.game_name = 'Panzer Tactics' AND T5.platform_name = 'DS',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Calculate the ratio of unemployed students who have never been absent from school.,حَسّب النسبة ديال الطلبة العاطلين لي ما عمرهم غابو من المدرسة.,"ratio = CONCAT(DIVIDE(MULTIPLY(COUNT(unemployed.name WHERE month = 0), 100), COUNT(month)),'%'); unemployed students who have never been absent from school refers to (unemployed.name WHERE month = 0);","SELECT CAST(SUM(IIF(T2.month = 0, 1, 0)) AS REAL) * 100 / COUNT(T1.name) FROM unemployed AS T1 INNER JOIN longest_absense_from_school AS T2 ON T2.name = T1.name","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Who is the person responsible for the crime cases in Central Chicago?,شكون هو الشخص المسؤول على قضايا الجرائم في وسط Chicago؟,the person responsible for the crime cases refers to commander; Central Chicago refers to district_name = 'Central',SELECT commander FROM District WHERE district_name = 'Central',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,"What is the id of the game ""Resident Evil Archives: Resident Evil""?","شنو هو رقم التعريف ديال اللعبة ""Resident Evil Archives: Resident Evil""؟","id of game refers to game.id; ""Resident Evil Archives: Resident Evil"" refers to game_name = 'Resident Evil Archives: Resident Evil'",SELECT T.genre_id FROM game AS T WHERE T.game_name = 'Resident Evil Archives: Resident Evil',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,List down the record ID of records released between 2000 to 2003.,كتب ليا الريكورد ID ديال الريكوردات اللي تلاحو بين 2000 و 2003.,record ID refers to game.id; released between 2000 to 2003 refers to release_year BETWEEN 2000 AND 2003,SELECT T.id FROM game_platform AS T WHERE T.release_year BETWEEN 2000 AND 2003,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many male students are enrolled at OCC?,شحال من طالب مسجلين فـ OCC؟,male students are mentioned in male.name; OCC refers to school = 'occ';,SELECT COUNT(T1.name) FROM enrolled AS T1 INNER JOIN male AS T2 ON T1.name = T2.name WHERE T1.school = 'occ',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,What are the names of the publishers who published the oldest games?,شنو هما أسامي الناشرين اللي دارو أقدم الألعاب؟,name of publisher refers to publisher_name; the oldest game refers to min(release_year),SELECT DISTINCT T3.publisher_name FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN publisher AS T3 ON T2.publisher_id = T3.id ORDER BY T1.release_year LIMIT 1,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"Among the cases reported in the ward with Edward Burke as the alderman and happened in the community area with the highest population, provide the report number of the crime with the highest beat.",من بين الحالات المُبلغ عنها في الجناح مع Edward Burke كعضو مجلس البلدة ووقعت في منطقة المجتمع اللي فيها أكبر عدد سكان، عطيني رقم تقرير الجريمة اللي عندها أكبر عدد تنظيف.,the highest population refers to max(population); report number refers to report_no; the highest beat refers to max(beat),"SELECT T2.report_no FROM Ward AS T1 INNER JOIN Crime AS T2 ON T2.ward_no = T1.ward_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no WHERE T1.alderman_first_name = 'Edward' AND T1.alderman_last_name = 'Burke' ORDER BY T2.beat DESC, T3.population DESC LIMIT 1","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,What is the percentage whereby the away team scored 2 goals during the 2017 seasons?,شحال نسبة اللي سجيلات فيها الفرقة الزائرة 2 ديال الأهداف خلال موسم 2017؟,"scored 2 goals refers to FTAG = 2, which is short name for Final-time Away-team Goals; DIVIDE(COUNT(Div where season = 2017, FTAG = '2'), COUNT(Div where season = 2017)) as percentage;",SELECT CAST(SUM(CASE WHEN FTAG = 2 THEN 1 ELSE 0 END) / COUNT(FTAG) AS REAL) * 100 FROM matchs WHERE season = 2017,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,List at least 5 students who has the longest absense from schoool?,لائحة على الأقل 5 تلامذ اللي عندهم أطول غياب من المدرسة؟,longest absense refers to MAX(month),SELECT name FROM longest_absense_from_school ORDER BY month DESC LIMIT 5,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Calculate the total sales in all regions with game platform ID 66.,حسب مجموع المبيعات في جميع المناطق اللي عندها رقم تعريف منصة الألعاب 66.,"total sales in all regions = MULTIPLY(SUM(num_sales), 100000);",SELECT SUM(T.num_sales) * 100000 FROM region_sales AS T WHERE T.game_platform_id = 66,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"How many of the crimes that happened in the street have FBI title ""Homicide 1st & 2nd Degree""?","شحال من جريمة وقعات فالزنقة عندها عنوان ديال الـ FBI ""القتل من الدرجة الأولى والتانية""؟",in the street refers to location_description = 'STREET',SELECT SUM(CASE WHEN T2.location_description = 'STREET' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no WHERE T1.title = 'Homicide 1st & 2nd Degree',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,How many domestic crime cases has Commander Ronald A. Pontecore Jr. been responsible for investigating?,شحال من قضية ديال الجرائم المنزلية اللي كان القائد .Ronald A. Pontecore Jr مسؤول على التحقيق فيها؟,domestic crime refers to domestic = 'TRUE'; person responsible for investigating refers to commander,SELECT SUM(CASE WHEN T2.domestic = 'TRUE' THEN 1 ELSE 0 END) FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no WHERE T1.commander = 'Ronald A. Pontecore Jr.',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What is the average number of sales in Japan?,شنو هو العدد المتوسط ديال المبيعات فJapan؟,"in Japan refers to region_name = 'Japan'; average number of sales = multiply(avg(num_sales), 100000) where region_name = 'Japan'",SELECT AVG(T2.num_sales) * 100000 AS avg_japan FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T1.region_name = 'Japan',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Calculate the average duration of absense of disabled male students.,حْسَبْ المُدّة المُتوسِّطة ديال الغياب ديال الطُلّاب الدكور المَعاقين.,"average duration = DIVIDE(SUM(month), COUNT(month)); duration of absence refers to month; disabled male students refers to disabled.name who are IN male.name;",SELECT AVG(T1.month) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T2.name = T1.name INNER JOIN male AS T3 ON T3.name = T2.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,List the case number of crimes against society that happened in June 2018.,ممكن تعطيوني لائحة بأرقام القضايا ديال الجرائم اللي وقعات ضد المجتمع فشهر يونيو 2018؟,crime against society refers to crime_against = 'Society'; in June 2018 refers to date LIKE '6/%/2018%',SELECT T2.case_number FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no WHERE T2.date LIKE '6/%/2018%' AND T1.crime_against = 'Society',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,What is the legislative district's office address where 010XX W LAKE ST is located?,ما هو عنوان مكتب الدائرة التشريعية اللي كاينة فيها 010XX W LAKE ST؟,the legislative district's office address refers to ward_office_address; 010XX W LAKE ST refers to block = '010XX W LAKE ST',SELECT T1.ward_office_address FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.block = '010XX W LAKE ST' GROUP BY T1.ward_office_address,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,List the region name where games reached 300000 sales and above.,عطيني الأسماء ديال المناطق اللي فيها لبعات لعبات 300000 نسخة و أكثر.,reached 300000 sales and above refers to num_sales > 3,SELECT DISTINCT T1.region_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id WHERE T2.num_sales * 100000 > 300000,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,"Of the matches in all seasons of the Bundesliga division, how many of them ended with a tie?",من بين الماتشات ف جميع المواسم ديال البونديسليغا، شحال منهم سالا بالتعادل؟,"Bundesliga is the name of division; tie refers to FTR = 'D', where D stands for draft;",SELECT COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.FTR = 'D',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,How many crimes described as 'The theft of a motor vehicle' by the FBI have taken place in the Lake View community?,شحال من جريمة اللي توصفات ب 'سرقة سيارة' من طرف ال FBI وقعات ف منطقة Lake View؟,lake view community refers to community_area_name = 'Lake View'; 'The theft of a motor vehicle' is the description,SELECT SUM(CASE WHEN T3.community_area_name = 'Lake View' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no WHERE T1.description = 'The theft of a motor vehicle.',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Which platform is the most popular in Europe?,شنو هي المنصة الأكثر شعبية ف أوروبا؟,platform that is the most popular refers to platform_name WHERE MAX(num_sales); in Europe refers to region_name = 'Europe' ;,SELECT T.platform_name FROM ( SELECT T4.platform_name FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T1.region_name = 'Europe' ORDER BY T2.num_sales DESC LIMIT 1 ) t,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"Calculate the percentage of the domestic violence cases handled by Christopher Taliaferro. Among them, list report numbers of cases that happened in the bank.",حسب النسبة المئوية لحالات العنف المنزلي اللي تعامل معاها Christopher Taliaferro. من بينهم، عطيني أرقام التقارير ديال الحالات اللي وقعات فالبنك.,"domestic violence refers to domestic = 'TRUE'; report number refers to report_no; in the bank refers to location_description = 'BANK'; percentage = divide(count(report_no where domestic = 'TRUE'), count(report_no)) * 100%","SELECT CAST(COUNT(CASE WHEN T1.domestic = 'TRUE' THEN T1.report_no END) AS REAL) * 100 / COUNT(T1.report_no), COUNT(CASE WHEN T1.domestic = 'TRUE' AND T1.location_description = 'BANK' THEN T1.report_no END) AS ""number"" FROM Crime AS T1 INNER JOIN Ward AS T2 ON T2.ward_no = T1.ward_no WHERE T2.alderman_first_name = 'Christopher' AND T2.alderman_last_name = 'Taliaferro'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,What is the longest time for a student from the navy department to be absent from school?,أشمن أطول مدة كيقدر تلميذ من قسم البحرية يغيب فيها على المدرسة؟,navy department refers to organ = 'navy'; longest time to be absent from school refers to MAX(month),SELECT T1.month FROM longest_absense_from_school AS T1 INNER JOIN enlist AS T2 ON T1.`name` = T2.`name` WHERE T2.organ = 'navy' ORDER BY T1.`month` DESC LIMIT 1,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Which district is the community area Lincoln Square grouped into?,ف اينا حي المجتمع ديال منطقة Lincoln Square مجموعين؟,district refers to side; community area Lincoln Square refers to community_area_name = 'Lincoln Square',SELECT side FROM Community_Area WHERE community_area_name = 'Lincoln Square',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,What is the gender of student1000?,شنو هو جنس الطالب1000؟,"student name appear in Male table means student is a male, student does not appear in Male table means student is a female","SELECT IIF(T.result = 0, 'female', 'male') AS re FROM ( SELECT COUNT(name) AS result FROM male WHERE name = 'studenT1000' ) T","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Show the name of the earliest platform in the database.,وريني أقدم منصة في قاعدة البيانات.,the earliest refers to min(release_year); name of platform refers to platform_name,SELECT T2.platform_name FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id ORDER BY T1.release_year ASC LIMIT 1,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,"For the students who have been absent from school for the longest time, how many months have they been absent?",شحال من شهر التلاميذ اللي غابوا من المدرسة لمدة طويلة غايبين؟,absent from school for the longest time refers to MAX(month),SELECT MAX(month) FROM longest_absense_from_school,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,What are the three largest numbers of games sold?,شنو هما 3 العِبات اللّي تباعت بأكبر عدد؟,3 largest numbers of games sold refers to game_name where MAX(num_sales) LIMIT 3;,"SELECT T.game_platform_id, SUM(T.num_sales) * 100000 FROM region_sales AS T GROUP BY game_platform_id ORDER BY SUM(T.num_sales) * 100000 DESC LIMIT 3","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Calculate the percentage of games published by 'Brash Entertainment'?,حسب النسبة المئوية ديال الألعاب اللي نشراتها 'Brash Entertainment'؟,"percentage = MULTIPLY(DIVIDE(SUM(publisher_name = 'Brash Entertainment'), COUNT(game_id)), 100.0); 'Brash Entertainment' refers to publisher_name = 'Brash Entertainment';",SELECT CAST(COUNT(CASE WHEN T1.publisher_name = 'Brash Entertainment' THEN T2.game_id ELSE NULL END) AS REAL) * 100 / COUNT(T2.game_id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,"Define the gender of ""student995"" and his/her enrolled schools.","حدد جنس ""student995"" والمدارس اللي تسجل/ات فيهم.","male.name = 'student995' means student995's gender is male; if 'student995' can not be found in 'male.name', it means student995 is female;","SELECT IIF(T2.name IS NULL, 'female', 'male') AS gen , T1.school FROM enrolled AS T1 LEFT JOIN male AS T2 ON T2.name = T1.name WHERE T1.name = 'student995'","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,Which school is student829 enrolled in?,فينا مدرسة مسجل الطالب 829؟,,SELECT school FROM enrolled WHERE name = 'student829',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,Provide the names of the students enlisted in the fire department.,قدم لي سميات التلاميذ الملتحقين بإدارة الإطفاء.,department refers to organ; organ = 'fire_department';,SELECT name FROM enlist WHERE organ = 'fire_department',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,How many more games were sold on game platform ID 50 than on game platform ID 51 in region ID 1?,شحال تباعت من لعبة ف البلاطفورم رقم 50 اكتر من البلاطفورم رقم 51 ف المنطقة رقم 1؟,"result = subtract(sum(num_sales where game_platform_id = 50), sum(num_sales where game_platform_id = 51))",SELECT (SUM(CASE WHEN T.game_platform_id = 50 THEN T.num_sales ELSE 0 END) - SUM(CASE WHEN T.game_platform_id = 51 THEN T.num_sales ELSE 0 END)) * 100000 AS nums FROM region_sales AS T WHERE T.region_id = 1,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"In the least populated community, what is the most common location of all the reported crime incidents?",ف الجماعة اللي فيها أقل عدد ديال السكان، شنو هي البلاصة اللي منتاشرين فيها بزاف كاع الحوادث الإجرامية؟,least populated refers to Min(Population); community refers to community_area_no; most common location refers to Max(Count(location_description)),SELECT T2.location_description FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.population = ( SELECT MIN(population) FROM Community_Area ) AND T2.location_description IS NOT NULL GROUP BY T2.location_description,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What is the genre of the Advent Rising game?,"شنو النوع ديال اللعبة ""Advent Rising""؟",genre refers to genre_name; Advent Rising game refers to game_name = 'Advent Rising',SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = 'Advent Rising',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,What are the neighborhoods that are located in the North Center community area?,شنو هوما الحومات اللي كاينين ف مجتمع مركز الشمال (North Center) ؟,"""North Center"" is the community_area_name; neighborhoods refers to neighborhood_name",SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.community_area_name = 'North Center',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,Please list the location coordinates of all the incidents that had happened in the ward represented by alderman Pat Dowell.,عافك عطي الاحداتيات د البلاصة ديال جميع الحوادث لي وقعات فالمنطقة لي كيمثلها المستشار Pat Dowell.,"location coordinates refers to latitude, longitude","SELECT T2.latitude, T2.longitude FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T1.alderman_first_name = 'Pat' AND T1.alderman_last_name = 'Dowell' AND T2.latitude IS NOT NULL AND T2.longitude IS NOT NULL","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Provide any five games and release year under the sports genre.,عطيني أي خمسة د الألعاب من فئة الرياضات والعام فوقاش خرجو.,game refers to game_name; under the sports genre refers to genre_name = 'Sports',"SELECT T3.game_name, T1.release_year FROM game_platform AS T1 INNER JOIN game_publisher AS T2 ON T1.game_publisher_id = T2.id INNER JOIN game AS T3 ON T2.game_id = T3.id INNER JOIN genre AS T4 ON T3.genre_id = T4.id WHERE T4.genre_name = 'Sports' LIMIT 5","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,"Who is the winner of the game happened on 2009/10/10, between ""East Fife"" and ""Dumbarton""?","شكون ربح فالماتش اللي تلعب نهار 2009/10/10، بين ""East Fife"" و ""Dumbarton""؟",2009/10/10 is a date; the winner refers to FTR = 'A'; East Fife and Dumbarton are name of teams where HomeTeam = 'East Fife'; AwayTeam = 'Dumbarton';,SELECT CASE WHEN FTR = 'H' THEN 'East Fife' ELSE 'Dumbarton' END WINNER FROM matchs WHERE Date = '2009-10-10' AND HomeTeam = 'East Fife' AND AwayTeam = 'Dumbarton',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 chicago_crime,What was the major type of crime that happened in the Rogers Park community area?,شنو هو النوع الرئيسي ديال الجريمة اللي وقعات ف منطقة مجتمع Rogers Park؟,"""Rogers Park"" is the community_area_name; major type of crime refers to title","SELECT T1.fbi_code_no, T1.title FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T3.community_area_name = 'Rogers Park' GROUP BY T1.fbi_code_no, T1.title","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,What are the full names of the top 5 most crowded ward aldermen?,شنو هوما السميات كاملين ديال خمسة د النواب على المقاطعات اللي فيهم بزاف ديال الناس؟,"most crowded ward refers to Max(Population); full name of alderman refers to alderman_first_name, alderman_last_name","SELECT alderman_first_name, alderman_last_name FROM Ward ORDER BY Population DESC LIMIT 5","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,"From the Spanish LaLiga division in the 2017 season, which team won the most times as a local team and by what percentage?",من الدوري الإسباني لا ليغا ف موسم 2017، شكون هي الفرقة اللي ربحت أكثر ك فريق مستقبل وشحال النسبة؟,"local team refers to HomeTeam; Spanish means belong to the country = 'Spain'; LaLiga is a name of division; won as a local team refers to FTR = 'H', where H stands for home victory; DIVIDE(COUNT(Div where name = 'LaLiga', country = 'Spain', season = 2017, FRT = 'H'), COUNT(Div where name = 'LaLiga', country = 'Spain', season = 2017)) as percentage;","SELECT T1.HomeTeam HWHT , CAST(COUNT(CASE WHEN T1.FTR = 'H' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(HomeTeam) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'LaLiga' AND T2.country = 'Spain' AND T1.season = 2017","CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,"What is the genre of the game titled '999: Nine Hours, Nine Persons, Nine Doors' ?","شنو النوع ديال اللعبة بعنوان '999: Nine Hours, Nine Persons, Nine Doors'؟","genre of the game refers to genre_name; '999: Nine Hours, Nine Persons, Nine Doors' refers to game_name = '999: Nine Hours, Nine Persons, Nine Doors';","SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name = '999: Nine Hours, Nine Persons, Nine Doors'","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Which female students had never been absent?,شكون هما الطالبات اللي عمرهم ما غيبو؟,had never been absent refers to month = 0,SELECT T2.name FROM male AS T1 INNER JOIN longest_absense_from_school AS T2 ON T1.name <> T2.name WHERE T2.month = 0,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,What are the names of the students who joined the Marines?,اشنو هما سميات التلاميذ اللي دخلو للبحرية؟,Marines refers to organ = 'marines';,SELECT name FROM enlist WHERE organ = 'marines',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,List the report number of crimes against property happened in Riverdale.,عطيني رقم التقارير ديال الجرائم ضد الممتلكات اللي وقعات ف Riverdale.,crime against property refers to crime_against = 'Property'; Riverdale refers to community_area_name = 'Riverdale',SELECT SUM(CASE WHEN T1.crime_against = 'Property' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T2.fbi_code_no = T1.fbi_code_no INNER JOIN Community_Area AS T3 ON T3.community_area_no = T2.community_area_no WHERE T3.community_area_name = 'Riverdale',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,How many crimes had happened in Central Chicago?,شحال من جريمة وقعات ف Central Chicago؟,Central Chicago refers to district_name = 'Central',SELECT COUNT(*) FROM Crime AS T1 INNER JOIN District AS T2 ON T1.district_no = T2.district_no WHERE T2.district_name = 'Central',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,List out student names that enrolled in two schools and two organizations?,عطيني لائحة بأسماء التلاميذ اللي تسجلوا فجوج مدارس وجوج منظمات؟,enrolled in two schools refers to COUNT(school) = 2; two organizations refers to COUNT(organ) = 2;,"SELECT T.name FROM ( SELECT T1.name, COUNT(T1.organ) AS num FROM enlist AS T1 INNER JOIN enrolled AS T2 ON T1.name = T2.name GROUP BY T1.name ) T WHERE T.num = 2","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many female students have enlisted for the Army?,شحال من طالبة تسجلات فالجيش؟,female students refers to enlist.name who are NOT in male.name; Army refers to organ = 'army';,"SELECT SUM(IIF(T3.name IS NULL, 1, 0)) AS ""result"" FROM enlist AS T1 INNER JOIN person AS T2 ON T1.name = T2.name LEFT JOIN male AS T3 ON T2.name = T3.name WHERE T1.organ = 'army'","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,How many games were sold on the DS platform on average in the 4 different regions?,شحال من لعبة تباعت فالبلاتفورم ديال DS بالمعدل ف 4 د الجهات مختلفين؟,"on the DS platform refers to platform_name = 'DS'; number of games sold on average = divide(sum(multiply(num_sales, 100000)), 4) where platform_name = 'DS'",SELECT SUM(T1.num_sales) * 100000 / 4 FROM region_sales AS T1 INNER JOIN game_platform AS T2 ON T1.game_platform_id = T2.id INNER JOIN platform AS T3 ON T2.platform_id = T3.id WHERE T3.platform_name = 'DS',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many male students join more than one organization?,شحال من طالب كاينتمي لأكثر من جمعية؟,more than one organization refers to COUNT(organ) > 1,"SELECT COUNT(T.a) FROM ( SELECT COUNT(DISTINCT T1.name) AS a, COUNT(T2.organ) AS num FROM male AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name GROUP BY T1.name ) T WHERE T.num > 1","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,Provide the enlisted organizations of student160 and status of his/her payment due.,عطيني المنظمات المسجلة للطالب 160 وحالة الدفع المتبقية.,enlisted organizations refers to organ; student160 is a name of student; status of his or her payment due is mentioned in no_payment_due; bool = 'pos' means the student has payment due; bool = 'neg' means the student has no payment due;,"SELECT T1.organ, T2.bool FROM enlist AS T1 INNER JOIN no_payment_due AS T2 ON T2.name = T1.name WHERE T1.name = 'student160'","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 craftbeer,"When compared to the total number of breweries in the US producing American Blonde Ale, how many in the state of Wisconsin produces American Blonde Ale? Indicate your answer in percentage (%).",مقارنة مع العدد الإجمالي للمصانع دالبيرة ف الولايات المتحدة اللي كاتنتج American Blonde Ale، شحال كاين ف ولاية Wisconsin كيصنعو American Blonde Ale؟ عطيني الجواب بالبورسونطاج (%).,Percentage of the state of Wisconsin produces American Blonde Ale could be computed by count(breweries in Wisconsin producing American Blonde Ale) / count(all breweries),"SELECT CAST(SUM(IIF(T2.state = 'WI', 1, 0)) AS REAL) * 100 / COUNT(T1.id) FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T1.style = 'American Blonde Ale'","CREATE TABLE breweries ( id INTEGER not null primary key, name TEXT null, city TEXT null, state TEXT null ); CREATE TABLE IF NOT EXISTS ""beers"" ( id INTEGER not null primary key, brewery_id INTEGER not null constraint beers_ibfk_1 references breweries, abv REAL, ibu REAL, name TEXT not null, style TEXT, ounces REAL not null ); CREATE INDEX brewery_id on beers (brewery_id); ",2 chicago_crime,"Find the commander's name, email address, and phone number of the Ogden district.",لقا سمية القائد، الإيميل، و رقم التليفون ديال منطقة Ogden.,commander's name refers to commander; email address refers to email; phone number refers to phone,"SELECT commander, email, phone FROM District WHERE district_name = 'Ogden'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,"For all the games ended up with 1-1, what percentage of them are from Liga NOS division?",بالنسبة لجميع المباريات اللي سالاو بنتيجة 1-1، شحال داللي جاو من القسم ديال Liga NOS؟,"1-1 is a score where FTHG = '1' and FTAG = '1'; Liga NOS is the name of division; DIVIDE(COUNT(Div where FTHG = '1', FTAG = '1', name = 'Liga NOS'), COUNT(Div where FTHG = '1' and FTAG = '1')) as percentage;",SELECT CAST(COUNT(CASE WHEN T2.name = 'Liga NOS' THEN T1.Div ELSE NULL END) AS REAL) * 100 / COUNT(T1.Div) FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.FTHG = 1 AND FTAG = 1,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,"Among the students who filed for bankruptcy, how many students are disabled?",من بين الطلاب اللي رفعو دعوى إفلاس، شحال من طالب معاق؟,,SELECT COUNT(T1.name) FROM disabled AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,Which team won the match of the Bundesliga division on 2020/10/2?,شكون هي الفرقة لي ربحات ماتش فالBundesliga نهار 2020/10/2؟,Bundesliga is the name of division; Date = '2020/10/2'; won the match refers to FTR = 'H';,SELECT CASE WHEN T1.FTR = 'H' THEN T1.HomeTeam WHEN T1.FTR = 'A' THEN T1.AwayTeam END WINNER FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.Date = '2020-10-02' AND T2.name = 'Bundesliga',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,What are the names of the games published by American Softworks?,شنو هوما السميات ديال الألعاب اللي نشراتهم American Softworks؟,names of the games refers to game_name; American Softworks refers to publisher_name = 'American Softworks';,SELECT T3.game_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.publisher_name = 'American Softworks',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Calculate how many percent of sales in North America is higher than the average sale per region for platform ID 9577.,حسب شحال النسبة ديال المبيعات ف شمال أمريكا اللي كثر من المتوسط ديال المبيعات ف كل منطقة بالنسبة لبلاتفرم رقم 9577.,"in North America refers to region_name = 'North America'; platform ID 9577 refers to game_platform_id = 9577; percent = divide(subtract(num_sales where region_name = 'North America' and game_platform_id = 9577, avg(num_sales)), avg(num_sales)) * 100%",SELECT (SUM(CASE WHEN T2.region_name = 'North America' THEN T1.num_sales ELSE 0 END) - AVG(T1.num_sales)) * 100.0 / AVG(T1.num_sales) FROM region_sales AS T1 INNER JOIN region AS T2 ON T1.region_id = T2.id WHERE T1.game_platform_id = 9577,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many unemployed students are enlisted in the Army organization?,شحال ديال التلاميذ اللي ما خدامينش مسجلين فالجيش؟,organization refers to organ; organ = 'army';,SELECT COUNT(T1.name) FROM enlist AS T1 INNER JOIN unemployed AS T2 ON T2.name = T1.name WHERE T1.organ = 'army',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,What is the average absence period of a disabled student?,شحال هي المدة المتوسطة اللي كيغيب فيها تلميذ معاق؟,"average refers to DIVIDE(SUM(month), COUNT(name))",SELECT AVG(T1.month) FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 european_football_1,"What is the name of the division in which Club Brugge and Genk competed on September 13, 2009?",شنو سمية الديفيزيون اللي تنافسو فيها Club Brugge و Genk نهار 13 شتنبر 2009؟,"September 13, 2009 refers to Date = '2009-09-13'; Club Brugge refers to HomeTeam; Genk refers to AwayTeam;",SELECT T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.Date = '2009-09-13' and T1.HomeTeam = 'Club Brugge' AND T1.AwayTeam = 'Genk',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 european_football_1,What's the name of the football division in the Netherlands?,اشنو سمية الديفيزيون ديال الكورة فالطاليان؟,Netherlands is the name of country;,SELECT name FROM divisions WHERE country = 'Netherlands',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,How many publishers published the Minecraft game?,شحال ديال الناشرين نشروا لعبة Minecraft؟,Minecraft refers to game_name = 'Minecraft';,SELECT COUNT(T2.publisher_id) FROM game AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.game_id WHERE T1.game_name = 'Minecraft',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Provide the games that can be played on the SCD platform.,عطيني الألعاب اللي ممكن تلعبهم فمنصة SCD.,game refers to game_name; on the SCD platform refers to platform_name = 'SCD',SELECT T4.game_name FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id INNER JOIN game_publisher AS T3 ON T1.game_publisher_id = T3.id INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T2.platform_name = 'SCD',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many of the students joined two organization?,شحال من تلميذ تسجل ف جوج منضمات؟,joined two organization refers to COUNT(organ) > = 2,SELECT COUNT(name) FROM enlist WHERE organ >= 2,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Which community area has the least population?,شنو هي البلاصة اللي فيها أقل عدد دالسكان؟,community area refers to community_area_name; the least population refers to min(population),SELECT community_area_name FROM Community_Area ORDER BY population ASC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,Provide the occurrence date and location of the deceptive practice due to the unlawful use of recorded sound.,عطيني التاريخ والمكان ديال الحادث لي كان سبابو الاستعمال غير القانوني للتسجيل الصوتي.,"location refers to latitude, longitude; deceptive practice refers to primary_description = 'DECEPTIVE PRACTICE'; unlawful use of recorded sound refers to secondary_description = 'UNLAWFUL USE OF RECORDED SOUND'","SELECT T2.date, T2.latitude, T2.longitude FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no WHERE T1.primary_description = 'DECEPTIVE PRACTICE' AND T1.secondary_description = 'UNLAWFUL USE OF RECORDED SOUND'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,Calculate the difference in the average number of vehicular hijackings and aggravated vehicular hijackings in the districts.,حسب الفرق ف المتوسط ديال عدد السرقات ديال السيارات و السرقات العنيفة ديال السيارات فالمناطق.,"""VEHICULAR HIJACKING"" and ""AGGRAVATED VEHICULAR HIJACKING"" are both secondary_description; difference in average = Subtract (Divide(Count(secondary_description = 'VEHICULAR HIJACKING'), Count(district_name)), Divide(Count(secondary_description = ""AGGRAVATED VEHICULAR HIJACKING""), Count(district_name)))","SELECT ROUND(CAST(COUNT(CASE WHEN T1.secondary_description = 'VEHICULAR HIJACKING' THEN T1.iucr_no END) AS REAL) / CAST(COUNT(DISTINCT CASE WHEN T1.secondary_description = 'VEHICULAR HIJACKING' THEN T3.district_name END) AS REAL) - CAST(COUNT(CASE WHEN T1.secondary_description = 'AGGRAVATED VEHICULAR HIJACKING' THEN T1.iucr_no END) AS REAL) / CAST(COUNT(DISTINCT CASE WHEN T1.secondary_description = 'AGGRAVATED VEHICULAR HIJACKING' THEN T3.district_name END) AS REAL), 4) AS ""difference"" FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN District AS T3 ON T3.district_no = T2.district_no","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many students are enlisted in the Navy organization?,شحال من طالب مسجل ف المنظمة ديال البحريّة؟,enlisted in the navy organization refers to organ = 'navy';,SELECT COUNT(name) FROM enlist WHERE organ = 'navy',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,In what platform does the game ID 178 available?,فياش بلاتفورم متوفر فيها للعبة ID 178؟,platform refers to platform_name;,SELECT T3.platform_name FROM game_publisher AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.game_publisher_id INNER JOIN platform AS T3 ON T2.platform_id = T3.id WHERE T1.game_id = 178,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Give the name of the person who was responsible for case No.JB524952.,عطيني سمية الشخص اللي كان مسؤول على القضية رقم JB524952.,name of the person refers to commander; case No.JB524952 refers to case_number = 'JB524952',SELECT T1.commander FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T2.case_number = 'JB524952',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"Among the crimes, what percentage are severe?",شحال فالمية من الجرائم اللي كيعتابروها خطيرة؟,"severe refers to index_code = 'I'; percentage = divide(count(iucr_no where index_code = 'I'), count(iucr_no)) * 100%",SELECT CAST(COUNT(CASE WHEN index_code = 'I' THEN iucr_no ELSE NULL END) AS REAL) * 100 / COUNT(iucr_no) FROM IUCR,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,Please list the names of all the neighborhoods in the community area with the most population.,عفاك صايب ليا الأسامي ديال جميع الأحياء اللي كاينين ف المنطقة اللي فيها أكبر عدد ديال السكان.,name of neighborhood refers to neighborhood_name; the most population refers to max(population),SELECT T1.neighborhood_name FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T2.community_area_no = T2.community_area_no ORDER BY T2.population DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Indicate the name of all adventure games.,عفاك عطني أسامي جميع الألعاب ديال المغامرات.,name of games refers to game_name; adventure games refers to game_name WHERE genre_name = 'Adventure';,SELECT T2.game_name FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id WHERE T1.genre_name = 'Adventure',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,Which publisher published the most games?,شكون هو الناشر اللي نشر أكثر عدد ديال الألعاب؟,publisher refers to publisher_name; the most games refers to max(count(publisher_id)),"SELECT T.publisher_name FROM ( SELECT T2.publisher_name, COUNT(DISTINCT T1.game_id) FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id GROUP BY T2.publisher_name ORDER BY COUNT(DISTINCT T1.game_id) DESC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,How many times did other regions make positive sales in DS platform?,شحال من مرة دارت مناطق أخرى مبيعات إيجابية في پلاتفورم DS؟,other regions refers to region_name = 'Other'; positive sales refers to num_sales > 0; DS platform refers to platform_name = 'DS';,SELECT COUNT(DISTINCT T2.id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN region_sales AS T3 ON T1.id = T3.game_platform_id INNER JOIN region AS T4 ON T3.region_id = T4.id WHERE T1.platform_name = 'DS' AND T4.region_name = 'Other' AND T3.num_sales > 0,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Which district in Chicago has the most community areas?,أي مقاطعة في Chicago فيها أكبر عدد من المناطق المجتمعية؟,district refers to side; the most community areas refers to max(count(side)),SELECT side FROM Community_Area GROUP BY side ORDER BY COUNT(side) DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,"Which team won the match in the EC division on January 20, 2008 at home?",شكون الفريق اللي ربح الماتش فالديفيزيون ديال EC نهار 20 يناير 2008 فالدار؟,"won at home refers to FTR = 'H'; January 20, 2008 refers to Date = '2008-01-20'; EC division refers to Div = 'EC';",SELECT HomeTeam FROM matchs WHERE Div = 'EC' AND Date = '2008-01-20' AND FTR = 'H',"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,How many unemployed students are enlisted in the navy organization?,شحال من طالب عاطل مسجلين فالتنظيم ديال البحرية؟,enlisted in the navy organization refers to organ = 'navy';,SELECT COUNT(T1.name) FROM unemployed AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name WHERE T2.organ = 'navy',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,How many solicit on public way prostitution crimes were arrested in West Garfield Park?,شحال د الناس اللي تگالو فقضايا ديال الدعارة فالشارع العام فحي West Garfield Park؟,solicit on public way prostitution crime refers to secondary_description = 'SOLICIT ON PUBLIC WAY' AND primary_description = 'PROSTITUTION'; arrested refers to arrest = 'TRUE'; West Garfield Park refers to community_area_name = 'West Garfield Park',SELECT SUM(CASE WHEN T2.arrest = 'TRUE' THEN 1 ELSE 0 END) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T1.community_area_no = T2.community_area_no INNER JOIN IUCR AS T3 ON T2.iucr_no = T3.iucr_no WHERE T1.community_area_name = 'West Garfield Park' AND T3.secondary_description = 'SOLICIT ON PUBLIC WAY' AND T3.primary_description = 'PROSTITUTION',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,List the names of the disabled students who were absent from school for more than 5 months.,عطيني أسامي التلاميذ اللي عندهم إعاقات وكانو غايبين من المدرسة لأكثر من 5 شهور.,absent for more than 5 months refers to month > 5;,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN disabled AS T2 ON T1.name = T2.name WHERE T1.month > 5,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,"In which ward of more than 55,000 inhabitants are there more crimes of intimidation with extortion?","فاشن هي الجماعة لي فيها أكتر من 55,000 نسمة اللي كاينين فيها جرائم ديال الابتزاز؟",more than 55000 inhabitants refers to Population > 55000; 'INTIMIDATION' is the primary_description; 'EXTORTION' refers to secondary_description; more crime refers to Count(ward_no),SELECT T3.ward_no FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T2.iucr_no = T1.iucr_no INNER JOIN Ward AS T3 ON T3.ward_no = T2.ward_no WHERE T1.primary_description = 'INTIMIDATION' AND T1.secondary_description = 'EXTORTION' AND T3.Population > 55000 GROUP BY T3.ward_no ORDER BY COUNT(T3.ward_no) DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,Calculate the average game sales for the PS2 platform.,حسب المتوسط ديال مبيعات لألعاب ديال بلايستايشن 2.,"average = AVG(MULTIPLY(num_sales), 100000); PS2 refers to platform_name = 'PS2';",SELECT SUM(T3.num_sales * 100000) / COUNT(T1.id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN region_sales AS T3 ON T2.id = T3.game_platform_id WHERE T1.platform_name = 'PS2',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,What is the most reported crime in the Northwest side?,شنو هو أكتر جريمة اللي كتوقع فالجانب الشمالي الغربي؟,most reported crime refers to max(Count(secondary_description)),SELECT T3.secondary_description FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no INNER JOIN IUCR AS T3 ON T3.iucr_no = T2.iucr_no WHERE T1.side = 'Northwest ' GROUP BY T3.secondary_description ORDER BY COUNT(*) DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,At which district did the multiple homicide case number JB120039 occurred?,ف أي منطقة وقع قضية القتل الجماعي رقم JB120039؟,multiple homicide refers to Count(case_number) > 1; district refers to district_name,"SELECT T1.district_no, T1.district_name FROM District AS T1 INNER JOIN Crime AS T2 ON T1.district_no = T2.district_no WHERE T2.case_number = 'JB120039' GROUP BY T1.district_no, T1.district_name","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,What is the percentage of under $500 thefts among all cases that happened in West Englewood?,شنو هي النسبة ديال السرقات اللي تحت 500 دولار فالمجموع ديال الحالات اللي وقعات فـ West Englewood؟,"under $500 refers to secondary_description = '$500 AND UNDER'; theft refers to primary_description = 'THEFT'; West Englewood refers to community_area_name = 'West Englewood'; percentage = divide(count(case_number where secondary_description = '$500 AND UNDER'), count(case_number)) where primary_description = 'THEFT' and community_area_name = 'West Englewood' * 100%",SELECT CAST(SUM(CASE WHEN T2.secondary_description = '$500 AND UNDER' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.case_number) FROM Crime AS T1 INNER JOIN IUCR AS T2 ON T1.iucr_no = T2.iucr_no INNER JOIN Community_Area AS T3 ON T1.community_area_no = T3.community_area_no WHERE T2.primary_description = 'THEFT' AND T3.community_area_name = 'West Englewood',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many students who have never been absent from school?,شحال من تلميذ اللي عمرو ما تغيب على المدرسة؟,have never been absent refers to `month` = 0;,SELECT COUNT(name) FROM longest_absense_from_school WHERE month = 0,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,How many more sports games than simulation games?,شحال كاين من لعبة رياضية كثر من الألعاب المحاكات؟,"sports game refers to genre_name = 'Sports'; simulation game refers to genre_name = 'Simulation'; how many more = subtract(sum(game_id where genre_name = 'Sports'), sum(game_id where genre_name = 'Simulation'))",SELECT COUNT(CASE WHEN T1.genre_name = 'Sports' THEN T2.id ELSE NULL END) - COUNT(CASE WHEN T1.genre_name = 'Simulation' THEN T2.id ELSE NULL END) FROM genre AS T1 INNER JOIN game AS T2 ON T1.id = T2.genre_id,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,How many students have absent from school?,شحال من تلميذ غائبين على المدرسة؟,have absent from school refers to month > 1;,SELECT COUNT(name) FROM longest_absense_from_school WHERE month > 1,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,How many times more is the number of games which were published by Atari than Athena?,شحال من مرة كتر عدد الألعاب اللي نشرتها Atari من Athena؟,"published by Atari refers to publisher_name = 'Atari'; published by  Athena refers to publisher_name = 'Athena'; times = divide(sum(publisher_id where publisher_name = 'Atari'), sum(publisher_id where publisher_name = 'Athena'))",SELECT CAST(COUNT(CASE WHEN T1.publisher_name = 'Atari' THEN T2.game_id ELSE NULL END) AS REAL) / COUNT(CASE WHEN T1.publisher_name = 'Athena' THEN T2.game_id ELSE NULL END) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,What is the district address associated with the case JB107731?,شنو هو العنوان ديال المنطقة المتعلقة بالقضية JB107731؟,case JB107731 refers to case_number = 'JB107731',SELECT T1.address FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no WHERE T2.case_number = 'JB107731',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,"What is the total population of the neighborhoods Avondale Gardens, Irving Park, Kilbourn Park, Merchant Park, Old Irving Park, and The Villa?",شحال هي الساكنة الإجمالية ديال الأحياء Avondale Gardens، Irving Park، Kilbourn Park، Merchant Park، Old Irving Park، و The Villa؟,"""Avoladale Gardens"", ""Irving Park"", ""Kilbourn Park"", ""Merchant Park"", ""Old Irving Park"", ""The Villa"" are neighborhood_name; total population refers to Sum(Population)",SELECT SUM(T2.population) AS sum FROM Neighborhood AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.neighborhood_name = 'Avondale Gardens' OR T1.neighborhood_name = 'Irving Park' OR T1.neighborhood_name = 'Kilbourn Park' OR T1.neighborhood_name = 'Merchant Park' OR T1.neighborhood_name = 'Old Irving Park' OR T1.neighborhood_name = 'The Villa',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,"List the games from the publisher ""Activision"".","عطيني لائحة الألعاب من الناشر ""Activision"".","games refers to game_name; ""Activision"" refers to publisher_name = 'Activision';",SELECT T3.game_name FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id INNER JOIN game AS T3 ON T2.game_id = T3.id WHERE T1.publisher_name = 'Activision',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,What is the genre ID of the game named 25 to Life?,شنو هو نوع لعبة سميته 25 to Life؟,the game named 25 to Life refers to game_name = '25 to Life',SELECT T.genre_id FROM game AS T WHERE T.game_name = '25 to Life',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,"What are the years that ""WiiU"" got a new game?","شحال د السنين اللي ""WiiU"" خدا فيها شي لعبة جديدة؟","year refers to release_year; ""WiiU"" refers to platform_name = 'WiiU'",SELECT T2.release_year FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id WHERE T1.platform_name = 'WiiU' ORDER BY T2.release_year DESC LIMIT 1,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,"Among all the incidents with no arrest made, what is the percentage of them having a generic description of ""BATTERY"" in the IUCR classification?","من بين جميع الحوادث اللي ما تعتاقلوش فيها حد، شحال ف المية منها اللي عندها وصف عام ديال ""BATTERY"" ف تصنيف IUCR؟","incident with no arrest made refers to arrest = 'FALSE'; general description refers to primary_description; ""BATTERY"" is the primary_description; percentage = Divide (Count(iucr_no where primary_description = 'BATTERY'), Count(iucr_no)) * 100",SELECT CAST(SUM(CASE WHEN T1.primary_description = 'BATTERY' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*)FROM IUCR AS T1 INNER JOIN Crime AS T2 ON T1.iucr_no = T2.iucr_no WHERE T2.arrest = 'FALSE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,What is the genre ID of the '2Xtreme' game?,أشنو هو رقم التعريف ديال النوع ديال لعبة '2Xtreme'؟,the '2Xtreme' game refers to game_name = '2Xtreme',SELECT T.genre_id FROM game AS T WHERE T.game_name = '2Xtreme',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,What kind of location in Austin reported the most number of crimes?,شنو النوع ديال البلايص ف Austin اللي تبلغو فيها على بزاف ديال الجرائم؟,"""Austin"" is the district_name; the most number of crime refers to Max(Count(case_number)); kind of location refers to location_description",SELECT T2.location_description FROM District AS T1 INNER JOIN Crime AS T2 ON T2.district_no = T1.district_no WHERE T1.district_name = 'Austin' GROUP BY T2.location_description ORDER BY COUNT(T2.case_number) DESC LIMIT 1,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,What is the average number of crimes in a neighborhood in Central Chicago?,شنو هو العدد المتوسط ديال الجرائم فـ حي ف Central Chicago؟,"Central Chicago refers to side = 'Central'; average number = divide(count(report_no), count(community_area_no))",SELECT CAST(COUNT(T1.report_no) AS REAL) / COUNT(T2.community_area_no) FROM Crime AS T1 INNER JOIN Community_Area AS T2 ON T1.community_area_no = T2.community_area_no WHERE T2.side = 'Central',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,How many action games are there in total?,شحال من لعبة ديال الأكشن كاينة فالمجموع؟,action game refers to genre_name = 'Action',SELECT COUNT(T1.id) FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T2.genre_name = 'Action',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,How many games were released in 2001?,شحال من لعبة تحطات فـ 2001؟,released in 2001 refers to release_year = 2001,SELECT COUNT(T.id) FROM game_platform AS T WHERE T.release_year = 2001,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,Who was the alderman of the legislative district where case No. JB103470 took place? Give the full name.,شكون كان العضو البلدي فالمنطقة التشريعية فين وقعات القضية رقم JB103470؟ عطي الاسم الكامل.,"case No. JB103470 refers to case_number = 'JB103470'; full name refers to alderman_first_name, alderman_last_name","SELECT T1.alderman_first_name, T1.alderman_last_name FROM Ward AS T1 INNER JOIN Crime AS T2 ON T1.ward_no = T2.ward_no WHERE T2.case_number = 'JB103470'","CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 student_loan,How many female students are not joining any of the organization?,شحال من طالبة ما كاتنتمي لحتى منظمة؟,female students refers to enlist.name who are NOT in male.name,SELECT COUNT(name) FROM person WHERE name NOT IN ( SELECT name FROM male ) AND name NOT IN ( SELECT name FROM enrolled ),"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many students are enlisted in the army?,شحال من طالب انخرط ف الجيش؟,enlisted in the army refers to organ = 'army';,SELECT COUNT(name) FROM enlist WHERE organ = 'army',"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 video_games,Which publisher published the most games?,شكون الناشر اللي نشر أكثر عدد ديال الألعاب؟,publisher refers to publisher_name; the most games refers to max(count(game_id)),"SELECT T.publisher_name FROM ( SELECT T1.publisher_name, COUNT(DISTINCT T2.game_id) FROM publisher AS T1 INNER JOIN game_publisher AS T2 ON T1.id = T2.publisher_id GROUP BY T1.publisher_name ORDER BY COUNT(DISTINCT T2.game_id) DESC LIMIT 1 ) t","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,In which platform does the game titled 15 Days available?,فينا منصة كاين اللعبة اللي عنوانها 15 Days؟,platform refers to platform_name; the game titled 15 Days refers to game_name = '15 Days',SELECT T1.platform_name FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T4.game_name = 'Counter Force',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 student_loan,Which organization has the least number of male students?,أشمن منظمة فيها أقل عدد ديال التلاميذ الذكور؟,organization refers to organ; male students are mentioned in male.name; least number of male students refers to MIN(male.name);,"SELECT T.organ FROM ( SELECT T2.organ, COUNT(T1.name) AS num FROM male AS T1 INNER JOIN enlist AS T2 ON T1.name = T2.name GROUP BY T2.organ ) T ORDER BY T.num LIMIT 1","CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many students are enrolled in smc during month 1?,شحال ديال التلاميذ تسجلو ف SMC ف الشهر الأول؟,smc refers to school = 'smc';,SELECT COUNT(name) FROM enrolled WHERE school = 'smc' AND month = 1,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,How many percent of domestic violence cases were arrested in West Pullman?,شحال النسبة د حالات العنف الأسري اللي تشدوا ف West Pullman؟,"domestic violence refers to domestic = 'TRUE'; arrested refers to arrest = 'TRUE'; West Pullman refers to community_area_name = 'West Pullman'; percent = divide(count(report_no where arrest = 'TRUE'), count(report_no)) where domestic = 'TRUE' and community_area_name = 'West Pullman' * 100%",SELECT CAST(COUNT(CASE WHEN T2.arrest = 'TRUE' THEN T2.report_no END) AS REAL) * 100 / COUNT(T2.report_no) FROM Community_Area AS T1 INNER JOIN Crime AS T2 ON T2.community_area_no = T1.community_area_no WHERE T1.community_area_name = 'West Pullman' AND T2.domestic = 'TRUE',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,"Give the genre of the following game titled 'Airlock' , 'Airline Tycoon' , and 'Airblade', respectively.",عطيني النوع ديال اللعب اللي العناوين ديالهم 'Airlock' ، 'Airline Tycoon' ، و 'Airblade' ، على التوالي.,"genre refers to genre_name; 'Airlock', 'Airline Tycoon' , and 'Airblade' refers to game_name IN ('Airlock', 'Airline Tycoon', 'Airblade');","SELECT T2.genre_name FROM game AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.id WHERE T1.game_name IN ('Airlock', 'Airline Tycoon', 'Airblade')","CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,List the community area names in the Northwest.,سمي المناطق المجتمعية في الشمال الغربي.,the Northwest refers to side = 'Northwest',SELECT community_area_name FROM Community_Area WHERE side = 'Northwest',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 chicago_crime,List the case number of the crimes in wards with population below 52000 that have beat greater than the 90% of the average beat of all crimes.,عطيني رقم القضايا ديال الجرائم فالمقاطعات اللي عدد السكان ديالها قل من 52000 واللي النسبة ديال الجريمة فيها كثر من 90% ديال المتوسط ديال الجرائم كاملين.,"population below 52000 refers to population < 52000; beat greater than the 90% of the average beat refers to beat > multiply(avg(beat), 0.9) where population < 52000",SELECT COUNT(T1.report_no) FROM Crime AS T1 INNER JOIN Ward AS T2 ON T1.ward_no = T2.ward_no WHERE T2.Population < 52000 AND T1.beat > ( SELECT AVG(T1.beat) * 0.9 FROM Crime AS T1 INNER JOIN Ward AS T2 ON T1.ward_no = T2.ward_no WHERE T2.Population < 52000 ),"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 video_games,How many platforms are available for the game Pro Evolution Soccer 2016?,شحال من بلاتفورم متاحة للعبة Pro Evolution Soccer 2016؟,game Pro Evolution Soccer 2016 refers to game_name = 'Pro Evolution Soccer 2016',SELECT COUNT(T2.id) FROM game_platform AS T1 INNER JOIN platform AS T2 ON T1.platform_id = T2.id INNER JOIN game_publisher AS T3 ON T1.game_publisher_id = T3.id INNER JOIN game AS T4 ON T3.game_id = T4.id WHERE T4.game_name = 'Pro Evolution Soccer 2016',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 european_football_1,Which division had the most games with more than 5 total field goals on 2020/2/22? Give the full name of the division?,إينا ديفيزيون كان فيها أكثر ماتشات فيهم أكثر من 5 دالبيوت نهار 2020/2/22؟ أعطيني السمية كاملة د الديفيزيون؟,"more than 5 total field goals refers to SUM(FTHG, FTAG)>5, which are short names for Final-time Home-team Goals and Final-time Away-team Goals; 2020/2/22 is a date;","SELECT T2.division, T2.name FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T1.Date = '2020-02-22' AND T1.FTAG + T1.FTHG > 5 ORDER BY T1.FTAG + T1.FTHG DESC LIMIT 1","CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 video_games,Who is the publisher of the game 2002 FIFA World Cup?,شكون الناشر ديال لعبة 2002 FIFA World Cup؟,who is the publisher refers to publisher_name; 2002 FIFA World Cup refers to game_name = '2002 FIFA World Cup';,SELECT T2.publisher_name FROM game_publisher AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id INNER JOIN game AS T3 ON T1.game_id = T3.id WHERE T3.game_name = '2002 FIFA World Cup',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,What is the FBI description of the crime for report number 23778?,شنو هي مواصفات مكتب التحقيقات الفيدرالي للجريمة ف التقرير رقم 23778؟,"""23778"" is the report_no; FBI description refers to description",SELECT T1.description FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no WHERE T2.report_no = 23843,"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 european_football_1,Which team had the most final-time home-team goals in the 2021 season's matches of the Bundesliga division?,اينا فرقة ماركات أكبر عدد د لبيوت كفريق المضيف ف المباريات النهائية د موسم 2021 ف دوري البوندسليغا؟,Bundesliga is the name of division; the most final-time home-team goals refers to MAX(FTHG);,SELECT T1.HomeTeam FROM matchs AS T1 INNER JOIN divisions AS T2 ON T1.Div = T2.division WHERE T2.name = 'Bundesliga' AND T1.season = 2021 ORDER BY T1.FTHG DESC LIMIT 1,"CREATE TABLE divisions ( division TEXT not null primary key, name TEXT, country TEXT ); CREATE TABLE matchs ( Div TEXT, Date DATE, HomeTeam TEXT, AwayTeam TEXT, FTHG INTEGER, FTAG INTEGER, FTR TEXT, season INTEGER, foreign key (Div) references divisions(division) ); ",2 student_loan,Mention the name of students who filed for bankruptcy and have never been absent from school.,عفاك ذكر لي سميات التلاميذ اللي دارو إفلاس و عمرهم ما غيبو على المدرسة.,have never been absent refers to month = 0;,SELECT T1.name FROM longest_absense_from_school AS T1 INNER JOIN filed_for_bankrupcy AS T2 ON T1.name = T2.name WHERE T1.month = 0,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,How many students is disabled and unemployed at the same time?,شحال من تلميذ معاق و عاطل ف نفس الوقت؟,students who are disabled and unemployed at the same time refers to disabled.name = unemployed.name;,SELECT COUNT(T1.name) FROM disabled AS T1 INNER JOIN unemployed AS T2 ON T2.name = T1.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 student_loan,What is the average absent month for a unemployed male students?,شنو هو متوسط شهر الغياب بالنسبة للطلبة الذكور اللي ما خدامينش؟,"average = DIVIDE(SUM(month), COUNT(unemployed.name who are in male.name)); unemployed male students refers to unemployed.name who are IN male.name;",SELECT AVG(T2.month) AS avg FROM unemployed AS T1 INNER JOIN longest_absense_from_school AS T2 ON T2.name = T1.name INNER JOIN male AS T3 ON T3.name = T2.name,"CREATE TABLE bool ( ""name"" TEXT default '' not null primary key ); CREATE TABLE person ( ""name"" TEXT default '' not null primary key ); CREATE TABLE disabled ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE enlist ( ""name"" TEXT not null, organ TEXT not null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE filed_for_bankrupcy ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE longest_absense_from_school ( ""name"" TEXT default '' not null primary key, ""month"" INTEGER default 0 null, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE male ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE no_payment_due ( ""name"" TEXT default '' not null primary key, bool TEXT null, foreign key (""name"") references person (""name"") on update cascade on delete cascade, foreign key (bool) references bool (""name"") on update cascade on delete cascade ); CREATE TABLE unemployed ( ""name"" TEXT default '' not null primary key, foreign key (""name"") references person (""name"") on update cascade on delete cascade ); CREATE TABLE `enrolled` ( `name` TEXT NOT NULL, `school` TEXT NOT NULL, `month` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY (`name`,`school`), FOREIGN KEY (`name`) REFERENCES `person` (`name`) ON DELETE CASCADE ON UPDATE CASCADE ); ",10 chicago_crime,Please list the names of all the neighborhoods in Central Chicago.,عافاك قلي الأسماء ديال الأحياء ف Central Chicago.,name of neighborhood refers to neighborhood_name; Central Chicago refers to side = 'Central',SELECT T2.neighborhood_name FROM Community_Area AS T1 INNER JOIN Neighborhood AS T2 ON T1.community_area_no = T2.community_area_no WHERE T1.side = 'Central',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7 craftbeer,Where in New York can you locate the brewery that makes the bitterest beer? List both the brewery's name and the name of the city.,فين يمكن ليك تلقى المصنع د البيرة اللي كايصاوب أجود أنواع البيرة ف New York؟ عافاك عطي سمية المصنع و سمية المدينة.,"The more IBU, the more bitter the beer is, bitterest means highest IBU.","SELECT T2.name, T2.city FROM beers AS T1 INNER JOIN breweries AS T2 ON T1.brewery_id = T2.id WHERE T2.state = 'NY' ORDER BY T1.ibu DESC LIMIT 1","CREATE TABLE breweries ( id INTEGER not null primary key, name TEXT null, city TEXT null, state TEXT null ); CREATE TABLE IF NOT EXISTS ""beers"" ( id INTEGER not null primary key, brewery_id INTEGER not null constraint beers_ibfk_1 references breweries, abv REAL, ibu REAL, name TEXT not null, style TEXT, ounces REAL not null ); CREATE INDEX brewery_id on beers (brewery_id); ",2 video_games,Show the number of games which were released on X360 in 2010.,وريني شحال من لعبة خرجات على X360 ف 2010.,on X360 refers to platform_name = 'X360'; in 2010 refers to release_year = '2010',SELECT COUNT(DISTINCT T3.game_id) FROM platform AS T1 INNER JOIN game_platform AS T2 ON T1.id = T2.platform_id INNER JOIN game_publisher AS T3 ON T2.game_publisher_id = T3.id WHERE T1.platform_name = 'X360' AND T2.release_year = 2010,"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 video_games,How many publishers in Japan released a game on X360 in 2011?,شحال من ناشر فاليابان نشر شي لعبة على X360 ف 2011؟,in Japan refers to region_name = 'Japan'; on X360 refers to platform_name = 'X360'; in 2011 refers to release_year = 2011,SELECT COUNT(T3.game_publisher_id) FROM region AS T1 INNER JOIN region_sales AS T2 ON T1.id = T2.region_id INNER JOIN game_platform AS T3 ON T2.game_platform_id = T3.id INNER JOIN platform AS T4 ON T3.platform_id = T4.id WHERE T4.platform_name = 'X360' AND T3.release_year = 2011 AND T1.region_name = 'Japan',"CREATE TABLE genre ( id INTEGER not null primary key, genre_name TEXT default NULL ); CREATE TABLE game ( id INTEGER not null primary key, genre_id INTEGER default NULL, game_name TEXT default NULL, foreign key (genre_id) references genre(id) ); CREATE TABLE platform ( id INTEGER not null primary key, platform_name TEXT default NULL ); CREATE TABLE publisher ( id INTEGER not null primary key, publisher_name TEXT default NULL ); CREATE TABLE game_publisher ( id INTEGER not null primary key, game_id INTEGER default NULL, publisher_id INTEGER default NULL, foreign key (game_id) references game(id), foreign key (publisher_id) references publisher(id) ); CREATE TABLE game_platform ( id INTEGER not null primary key, game_publisher_id INTEGER default NULL, platform_id INTEGER default NULL, release_year INTEGER default NULL, foreign key (game_publisher_id) references game_publisher(id), foreign key (platform_id) references platform(id) ); CREATE TABLE region ( id INTEGER not null primary key, region_name TEXT default NULL ); CREATE TABLE region_sales ( region_id INTEGER default NULL, game_platform_id INTEGER default NULL, num_sales REAL default NULL, foreign key (game_platform_id) references game_platform(id), foreign key (region_id) references region(id) ); ",8 chicago_crime,How many crime against society were reported in Englewood?,شحال من جريمة ضد المجتمع تبلغات ف Englewood؟,"""Englewood"" is the community_area_name; 'Society' is the crime_against",SELECT SUM(CASE WHEN T3.community_area_name = 'Englewood' THEN 1 ELSE 0 END) FROM FBI_Code AS T1 INNER JOIN Crime AS T2 ON T1.fbi_code_no = T2.fbi_code_no INNER JOIN Community_Area AS T3 ON T2.community_area_no = T3.community_area_no WHERE T1.crime_against = 'Society',"CREATE TABLE Community_Area ( community_area_no INTEGER primary key, community_area_name TEXT, side TEXT, population TEXT ); CREATE TABLE District ( district_no INTEGER primary key, district_name TEXT, address TEXT, zip_code INTEGER, commander TEXT, email TEXT, phone TEXT, fax TEXT, tty TEXT, twitter TEXT ); CREATE TABLE FBI_Code ( fbi_code_no TEXT primary key, title TEXT, description TEXT, crime_against TEXT ); CREATE TABLE IUCR ( iucr_no TEXT primary key, primary_description TEXT, secondary_description TEXT, index_code TEXT ); CREATE TABLE Neighborhood ( neighborhood_name TEXT primary key, community_area_no INTEGER, foreign key (community_area_no) references Community_Area(community_area_no) ); CREATE TABLE Ward ( ward_no INTEGER primary key, alderman_first_name TEXT, alderman_last_name TEXT, alderman_name_suffix TEXT, ward_office_address TEXT, ward_office_zip TEXT, ward_email TEXT, ward_office_phone TEXT, ward_office_fax TEXT, city_hall_office_room INTEGER, city_hall_office_phone TEXT, city_hall_office_fax TEXT, Population INTEGER ); CREATE TABLE Crime ( report_no INTEGER primary key, case_number TEXT, date TEXT, block TEXT, iucr_no TEXT, location_description TEXT, arrest TEXT, domestic TEXT, beat INTEGER, district_no INTEGER, ward_no INTEGER, community_area_no INTEGER, fbi_code_no TEXT, latitude TEXT, longitude TEXT, foreign key (ward_no) references Ward(ward_no), foreign key (iucr_no) references IUCR(iucr_no), foreign key (district_no) references District(district_no), foreign key (community_area_no) references Community_Area(community_area_no), foreign key (fbi_code_no) references FBI_Code(fbi_code_no) ); ",7