output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "college" FROM "nfl_draft" WHERE "pick"='14';
## Task Generate a SQL query to answer the following question: `Which college's pick was 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" text, "pick" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which college's pick was 14?`: ```sql
SELECT SUM("rec") FROM "michigan_single_game_reception_yardage" WHERE "average"<32 AND "s_touchdown"<3 AND "opponent"='oregon state';
## Task Generate a SQL query to answer the following question: `Which Rec has an Average smaller than 32, and a Touchdown smaller than 3, and an Opponent of oregon state?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_single_game_reception_yardage" ( "player" text, "rec" real, "yards" real, "average" real, "s_touchdown" real, "year" real, "opponent" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Rec has an Average smaller than 32, and a Touchdown smaller than 3, and an Opponent of oregon state?`: ```sql
SELECT AVG("rec") FROM "michigan_single_game_reception_yardage" WHERE "yards"=192 AND "s_touchdown"<1;
## Task Generate a SQL query to answer the following question: `Which rec has Yards of 192, and a Touchdown smaller than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_single_game_reception_yardage" ( "player" text, "rec" real, "yards" real, "average" real, "s_touchdown" real, "year" real, "opponent" text ); ### SQL Given the database schema, here is the SQL query that answers `Which rec has Yards of 192, and a Touchdown smaller than 1?`: ```sql
SELECT "opponent" FROM "michigan_single_game_reception_yardage" WHERE "yards"<197 AND "average"<32 AND "year"=1966;
## Task Generate a SQL query to answer the following question: `Which Opponent has Yards smaller than 197, and an Average smaller than 32, and a Year of 1966?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_single_game_reception_yardage" ( "player" text, "rec" real, "yards" real, "average" real, "s_touchdown" real, "year" real, "opponent" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent has Yards smaller than 197, and an Average smaller than 32, and a Year of 1966?`: ```sql
SELECT COUNT("s_touchdown") FROM "michigan_single_game_reception_yardage" WHERE "rec"=10 AND "opponent"='oregon state' AND "average"<19.7;
## Task Generate a SQL query to answer the following question: `How many Touchdowns have a rec of 10, and an Opponent of oregon state, and an Average smaller than 19.7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_single_game_reception_yardage" ( "player" text, "rec" real, "yards" real, "average" real, "s_touchdown" real, "year" real, "opponent" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Touchdowns have a rec of 10, and an Opponent of oregon state, and an Average smaller than 19.7?`: ```sql
SELECT SUM("points") FROM "regular_season" WHERE "opponent"='@ atlanta thrashers' AND "game"<28;
## Task Generate a SQL query to answer the following question: `Which Points have an Opponent of @ atlanta thrashers, and a Game smaller than 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Points have an Opponent of @ atlanta thrashers, and a Game smaller than 28?`: ```sql
SELECT COUNT("points") FROM "regular_season" WHERE "game"<37 AND "score"='2–3' AND "december"=13;
## Task Generate a SQL query to answer the following question: `How many Points have a Game smaller than 37, and a Score of 2–3, and a December of 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Points have a Game smaller than 37, and a Score of 2–3, and a December of 13?`: ```sql
SELECT MAX("game") FROM "regular_season" WHERE "score"='3–2';
## Task Generate a SQL query to answer the following question: `Which Game is the highest one that has a Score of 3–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Game is the highest one that has a Score of 3–2?`: ```sql
SELECT "spans" FROM "references" WHERE "built"='1896';
## Task Generate a SQL query to answer the following question: `What spans were built in 1896?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "county" text, "location" text, "built" text, "length_ft" real, "spans" text ); ### SQL Given the database schema, here is the SQL query that answers `What spans were built in 1896?`: ```sql
SELECT "name" FROM "references" WHERE "length_ft"=71;
## Task Generate a SQL query to answer the following question: `Who has a length of 71 ft?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "county" text, "location" text, "built" text, "length_ft" real, "spans" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has a length of 71 ft?`: ```sql
SELECT "location" FROM "references" WHERE "county"='rockingham';
## Task Generate a SQL query to answer the following question: `Where was the county of rockingham?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "name" text, "county" text, "location" text, "built" text, "length_ft" real, "spans" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the county of rockingham?`: ```sql
SELECT "propulsion" FROM "comparison" WHERE "year"<1962 AND "name"='rb 04';
## Task Generate a SQL query to answer the following question: `What is the propulsion for the RB 04 earlier than 1962?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison" ( "name" text, "year" real, "propulsion" text, "launched_by" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the propulsion for the RB 04 earlier than 1962?`: ```sql
SELECT "name" FROM "comparison" WHERE "propulsion"='turbojet' AND "year">1985 AND "launched_by"='surface, sub';
## Task Generate a SQL query to answer the following question: `What is the name of the anti-ship missile that had a turbojet propulsion that was launched by a surface, sub after 1985?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison" ( "name" text, "year" real, "propulsion" text, "launched_by" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the anti-ship missile that had a turbojet propulsion that was launched by a surface, sub after 1985?`: ```sql
SELECT "country" FROM "comparison" WHERE "propulsion"='solid rocket';
## Task Generate a SQL query to answer the following question: `What country had an anti-ship missile that had a solid rocket propulsion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison" ( "name" text, "year" real, "propulsion" text, "launched_by" text, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `What country had an anti-ship missile that had a solid rocket propulsion?`: ```sql
SELECT COUNT("number_of_seats") FROM "current_fleet" WHERE "year"='2001' AND "quantity">4;
## Task Generate a SQL query to answer the following question: `How many seats in 2001 with a quantity greater than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_fleet" ( "length_feet" text, "year" text, "make_and_model" text, "floor_type" text, "number_of_seats" real, "bicycle_capacity" real, "fuel_propulsion" text, "quantity" real ); ### SQL Given the database schema, here is the SQL query that answers `How many seats in 2001 with a quantity greater than 4?`: ```sql
SELECT "make_and_model" FROM "current_fleet" WHERE "fuel_propulsion"='diesel' AND "floor_type"='high' AND "bicycle_capacity"<3 AND "quantity"=4;
## Task Generate a SQL query to answer the following question: `What make and model of the diesel vehicle with a high floor type, bike capacity less than 3, and a quantity of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_fleet" ( "length_feet" text, "year" text, "make_and_model" text, "floor_type" text, "number_of_seats" real, "bicycle_capacity" real, "fuel_propulsion" text, "quantity" real ); ### SQL Given the database schema, here is the SQL query that answers `What make and model of the diesel vehicle with a high floor type, bike capacity less than 3, and a quantity of 4?`: ```sql
SELECT "score" FROM "regular_season" WHERE "opponent"='nashville predators';
## Task Generate a SQL query to answer the following question: `What score has nashville predators as the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What score has nashville predators as the opponent?`: ```sql
SELECT AVG("points") FROM "regular_season" WHERE "december"=27;
## Task Generate a SQL query to answer the following question: `What are the average points that have december 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the average points that have december 27?`: ```sql
SELECT "record" FROM "regular_season" WHERE "points">39 AND "game"=38;
## Task Generate a SQL query to answer the following question: `What record has points greater than 39, with 38 as the game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What record has points greater than 39, with 38 as the game?`: ```sql
SELECT "stuff_it" FROM "writing" WHERE "gzip"='yes' AND "iso_cd_image"='no' AND "lha_lzh"='no';
## Task Generate a SQL query to answer the following question: `What is the Stuffit ability that has a gzip of yes, ISO/CD images of no and LHA/LZH of no?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "writing" ( "gzip" text, "bzip2" text, "lha_lzh" text, "stuff_it" text, "stuff_it_x" text, "iso_cd_image" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Stuffit ability that has a gzip of yes, ISO/CD images of no and LHA/LZH of no?`: ```sql
SELECT "gzip" FROM "writing" WHERE "stuff_it"='no' AND "bzip2"='no' AND "lha_lzh"='no';
## Task Generate a SQL query to answer the following question: `What is the gzip value associated with a stuffit of no, bzip2 of no, and LHA.LZH of no?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "writing" ( "gzip" text, "bzip2" text, "lha_lzh" text, "stuff_it" text, "stuff_it_x" text, "iso_cd_image" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the gzip value associated with a stuffit of no, bzip2 of no, and LHA.LZH of no?`: ```sql
SELECT "bzip2" FROM "writing" WHERE "gzip"='yes' AND "stuff_it_x"='unknown' AND "iso_cd_image"='unknown';
## Task Generate a SQL query to answer the following question: `What is the bzip2 value associated with a gzip of yes, StuffitX of unknown, and ISO/CD image of unknown?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "writing" ( "gzip" text, "bzip2" text, "lha_lzh" text, "stuff_it" text, "stuff_it_x" text, "iso_cd_image" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the bzip2 value associated with a gzip of yes, StuffitX of unknown, and ISO/CD image of unknown?`: ```sql
SELECT "stuff_it_x" FROM "writing" WHERE "stuff_it"='unknown' AND "lha_lzh"='yes' AND "iso_cd_image"='unknown';
## Task Generate a SQL query to answer the following question: `What is the StuffitX value that has a Stuffit of unknown, LHA/LZH of yes, and unknown ISO/CD image?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "writing" ( "gzip" text, "bzip2" text, "lha_lzh" text, "stuff_it" text, "stuff_it_x" text, "iso_cd_image" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the StuffitX value that has a Stuffit of unknown, LHA/LZH of yes, and unknown ISO/CD image?`: ```sql
SELECT "stuff_it" FROM "writing" WHERE "bzip2"='no' AND "lha_lzh"='no';
## Task Generate a SQL query to answer the following question: `What is the stuffit that has bzip and LHA/LZH of no?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "writing" ( "gzip" text, "bzip2" text, "lha_lzh" text, "stuff_it" text, "stuff_it_x" text, "iso_cd_image" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the stuffit that has bzip and LHA/LZH of no?`: ```sql
SELECT "iso_cd_image" FROM "writing" WHERE "stuff_it_x"='no' AND "gzip"='yes' AND "lha_lzh"='yes';
## Task Generate a SQL query to answer the following question: `What is the ISO/CD image value associated with StuffitX of no, gzip of yes, and LHA/LZH of yes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "writing" ( "gzip" text, "bzip2" text, "lha_lzh" text, "stuff_it" text, "stuff_it_x" text, "iso_cd_image" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ISO/CD image value associated with StuffitX of no, gzip of yes, and LHA/LZH of yes?`: ```sql
SELECT "round" FROM "nhl_entry_draft" WHERE "player"='robert deciantis';
## Task Generate a SQL query to answer the following question: `Which round was Robert Deciantis taken in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nhl_entry_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which round was Robert Deciantis taken in?`: ```sql
SELECT MIN("round") FROM "nhl_entry_draft" WHERE "player"='brian elder';
## Task Generate a SQL query to answer the following question: `Which round was Brian Elder taken in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nhl_entry_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which round was Brian Elder taken in?`: ```sql
SELECT "date" FROM "singles_5_11" WHERE "tournament"='michalovce';
## Task Generate a SQL query to answer the following question: `what is the date of the tournament in michalovce` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5_11" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the date of the tournament in michalovce`: ```sql
SELECT "winning_score" FROM "pga_tour_wins_12" WHERE "tournament"='valero texas open';
## Task Generate a SQL query to answer the following question: `What was the winning score of the Valero Texas Open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the winning score of the Valero Texas Open?`: ```sql
SELECT "date" FROM "pga_tour_wins_12" WHERE "winning_score"='–12 (69-66-72-65=272)';
## Task Generate a SQL query to answer the following question: `When was the winning score –12 (69-66-72-65=272)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the winning score –12 (69-66-72-65=272)?`: ```sql
SELECT "runner_s_up" FROM "pga_tour_wins_12" WHERE "winning_score"='–28 (66-67-68-64-67=332)';
## Task Generate a SQL query to answer the following question: `Who was the runner-up when the winning score was –28 (66-67-68-64-67=332)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pga_tour_wins_12" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the runner-up when the winning score was –28 (66-67-68-64-67=332)?`: ```sql
SELECT "party" FROM "california" WHERE "result"='retired democratic hold';
## Task Generate a SQL query to answer the following question: `Which party had a Retired Democratic hold?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which party had a Retired Democratic hold?`: ```sql
SELECT AVG("first_elected") FROM "california" WHERE "result"='re-elected' AND "incumbent"='charles n. felton';
## Task Generate a SQL query to answer the following question: `What's the average year Charles N. Felton was re-elected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the average year Charles N. Felton was re-elected?`: ```sql
SELECT COUNT("first_elected") FROM "california" WHERE "incumbent"='barclay henley';
## Task Generate a SQL query to answer the following question: `What year was Barclay Henley first elected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was Barclay Henley first elected?`: ```sql
SELECT "team" FROM "drivers_and_constructors" WHERE "sponsor"='motorola';
## Task Generate a SQL query to answer the following question: `what is the sponsor of motorola` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_and_constructors" ( "team" text, "chassis" text, "engine" text, "tires" text, "drivers" text, "sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the sponsor of motorola`: ```sql
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "event"='sengoku 1';
## Task Generate a SQL query to answer the following question: `Which Opponent has the Event of Sengoku 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent has the Event of Sengoku 1?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='pride shockwave 2004';
## Task Generate a SQL query to answer the following question: `What Record has an Event of Pride Shockwave 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What Record has an Event of Pride Shockwave 2004?`: ```sql
SELECT AVG("pole_positions") FROM "percentage_starts_from_front_row" WHERE "percentage"='44.81%';
## Task Generate a SQL query to answer the following question: `What's the average pole position for the driver that has a percentage of 44.81%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "percentage_starts_from_front_row" ( "driver" text, "front_row_starts" real, "pole_positions" real, "entries" real, "percentage" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the average pole position for the driver that has a percentage of 44.81%?`: ```sql
SELECT AVG("front_row_starts") FROM "percentage_starts_from_front_row" WHERE "pole_positions"<68 AND "entries"<52;
## Task Generate a SQL query to answer the following question: `What's the average front row starts for drivers with less than 68 pole positions and entries lower than 52?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "percentage_starts_from_front_row" ( "driver" text, "front_row_starts" real, "pole_positions" real, "entries" real, "percentage" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the average front row starts for drivers with less than 68 pole positions and entries lower than 52?`: ```sql
SELECT "result" FROM "schedule" WHERE "attendance">'53,769' AND "opponent"='at philadelphia eagles';
## Task Generate a SQL query to answer the following question: `Attendance larger than 53,769, and a Opponent of at philadelphia eagles had what result?` ### 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, "venue" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Attendance larger than 53,769, and a Opponent of at philadelphia eagles had what result?`: ```sql
SELECT AVG("week") FROM "schedule" WHERE "attendance"='60,671';
## Task Generate a SQL query to answer the following question: `Attendance of 60,671 had what average week?` ### 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, "venue" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Attendance of 60,671 had what average week?`: ```sql
SELECT AVG("attendance") FROM "schedule" WHERE "week"=7;
## Task Generate a SQL query to answer the following question: `Week of 7 had what average attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Week of 7 had what average attendance?`: ```sql
SELECT COUNT("legs_won") FROM "women_s_statistics" WHERE "legs_lost"=6 AND "180s"=0 AND "3_dart_average"<69.72;
## Task Generate a SQL query to answer the following question: `How many legs were won when 6 legs were lost, the 180s was 0, and the 3-dart average was less than 69.72?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_statistics" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real ); ### SQL Given the database schema, here is the SQL query that answers `How many legs were won when 6 legs were lost, the 180s was 0, and the 3-dart average was less than 69.72?`: ```sql
SELECT SUM("played") FROM "women_s_statistics" WHERE "sets_won"<4 AND "3_dart_average"=53.19;
## Task Generate a SQL query to answer the following question: `What is the sum of all played when less than 4 sets were won and 3-dart average was 53.19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_statistics" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of all played when less than 4 sets were won and 3-dart average was 53.19?`: ```sql
SELECT COUNT("100") FROM "women_s_statistics" WHERE "player"='trina gulliver' AND "3_dart_average"<75.02;
## Task Generate a SQL query to answer the following question: `How many values for 100+ for Trina Gulliver with a 3-dart Average smaller than 75.02?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_statistics" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real ); ### SQL Given the database schema, here is the SQL query that answers `How many values for 100+ for Trina Gulliver with a 3-dart Average smaller than 75.02?`: ```sql
SELECT COUNT("legs_lost") FROM "women_s_statistics" WHERE "player"='trina gulliver' AND "played">3;
## Task Generate a SQL query to answer the following question: `How many legs were lost for Trina Gulliver with more than 3 played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_statistics" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real ); ### SQL Given the database schema, here is the SQL query that answers `How many legs were lost for Trina Gulliver with more than 3 played?`: ```sql
SELECT MAX("sets_won") FROM "women_s_statistics" WHERE "legs_won"<1;
## Task Generate a SQL query to answer the following question: `What is the most sets won with less than 1 legs won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_statistics" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most sets won with less than 1 legs won?`: ```sql
SELECT MAX("100") FROM "women_s_statistics" WHERE "sets_won"<1 AND "legs_won">2;
## Task Generate a SQL query to answer the following question: `What is the largest value for 100+ when less than 1 set was won and more than 2 legs were won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_statistics" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest value for 100+ when less than 1 set was won and more than 2 legs were won?`: ```sql
SELECT "kicker" FROM "list_of_known_fair_catch_kick_attempts_i" WHERE "yards"=45 AND "date"='november 8, 1971';
## Task Generate a SQL query to answer the following question: `Yards of 45, and a Date of november 8, 1971 is what kicker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_known_fair_catch_kick_attempts_i" ( "date" text, "kicker" text, "kicking_team" text, "opponent" text, "yards" real, "result" text, "game_time" text ); ### SQL Given the database schema, here is the SQL query that answers `Yards of 45, and a Date of november 8, 1971 is what kicker?`: ```sql
SELECT AVG("yards") FROM "list_of_known_fair_catch_kick_attempts_i" WHERE "game_time"='2nd quarter (0:00)' AND "date"='november 8, 1971';
## Task Generate a SQL query to answer the following question: `Game time of 2nd quarter (0:00), and a Date of november 8, 1971 has how many average yards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_known_fair_catch_kick_attempts_i" ( "date" text, "kicker" text, "kicking_team" text, "opponent" text, "yards" real, "result" text, "game_time" text ); ### SQL Given the database schema, here is the SQL query that answers `Game time of 2nd quarter (0:00), and a Date of november 8, 1971 has how many average yards?`: ```sql
SELECT "kicker" FROM "list_of_known_fair_catch_kick_attempts_i" WHERE "opponent"='new york giants' AND "yards"<68;
## Task Generate a SQL query to answer the following question: `Opponent of new york giants, and a Yards smaller than 68 is what kicker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_known_fair_catch_kick_attempts_i" ( "date" text, "kicker" text, "kicking_team" text, "opponent" text, "yards" real, "result" text, "game_time" text ); ### SQL Given the database schema, here is the SQL query that answers `Opponent of new york giants, and a Yards smaller than 68 is what kicker?`: ```sql
SELECT "kicker" FROM "list_of_known_fair_catch_kick_attempts_i" WHERE "yards">52 AND "opponent"='san francisco 49ers';
## Task Generate a SQL query to answer the following question: `Yards larger than 52, and a Opponent of san francisco 49ers is what kicker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_known_fair_catch_kick_attempts_i" ( "date" text, "kicker" text, "kicking_team" text, "opponent" text, "yards" real, "result" text, "game_time" text ); ### SQL Given the database schema, here is the SQL query that answers `Yards larger than 52, and a Opponent of san francisco 49ers is what kicker?`: ```sql
SELECT "date" FROM "list_of_known_fair_catch_kick_attempts_i" WHERE "result"='missed*' AND "game_time"='2nd quarter (0:00)' AND "kicker"='mason crosby';
## Task Generate a SQL query to answer the following question: `Result of missed*, and a Game time of 2nd quarter (0:00), and a Kicker of mason crosby involves what date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_known_fair_catch_kick_attempts_i" ( "date" text, "kicker" text, "kicking_team" text, "opponent" text, "yards" real, "result" text, "game_time" text ); ### SQL Given the database schema, here is the SQL query that answers `Result of missed*, and a Game time of 2nd quarter (0:00), and a Kicker of mason crosby involves what date?`: ```sql
SELECT "result" FROM "list_of_known_fair_catch_kick_attempts_i" WHERE "opponent"='houston texans';
## Task Generate a SQL query to answer the following question: `Opponent of houston texans had what result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_known_fair_catch_kick_attempts_i" ( "date" text, "kicker" text, "kicking_team" text, "opponent" text, "yards" real, "result" text, "game_time" text ); ### SQL Given the database schema, here is the SQL query that answers `Opponent of houston texans had what result?`: ```sql
SELECT "nationality" FROM "draft_picks" WHERE "position"='left wing';
## Task Generate a SQL query to answer the following question: `Which Nationality of the person has a Position on left wing?` ### 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 `Which Nationality of the person has a Position on left wing?`: ```sql
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "nationality"='sweden';
## Task Generate a SQL query to answer the following question: `Which College/Junior/Club Team (League) are from sweden?` ### 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 `Which College/Junior/Club Team (League) are from sweden?`: ```sql
SELECT "position" FROM "draft_picks" WHERE "nationality"='russia';
## Task Generate a SQL query to answer the following question: `WHich Position is from russia?` ### 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 `WHich Position is from russia?`: ```sql
SELECT "venue" FROM "women_outdoor" WHERE "nationality"='ukraine';
## Task Generate a SQL query to answer the following question: `Which venue is with Ukraine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_outdoor" ( "pos" real, "mark" text, "athlete" text, "nationality" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which venue is with Ukraine?`: ```sql
SELECT "venue" FROM "women_outdoor" WHERE "nationality"='belgium';
## Task Generate a SQL query to answer the following question: `Which venue had a nationality of Belgium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_outdoor" ( "pos" real, "mark" text, "athlete" text, "nationality" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which venue had a nationality of Belgium?`: ```sql
SELECT "best_actor" FROM "major_award_winners" WHERE "best_film"='mystery';
## Task Generate a SQL query to answer the following question: `Which Best Actor has a Best Film of mystery?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_award_winners" ( "year" text, "best_film" text, "best_director" text, "best_actor" text, "best_actress" text, "best_supporting_actress" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Best Actor has a Best Film of mystery?`: ```sql
SELECT "year" FROM "major_award_winners" WHERE "best_film"='mystery';
## Task Generate a SQL query to answer the following question: `Which Year has a Best Film of mystery?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_award_winners" ( "year" text, "best_film" text, "best_director" text, "best_actor" text, "best_actress" text, "best_supporting_actress" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year has a Best Film of mystery?`: ```sql
SELECT "best_actress" FROM "major_award_winners" WHERE "year"='2012 6th';
## Task Generate a SQL query to answer the following question: `Which Best Actress has a Year of 2012 6th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_award_winners" ( "year" text, "best_film" text, "best_director" text, "best_actor" text, "best_actress" text, "best_supporting_actress" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Best Actress has a Year of 2012 6th?`: ```sql
SELECT "best_actor" FROM "major_award_winners" WHERE "best_director"='takeshi kitano for outrage beyond';
## Task Generate a SQL query to answer the following question: `Which Best Actor has a Best Director of takeshi kitano for outrage beyond?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_award_winners" ( "year" text, "best_film" text, "best_director" text, "best_actor" text, "best_actress" text, "best_supporting_actress" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Best Actor has a Best Director of takeshi kitano for outrage beyond?`: ```sql
SELECT "best_film" FROM "major_award_winners" WHERE "best_supporting_actress"='shamaine buencamino for niño';
## Task Generate a SQL query to answer the following question: `Which Best Film has a Best Supporting Actress of shamaine buencamino for niño?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "major_award_winners" ( "year" text, "best_film" text, "best_director" text, "best_actor" text, "best_actress" text, "best_supporting_actress" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Best Film has a Best Supporting Actress of shamaine buencamino for niño?`: ```sql
SELECT "result" FROM "1960s" WHERE "score"='0–0' AND "date"='02-jan-64';
## Task Generate a SQL query to answer the following question: `Score of 0–0, and a Date of 02-jan-64 had what result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s" ( "date" text, "result" text, "score" text, "venue" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Score of 0–0, and a Date of 02-jan-64 had what result?`: ```sql
SELECT "date" FROM "1960s" WHERE "result"='l' AND "competition"='1966 asian games' AND "score"='0–1';
## Task Generate a SQL query to answer the following question: `Result of l, and a Competition of 1966 asian games, and a Score of 0–1 had what date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s" ( "date" text, "result" text, "score" text, "venue" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Result of l, and a Competition of 1966 asian games, and a Score of 0–1 had what date?`: ```sql
SELECT "score" FROM "1960s" WHERE "competition"='friendly' AND "date"='03-jun-62';
## Task Generate a SQL query to answer the following question: `Competition of friendly, and a Date of 03-jun-62 had what score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s" ( "date" text, "result" text, "score" text, "venue" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Competition of friendly, and a Date of 03-jun-62 had what score?`: ```sql
SELECT "date" FROM "1960s" WHERE "result"='w' AND "competition"='1968 asian cup';
## Task Generate a SQL query to answer the following question: `Result of w, and a Competition of 1968 asian cup happened on what date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s" ( "date" text, "result" text, "score" text, "venue" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Result of w, and a Competition of 1968 asian cup happened on what date?`: ```sql
SELECT "score" FROM "1960s" WHERE "result"='l' AND "date"='15-oct-64';
## Task Generate a SQL query to answer the following question: `Result of l, and a Date of 15-oct-64 had what score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s" ( "date" text, "result" text, "score" text, "venue" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Result of l, and a Date of 15-oct-64 had what score?`: ```sql
SELECT "incumbent" FROM "california" WHERE "result"='re-elected' AND "district"='california 3';
## Task Generate a SQL query to answer the following question: `What incumbent was re-elected in the district in california 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What incumbent was re-elected in the district in california 3?`: ```sql
SELECT "district" FROM "california" WHERE "incumbent"='thomas larkin thompson';
## Task Generate a SQL query to answer the following question: `What is the district of the incumbent Thomas Larkin Thompson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the district of the incumbent Thomas Larkin Thompson?`: ```sql
SELECT "incumbent" FROM "california" WHERE "result"='re-elected' AND "first_elected">1884;
## Task Generate a SQL query to answer the following question: `What incumbent has a re-elected result and first elected larger than 1884?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What incumbent has a re-elected result and first elected larger than 1884?`: ```sql
SELECT "telugu" FROM "names_in_modern_languages" WHERE "kannada"='chitra ಚಿತ್ತ';
## Task Generate a SQL query to answer the following question: `Which Telugu తెలుగు has a Kannada ಕನ್ನಡ of chitra ಚಿತ್ತ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "names_in_modern_languages" ( "sanskrit" text, "tamil" text, "telugu" text, "kannada" text, "malayalam" text, "mongolian" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Telugu తెలుగు has a Kannada ಕನ್ನಡ of chitra ಚಿತ್ತ?`: ```sql
SELECT "telugu" FROM "names_in_modern_languages" WHERE "tamil"='pūrāṭam பூராடம்';
## Task Generate a SQL query to answer the following question: `Which Telugu తెలుగు has a Tamil தமிழ் of pūrāṭam பூராடம்?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "names_in_modern_languages" ( "sanskrit" text, "tamil" text, "telugu" text, "kannada" text, "malayalam" text, "mongolian" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Telugu తెలుగు has a Tamil தமிழ் of pūrāṭam பூராடம்?`: ```sql
SELECT "telugu" FROM "names_in_modern_languages" WHERE "tamil"='pūsam பூசம்';
## Task Generate a SQL query to answer the following question: `Which Telugu తెలుగు has a Tamil தமிழ் of pūsam பூசம்?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "names_in_modern_languages" ( "sanskrit" text, "tamil" text, "telugu" text, "kannada" text, "malayalam" text, "mongolian" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Telugu తెలుగు has a Tamil தமிழ் of pūsam பூசம்?`: ```sql
SELECT "mongolian" FROM "names_in_modern_languages" WHERE "tamil"='pūrāṭam பூராடம்';
## Task Generate a SQL query to answer the following question: `Which Mongolian has a Tamil தமிழ் of pūrāṭam பூராடம்?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "names_in_modern_languages" ( "sanskrit" text, "tamil" text, "telugu" text, "kannada" text, "malayalam" text, "mongolian" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Mongolian has a Tamil தமிழ் of pūrāṭam பூராடம்?`: ```sql
SELECT "sanskrit" FROM "names_in_modern_languages" WHERE "kannada"='uttara ಉತ್ತರಾ';
## Task Generate a SQL query to answer the following question: `What kind of Sanskrit संस्कृतम् has a Kannada ಕನ್ನಡ of uttara ಉತ್ತರಾ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "names_in_modern_languages" ( "sanskrit" text, "tamil" text, "telugu" text, "kannada" text, "malayalam" text, "mongolian" text ); ### SQL Given the database schema, here is the SQL query that answers `What kind of Sanskrit संस्कृतम् has a Kannada ಕನ್ನಡ of uttara ಉತ್ತರಾ?`: ```sql
SELECT "sanskrit" FROM "names_in_modern_languages" WHERE "tamil"='rōkiṇi ரோகிணி';
## Task Generate a SQL query to answer the following question: `What kind of Sanskrit संस्कृतम् has a Tamil தமிழ் of rōkiṇi ரோகிணி?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "names_in_modern_languages" ( "sanskrit" text, "tamil" text, "telugu" text, "kannada" text, "malayalam" text, "mongolian" text ); ### SQL Given the database schema, here is the SQL query that answers `What kind of Sanskrit संस्कृतम् has a Tamil தமிழ் of rōkiṇi ரோகிணி?`: ```sql
SELECT "frequency" FROM "defunct_callsigns" WHERE "area_served"='katherine';
## Task Generate a SQL query to answer the following question: `What is the frequency for katherine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "frequency" text, "band" text, "freq_currently" text, "purpose" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the frequency for katherine?`: ```sql
SELECT "band" FROM "defunct_callsigns" WHERE "freq_currently"='8tab (hpon)';
## Task Generate a SQL query to answer the following question: `Which band has a current freq of 8tab (hpon)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "frequency" text, "band" text, "freq_currently" text, "purpose" text ); ### SQL Given the database schema, here is the SQL query that answers `Which band has a current freq of 8tab (hpon)?`: ```sql
SELECT "freq_currently" FROM "defunct_callsigns" WHERE "frequency"='0 657';
## Task Generate a SQL query to answer the following question: `Which freq currently has 0 657?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "frequency" text, "band" text, "freq_currently" text, "purpose" text ); ### SQL Given the database schema, here is the SQL query that answers `Which freq currently has 0 657?`: ```sql
SELECT "purpose" FROM "defunct_callsigns" WHERE "freq_currently"='8rn' AND "area_served"='katherine';
## Task Generate a SQL query to answer the following question: `What is the purpose for the katherine freq of 8rn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "frequency" text, "band" text, "freq_currently" text, "purpose" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the purpose for the katherine freq of 8rn?`: ```sql
SELECT "freq_currently" FROM "defunct_callsigns" WHERE "frequency"='0 684';
## Task Generate a SQL query to answer the following question: `Which freq currently has 0 684?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "frequency" text, "band" text, "freq_currently" text, "purpose" text ); ### SQL Given the database schema, here is the SQL query that answers `Which freq currently has 0 684?`: ```sql
SELECT "band" FROM "defunct_callsigns" WHERE "area_served"='darwin' AND "purpose"='commercial';
## Task Generate a SQL query to answer the following question: `Which band serves darwin for commercial purpose?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "frequency" text, "band" text, "freq_currently" text, "purpose" text ); ### SQL Given the database schema, here is the SQL query that answers `Which band serves darwin for commercial purpose?`: ```sql
SELECT "points_difference" FROM "world_championship_group_c_france" WHERE "lost"<6 AND "points"<11;
## Task Generate a SQL query to answer the following question: `What is the points difference for a loss less than 6, and points less than 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championship_group_c_france" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the points difference for a loss less than 6, and points less than 11?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "loss"='báez (5-5)';
## Task Generate a SQL query to answer the following question: `Which Opponent has a Loss of báez (5-5)?` ### 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 `Which Opponent has a Loss of báez (5-5)?`: ```sql
SELECT "score" FROM "game_log" WHERE "opponent"='@ rockies' AND "record"='33-35';
## Task Generate a SQL query to answer the following question: `Which Score has an Opponent of @ rockies, and a Record of 33-35?` ### 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 `Which Score has an Opponent of @ rockies, and a Record of 33-35?`: ```sql
SELECT SUM("attendance") FROM "game_log" WHERE "opponent"='phillies' AND "record"='30-33';
## Task Generate a SQL query to answer the following question: `Which Attendance has an Opponent of phillies, and a Record of 30-33?` ### 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 `Which Attendance has an Opponent of phillies, and a Record of 30-33?`: ```sql
SELECT MAX("attendance") FROM "game_log" WHERE "loss"='batista (4-5)';
## Task Generate a SQL query to answer the following question: `Which Attendance is the highest one that has a Loss of batista (4-5)?` ### 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 `Which Attendance is the highest one that has a Loss of batista (4-5)?`: ```sql
SELECT AVG("frequency_m_hz") FROM "broadcast_translators_of_kanz" WHERE "erp_w">250;
## Task Generate a SQL query to answer the following question: `What is the frequency MHz of the ERP W's greater than 250?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcast_translators_of_kanz" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the frequency MHz of the ERP W's greater than 250?`: ```sql
SELECT "call_sign" FROM "broadcast_translators_of_kanz" WHERE "frequency_m_hz"<94.9 AND "erp_w"=170;
## Task Generate a SQL query to answer the following question: `What is the call sign of the MHz Frequency less than 94.9 and an ERP W of 170?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcast_translators_of_kanz" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the call sign of the MHz Frequency less than 94.9 and an ERP W of 170?`: ```sql
SELECT "fcc_info" FROM "broadcast_translators_of_kanz" WHERE "city_of_license"='tribune, kansas';
## Task Generate a SQL query to answer the following question: `What is the FCC info for the city of Tribune, Kansas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcast_translators_of_kanz" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the FCC info for the city of Tribune, Kansas?`: ```sql
SELECT "city_of_license" FROM "broadcast_translators_of_kanz" WHERE "erp_w"<170;
## Task Generate a SQL query to answer the following question: `What is the city of license with an ERP W less than 170?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcast_translators_of_kanz" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the city of license with an ERP W less than 170?`: ```sql
SELECT MIN("erp_w") FROM "broadcast_translators_of_kanz" WHERE "frequency_m_hz"=94.9;
## Task Generate a SQL query to answer the following question: `What is the smallest ERP W with a frequency MHz of 94.9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcast_translators_of_kanz" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest ERP W with a frequency MHz of 94.9?`: ```sql
SELECT "erp_w" FROM "broadcast_translators_of_kanz" WHERE "frequency_m_hz">89.5 AND "city_of_license"='washburn, texas';
## Task Generate a SQL query to answer the following question: `What is the ERP W of a Frequency MHz greater than 89.5 in the city of Washburn, Texas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcast_translators_of_kanz" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ERP W of a Frequency MHz greater than 89.5 in the city of Washburn, Texas?`: ```sql
SELECT COUNT("bronze") FROM "medal_table" WHERE "nation"='u.s. virgin islands' AND "gold"<0;
## Task Generate a SQL query to answer the following question: `What is the total number of bronze medals the U.S. Virgin Islands, which has less than 0 golds, has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of bronze medals the U.S. Virgin Islands, which has less than 0 golds, has?`: ```sql
SELECT SUM("rank") FROM "medal_table" WHERE "total"=11 AND "silver">4;
## Task Generate a SQL query to answer the following question: `What is the rank of the team with 11 total medals and more than 4 silver medals has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank of the team with 11 total medals and more than 4 silver medals has?`: ```sql
SELECT MIN("total") FROM "medal_table" WHERE "bronze">0 AND "silver"=6 AND "rank"<3;
## Task Generate a SQL query to answer the following question: `What is the lowest total medals the team with more than 0 bronze, 6 silver, and a rank higher than 3 has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest total medals the team with more than 0 bronze, 6 silver, and a rank higher than 3 has?`: ```sql
SELECT MIN("rank") FROM "medal_table" WHERE "nation"='venezuela' AND "bronze">9;
## Task Generate a SQL query to answer the following question: `What is the highest rank of Venezuela, which has more than 9 bronze medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest rank of Venezuela, which has more than 9 bronze medals?`: ```sql
SELECT MIN("rank") FROM "medal_table" WHERE "bronze"=0 AND "silver"=1 AND "gold">0;
## Task Generate a SQL query to answer the following question: `What is the lowest rank of the team with 0 bronze, 1 silver, and more than 0 gold?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest rank of the team with 0 bronze, 1 silver, and more than 0 gold?`: ```sql