output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "opponent" FROM "schedule_and_results" WHERE "record"='38-34-10';
## Task Generate a SQL query to answer the following question: `Name the opponent with record of 38-34-10` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "april" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the opponent with record of 38-34-10`: ```sql
SELECT COUNT("april") FROM "schedule_and_results" WHERE "record"='38-33-10' AND "game">81;
## Task Generate a SQL query to answer the following question: `Name the total number of April for game more than 81 and reord of 38-33-10` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "april" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of April for game more than 81 and reord of 38-33-10`: ```sql
SELECT "series" FROM "playoffs" WHERE "date"='may 14';
## Task Generate a SQL query to answer the following question: `what series was on may 14` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `what series was on may 14`: ```sql
SELECT "to_par" FROM "first_round" WHERE "country"='england' AND "score"=66;
## Task Generate a SQL query to answer the following question: `What is the to par that has england as the country, with 66 as a score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the to par that has england as the country, with 66 as a score?`: ```sql
SELECT "country" FROM "first_round" WHERE "score"<68 AND "player"='paul casey';
## Task Generate a SQL query to answer the following question: `What country has a score less than 68, and paul casey as the player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What country has a score less than 68, and paul casey as the player?`: ```sql
SELECT MIN("score") FROM "first_round" WHERE "player"='alastair forsyth';
## Task Generate a SQL query to answer the following question: `What is the lowest score that has alastair forsyth as the player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest score that has alastair forsyth as the player?`: ```sql
SELECT COUNT("score") FROM "first_round" WHERE "player"='paul casey';
## Task Generate a SQL query to answer the following question: `How many scores have paul casey as a player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `How many scores have paul casey as a player?`: ```sql
SELECT "owner" FROM "locomotives" WHERE "re_entered_service_p"='11 september 1985' AND "pre_conversion"='t326';
## Task Generate a SQL query to answer the following question: `Who owns the item that was a T326 before conversion and re-entered service on 11 September 1985?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives" ( "locomotive" text, "pre_conversion" text, "entered_service_t" text, "re_entered_service_p" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who owns the item that was a T326 before conversion and re-entered service on 11 September 1985?`: ```sql
SELECT "re_entered_service_p" FROM "locomotives" WHERE "entered_service_t"='18 june 1956' AND "pre_conversion"='t328';
## Task Generate a SQL query to answer the following question: `What date did the T328 that entered service on 18 June 1956 re-enter service?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives" ( "locomotive" text, "pre_conversion" text, "entered_service_t" text, "re_entered_service_p" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did the T328 that entered service on 18 June 1956 re-enter service?`: ```sql
SELECT "pre_conversion" FROM "locomotives" WHERE "owner"='v/line passenger' AND "re_entered_service_p"='23 november 1984';
## Task Generate a SQL query to answer the following question: `Which of V/Line Passenger's pre-conversions re-entered service on 23 November 1984?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives" ( "locomotive" text, "pre_conversion" text, "entered_service_t" text, "re_entered_service_p" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `Which of V/Line Passenger's pre-conversions re-entered service on 23 November 1984?`: ```sql
SELECT "owner" FROM "locomotives" WHERE "entered_service_t"='30 october 1956';
## Task Generate a SQL query to answer the following question: `Who owns the locomotive that entered service on 30 October 1956?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives" ( "locomotive" text, "pre_conversion" text, "entered_service_t" text, "re_entered_service_p" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who owns the locomotive that entered service on 30 October 1956?`: ```sql
SELECT "score" FROM "game_log" WHERE "record"='50-85';
## Task Generate a SQL query to answer the following question: `What was the score of the game when the record was 50-85?` ### 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" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game when the record was 50-85?`: ```sql
SELECT "loss" FROM "game_log" WHERE "record"='46-84';
## Task Generate a SQL query to answer the following question: `What was the loss of the game when the record was 46-84?` ### 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" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the loss of the game when the record was 46-84?`: ```sql
SELECT "record" FROM "game_log" WHERE "loss"='cook (14–7)';
## Task Generate a SQL query to answer the following question: `What was the record at the game with a loss of Cook (14–7)?` ### 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" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record at the game with a loss of Cook (14–7)?`: ```sql
SELECT "album" FROM "official_versions" WHERE "length"='4:53';
## Task Generate a SQL query to answer the following question: `What album is 4:53 long?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What album is 4:53 long?`: ```sql
SELECT "1989" FROM "grand_slam_performance_timeline" WHERE "1986"='99';
## Task Generate a SQL query to answer the following question: `Which 1989 has a 1986 of 99?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_performance_timeline" ( "tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 1989 has a 1986 of 99?`: ```sql
SELECT "1983" FROM "grand_slam_performance_timeline" WHERE "tournament"='wimbledon';
## Task Generate a SQL query to answer the following question: `Which 1983 has a Tournament of wimbledon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_performance_timeline" ( "tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 1983 has a Tournament of wimbledon?`: ```sql
SELECT "tournament" FROM "grand_slam_performance_timeline" WHERE "1987"='a';
## Task Generate a SQL query to answer the following question: `Which Tournament has A in 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_performance_timeline" ( "tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Tournament has A in 1987?`: ```sql
SELECT "1988" FROM "grand_slam_performance_timeline" WHERE "1985"='2r';
## Task Generate a SQL query to answer the following question: `Which 1988 has a 1985 of 2r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_performance_timeline" ( "tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 1988 has a 1985 of 2r?`: ```sql
SELECT "1988" FROM "grand_slam_performance_timeline" WHERE "1982"='104';
## Task Generate a SQL query to answer the following question: `Which 1988 has a 1982 of 104?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_performance_timeline" ( "tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 1988 has a 1982 of 104?`: ```sql
SELECT "tournament" FROM "grand_slam_performance_timeline" WHERE "1984"='1r';
## Task Generate a SQL query to answer the following question: `Which Tournament has a 1984 of 1r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_performance_timeline" ( "tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Tournament has a 1984 of 1r?`: ```sql
SELECT "release_price_usd" FROM "table_of_intel_80579_processors" WHERE "release_date"='2008 q3';
## Task Generate a SQL query to answer the following question: `Release date of 2008 q3 has what release price?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_intel_80579_processors" ( "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `Release date of 2008 q3 has what release price?`: ```sql
SELECT "socket" FROM "table_of_intel_80579_processors" WHERE "frequency"='1.2 ghz' AND "release_price_usd"='$70';
## Task Generate a SQL query to answer the following question: `Frequency of 1.2 ghz, and a Release price ( USD ) of $70 is what socket?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_intel_80579_processors" ( "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `Frequency of 1.2 ghz, and a Release price ( USD ) of $70 is what socket?`: ```sql
SELECT "mult" FROM "table_of_intel_80579_processors" WHERE "socket"='fcbga1088' AND "voltage"='1v' AND "part_number_s"='nu80579ez600cnu80579ez600ct';
## Task Generate a SQL query to answer the following question: `Socket of fcbga1088, and a Voltage of 1v, and a Part number(s) of nu80579ez600cnu80579ez600ct is what mult?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_intel_80579_processors" ( "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `Socket of fcbga1088, and a Voltage of 1v, and a Part number(s) of nu80579ez600cnu80579ez600ct is what mult?`: ```sql
SELECT "mult" FROM "table_of_intel_80579_processors" WHERE "s_spec_number"='slj6d(b1)slj6f(b1)';
## Task Generate a SQL query to answer the following question: `Spec number of slj6d(b1)slj6f(b1) has what mult.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_intel_80579_processors" ( "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `Spec number of slj6d(b1)slj6f(b1) has what mult.?`: ```sql
SELECT "release_price_usd" FROM "table_of_intel_80579_processors" WHERE "socket"='without quickassist';
## Task Generate a SQL query to answer the following question: `Socket of without quickassist has what release price?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_intel_80579_processors" ( "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `Socket of without quickassist has what release price?`: ```sql
SELECT "release_price_usd" FROM "table_of_intel_80579_processors" WHERE "release_date"='2008 q3' AND "part_number_s"='nu80579ez009c';
## Task Generate a SQL query to answer the following question: `Release date of 2008 q3, and a Part number(s) of nu80579ez009c has what Release price ( USD )?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_of_intel_80579_processors" ( "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `Release date of 2008 q3, and a Part number(s) of nu80579ez009c has what Release price ( USD )?`: ```sql
SELECT MIN("hong_kong") FROM "standings" WHERE "brisbane"=0 AND "kuala_lumpur">0;
## Task Generate a SQL query to answer the following question: `What is the lowest Hong Kong value with a 0 Brisbane value and a greater than 0 Kuala Lumpur value?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "new_zealand" real, "hong_kong" real, "singapore" real, "london" real, "brisbane" real, "cardiff" real, "durban" real, "santiago" real, "mar_del_plata" real, "beijing" real, "kuala_lumpur" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Hong Kong value with a 0 Brisbane value and a greater than 0 Kuala Lumpur value?`: ```sql
SELECT MAX("kuala_lumpur") FROM "standings" WHERE "durban"<1 AND "mar_del_plata">0;
## Task Generate a SQL query to answer the following question: `What is the highest Kuala Lumpur value with a Durban value less than 1 and a Mar Del Plata value greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "new_zealand" real, "hong_kong" real, "singapore" real, "london" real, "brisbane" real, "cardiff" real, "durban" real, "santiago" real, "mar_del_plata" real, "beijing" real, "kuala_lumpur" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Kuala Lumpur value with a Durban value less than 1 and a Mar Del Plata value greater than 0?`: ```sql
SELECT MAX("new_zealand") FROM "standings" WHERE "hong_kong"<0;
## Task Generate a SQL query to answer the following question: `What is the highest New Zealand value with a Hong Kong value less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "new_zealand" real, "hong_kong" real, "singapore" real, "london" real, "brisbane" real, "cardiff" real, "durban" real, "santiago" real, "mar_del_plata" real, "beijing" real, "kuala_lumpur" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest New Zealand value with a Hong Kong value less than 0?`: ```sql
SELECT AVG("singapore") FROM "standings" WHERE "london"<0;
## Task Generate a SQL query to answer the following question: `What is the average Singapore value with a London value less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "new_zealand" real, "hong_kong" real, "singapore" real, "london" real, "brisbane" real, "cardiff" real, "durban" real, "santiago" real, "mar_del_plata" real, "beijing" real, "kuala_lumpur" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Singapore value with a London value less than 0?`: ```sql
SELECT "position" FROM "first_round_history" WHERE "country"='canada' AND "pick"='8';
## Task Generate a SQL query to answer the following question: `What position was picked for Canada on Pick 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_history" ( "year" real, "pick" text, "player" text, "position" text, "country" text, "previous_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `What position was picked for Canada on Pick 8?`: ```sql
SELECT "position" FROM "first_round_history" WHERE "year"=2011;
## Task Generate a SQL query to answer the following question: `What is the position that is shown for 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round_history" ( "year" real, "pick" text, "player" text, "position" text, "country" text, "previous_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position that is shown for 2011?`: ```sql
SELECT "language" FROM "personal_life" WHERE "film_name"='seethaiah';
## Task Generate a SQL query to answer the following question: `what language is seethaiah in` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personal_life" ( "year" real, "song_title" text, "film_name" text, "language" text, "music_director" text ); ### SQL Given the database schema, here is the SQL query that answers `what language is seethaiah in`: ```sql
SELECT "producer" FROM "2000_to_2002" WHERE "role"='rizzette';
## Task Generate a SQL query to answer the following question: `Which Producer has a Role of rizzette?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_to_2002" ( "year" text, "title" text, "role" text, "producer" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Producer has a Role of rizzette?`: ```sql
SELECT "title" FROM "2000_to_2002" WHERE "director"='rowell santiago';
## Task Generate a SQL query to answer the following question: `Which Title has a Director of rowell santiago?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_to_2002" ( "year" text, "title" text, "role" text, "producer" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Title has a Director of rowell santiago?`: ```sql
SELECT "year" FROM "2000_to_2002" WHERE "producer"='viva films' AND "title"='magkapatid';
## Task Generate a SQL query to answer the following question: `Which Year has a Producer of viva films, and a Title of magkapatid?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_to_2002" ( "year" text, "title" text, "role" text, "producer" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year has a Producer of viva films, and a Title of magkapatid?`: ```sql
SELECT "director" FROM "2000_to_2002" WHERE "role"='melissa';
## Task Generate a SQL query to answer the following question: `Which Director has a Role of melissa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_to_2002" ( "year" text, "title" text, "role" text, "producer" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Director has a Role of melissa?`: ```sql
SELECT SUM("average") FROM "relegation" WHERE "played">38 AND "1990_91"='39' AND "1989_90"='34';
## Task Generate a SQL query to answer the following question: `What is the total number of averages where the played is more than 38, the 1990-91 is 39, and the 1989-90 is 34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1989_90" text, "1990_91" text, "1991_1992" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of averages where the played is more than 38, the 1990-91 is 39, and the 1989-90 is 34?`: ```sql
SELECT "1990_91" FROM "relegation" WHERE "average"=1.035;
## Task Generate a SQL query to answer the following question: `Which 1990-91 has an average number of 1.035?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1989_90" text, "1990_91" text, "1991_1992" real ); ### SQL Given the database schema, here is the SQL query that answers `Which 1990-91 has an average number of 1.035?`: ```sql
SELECT "team" FROM "relegation" WHERE "1990_91"='39' AND "1989_90"='34';
## Task Generate a SQL query to answer the following question: `Which team has a 1990-91 number of 39 and a 1989-90 number of 34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1989_90" text, "1990_91" text, "1991_1992" real ); ### SQL Given the database schema, here is the SQL query that answers `Which team has a 1990-91 number of 39 and a 1989-90 number of 34?`: ```sql
SELECT "played" FROM "relegation" WHERE "average">1.026 AND "1989_90"='36';
## Task Generate a SQL query to answer the following question: `Which played number has an average of 1.026 and a 1989-90 that is 36?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "average" real, "points" real, "played" real, "1989_90" text, "1990_91" text, "1991_1992" real ); ### SQL Given the database schema, here is the SQL query that answers `Which played number has an average of 1.026 and a 1989-90 that is 36?`: ```sql
SELECT "wrestler" FROM "title_history" WHERE "times">1;
## Task Generate a SQL query to answer the following question: `Who was the wrestler when there was over 1 time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "title_history" ( "wrestler" text, "times" real, "date" text, "place" text, "successful_defenses" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the wrestler when there was over 1 time?`: ```sql
SELECT "result" FROM "schedule" WHERE "week">13;
## Task Generate a SQL query to answer the following question: `What results has a week larger than 13?` ### 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 `What results has a week larger than 13?`: ```sql
SELECT "result" FROM "schedule" WHERE "week"<2;
## Task Generate a SQL query to answer the following question: `What results has a week smaller than 2?` ### 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 `What results has a week smaller than 2?`: ```sql
SELECT "score" FROM "game_log" WHERE "game"=30;
## Task Generate a SQL query to answer the following question: `What was the score for game number 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score for game number 30?`: ```sql
SELECT SUM("game") FROM "game_log" WHERE "score"='103–126';
## Task Generate a SQL query to answer the following question: `What is the sum for the game with a score of 103–126?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum for the game with a score of 103–126?`: ```sql
SELECT MIN("game") FROM "game_log" WHERE "record"='3–33';
## Task Generate a SQL query to answer the following question: `What is the lowest game number that has a Record of 3–33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest game number that has a Record of 3–33?`: ```sql
SELECT "score" FROM "regular_season" WHERE "february"=21;
## Task Generate a SQL query to answer the following question: `what score was on february 21` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "february" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `what score was on february 21`: ```sql
SELECT "nationality" FROM "draft_picks" WHERE "college_junior_club_team_league"='ohio state university (ncaa)';
## Task Generate a SQL query to answer the following question: `What is the nationality of the player from the Ohio State University (NCAA) Team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nationality of the player from the Ohio State University (NCAA) Team?`: ```sql
SELECT MIN("round") FROM "draft_picks" WHERE "college_junior_club_team_league"='kitchener rangers (oha)';
## Task Generate a SQL query to answer the following question: `What is the lowest round of the Kitchener Rangers (OHA)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest round of the Kitchener Rangers (OHA)?`: ```sql
SELECT "position" FROM "draft_picks" WHERE "player"='pierre daigneault';
## Task Generate a SQL query to answer the following question: `What is the position of Pierre Daigneault?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of Pierre Daigneault?`: ```sql
SELECT AVG("2006") FROM "economic_profile" WHERE "2010"=417.9 AND "2011">426.7;
## Task Generate a SQL query to answer the following question: `What is the average 2006 value with a 2010 value of 417.9 and a 2011 value greater than 426.7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economic_profile" ( "geographic_unit" text, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average 2006 value with a 2010 value of 417.9 and a 2011 value greater than 426.7?`: ```sql
SELECT COUNT("2011") FROM "economic_profile" WHERE "2008">346.5 AND "2009"=392 AND "2010">354.6;
## Task Generate a SQL query to answer the following question: `What is the 2011 total with a 2008 value greater than 346.5, a 2009 value of 392, and a 2010 value bigger than 354.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economic_profile" ( "geographic_unit" text, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2011 total with a 2008 value greater than 346.5, a 2009 value of 392, and a 2010 value bigger than 354.6?`: ```sql
SELECT COUNT("2008") FROM "economic_profile" WHERE "2006">322.7 AND "2011"=353.9 AND "2009"<392;
## Task Generate a SQL query to answer the following question: `What is the total 2008 value with a 2006 value greater than 322.7, a 353.9 in 2011, and a 2009 less than 392?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economic_profile" ( "geographic_unit" text, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total 2008 value with a 2006 value greater than 322.7, a 353.9 in 2011, and a 2009 less than 392?`: ```sql
SELECT MAX("2009") FROM "economic_profile" WHERE "2006"<280.4 AND "2007"<2.2 AND "2010"<3.5;
## Task Generate a SQL query to answer the following question: `What is the highest 2009 value with a 2006 value smaller than 280.4, a 2007 less than 2.2, and a 2011 less than 3.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economic_profile" ( "geographic_unit" text, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest 2009 value with a 2006 value smaller than 280.4, a 2007 less than 2.2, and a 2011 less than 3.5?`: ```sql
SELECT AVG("2007") FROM "economic_profile" WHERE "2009">2.8 AND "2010"=4.9 AND "2006"<2.5;
## Task Generate a SQL query to answer the following question: `What is the average 2007 value with a 2009 value greater than 2.8, a 4.9 in 2010, and a 2006 less than 2.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economic_profile" ( "geographic_unit" text, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average 2007 value with a 2009 value greater than 2.8, a 4.9 in 2010, and a 2006 less than 2.5?`: ```sql
SELECT COUNT("2006") FROM "economic_profile" WHERE "2010">417.9;
## Task Generate a SQL query to answer the following question: `What is the 2006 total with a 2010 value greater than 417.9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economic_profile" ( "geographic_unit" text, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2006 total with a 2010 value greater than 417.9?`: ```sql
SELECT "date" FROM "game_log" WHERE "opponent"='@ philadelphia phillies' AND "attendance"='20,072';
## Task Generate a SQL query to answer the following question: `when has an Opponent of @ philadelphia phillies and an Attendance of 20,072?` ### 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" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `when has an Opponent of @ philadelphia phillies and an Attendance of 20,072?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "date"='april 28';
## Task Generate a SQL query to answer the following question: `Which Opponent is on april 28?` ### 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" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent is on april 28?`: ```sql
SELECT "record" FROM "game_log" WHERE "attendance"='24,597';
## Task Generate a SQL query to answer the following question: `Which Record has an Attendance of 24,597?` ### 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" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Record has an Attendance of 24,597?`: ```sql
SELECT "record" FROM "game_log" WHERE "loss"='o''connor (0-1)';
## Task Generate a SQL query to answer the following question: `Which Record has a Loss of o'connor (0-1)?` ### 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" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Record has a Loss of o'connor (0-1)?`: ```sql
SELECT "attendance" FROM "game_log" WHERE "loss"='drese (0-2)';
## Task Generate a SQL query to answer the following question: `which attendance has a Loss of drese (0-2)?` ### 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" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `which attendance has a Loss of drese (0-2)?`: ```sql
SELECT "name" FROM "sapporo" WHERE "1st_m"=119.5;
## Task Generate a SQL query to answer the following question: `Who is the person that has 119.5 m?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sapporo" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the person that has 119.5 m?`: ```sql
SELECT MAX("2nd_m") FROM "sapporo" WHERE "rank">2 AND "points">249.3;
## Task Generate a SQL query to answer the following question: `What is the highest 2nd in (m) that has a Rank more than 2 and Points more than 249.3` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sapporo" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest 2nd in (m) that has a Rank more than 2 and Points more than 249.3`: ```sql
SELECT AVG("2nd_m") FROM "sapporo" WHERE "1st_m"=120.5 AND "points"<249.9;
## Task Generate a SQL query to answer the following question: `Which 2nd (m) has a 1st (m) of 120.5 and Points smaller than 249.9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sapporo" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2nd (m) has a 1st (m) of 120.5 and Points smaller than 249.9?`: ```sql
SELECT "first_elected" FROM "south_carolina" WHERE "result"='re-elected' AND "district"='south carolina 1';
## Task Generate a SQL query to answer the following question: `What is the first date of election for the incumbent that was re-elected in the South Carolina 1 district?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the first date of election for the incumbent that was re-elected in the South Carolina 1 district?`: ```sql
SELECT "incumbent" FROM "south_carolina" WHERE "first_elected"='1876';
## Task Generate a SQL query to answer the following question: `Who was the incumbent who was first elected in 1876?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the incumbent who was first elected in 1876?`: ```sql
SELECT "incumbent" FROM "south_carolina" WHERE "party"='democratic' AND "district"='south carolina 5';
## Task Generate a SQL query to answer the following question: `Who was the Democratic incumbent in the South Carolina 5 District?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Democratic incumbent in the South Carolina 5 District?`: ```sql
SELECT "first_elected" FROM "south_carolina" WHERE "district"='south carolina 4';
## Task Generate a SQL query to answer the following question: `What is the first elected date for the incumbent in the South Carolina 4 district?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the first elected date for the incumbent in the South Carolina 4 district?`: ```sql
SELECT "area_km_2" FROM "administrative_divisions" WHERE "telephone_052"='3862279';
## Task Generate a SQL query to answer the following question: `Which area has a telephone of (052) of 3862279?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_divisions" ( "number" real, "name_of_administrative_unit" text, "telephone_052" text, "area_km_2" real, "population_people" real ); ### SQL Given the database schema, here is the SQL query that answers `Which area has a telephone of (052) of 3862279?`: ```sql
SELECT SUM("area_km_2") FROM "administrative_divisions" WHERE "population_people"='5,615' AND "number">6;
## Task Generate a SQL query to answer the following question: `What is the sum of area with a population of 5,615 and number more than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_divisions" ( "number" real, "name_of_administrative_unit" text, "telephone_052" text, "area_km_2" real, "population_people" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of area with a population of 5,615 and number more than 6?`: ```sql
SELECT "driver" FROM "most_championship_points_in_a_season" WHERE "points">252 AND "season"='2012' AND "percentage_of_possible_points"='55.60%';
## Task Generate a SQL query to answer the following question: `Which driver had points over 252 in the season of 2012 with a percentage of possible points at 55.60%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_championship_points_in_a_season" ( "driver" text, "points" real, "season" text, "races" real, "percentage_of_possible_points" text ); ### SQL Given the database schema, here is the SQL query that answers `Which driver had points over 252 in the season of 2012 with a percentage of possible points at 55.60%?`: ```sql
SELECT SUM("races") FROM "most_championship_points_in_a_season" WHERE "points"=257;
## Task Generate a SQL query to answer the following question: `What is the number of races that took place with points of 257?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_championship_points_in_a_season" ( "driver" text, "points" real, "season" text, "races" real, "percentage_of_possible_points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of races that took place with points of 257?`: ```sql
SELECT SUM("points") FROM "most_championship_points_in_a_season" WHERE "races"=20 AND "driver"='fernando alonso';
## Task Generate a SQL query to answer the following question: `What is the number of points that driver fernando alonso has in the season he had 20 races?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_championship_points_in_a_season" ( "driver" text, "points" real, "season" text, "races" real, "percentage_of_possible_points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of points that driver fernando alonso has in the season he had 20 races?`: ```sql
SELECT AVG("points") FROM "most_championship_points_in_a_season" WHERE "driver"='fernando alonso' AND "percentage_of_possible_points"='53.05%';
## Task Generate a SQL query to answer the following question: `What was the average Points of the season driver Fernando Alonso had a percentage of possible points of 53.05%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_championship_points_in_a_season" ( "driver" text, "points" real, "season" text, "races" real, "percentage_of_possible_points" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the average Points of the season driver Fernando Alonso had a percentage of possible points of 53.05%?`: ```sql
SELECT "position" FROM "nfl_draft" WHERE "pick"=217;
## Task Generate a SQL query to answer the following question: `What position has 217 as the pick?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What position has 217 as the pick?`: ```sql
SELECT "score" FROM "schedule_and_results" WHERE "record"='18-21-7';
## Task Generate a SQL query to answer the following question: `Which score has a record of 18-21-7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which score has a record of 18-21-7?`: ```sql
SELECT MIN("apps") FROM "career_statistics" WHERE "season"='2009' AND "division"<1;
## Task Generate a SQL query to answer the following question: `What is the lowest value for apps in 2009 season in a division less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_statistics" ( "season" text, "team" text, "country" text, "division" real, "apps" real, "goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest value for apps in 2009 season in a division less than 1?`: ```sql
SELECT SUM("goals") FROM "career_statistics" WHERE "team"='torpedo moscow' AND "division"=1 AND "apps"<29;
## Task Generate a SQL query to answer the following question: `What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_statistics" ( "season" text, "team" text, "country" text, "division" real, "apps" real, "goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of goals for Torpedo Moscow in division 1 with an apps value less than 29?`: ```sql
SELECT "remixed_by" FROM "official_versions" WHERE "version"='album version' AND "album"='les mots';
## Task Generate a SQL query to answer the following question: `Which Remixed by has a Version of album version, and an Album of les mots?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Remixed by has a Version of album version, and an Album of les mots?`: ```sql
SELECT "length" FROM "official_versions" WHERE "year"=1986 AND "version"='instrumental';
## Task Generate a SQL query to answer the following question: `How long was the instrumental version in 1986?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `How long was the instrumental version in 1986?`: ```sql
SELECT "remixed_by" FROM "official_versions" WHERE "year"=1986 AND "version"='long version';
## Task Generate a SQL query to answer the following question: `Which long version was remixed in 1986?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_versions" ( "version" text, "length" text, "album" text, "remixed_by" text, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `Which long version was remixed in 1986?`: ```sql
SELECT "lead" FROM "teams" WHERE "country"='canada';
## Task Generate a SQL query to answer the following question: `Who was Canada's lead?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was Canada's lead?`: ```sql
SELECT "skip" FROM "teams" WHERE "country"='canada';
## Task Generate a SQL query to answer the following question: `What was Canada's skip?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Canada's skip?`: ```sql
SELECT "country" FROM "teams" WHERE "lead"='sarah wazney';
## Task Generate a SQL query to answer the following question: `Which country has a Lead of sarah wazney?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country has a Lead of sarah wazney?`: ```sql
SELECT "lead" FROM "teams" WHERE "third"='jeanne ellegaard';
## Task Generate a SQL query to answer the following question: `Which Lead has a Third of jeanne ellegaard?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Lead has a Third of jeanne ellegaard?`: ```sql
SELECT "skip" FROM "teams" WHERE "third"='sara carlsson';
## Task Generate a SQL query to answer the following question: `Which Skip has a Third of sara carlsson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Skip has a Third of sara carlsson?`: ```sql
SELECT "skip" FROM "teams" WHERE "second"='vicki adams';
## Task Generate a SQL query to answer the following question: `Which Skip has a Second of vicki adams?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "country" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Skip has a Second of vicki adams?`: ```sql
SELECT SUM("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "school"='south central (union mills)';
## Task Generate a SQL query to answer the following question: `Enrollment that has a School of south central (union mills) has what sum?` ### 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, "city" text, "mascot" text, "enrollment" real, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `Enrollment that has a School of south central (union mills) has what sum?`: ```sql
SELECT "city" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='blazers';
## Task Generate a SQL query to answer the following question: `Mascot of blazers involves what city?` ### 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, "city" text, "mascot" text, "enrollment" real, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `Mascot of blazers involves what city?`: ```sql
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "county"='46 laporte';
## Task Generate a SQL query to answer the following question: `County of 46 laporte is what school?` ### 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, "city" text, "mascot" text, "enrollment" real, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `County of 46 laporte is what school?`: ```sql
SELECT AVG("laps") FROM "sprint_race" WHERE "time"='spun off';
## Task Generate a SQL query to answer the following question: `What is the average Laps that shows spun off for time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Laps that shows spun off for time?`: ```sql
SELECT AVG("laps") FROM "sprint_race" WHERE "grid">1 AND "team"='mexico';
## Task Generate a SQL query to answer the following question: `What is the average Laps for the Mexico team with a grid number of more than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Laps for the Mexico team with a grid number of more than 1?`: ```sql
SELECT "driver" FROM "sprint_race" WHERE "time"='+13.315';
## Task Generate a SQL query to answer the following question: `What is name of the drive with a Time of +13.315?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is name of the drive with a Time of +13.315?`: ```sql
SELECT COUNT("grid") FROM "sprint_race" WHERE "laps"=14 AND "time"='+29.483';
## Task Generate a SQL query to answer the following question: `What is the total grid number that has 14 laps and a time of +29.483?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total grid number that has 14 laps and a time of +29.483?`: ```sql
SELECT COUNT("laps") FROM "sprint_race" WHERE "time"='collision' AND "team"='switzerland' AND "grid"<11;
## Task Generate a SQL query to answer the following question: `What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sprint_race" ( "team" text, "driver" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid?`: ```sql
SELECT "time_et" FROM "schedule" WHERE "week">4 AND "opponent"='baltimore ravens';
## Task Generate a SQL query to answer the following question: `What is the time of the game after week 4 against the Baltimore Ravens?` ### 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, "location" text, "time_et" text, "result" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the time of the game after week 4 against the Baltimore Ravens?`: ```sql
SELECT "nominated_work" FROM "awards_and_nominations" WHERE "award"='seattle international film festival';
## Task Generate a SQL query to answer the following question: `What nominated work has seattle international film festival as the award?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "nominated_work" text, "category" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What nominated work has seattle international film festival as the award?`: ```sql
SELECT "award" FROM "awards_and_nominations" WHERE "category"='breakthrough performance';
## Task Generate a SQL query to answer the following question: `What award has breakthrough performance as the category?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "nominated_work" text, "category" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What award has breakthrough performance as the category?`: ```sql