output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "school"='whiteland community';
## Task Generate a SQL query to answer the following question: `What county is Whiteland Community School in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `What county is Whiteland Community School in?`: ```sql
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_football_class"='aaaaa' AND "mascot"='grizzly cubs';
## Task Generate a SQL query to answer the following question: `What county has a football team in IHSAA class AAAAA and a school macot of the Grizzly Cubs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `What county has a football team in IHSAA class AAAAA and a school macot of the Grizzly Cubs?`: ```sql
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='pioneers';
## Task Generate a SQL query to answer the following question: `What county has a school mascot of the Pioneers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `What county has a school mascot of the Pioneers?`: ```sql
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "location"='indianapolis';
## Task Generate a SQL query to answer the following question: `What are the IHSAA classes of the Indianapolis schools?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "mascot" text, "location" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the IHSAA classes of the Indianapolis schools?`: ```sql
SELECT "song" FROM "semi_final_2_7_february_2009" WHERE "points"<53 AND "place">8 AND "draw">1;
## Task Generate a SQL query to answer the following question: `Which Song has Points smaller than 53, and a Place larger than 8, and a Draw larger than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semi_final_2_7_february_2009" ( "draw" real, "artist" text, "song" text, "points" real, "place" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Song has Points smaller than 53, and a Place larger than 8, and a Draw larger than 1?`: ```sql
SELECT "green_communist" FROM "116_seats_needed_for_a_majority" WHERE "left_bloc"='3.6%';
## Task Generate a SQL query to answer the following question: `What is the result for the Green-Communist party when the Left Bloc has 3.6%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "116_seats_needed_for_a_majority" ( "date_released" text, "polling_institute" text, "social_democratic" text, "socialist" text, "green_communist" text, "people_s_party" text, "left_bloc" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result for the Green-Communist party when the Left Bloc has 3.6%?`: ```sql
SELECT "green_communist" FROM "116_seats_needed_for_a_majority" WHERE "left_bloc"='3.0%';
## Task Generate a SQL query to answer the following question: `What is the result for the Green-Communist party when the Left Bloc has 3.0%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "116_seats_needed_for_a_majority" ( "date_released" text, "polling_institute" text, "social_democratic" text, "socialist" text, "green_communist" text, "people_s_party" text, "left_bloc" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result for the Green-Communist party when the Left Bloc has 3.0%?`: ```sql
SELECT "socialist" FROM "116_seats_needed_for_a_majority" WHERE "people_s_party"='6.8%';
## Task Generate a SQL query to answer the following question: `What is the result for the Socialist party when the People's Party has 6.8%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "116_seats_needed_for_a_majority" ( "date_released" text, "polling_institute" text, "social_democratic" text, "socialist" text, "green_communist" text, "people_s_party" text, "left_bloc" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result for the Socialist party when the People's Party has 6.8%?`: ```sql
SELECT "date_released" FROM "116_seats_needed_for_a_majority" WHERE "left_bloc"='3.2%';
## Task Generate a SQL query to answer the following question: `What is the date released when the Left Bloc had 3.2%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "116_seats_needed_for_a_majority" ( "date_released" text, "polling_institute" text, "social_democratic" text, "socialist" text, "green_communist" text, "people_s_party" text, "left_bloc" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date released when the Left Bloc had 3.2%?`: ```sql
SELECT "cardinalatial_order_and_title" FROM "cardinal_electors" WHERE "elevated"='circa 1116';
## Task Generate a SQL query to answer the following question: `What is the cardinalatial order of the elector elevated circa 1116?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "cardinalatial_order_and_title" text, "elevated" text, "elevator" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the cardinalatial order of the elector elevated circa 1116?`: ```sql
SELECT "elevated" FROM "cardinal_electors" WHERE "nationality"='pisa';
## Task Generate a SQL query to answer the following question: `When was the elector from pisa elevated?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "cardinalatial_order_and_title" text, "elevated" text, "elevator" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the elector from pisa elevated?`: ```sql
SELECT "cardinalatial_order_and_title" FROM "cardinal_electors" WHERE "elector"='bosone';
## Task Generate a SQL query to answer the following question: `What is the cardinalatial order and title of bosone?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "cardinalatial_order_and_title" text, "elevated" text, "elevator" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the cardinalatial order and title of bosone?`: ```sql
SELECT "elevator" FROM "cardinal_electors" WHERE "nationality"='crema';
## Task Generate a SQL query to answer the following question: `Who is the elevator from crema?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "cardinalatial_order_and_title" text, "elevated" text, "elevator" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the elevator from crema?`: ```sql
SELECT "name" FROM "heats" WHERE "heat">4 AND "lane"=4 AND "nationality"='australia';
## Task Generate a SQL query to answer the following question: `What is the name of the swimmer from Australia in lane 4 with a heat larger than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the swimmer from Australia in lane 4 with a heat larger than 4?`: ```sql
SELECT MIN("heat") FROM "heats" WHERE "time"='2:34.94';
## Task Generate a SQL query to answer the following question: `What is the lowest heat number for a swimmer with a time of 2:34.94?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest heat number for a swimmer with a time of 2:34.94?`: ```sql
SELECT COUNT("rank") FROM "heat_7" WHERE "nationality"='ukraine' AND "react"<0.26;
## Task Generate a SQL query to answer the following question: `What is the rank of the player from Ukraine with react less than 0.26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_7" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank of the player from Ukraine with react less than 0.26?`: ```sql
SELECT MAX("week") FROM "schedule" WHERE "result"='w 21-17' AND "attendance">'45,254';
## Task Generate a SQL query to answer the following question: `What was the highest week with a w 21-17 result, and more than 45,254 in attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest week with a w 21-17 result, and more than 45,254 in attendance?`: ```sql
SELECT "proto_germanic" FROM "germanic_origins" WHERE "old_english"='/d/';
## Task Generate a SQL query to answer the following question: `What's the Proto-Germanic when the Old English is /d/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germanic_origins" ( "proto_germanic" text, "west_germanic" text, "old_english" text, "german" text, "dutch" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the Proto-Germanic when the Old English is /d/?`: ```sql
SELECT "proto_germanic" FROM "germanic_origins" WHERE "german"='/s/ or /ts/';
## Task Generate a SQL query to answer the following question: `What's the Proto Germanic when then German is /s/ or /ts/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germanic_origins" ( "proto_germanic" text, "west_germanic" text, "old_english" text, "german" text, "dutch" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the Proto Germanic when then German is /s/ or /ts/?`: ```sql
SELECT "dutch" FROM "germanic_origins" WHERE "old_english"='/d/';
## Task Generate a SQL query to answer the following question: `What's the Dutch when then Old English is /d/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germanic_origins" ( "proto_germanic" text, "west_germanic" text, "old_english" text, "german" text, "dutch" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the Dutch when then Old English is /d/?`: ```sql
SELECT "west_germanic" FROM "germanic_origins" WHERE "german"='/s/ or /ts/';
## Task Generate a SQL query to answer the following question: `What's the West Germanic when the German is /s/ or /ts/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germanic_origins" ( "proto_germanic" text, "west_germanic" text, "old_english" text, "german" text, "dutch" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the West Germanic when the German is /s/ or /ts/?`: ```sql
SELECT "proto_germanic" FROM "germanic_origins" WHERE "german"='/t/';
## Task Generate a SQL query to answer the following question: `What's the Proto-Germanic when the German is /t/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germanic_origins" ( "proto_germanic" text, "west_germanic" text, "old_english" text, "german" text, "dutch" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the Proto-Germanic when the German is /t/?`: ```sql
SELECT "to_par" FROM "final_round" WHERE "country"='japan';
## Task Generate a SQL query to answer the following question: `What is the to par for japan` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the to par for japan`: ```sql
SELECT "player" FROM "final_round" WHERE "money"='187,500' AND "score"='66-75-71-69=281';
## Task Generate a SQL query to answer the following question: `what player has $187,500 and score 66-75-71-69=281` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `what player has $187,500 and score 66-75-71-69=281`: ```sql
SELECT "place" FROM "final_round" WHERE "score"='66-74-68-73=281';
## Task Generate a SQL query to answer the following question: `what place has score 66-74-68-73=281` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `what place has score 66-74-68-73=281`: ```sql
SELECT "player" FROM "final_round" WHERE "place"='t10';
## Task Generate a SQL query to answer the following question: `what player has place t10` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `what player has place t10`: ```sql
SELECT "to_par" FROM "final_round" WHERE "money"='242,813' AND "score"='68-72-74-66=280';
## Task Generate a SQL query to answer the following question: `what is the to par for $242,813 with score 68-72-74-66=280` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the to par for $242,813 with score 68-72-74-66=280`: ```sql
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "size">408 AND "mascot"='pacers';
## Task Generate a SQL query to answer the following question: `Which School has a Size larger than 408, and a Mascot of pacers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `Which School has a Size larger than 408, and a Mascot of pacers?`: ```sql
SELECT SUM("size") FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_class"='aa' AND "location"='milan';
## Task Generate a SQL query to answer the following question: `Which Size has an IHSAA Class of aa, and a Location of milan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Size has an IHSAA Class of aa, and a Location of milan?`: ```sql
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='pacers';
## Task Generate a SQL query to answer the following question: `Which County has a Mascot of pacers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `Which County has a Mascot of pacers?`: ```sql
SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "county"='69 ripley' AND "ihsaa_class"='aa' AND "school"='south ripley';
## Task Generate a SQL query to answer the following question: `Which Mascot has a County of 69 ripley, and an IHSAA Class of aa, and a School of south ripley?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Mascot has a County of 69 ripley, and an IHSAA Class of aa, and a School of south ripley?`: ```sql
SELECT "name" FROM "heats" WHERE "heat"=7 AND "lane"=5;
## Task Generate a SQL query to answer the following question: `Who was in Lane 5 and had a heat of 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was in Lane 5 and had a heat of 7?`: ```sql
SELECT COUNT("lane") FROM "heats" WHERE "heat"=4 AND "nationality"='hungary';
## Task Generate a SQL query to answer the following question: `What lane number was Hungary and had a heat of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What lane number was Hungary and had a heat of 4?`: ```sql
SELECT "date" FROM "world_record_progression" WHERE "score"='690.3';
## Task Generate a SQL query to answer the following question: `What's the date when the score was 690.3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_record_progression" ( "score" text, "shooter" text, "date" text, "comp" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the date when the score was 690.3?`: ```sql
SELECT "place" FROM "world_record_progression" WHERE "comp"='ech' AND "date"='1989';
## Task Generate a SQL query to answer the following question: `What's the place of 1989 with a comp of ECH?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_record_progression" ( "score" text, "shooter" text, "date" text, "comp" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the place of 1989 with a comp of ECH?`: ```sql
SELECT "shooter" FROM "world_record_progression" WHERE "score"='686.4';
## Task Generate a SQL query to answer the following question: `Who was the shooter with a score of 686.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_record_progression" ( "score" text, "shooter" text, "date" text, "comp" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the shooter with a score of 686.4?`: ```sql
SELECT "year" FROM "games_tm" WHERE "game"='borderlands 2';
## Task Generate a SQL query to answer the following question: `what is the year for borderlands 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "games_tm" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the year for borderlands 2?`: ```sql
SELECT "year" FROM "games_tm" WHERE "game"='dead space 2';
## Task Generate a SQL query to answer the following question: `what is the year for the game dead space 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "games_tm" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the year for the game dead space 2?`: ```sql
SELECT "developer_s" FROM "games_tm" WHERE "game"='demon''s souls';
## Task Generate a SQL query to answer the following question: `who is the developers for demon's souls?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "games_tm" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the developers for demon's souls?`: ```sql
SELECT "year" FROM "arcade_awards_electronic_gaming_awards" WHERE "standalone"='zaxxon';
## Task Generate a SQL query to answer the following question: `In what year is Zaxxon the Standalone?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arcade_awards_electronic_gaming_awards" ( "year" text, "arcade" text, "standalone" text, "console" text, "computer" text ); ### SQL Given the database schema, here is the SQL query that answers `In what year is Zaxxon the Standalone?`: ```sql
SELECT "standalone" FROM "arcade_awards_electronic_gaming_awards" WHERE "console"='space invaders';
## Task Generate a SQL query to answer the following question: `What is the Standalone in the year when Space Invaders is the Console?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arcade_awards_electronic_gaming_awards" ( "year" text, "arcade" text, "standalone" text, "console" text, "computer" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Standalone in the year when Space Invaders is the Console?`: ```sql
SELECT "standalone" FROM "arcade_awards_electronic_gaming_awards" WHERE "arcade"='tron';
## Task Generate a SQL query to answer the following question: `What is the Standalone when Tron is the Arcade?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arcade_awards_electronic_gaming_awards" ( "year" text, "arcade" text, "standalone" text, "console" text, "computer" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Standalone when Tron is the Arcade?`: ```sql
SELECT "console" FROM "arcade_awards_electronic_gaming_awards" WHERE "arcade"='space invaders';
## Task Generate a SQL query to answer the following question: `What is the Console when Space Invaders is the Arcade?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arcade_awards_electronic_gaming_awards" ( "year" text, "arcade" text, "standalone" text, "console" text, "computer" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Console when Space Invaders is the Arcade?`: ```sql
SELECT "position" FROM "supplemental_first_round_selections" WHERE "team"='arizona diamondbacks';
## Task Generate a SQL query to answer the following question: `What position does the player from the Arizona Diamondbacks play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `What position does the player from the Arizona Diamondbacks play?`: ```sql
SELECT "school" FROM "supplemental_first_round_selections" WHERE "position"='p' AND "team"='kansas city royals' AND "player"='jay gehrke';
## Task Generate a SQL query to answer the following question: `What school did P Jay Gehrke of the Kansas City Royals attend?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `What school did P Jay Gehrke of the Kansas City Royals attend?`: ```sql
SELECT "country" FROM "heat_1" WHERE "athletes"='adam van koeverden';
## Task Generate a SQL query to answer the following question: `What country does Adam van Koeverden play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_1" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What country does Adam van Koeverden play for?`: ```sql
SELECT "pick" FROM "first_round_selections" WHERE "school"='jasper hs (jasper, texas)';
## Task Generate a SQL query to answer the following question: `what is the pick when the school is jasper hs (jasper, texas)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the pick when the school is jasper hs (jasper, texas)?`: ```sql
SELECT "player" FROM "first_round_selections" WHERE "position"='p' AND "team"='oakland athletics';
## Task Generate a SQL query to answer the following question: `who is the player when the position is p and the team is oakland athletics?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the player when the position is p and the team is oakland athletics?`: ```sql
SELECT "school" FROM "first_round_selections" WHERE "team"='new york yankees';
## Task Generate a SQL query to answer the following question: `what is the school when the team is new york yankees?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the school when the team is new york yankees?`: ```sql
SELECT "player" FROM "first_round_selections" WHERE "school"='spring hs (spring, texas)';
## Task Generate a SQL query to answer the following question: `who is the player when the school is spring hs (spring, texas)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the player when the school is spring hs (spring, texas)?`: ```sql
SELECT "melamine_content_mg_kg" FROM "tests_conducted_by_aqsiq" WHERE "samples_failed">1 AND "product"='英雄牌嬰幼兒配方乳粉';
## Task Generate a SQL query to answer the following question: `What's the melamine content of 英雄牌嬰幼兒配方乳粉 having more than 1 samples failed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tests_conducted_by_aqsiq" ( "producer" text, "product" text, "samples_taken" real, "samples_failed" real, "melamine_content_mg_kg" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the melamine content of 英雄牌嬰幼兒配方乳粉 having more than 1 samples failed?`: ```sql
SELECT MAX("melamine_content_mg_kg") FROM "tests_conducted_by_aqsiq" WHERE "producer"='guangzhou jinding dairy products factory' AND "samples_failed">1;
## Task Generate a SQL query to answer the following question: `What's the most melamine content that has more than 1 samples failed and produced by Guangzhou Jinding Dairy Products Factory?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tests_conducted_by_aqsiq" ( "producer" text, "product" text, "samples_taken" real, "samples_failed" real, "melamine_content_mg_kg" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the most melamine content that has more than 1 samples failed and produced by Guangzhou Jinding Dairy Products Factory?`: ```sql
SELECT "product" FROM "tests_conducted_by_aqsiq" WHERE "melamine_content_mg_kg"<98.6 AND "samples_failed">1 AND "samples_taken"<3;
## Task Generate a SQL query to answer the following question: `What's the product that has less than 98.6 melamine content, more than 1 sample failed and took less than 3 samples?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tests_conducted_by_aqsiq" ( "producer" text, "product" text, "samples_taken" real, "samples_failed" real, "melamine_content_mg_kg" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the product that has less than 98.6 melamine content, more than 1 sample failed and took less than 3 samples?`: ```sql
SELECT MAX("samples_failed") FROM "tests_conducted_by_aqsiq" WHERE "product"='可淇牌嬰幼兒配方乳粉' AND "samples_taken"<1;
## Task Generate a SQL query to answer the following question: `What the most samples failed for 可淇牌嬰幼兒配方乳粉 and had less than 1 samples taken?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tests_conducted_by_aqsiq" ( "producer" text, "product" text, "samples_taken" real, "samples_failed" real, "melamine_content_mg_kg" real ); ### SQL Given the database schema, here is the SQL query that answers `What the most samples failed for 可淇牌嬰幼兒配方乳粉 and had less than 1 samples taken?`: ```sql
SELECT SUM("samples_taken") FROM "tests_conducted_by_aqsiq" WHERE "melamine_content_mg_kg"<53.4 AND "producer"='qingdao suncare nutritional technology';
## Task Generate a SQL query to answer the following question: `How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tests_conducted_by_aqsiq" ( "producer" text, "product" text, "samples_taken" real, "samples_failed" real, "melamine_content_mg_kg" real ); ### SQL Given the database schema, here is the SQL query that answers `How many samples taken from producer Qingdao Suncare Nutritional Technology with a melamine content less than 53.4?`: ```sql
SELECT "score" FROM "third_round" WHERE "country"='australia';
## Task Generate a SQL query to answer the following question: `What did the golfer from Australia score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the golfer from Australia score?`: ```sql
SELECT "date" FROM "europe_usage_share_data_from_at_internet" WHERE "opera"='5.1%' AND "internet_explorer"='59.5%';
## Task Generate a SQL query to answer the following question: `Which date has an Opera usage percentage of 5.1% and Internet Explorer usage of 59.5%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "europe_usage_share_data_from_at_internet" ( "date" text, "internet_explorer" text, "firefox" text, "opera" text, "safari" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has an Opera usage percentage of 5.1% and Internet Explorer usage of 59.5%?`: ```sql
SELECT "source" FROM "europe_usage_share_data_from_at_internet" WHERE "date"='june 2008';
## Task Generate a SQL query to answer the following question: `Which source has a date of June 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "europe_usage_share_data_from_at_internet" ( "date" text, "internet_explorer" text, "firefox" text, "opera" text, "safari" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `Which source has a date of June 2008?`: ```sql
SELECT "source" FROM "europe_usage_share_data_from_at_internet" WHERE "internet_explorer"='60.2%';
## Task Generate a SQL query to answer the following question: `Which source date has an Internet Explorer usage of 60.2%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "europe_usage_share_data_from_at_internet" ( "date" text, "internet_explorer" text, "firefox" text, "opera" text, "safari" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `Which source date has an Internet Explorer usage of 60.2%?`: ```sql
SELECT "city" FROM "former_or_demolished_stadiums" WHERE "home_team_s"='brisbane broncos';
## Task Generate a SQL query to answer the following question: `What city has the home team of the brisbane broncos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_or_demolished_stadiums" ( "stadium" text, "capacity" real, "city" text, "country" text, "home_team_s" text, "closed_as_a_rl_stadium" real ); ### SQL Given the database schema, here is the SQL query that answers `What city has the home team of the brisbane broncos?`: ```sql
SELECT MIN("closed_as_a_rl_stadium") FROM "former_or_demolished_stadiums" WHERE "country"='france';
## Task Generate a SQL query to answer the following question: `What is the earliest closed year in the country of france?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_or_demolished_stadiums" ( "stadium" text, "capacity" real, "city" text, "country" text, "home_team_s" text, "closed_as_a_rl_stadium" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest closed year in the country of france?`: ```sql
SELECT "res" FROM "mixed_martial_arts_record" WHERE "time"='2:20';
## Task Generate a SQL query to answer the following question: `What is the result for the event that lasted 2:20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result for the event that lasted 2:20?`: ```sql
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "event"='gladiator challenge 87: collision course';
## Task Generate a SQL query to answer the following question: `Who was the fight against when loss was the result at the Gladiator Challenge 87: Collision Course event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the fight against when loss was the result at the Gladiator Challenge 87: Collision Course event?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='cage combat fighting championships: mayhem';
## Task Generate a SQL query to answer the following question: `For the Cage Combat Fighting Championships: Mayhem, what was the record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `For the Cage Combat Fighting Championships: Mayhem, what was the record?`: ```sql
SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='gabeca montichiari';
## Task Generate a SQL query to answer the following question: `What is the Name of the Gabeca Montichiari Club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Name of the Gabeca Montichiari Club?`: ```sql
SELECT "height" FROM "volleyball_at_the_2008_summer_olympics_m" WHERE "2008_club"='rpa perugia';
## Task Generate a SQL query to answer the following question: `What is the Height of the Player from the 2008 Club of RPA Perugia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "volleyball_at_the_2008_summer_olympics_m" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Height of the Player from the 2008 Club of RPA Perugia?`: ```sql
SELECT "designer" FROM "season_1" WHERE "restaurant_name"='the grapefruit moon';
## Task Generate a SQL query to answer the following question: `Who was the designer for The Grapefruit Moon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1" ( "restaurant_name" text, "original_name" text, "location" text, "chef" text, "designer" text, "still_open" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the designer for The Grapefruit Moon?`: ```sql
SELECT "chef" FROM "season_1" WHERE "restaurant_name"='lakes bar and grill';
## Task Generate a SQL query to answer the following question: `Who is the chef at Lakes Bar and Grill?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1" ( "restaurant_name" text, "original_name" text, "location" text, "chef" text, "designer" text, "still_open" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the chef at Lakes Bar and Grill?`: ```sql
SELECT "restaurant_name" FROM "season_1" WHERE "designer"='robin de groot' AND "location"='cobourg, on';
## Task Generate a SQL query to answer the following question: `What is the name of the Cobourg, ON restaurant that had Robin de Groot as designer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1" ( "restaurant_name" text, "original_name" text, "location" text, "chef" text, "designer" text, "still_open" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the Cobourg, ON restaurant that had Robin de Groot as designer?`: ```sql
SELECT "european_competitions" FROM "season_by_season" WHERE "tier"=2 AND "pos"=3;
## Task Generate a SQL query to answer the following question: `What European competitions have a tier of 2 and a position of 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_by_season" ( "season" text, "tier" real, "league" text, "pos" real, "turkish_cup" text, "european_competitions" text ); ### SQL Given the database schema, here is the SQL query that answers `What European competitions have a tier of 2 and a position of 3?`: ```sql
SELECT "nation" FROM "all_time_medal_table_women_s_1984_2012" WHERE "silver"=5 AND "gold">4;
## Task Generate a SQL query to answer the following question: `Which Nation won 5 Silver, and more than 4 Gold?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_medal_table_women_s_1984_2012" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Nation won 5 Silver, and more than 4 Gold?`: ```sql
SELECT COUNT("heat") FROM "heats" WHERE "lane"<4 AND "name"='christophe lebon';
## Task Generate a SQL query to answer the following question: `What is the sum of heat for christophe lebon when lane is less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of heat for christophe lebon when lane is less than 4?`: ```sql
SELECT "name" FROM "heats" WHERE "rank"<9 AND "heat">5 AND "nationality"='united states';
## Task Generate a SQL query to answer the following question: `Who is from the united states, has a rank less than 9, and heat more than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is from the united states, has a rank less than 9, and heat more than 5?`: ```sql
SELECT COUNT("rank") FROM "heats" WHERE "nationality"='serbia' AND "heat"<2;
## Task Generate a SQL query to answer the following question: `Serbia has a heat less than 2 and what sum of rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Serbia has a heat less than 2 and what sum of rank?`: ```sql
SELECT MIN("lane") FROM "heats" WHERE "rank"=33;
## Task Generate a SQL query to answer the following question: `When rank is 33, what is the smallest lane?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `When rank is 33, what is the smallest lane?`: ```sql
SELECT "model" FROM "s_390_computers" WHERE "number_of_cp_us"='1–10' AND "performance_mips"='49–447';
## Task Generate a SQL query to answer the following question: `Which Model has a Number of CPUs of 1–10, and a Performance (MIPS) of 49–447?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_390_computers" ( "model" text, "year_introduced" real, "number_of_cp_us" text, "performance_mips" text, "memory_gb" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Model has a Number of CPUs of 1–10, and a Performance (MIPS) of 49–447?`: ```sql
SELECT MAX("year_introduced") FROM "s_390_computers" WHERE "memory_gb"='0.125–2';
## Task Generate a SQL query to answer the following question: `Which Year Introduced has a Memory (GB) of 0.125–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_390_computers" ( "model" text, "year_introduced" real, "number_of_cp_us" text, "performance_mips" text, "memory_gb" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year Introduced has a Memory (GB) of 0.125–2?`: ```sql
SELECT "number_of_cp_us" FROM "s_390_computers" WHERE "memory_gb"='0.5–16';
## Task Generate a SQL query to answer the following question: `Which Number of CPUs has a Memory (GB) of 0.5–16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_390_computers" ( "model" text, "year_introduced" real, "number_of_cp_us" text, "performance_mips" text, "memory_gb" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Number of CPUs has a Memory (GB) of 0.5–16?`: ```sql
SELECT "memory_gb" FROM "s_390_computers" WHERE "number_of_cp_us"='1–6';
## Task Generate a SQL query to answer the following question: `Which Memory (GB) has a Number of CPUs of 1–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_390_computers" ( "model" text, "year_introduced" real, "number_of_cp_us" text, "performance_mips" text, "memory_gb" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Memory (GB) has a Number of CPUs of 1–6?`: ```sql
SELECT "fuel_type" FROM "see_also" WHERE "mpg_us_extra_urban">53.5 AND "mpg_us_combined">50 AND "manufacturer"='renault';
## Task Generate a SQL query to answer the following question: `Which Fuel Type that has a mpg-US Extra-Urban larger than 53.5, and a mpg-US Combined larger than 50 from renault?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "manufacturer" text, "model" text, "transmission" text, "engine_capacity" text, "fuel_type" text, "l_100km_urban_cold" real, "l_100km_extra_urban" real, "l_100km_combined" real, "mpg_uk_urban_cold" real, "mpg_uk_extra_urban" real, "mpg_uk_combined" real, "mpg_us_urban" real, "mpg_us_extra_urban" real, "mpg_us_combined" real, "co_2_g_km" real, "green_rating" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Fuel Type that has a mpg-US Extra-Urban larger than 53.5, and a mpg-US Combined larger than 50 from renault?`: ```sql
SELECT "country" FROM "semifinal_a_b_1" WHERE "rank">4 AND "time"='5:59.56';
## Task Generate a SQL query to answer the following question: `What is the Country of the Rowers with a Rank larger than 4 and Time of 5:59.56?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_a_b_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Country of the Rowers with a Rank larger than 4 and Time of 5:59.56?`: ```sql
SELECT "time" FROM "semifinal_a_b_1" WHERE "rank">2 AND "notes"='fb' AND "country"='belarus';
## Task Generate a SQL query to answer the following question: `What is the Time of the Belarus Player with a Rank larger than 2 and Notes of FB?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_a_b_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Time of the Belarus Player with a Rank larger than 2 and Notes of FB?`: ```sql
SELECT "time" FROM "semifinal_a_b_1" WHERE "notes"='fa' AND "rank"<2;
## Task Generate a SQL query to answer the following question: `What is the Time of the Player with a Rank of 1 or 2 and Notes of FA?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_a_b_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Time of the Player with a Rank of 1 or 2 and Notes of FA?`: ```sql
SELECT "rowers" FROM "semifinal_a_b_1" WHERE "country"='poland';
## Task Generate a SQL query to answer the following question: `Who are the Rowers from Poland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_a_b_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the Rowers from Poland?`: ```sql
SELECT "rowers" FROM "semifinal_a_b_1" WHERE "time"='5:56.38';
## Task Generate a SQL query to answer the following question: `Who are the Rowers with a Time of 5:56.38?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_a_b_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the Rowers with a Time of 5:56.38?`: ```sql
SELECT "release_date" FROM "1954" WHERE "production_number"<1323 AND "reissue"='no' AND "director"='charles m. jones' AND "title"='claws for alarm';
## Task Generate a SQL query to answer the following question: `What's the release date for Claws For Alarm who has a director of Charles M. Jones, no reissue, and a production number less than 1323?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1954" ( "title" text, "series" text, "director" text, "production_number" real, "release_date" text, "reissue" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the release date for Claws For Alarm who has a director of Charles M. Jones, no reissue, and a production number less than 1323?`: ```sql
SELECT "title" FROM "1954" WHERE "release_date"='1954-12-18';
## Task Generate a SQL query to answer the following question: `What's the title of the film with the release date of 1954-12-18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1954" ( "title" text, "series" text, "director" text, "production_number" real, "release_date" text, "reissue" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the title of the film with the release date of 1954-12-18?`: ```sql
SELECT "reissue" FROM "1954" WHERE "director"='robert mckimson' AND "production_number">1289 AND "release_date"='1954-09-04';
## Task Generate a SQL query to answer the following question: `Was there a reissue with a release date of 1954-09-04 having a production number more than 1289 and a director of Robert McKimson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1954" ( "title" text, "series" text, "director" text, "production_number" real, "release_date" text, "reissue" text ); ### SQL Given the database schema, here is the SQL query that answers `Was there a reissue with a release date of 1954-09-04 having a production number more than 1289 and a director of Robert McKimson?`: ```sql
SELECT COUNT("production_number") FROM "1954" WHERE "series"='mm' AND "title"='bell hoppy';
## Task Generate a SQL query to answer the following question: `What is the production number for Bell Hoppy in the MM Series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1954" ( "title" text, "series" text, "director" text, "production_number" real, "release_date" text, "reissue" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the production number for Bell Hoppy in the MM Series?`: ```sql
SELECT SUM("scored") FROM "torneo_clausura" WHERE "losses"<0;
## Task Generate a SQL query to answer the following question: `How much Scored has Losses smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How much Scored has Losses smaller than 0?`: ```sql
SELECT MIN("wins") FROM "torneo_clausura" WHERE "losses"<6 AND "position"=4 AND "played">9;
## Task Generate a SQL query to answer the following question: `Which Wins have Losses smaller than 6, and a Position of 4, and Played larger than 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Wins have Losses smaller than 6, and a Position of 4, and Played larger than 9?`: ```sql
SELECT COUNT("conceded") FROM "torneo_clausura" WHERE "wins"<3 AND "points">11;
## Task Generate a SQL query to answer the following question: `How much Conceded has Wins smaller than 3, and Points larger than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How much Conceded has Wins smaller than 3, and Points larger than 11?`: ```sql
SELECT MIN("draws") FROM "torneo_clausura" WHERE "points"<15 AND "conceded">10 AND "position">8 AND "wins"=1;
## Task Generate a SQL query to answer the following question: `Which Draws has Points smaller than 15, and a Conceded larger than 10, and a Position larger than 8, and Wins of 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Draws has Points smaller than 15, and a Conceded larger than 10, and a Position larger than 8, and Wins of 1?`: ```sql
SELECT COUNT("losses") FROM "torneo_clausura" WHERE "points"=11;
## Task Generate a SQL query to answer the following question: `How many losses have 11 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_clausura" ( "position" real, "team" text, "played" real, "wins" real, "draws" real, "losses" real, "scored" real, "conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many losses have 11 points?`: ```sql
SELECT "song_title" FROM "song_list" WHERE "singer_s"='sonu nigam' AND "lyricist"='dev kohli/biddu' AND "number">8;
## Task Generate a SQL query to answer the following question: `What is the song title sung by Sonu Nigam with lyricists of Dev Kohli/Biddu, and number over 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "song_list" ( "number" real, "song_title" text, "lyricist" text, "singer_s" text, "length" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the song title sung by Sonu Nigam with lyricists of Dev Kohli/Biddu, and number over 8?`: ```sql
SELECT "singer_s" FROM "song_list" WHERE "lyricist"='dev kohli' AND "number"=3;
## Task Generate a SQL query to answer the following question: `Who was the singer for the song numbered 3, with lyricist Dev Kohli?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "song_list" ( "number" real, "song_title" text, "lyricist" text, "singer_s" text, "length" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the singer for the song numbered 3, with lyricist Dev Kohli?`: ```sql
SELECT AVG("number") FROM "song_list" WHERE "song_title"='o sudha';
## Task Generate a SQL query to answer the following question: `What is the average number for the song "O Sudha"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "song_list" ( "number" real, "song_title" text, "lyricist" text, "singer_s" text, "length" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number for the song "O Sudha"?`: ```sql
SELECT "length" FROM "song_list" WHERE "song_title"='ma ke jaisi';
## Task Generate a SQL query to answer the following question: `What is the average length for the song "Ma Ke Jaisi"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "song_list" ( "number" real, "song_title" text, "lyricist" text, "singer_s" text, "length" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average length for the song "Ma Ke Jaisi"?`: ```sql
SELECT "name" FROM "appearances_and_goals" WHERE "fa_cup_goals"=0 AND "league_cup_goals"<2 AND "total_goals"=2;
## Task Generate a SQL query to answer the following question: `Who had fa cup goals of 0, league cup goals less than 2, and total goals of 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `Who had fa cup goals of 0, league cup goals less than 2, and total goals of 2?`: ```sql
SELECT SUM("fa_cup_goals") FROM "appearances_and_goals" WHERE "total_apps"='10 (4)';
## Task Generate a SQL query to answer the following question: `what is the fa cup goals when total apps is 10 (4)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the fa cup goals when total apps is 10 (4)?`: ```sql