output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "superlative" FROM "list_of_superlative_academy_award_winner" WHERE "actress"='thelma ritter';
## Task Generate a SQL query to answer the following question: `Which award has Thelma Ritter won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_superlative_academy_award_winner" ( "superlative" text, "actress" text, "record_set" text, "year" real, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which award has Thelma Ritter won?`: ```sql
SELECT MIN("points_diff") FROM "table" WHERE "against"<578 AND "lost"=15 AND "points">26;
## Task Generate a SQL query to answer the following question: `I want the lowest points diff for against being less than 578 and lost being 15 and points more than 26` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table" ( "team" text, "played" real, "drawn" real, "lost" real, "against" real, "points_diff" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `I want the lowest points diff for against being less than 578 and lost being 15 and points more than 26`: ```sql
SELECT COUNT("points") FROM "table" WHERE "against"=753 AND "points_diff">-114;
## Task Generate a SQL query to answer the following question: `I want the total number of points for against of 753 and points diff more than -114` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table" ( "team" text, "played" real, "drawn" real, "lost" real, "against" real, "points_diff" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `I want the total number of points for against of 753 and points diff more than -114`: ```sql
SELECT "week" FROM "schedule" WHERE "attendance"='75,866';
## Task Generate a SQL query to answer the following question: `In What Week was the Attendance 75,866?` ### 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" text ); ### SQL Given the database schema, here is the SQL query that answers `In What Week was the Attendance 75,866?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "attendance"='74,246';
## Task Generate a SQL query to answer the following question: `What Opponent has an Attendance of 74,246?` ### 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" text ); ### SQL Given the database schema, here is the SQL query that answers `What Opponent has an Attendance of 74,246?`: ```sql
SELECT "date" FROM "schedule" WHERE "week"=1;
## Task Generate a SQL query to answer the following question: `What Date is Week 1?` ### 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" text ); ### SQL Given the database schema, here is the SQL query that answers `What Date is Week 1?`: ```sql
SELECT "team" FROM "final_standing" WHERE "losses"='7' AND "goals_for"=55;
## Task Generate a SQL query to answer the following question: `Which team had 7 losses and 55 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standing" ( "team" text, "games_played" real, "wins" real, "losses" text, "ties" real, "goals_for" real, "goals_against" real ); ### SQL Given the database schema, here is the SQL query that answers `Which team had 7 losses and 55 goals?`: ```sql
SELECT MAX("2000") FROM "gdp_per_capita_in_usd_in_main_years_1978" WHERE "2008"<'3,632' AND "2010"='2,558' AND "2009">'2,239';
## Task Generate a SQL query to answer the following question: `What is the largest 2000 GDP when the 2008 GDP is smaller than 3,632, 2010 GDP is 2,558 and 2009 GDP is larger than 2,239?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest 2000 GDP when the 2008 GDP is smaller than 3,632, 2010 GDP is 2,558 and 2009 GDP is larger than 2,239?`: ```sql
SELECT COUNT("2008") FROM "gdp_per_capita_in_usd_in_main_years_1978" WHERE "2009"<'3,355' AND "2005">'1,103' AND "2010"='3,977' AND "1995">413;
## Task Generate a SQL query to answer the following question: `What is the GDP in 2008 for the region where 2009 is less than 3,355, 2005 is larger than 1,103, 2010 GDP is 3,977 and 1995 GDP is larger than 413?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the GDP in 2008 for the region where 2009 is less than 3,355, 2005 is larger than 1,103, 2010 GDP is 3,977 and 1995 GDP is larger than 413?`: ```sql
SELECT MIN("2010") FROM "gdp_per_capita_in_usd_in_main_years_1978" WHERE "2009">'3,749' AND "1995"=876 AND "2008">'4,885';
## Task Generate a SQL query to answer the following question: `What is the minimum 2010 GDP if the 2009 GDP is larger than 3,749, 1995 GDP is 876 and 2008 GDP is larger than 4,885?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum 2010 GDP if the 2009 GDP is larger than 3,749, 1995 GDP is 876 and 2008 GDP is larger than 4,885?`: ```sql
SELECT MIN("1995") FROM "gdp_per_capita_in_usd_in_main_years_1978" WHERE "1990"=441 AND "1985"<359;
## Task Generate a SQL query to answer the following question: `What is the 1995 GDP when 1990 GDP is 441 and 1985 GDP is less than 359?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1995 GDP when 1990 GDP is 441 and 1985 GDP is less than 359?`: ```sql
SELECT MAX("1985") FROM "gdp_per_capita_in_usd_in_main_years_1978" WHERE "1990"<267 AND "2000"=333 AND "2005"<658;
## Task Generate a SQL query to answer the following question: `What is the maximum 1985 GDP for the region where 1990 GDP is less than 267, 2000 GDP is 333 and 2005 GDP is less than 658?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gdp_per_capita_in_usd_in_main_years_1978" ( "year" text, "2010" real, "2009" real, "2008" real, "2005" real, "2000" real, "1995" real, "1990" real, "1985" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum 1985 GDP for the region where 1990 GDP is less than 267, 2000 GDP is 333 and 2005 GDP is less than 658?`: ```sql
SELECT COUNT("code") FROM "list_of_municipalities_in_quebec" WHERE "type"='v' AND "population">'7,747';
## Task Generate a SQL query to answer the following question: `When populatioin is greater than 7,747 and the type is V, what is the sum of code?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_municipalities_in_quebec" ( "code" real, "type" text, "name" text, "area_km_2" real, "population" real, "regional_county_municipality" text, "region" real ); ### SQL Given the database schema, here is the SQL query that answers `When populatioin is greater than 7,747 and the type is V, what is the sum of code?`: ```sql
SELECT "name" FROM "most_doubles_wins" WHERE "ties"=5;
## Task Generate a SQL query to answer the following question: `Who has ties of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_doubles_wins" ( "name" text, "tkm_career" text, "ties" real, "dou_w_l" text, "sin_w_l" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has ties of 5?`: ```sql
SELECT "venue" FROM "round_10" WHERE "away_team"='st kilda';
## Task Generate a SQL query to answer the following question: `Where did st kilda play as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did st kilda play as the away team?`: ```sql
SELECT "home_team" FROM "round_10" WHERE "home_team_score"='10.14 (74)';
## Task Generate a SQL query to answer the following question: `What home team scored 10.14 (74)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What home team scored 10.14 (74)?`: ```sql
SELECT "crowd" FROM "round_10" WHERE "home_team"='essendon';
## Task Generate a SQL query to answer the following question: `How big of a crowd does the home team of essendon have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How big of a crowd does the home team of essendon have?`: ```sql
SELECT "mlb_draft" FROM "2003_team" WHERE "school"='seton hall preparatory school';
## Task Generate a SQL query to answer the following question: `What is the MLB Draft status of the person who attended Seton Hall Preparatory School?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2003_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the MLB Draft status of the person who attended Seton Hall Preparatory School?`: ```sql
SELECT "hometown" FROM "2003_team" WHERE "school"='kennedy-kenrick catholic high school';
## Task Generate a SQL query to answer the following question: `Where is the Hometown of the person that attended Kennedy-Kenrick Catholic High School?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2003_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the Hometown of the person that attended Kennedy-Kenrick Catholic High School?`: ```sql
SELECT "player" FROM "2003_team" WHERE "school"='george washington high school';
## Task Generate a SQL query to answer the following question: `Which Player attended George Washington High School?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2003_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Player attended George Washington High School?`: ```sql
SELECT "hometown" FROM "2003_team" WHERE "school"='camarillo high school';
## Task Generate a SQL query to answer the following question: `Where is the Hometown that the person who attended Camarillo High School is from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2003_team" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_draft" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the Hometown that the person who attended Camarillo High School is from?`: ```sql
SELECT COUNT("crowd") FROM "round_18" WHERE "away_team"='carlton';
## Task Generate a SQL query to answer the following question: `How many people in total have attended games where carlton played as away?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people in total have attended games where carlton played as away?`: ```sql
SELECT MIN("crowd") FROM "round_18" WHERE "home_team_score"='19.15 (129)';
## Task Generate a SQL query to answer the following question: `When the home team scored 19.15 (129)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `When the home team scored 19.15 (129)?`: ```sql
SELECT "player" FROM "receiving" WHERE "long"<15 AND "avg"=6;
## Task Generate a SQL query to answer the following question: `Which player has a long of less than 15 and an average of 6 yards.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "receiving" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `Which player has a long of less than 15 and an average of 6 yards.`: ```sql
SELECT "years_for_jazz" FROM "h" WHERE "player"='troy hudson';
## Task Generate a SQL query to answer the following question: `What years did Troy Hudson play for the Jazz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What years did Troy Hudson play for the Jazz?`: ```sql
SELECT "nationality" FROM "h" WHERE "school_club_team"='iowa state';
## Task Generate a SQL query to answer the following question: `What Nationality is the Iowa State team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What Nationality is the Iowa State team?`: ```sql
SELECT "nationality" FROM "h" WHERE "player"='jeff hornacek';
## Task Generate a SQL query to answer the following question: `What Nationality is Jeff Hornacek?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What Nationality is Jeff Hornacek?`: ```sql
SELECT "nationality" FROM "h" WHERE "school_club_team"='colorado';
## Task Generate a SQL query to answer the following question: `What Nationality is the Colorado State team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What Nationality is the Colorado State team?`: ```sql
SELECT "player" FROM "h" WHERE "school_club_team"='southern illinois';
## Task Generate a SQL query to answer the following question: `What Player is from the Southern Illinois team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What Player is from the Southern Illinois team?`: ```sql
SELECT "years_for_jazz" FROM "h" WHERE "player"='eddie hughes';
## Task Generate a SQL query to answer the following question: `What years did Eddie Hughes play for the Jazz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "h" ( "player" text, "nationality" text, "position" text, "years_for_jazz" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What years did Eddie Hughes play for the Jazz?`: ```sql
SELECT "species" FROM "feral_animals_introduced_species" WHERE "threat_level"='medium';
## Task Generate a SQL query to answer the following question: `Which Species has a medium Threat Level?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "feral_animals_introduced_species" ( "name" text, "species" text, "overview" text, "introduced" text, "feral" text, "threat_level" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Species has a medium Threat Level?`: ```sql
SELECT "overview" FROM "feral_animals_introduced_species" WHERE "threat_level"='medium';
## Task Generate a SQL query to answer the following question: `What is the Overview with a medium Threat Level?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "feral_animals_introduced_species" ( "name" text, "species" text, "overview" text, "introduced" text, "feral" text, "threat_level" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Overview with a medium Threat Level?`: ```sql
SELECT "threat_level" FROM "feral_animals_introduced_species" WHERE "overview"='rabbits in australia';
## Task Generate a SQL query to answer the following question: `What is the Threat Levels with Rabbits in Australia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "feral_animals_introduced_species" ( "name" text, "species" text, "overview" text, "introduced" text, "feral" text, "threat_level" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Threat Levels with Rabbits in Australia?`: ```sql
SELECT "nominee" FROM "2004_broadway_revival" WHERE "award"='drama desk award' AND "result"='won' AND "category"='outstanding choreography';
## Task Generate a SQL query to answer the following question: `Which nominee won the Drama Desk Award for outstanding choreography?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which nominee won the Drama Desk Award for outstanding choreography?`: ```sql
SELECT MAX("year") FROM "2004_broadway_revival" WHERE "nominee"='best revival of a musical';
## Task Generate a SQL query to answer the following question: `When was the last time a nominee for Best Revival of a Musical was selected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the last time a nominee for Best Revival of a Musical was selected?`: ```sql
SELECT "award" FROM "2004_broadway_revival" WHERE "category"='outstanding revival of a musical';
## Task Generate a SQL query to answer the following question: `Which Award is the winner for Outstanding Revival of a Musical given?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Award is the winner for Outstanding Revival of a Musical given?`: ```sql
SELECT "home_team_score" FROM "round_8" WHERE "away_team_score"='8.14 (62)';
## Task Generate a SQL query to answer the following question: `What did the home team score in the game where the away team scored 8.14 (62)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the home team score in the game where the away team scored 8.14 (62)?`: ```sql
SELECT "home_team_score" FROM "round_8" WHERE "away_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `Who is the home team in the game where South Melbourne was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the home team in the game where South Melbourne was the away team?`: ```sql
SELECT "home_team_score" FROM "round_8" WHERE "away_team_score"='9.13 (67)';
## Task Generate a SQL query to answer the following question: `What did the home team score in the game where the away team scored 9.13 (67)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the home team score in the game where the away team scored 9.13 (67)?`: ```sql
SELECT "venue" FROM "round_8" WHERE "home_team_score"='10.11 (71)';
## Task Generate a SQL query to answer the following question: `In which venue did the home team score 10.11 (71)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `In which venue did the home team score 10.11 (71)`: ```sql
SELECT "result" FROM "schedule" WHERE "week">10 AND "opponent"='new england patriots';
## Task Generate a SQL query to answer the following question: `I want the result for week larger than 10 for opponent of new england patriots` ### 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, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `I want the result for week larger than 10 for opponent of new england patriots`: ```sql
SELECT "game_site" FROM "schedule" WHERE "week"=11;
## Task Generate a SQL query to answer the following question: `I want the game site for week of 11` ### 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, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `I want the game site for week of 11`: ```sql
SELECT AVG("laps") FROM "race" WHERE "constructor"='arrows' AND "driver"='mika salo' AND "grid">13;
## Task Generate a SQL query to answer the following question: `What is the average number of laps for mika salo's arrows car with a grid over 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of laps for mika salo's arrows car with a grid over 13?`: ```sql
SELECT "driver" FROM "race" WHERE "grid"=7;
## Task Generate a SQL query to answer the following question: `Who drove the car with a grid of 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Who drove the car with a grid of 7?`: ```sql
SELECT "report" FROM "scottish_cup" WHERE "date"='9 march';
## Task Generate a SQL query to answer the following question: `Which Report is Dated 9 March?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scottish_cup" ( "round" text, "date" text, "opponent" text, "score" text, "aberdeen_scorer_s" text, "attendance" real, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Report is Dated 9 March?`: ```sql
SELECT COUNT("attendance") FROM "scottish_cup" WHERE "opponent"='hamilton academical';
## Task Generate a SQL query to answer the following question: `When Hamilton Academical is the Opponent, what is the total Attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scottish_cup" ( "round" text, "date" text, "opponent" text, "score" text, "aberdeen_scorer_s" text, "attendance" real, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `When Hamilton Academical is the Opponent, what is the total Attendance?`: ```sql
SELECT "attendance" FROM "game_log" WHERE "loss"='volquez (1–4)';
## Task Generate a SQL query to answer the following question: `How many in attendance with a loss of volquez (1–4)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many in attendance with a loss of volquez (1–4)?`: ```sql
SELECT "record" FROM "game_log" WHERE "score"='9–6';
## Task Generate a SQL query to answer the following question: `What record has a Score of 9–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What record has a Score of 9–6?`: ```sql
SELECT AVG("attendance") FROM "game_log" WHERE "date"='september 16';
## Task Generate a SQL query to answer the following question: `What is the average number in attendance on September 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number in attendance on September 16?`: ```sql
SELECT SUM("attendance") FROM "game_log" WHERE "date"='september 8';
## Task Generate a SQL query to answer the following question: `What is the sum of people in attendance on September 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of people in attendance on September 8?`: ```sql
SELECT "cws_best_finish" FROM "participants" WHERE "head_coach"='jim morris';
## Task Generate a SQL query to answer the following question: `What was Head Coach Jim Morris's best finish?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "participants" ( "school" text, "conference" text, "record_conference" text, "head_coach" text, "cws_appearances" text, "cws_best_finish" text, "cws_record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Head Coach Jim Morris's best finish?`: ```sql
SELECT "record" FROM "schedule_and_results" WHERE "visitor"='montreal canadiens';
## Task Generate a SQL query to answer the following question: `What is the record when the visiting team was the montreal canadiens?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record when the visiting team was the montreal canadiens?`: ```sql
SELECT "nation" FROM "ice_dancing" WHERE "points"=187.84;
## Task Generate a SQL query to answer the following question: `What nation has 187.84 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ice_dancing" ( "rank" real, "name" text, "nation" text, "points" real, "places" text ); ### SQL Given the database schema, here is the SQL query that answers `What nation has 187.84 points?`: ```sql
SELECT MIN("points") FROM "ice_dancing" WHERE "places"='81';
## Task Generate a SQL query to answer the following question: `What is the low point total for teams with 81 places?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ice_dancing" ( "rank" real, "name" text, "nation" text, "points" real, "places" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the low point total for teams with 81 places?`: ```sql
SELECT "station_number" FROM "stations" WHERE "location"='dogsthorpe';
## Task Generate a SQL query to answer the following question: `What is the station number of the station at Dogsthorpe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stations" ( "station_number" text, "district" text, "location" text, "type" text, "appliances" text, "registrations" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the station number of the station at Dogsthorpe?`: ```sql
SELECT "type" FROM "stations" WHERE "appliances"='1 wrl' AND "location"='linton';
## Task Generate a SQL query to answer the following question: `What is the type of the station with a 1 wrl appliance in Linton?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stations" ( "station_number" text, "district" text, "location" text, "type" text, "appliances" text, "registrations" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the type of the station with a 1 wrl appliance in Linton?`: ```sql
SELECT "appliances" FROM "stations" WHERE "location"='st neots';
## Task Generate a SQL query to answer the following question: `What is the appliance at the station in St Neots?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stations" ( "station_number" text, "district" text, "location" text, "type" text, "appliances" text, "registrations" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the appliance at the station in St Neots?`: ```sql
SELECT "registrations" FROM "stations" WHERE "district"='cambridge';
## Task Generate a SQL query to answer the following question: `What is the registration of the station at Cambridge?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stations" ( "station_number" text, "district" text, "location" text, "type" text, "appliances" text, "registrations" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the registration of the station at Cambridge?`: ```sql
SELECT "location" FROM "stations" WHERE "district"='huntingdonshire' AND "station_number"='c17';
## Task Generate a SQL query to answer the following question: `What is the location of the station at Huntingdonshire with a station number of c17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stations" ( "station_number" text, "district" text, "location" text, "type" text, "appliances" text, "registrations" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location of the station at Huntingdonshire with a station number of c17?`: ```sql
SELECT "registrations" FROM "stations" WHERE "type"='retained' AND "station_number"='c03';
## Task Generate a SQL query to answer the following question: `What is the registration of the station with a retained type and a station number of c03?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stations" ( "station_number" text, "district" text, "location" text, "type" text, "appliances" text, "registrations" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the registration of the station with a retained type and a station number of c03?`: ```sql
SELECT "nationality" FROM "draft_picks" WHERE "round">4;
## Task Generate a SQL query to answer the following question: `Name the nationality of the player with round more than 4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "nationality" text, "nhl_team" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the nationality of the player with round more than 4`: ```sql
SELECT SUM("year") FROM "tallest_buildings" WHERE "rank"='14.0 14';
## Task Generate a SQL query to answer the following question: `In what Year was the Rank 14.0 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `In what Year was the Rank 14.0 14?`: ```sql
SELECT "rank" FROM "tallest_buildings" WHERE "year">1971 AND "floors"<35 AND "height_ft_m"='19.0 477 (145)';
## Task Generate a SQL query to answer the following question: `After 1971, what is the Rank with a Height ft (m) of 19.0 477 (145) and less than 35 Floors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `After 1971, what is the Rank with a Height ft (m) of 19.0 477 (145) and less than 35 Floors?`: ```sql
SELECT AVG("year") FROM "tallest_buildings" WHERE "rank"='12.0 12';
## Task Generate a SQL query to answer the following question: `What Year has a Rank of 12.0 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What Year has a Rank of 12.0 12?`: ```sql
SELECT "crowd" FROM "round_5" WHERE "away_team_score"='8.10 (58)';
## Task Generate a SQL query to answer the following question: `Which crowd has an Away team score of 8.10 (58)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which crowd has an Away team score of 8.10 (58)?`: ```sql
SELECT "away_team" FROM "round_17" WHERE "away_team_score"='17.13 (115)';
## Task Generate a SQL query to answer the following question: `Which away team had a score of 17.13 (115)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which away team had a score of 17.13 (115)?`: ```sql
SELECT "away_team_score" FROM "round_17" WHERE "venue"='vfl park';
## Task Generate a SQL query to answer the following question: `What did the away team score at VFL Park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the away team score at VFL Park?`: ```sql
SELECT SUM("crowd") FROM "round_17" WHERE "venue"='lake oval';
## Task Generate a SQL query to answer the following question: `How many people watched the game at Lake Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people watched the game at Lake Oval?`: ```sql
SELECT "venue" FROM "round_17" WHERE "home_team_score"='15.21 (111)';
## Task Generate a SQL query to answer the following question: `Where did the home team score 15.21 (111)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did the home team score 15.21 (111)?`: ```sql
SELECT AVG("comp") FROM "passing" WHERE "player"='gino guidugli' AND "rating">92.2;
## Task Generate a SQL query to answer the following question: `What was the Comp average, having Gino Guidugli as a player and a rating of more than 92.2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "passing" ( "player" text, "att" real, "comp" real, "yards" real, "rating" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the Comp average, having Gino Guidugli as a player and a rating of more than 92.2?`: ```sql
SELECT MAX("att") FROM "passing" WHERE "yards"<138 AND "comp">0;
## Task Generate a SQL query to answer the following question: `For the player with yards less than 138, and Comp more than 0, what was the highest Att.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "passing" ( "player" text, "att" real, "comp" real, "yards" real, "rating" real ); ### SQL Given the database schema, here is the SQL query that answers `For the player with yards less than 138, and Comp more than 0, what was the highest Att.?`: ```sql
SELECT "laps" FROM "race" WHERE "grid"=9;
## Task Generate a SQL query to answer the following question: `How many laps for grid of 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `How many laps for grid of 9?`: ```sql
SELECT MAX("laps") FROM "race" WHERE "grid"<6 AND "time_retired"='halfshaft';
## Task Generate a SQL query to answer the following question: `What is the high lap total for a grid less than 6, and a Time/Retired of halfshaft?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the high lap total for a grid less than 6, and a Time/Retired of halfshaft?`: ```sql
SELECT "set_1" FROM "pool_b" WHERE "score"='3–2';
## Task Generate a SQL query to answer the following question: `What is the Set 1 with a Score with 3–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Set 1 with a Score with 3–2?`: ```sql
SELECT "set_1" FROM "pool_b" WHERE "set_2"='15–5' AND "set_3"='15–3';
## Task Generate a SQL query to answer the following question: `What is the Set 1 with a Set 2 of 15–5, and a Set 3 with 15–3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Set 1 with a Set 2 of 15–5, and a Set 3 with 15–3?`: ```sql
SELECT "date" FROM "pool_b" WHERE "set_1"='15–1';
## Task Generate a SQL query to answer the following question: `What is the Date with a Set 1 with 15–1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date with a Set 1 with 15–1?`: ```sql
SELECT "set_3" FROM "pool_b" WHERE "date"='04 oct' AND "set_2"='15–5';
## Task Generate a SQL query to answer the following question: `What is the Set 3 with a Date of 04 oct, and a Set 2 with 15–5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Set 3 with a Date of 04 oct, and a Set 2 with 15–5?`: ```sql
SELECT "set_3" FROM "pool_b" WHERE "set_2"='15–6';
## Task Generate a SQL query to answer the following question: `What is the Set 3 with a Set 2 with 15–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Set 3 with a Set 2 with 15–6?`: ```sql
SELECT "set_2" FROM "pool_b" WHERE "total"='45–12' AND "set_3"='15–2';
## Task Generate a SQL query to answer the following question: `What is the Set 2 with a Total of 45–12, and a Set 3 with 15–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_b" ( "date" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Set 2 with a Total of 45–12, and a Set 3 with 15–2?`: ```sql
SELECT AVG("grid") FROM "moto_gp_classification" WHERE "time_retired"='+6.077' AND "laps"<26;
## Task Generate a SQL query to answer the following question: `What was the grid associated with under 26 laps and a Time/Retired of +6.077?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the grid associated with under 26 laps and a Time/Retired of +6.077?`: ```sql
SELECT "lead" FROM "regional_vote" WHERE "date_s_conducted"='5 may 2011';
## Task Generate a SQL query to answer the following question: `On 5 May 2011, what was the lead percentage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_vote" ( "date_s_conducted" text, "cons" text, "plaid_cymru" text, "lib_dem" text, "ukip" text, "green" text, "others" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `On 5 May 2011, what was the lead percentage?`: ```sql
SELECT "date_s_conducted" FROM "regional_vote" WHERE "lead"='8.6%';
## Task Generate a SQL query to answer the following question: `On what date was the lead 8.6%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_vote" ( "date_s_conducted" text, "cons" text, "plaid_cymru" text, "lib_dem" text, "ukip" text, "green" text, "others" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was the lead 8.6%?`: ```sql
SELECT "lifespan" FROM "men" WHERE "imperial"='7ft 8 in' AND "nationality"='fiji';
## Task Generate a SQL query to answer the following question: `what is the lifespan when the imperial height is 7ft 8 in and the nationality is fiji?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men" ( "nationality" text, "metric" text, "imperial" text, "name" text, "lifespan" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the lifespan when the imperial height is 7ft 8 in and the nationality is fiji?`: ```sql
SELECT "nationality" FROM "men" WHERE "metric"='2.36m' AND "name"='sun ming-ming';
## Task Generate a SQL query to answer the following question: `what is the nationality with the metric height of 2.36m named sun ming-ming?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men" ( "nationality" text, "metric" text, "imperial" text, "name" text, "lifespan" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the nationality with the metric height of 2.36m named sun ming-ming?`: ```sql
SELECT SUM("grid") FROM "classification" WHERE "time_retired"='engine' AND "driver"='teo fabi' AND "laps"<39;
## Task Generate a SQL query to answer the following question: `What is the grid total that had a retired for engine, teo fabi driving, and under 39 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the grid total that had a retired for engine, teo fabi driving, and under 39 laps?`: ```sql
SELECT AVG("grid") FROM "classification" WHERE "driver"='johnny dumfries' AND "laps"<8;
## Task Generate a SQL query to answer the following question: `What is the average grid for johnny dumfries with less than 8 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average grid for johnny dumfries with less than 8 laps?`: ```sql
SELECT MIN("laps") FROM "classification" WHERE "constructor"='minardi - motori moderni' AND "grid"<18;
## Task Generate a SQL query to answer the following question: `What is the low lap total for minardi - motori moderni, and a Grid smaller than 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the low lap total for minardi - motori moderni, and a Grid smaller than 18?`: ```sql
SELECT "constructor" FROM "classification" WHERE "grid"=12;
## Task Generate a SQL query to answer the following question: `What constructor has a 12 grid?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What constructor has a 12 grid?`: ```sql
SELECT MAX("average") FROM "scores" WHERE "swimsuit">9.437;
## Task Generate a SQL query to answer the following question: `What is the average where the swimsuit is larger than 9.437?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scores" ( "country" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average where the swimsuit is larger than 9.437?`: ```sql
SELECT SUM("evening_gown") FROM "scores" WHERE "interview"=9.22 AND "preliminaries">9.057;
## Task Generate a SQL query to answer the following question: `What is the evening gown score where the interview score is 9.22 and the preliminaries are larger than 9.057?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scores" ( "country" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the evening gown score where the interview score is 9.22 and the preliminaries are larger than 9.057?`: ```sql
SELECT AVG("average") FROM "scores" WHERE "swimsuit"<9.109 AND "country"='pennsylvania' AND "evening_gown"<9.163;
## Task Generate a SQL query to answer the following question: `What is Pennsylvania's average where the swimsuit is smaller than 9.109 and the evening gown is smaller than 9.163?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scores" ( "country" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Pennsylvania's average where the swimsuit is smaller than 9.109 and the evening gown is smaller than 9.163?`: ```sql
SELECT AVG("preliminaries") FROM "scores" WHERE "swimsuit"<9.297 AND "evening_gown"=9.617 AND "interview">9.143;
## Task Generate a SQL query to answer the following question: `What is the preliminaries score where the swimsuit is smaller than 9.297, the evening gown is 9.617, and the interview is larger than 9.143?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scores" ( "country" text, "preliminaries" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the preliminaries score where the swimsuit is smaller than 9.297, the evening gown is 9.617, and the interview is larger than 9.143?`: ```sql
SELECT "screen_pixels" FROM "electronic_paper_displays" WHERE "maker"='amazon.com' AND "weight"='221g (7.8oz)';
## Task Generate a SQL query to answer the following question: `For Amazon.com's device with a weight of 221g (7.8oz) how many screen pixels does the device have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "electronic_paper_displays" ( "maker" text, "model" text, "intro_year" text, "screen_size_inch" text, "self_lit" text, "screen_type" text, "weight" text, "screen_pixels" text, "touch_screen" text, "micro_sdhc" text ); ### SQL Given the database schema, here is the SQL query that answers `For Amazon.com's device with a weight of 221g (7.8oz) how many screen pixels does the device have?`: ```sql
SELECT SUM("5_k_wins") FROM "multiple_winners" WHERE "10_k_wins">0 AND "runner"='lynn jennings';
## Task Generate a SQL query to answer the following question: `How many 5K wins did Lynn Jennings, who had more than 0 10K wins, have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "multiple_winners" ( "runner" text, "country" text, "5_k_wins" real, "10_k_wins" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many 5K wins did Lynn Jennings, who had more than 0 10K wins, have?`: ```sql
SELECT AVG("10_k_wins") FROM "multiple_winners" WHERE "country"='united states' AND "5_k_wins"=0;
## Task Generate a SQL query to answer the following question: `What is the average 10K wins the United States, which had 0 5K wins, have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "multiple_winners" ( "runner" text, "country" text, "5_k_wins" real, "10_k_wins" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average 10K wins the United States, which had 0 5K wins, have?`: ```sql
SELECT SUM("5_k_wins") FROM "multiple_winners" WHERE "runner"='emily chebet' AND "total">2;
## Task Generate a SQL query to answer the following question: `How many 5K wins did Emily Chebet, who had more than 2 total, have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "multiple_winners" ( "runner" text, "country" text, "5_k_wins" real, "10_k_wins" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many 5K wins did Emily Chebet, who had more than 2 total, have?`: ```sql
SELECT COUNT("5_k_wins") FROM "multiple_winners" WHERE "runner"='emily chebet' AND "total">2;
## Task Generate a SQL query to answer the following question: `How many 5K wins did Emily Chebet, who had more than 2 total, have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "multiple_winners" ( "runner" text, "country" text, "5_k_wins" real, "10_k_wins" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many 5K wins did Emily Chebet, who had more than 2 total, have?`: ```sql
SELECT MAX("peak_lessons_taught") FROM "belt_requirements" WHERE "evaluation_average_before_april_2009"='4.4';
## Task Generate a SQL query to answer the following question: `What is the largest number of Peak lessons taught when the Evaluation average (Before April 2009) was 4.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "belt_requirements" ( "evaluation_average_from_february_2011" real, "evaluation_average_from_april_2009" text, "evaluation_average_before_april_2009" text, "pct_of_negative_evaluations" text, "submitting_schedule_on_time" text, "punctuality_attendance_issues" text, "peak_lessons_taught" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest number of Peak lessons taught when the Evaluation average (Before April 2009) was 4.4?`: ```sql
SELECT "evaluation_average_before_april_2009" FROM "belt_requirements" WHERE "peak_lessons_taught"<80 AND "pct_of_negative_evaluations"='0.8%';
## Task Generate a SQL query to answer the following question: `What is the mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "belt_requirements" ( "evaluation_average_from_february_2011" real, "evaluation_average_from_april_2009" text, "evaluation_average_before_april_2009" text, "pct_of_negative_evaluations" text, "submitting_schedule_on_time" text, "punctuality_attendance_issues" text, "peak_lessons_taught" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%?`: ```sql
SELECT "evaluation_average_before_april_2009" FROM "belt_requirements" WHERE "pct_of_negative_evaluations"='0.8%' AND "evaluation_average_from_april_2009"='4.2';
## Task Generate a SQL query to answer the following question: `What is the mean Evaluation number (Before April 2009) when the percentage of negative evaluations was 0.8% and the mean Evaluation number of April 2009 was 4.2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "belt_requirements" ( "evaluation_average_from_february_2011" real, "evaluation_average_from_april_2009" text, "evaluation_average_before_april_2009" text, "pct_of_negative_evaluations" text, "submitting_schedule_on_time" text, "punctuality_attendance_issues" text, "peak_lessons_taught" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the mean Evaluation number (Before April 2009) when the percentage of negative evaluations was 0.8% and the mean Evaluation number of April 2009 was 4.2?`: ```sql