output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT AVG("date") FROM "schedule_and_results" WHERE "record"='30-31-9' AND "game">70;
## Task Generate a SQL query to answer the following question: `What was the average date with a record of 30-31-9 in a game over 70?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "date" real, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the average date with a record of 30-31-9 in a game over 70?`: ```sql
SELECT MAX("date") FROM "schedule_and_results" WHERE "location_attendance"='los angeles' AND "game"<62;
## Task Generate a SQL query to answer the following question: `What is the latest date at Los Angeles with a game less than 62?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "date" real, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the latest date at Los Angeles with a game less than 62?`: ```sql
SELECT MAX("date") FROM "schedule_and_results" WHERE "game">69 AND "opponent"='st. louis blues';
## Task Generate a SQL query to answer the following question: `What is the latest date for a game over 69 with a St. Louis Blues opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "date" real, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the latest date for a game over 69 with a St. Louis Blues opponent?`: ```sql
SELECT MAX("game") FROM "schedule_and_results" WHERE "opponent"='oakland seals' AND "record"='27-30-6' AND "date">7;
## Task Generate a SQL query to answer the following question: `What is the highest game with Oakland Seals opponent and a record of 27-30-6 on a date more than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "date" real, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest game with Oakland Seals opponent and a record of 27-30-6 on a date more than 7?`: ```sql
SELECT SUM("attendance") FROM "regular_season" WHERE "date"='october 5';
## Task Generate a SQL query to answer the following question: `What is the total attendance for the date of october 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total attendance for the date of october 5?`: ```sql
SELECT "record" FROM "regular_season" WHERE "date"='september 21';
## Task Generate a SQL query to answer the following question: `What record has September 21 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What record has September 21 as the date?`: ```sql
SELECT "score" FROM "under_23_international_goals" WHERE "date"='december 19, 2009';
## Task Generate a SQL query to answer the following question: `What was the score of the match on December 19, 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "under_23_international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the match on December 19, 2009?`: ```sql
SELECT MAX("game") FROM "regular_season" WHERE "opponent"='new york rangers' AND "points">55;
## Task Generate a SQL query to answer the following question: `What's the highest game against the New York Rangers with more than 55 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the highest game against the New York Rangers with more than 55 points?`: ```sql
SELECT "record" FROM "regular_season" WHERE "points">54 AND "game">44 AND "opponent"='dallas stars';
## Task Generate a SQL query to answer the following question: `What's the record for a game past 44 against the Dallas Stars with more than 54 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the record for a game past 44 against the Dallas Stars with more than 54 points?`: ```sql
SELECT MAX("fiscal_year") FROM "big_five_it_services_company" WHERE "revenues"='$4.3 billion' AND "employees">'85,335';
## Task Generate a SQL query to answer the following question: `What is the latest Fiscal Year with Revenues of $4.3 billion, and more than 85,335 employees?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "big_five_it_services_company" ( "firm" text, "revenues" text, "employees" real, "fiscal_year" real, "headquarters" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the latest Fiscal Year with Revenues of $4.3 billion, and more than 85,335 employees?`: ```sql
SELECT AVG("fiscal_year") FROM "big_five_it_services_company" WHERE "headquarters"='noida' AND "employees"<'85,335';
## Task Generate a SQL query to answer the following question: `What is the average Fiscal Year of the firm Headquartered in noida, with less than 85,335 employees?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "big_five_it_services_company" ( "firm" text, "revenues" text, "employees" real, "fiscal_year" real, "headquarters" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Fiscal Year of the firm Headquartered in noida, with less than 85,335 employees?`: ```sql
SELECT COUNT("points") FROM "grand_prix_career_statistics" WHERE "year">1991;
## Task Generate a SQL query to answer the following question: `What are the Points after 1991?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the Points after 1991?`: ```sql
SELECT "class" FROM "grand_prix_career_statistics" WHERE "points"=36;
## Task Generate a SQL query to answer the following question: `What Class has 36 Points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What Class has 36 Points?`: ```sql
SELECT "class" FROM "grand_prix_career_statistics" WHERE "year">1986;
## Task Generate a SQL query to answer the following question: `What is the Class after 1986?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_career_statistics" ( "year" real, "class" text, "team" text, "machine" text, "points" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Class after 1986?`: ```sql
SELECT SUM("attendance") FROM "schedule" WHERE "opponent"='detroit lions';
## Task Generate a SQL query to answer the following question: `How many attendances had the Detroit Lions as opponents?` ### 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, "record" text, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `How many attendances had the Detroit Lions as opponents?`: ```sql
SELECT "men_s_doubles" FROM "previous_winners" WHERE "year"=2010;
## Task Generate a SQL query to answer the following question: `Who was on the men's doubles in 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was on the men's doubles in 2010?`: ```sql
SELECT "women_s_singles" FROM "previous_winners" WHERE "mixed_doubles"='tontowi ahmad lilyana natsir' AND "year"=2011;
## Task Generate a SQL query to answer the following question: `Which women was on the mixed doubles of tontowi ahmad lilyana natsir in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); ### SQL Given the database schema, here is the SQL query that answers `Which women was on the mixed doubles of tontowi ahmad lilyana natsir in 2011?`: ```sql
SELECT "nationality" FROM "women_kayak" WHERE "distance"='500m' AND "year"<2012 AND "record"='1:37.071s';
## Task Generate a SQL query to answer the following question: `Which nationality's distance was 500m before 2012, when the record was 1:37.071s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_kayak" ( "distance" text, "event" text, "record" text, "nationality" text, "year" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which nationality's distance was 500m before 2012, when the record was 1:37.071s?`: ```sql
SELECT "location" FROM "women_kayak" WHERE "year"=2001 AND "record"='3:52.983s';
## Task Generate a SQL query to answer the following question: `Which location's year was 2001 when the record was 3:52.983s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_kayak" ( "distance" text, "event" text, "record" text, "nationality" text, "year" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which location's year was 2001 when the record was 3:52.983s?`: ```sql
SELECT "nationality" FROM "women_kayak" WHERE "distance"='200m' AND "year">1994 AND "record"='33.778s';
## Task Generate a SQL query to answer the following question: `Which nationality's distance was 200m and had a year more recent than 1994 when the record was 33.778s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_kayak" ( "distance" text, "event" text, "record" text, "nationality" text, "year" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which nationality's distance was 200m and had a year more recent than 1994 when the record was 33.778s?`: ```sql
SELECT MIN("total") FROM "medal_table" WHERE "bronze"=1 AND "rank"='8' AND "silver">1;
## Task Generate a SQL query to answer the following question: `How many Total medals for the team with a Rank of 8, 1 Bronze and more than 1 Silver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Total medals for the team with a Rank of 8, 1 Bronze and more than 1 Silver?`: ```sql
SELECT MAX("gold") FROM "medal_table" WHERE "rank"='12' AND "total"<2;
## Task Generate a SQL query to answer the following question: `How many Gold does the Nation in Rank 12 with less than 2 Total medals have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Gold does the Nation in Rank 12 with less than 2 Total medals have?`: ```sql
SELECT "nhl_team" FROM "round_six" WHERE "pick_num"='89';
## Task Generate a SQL query to answer the following question: `Which NHL team got pick 89?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_six" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which NHL team got pick 89?`: ```sql
SELECT "player" FROM "round_six" WHERE "position"='goaltender' AND "nhl_team"='vancouver canucks';
## Task Generate a SQL query to answer the following question: `Who plays goaltender for the Vancouver Canucks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_six" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who plays goaltender for the Vancouver Canucks?`: ```sql
SELECT "pct_change" FROM "2004_final_statistics" WHERE "airport"='london heathrow airport';
## Task Generate a SQL query to answer the following question: `What is the % Change at London Heathrow airport?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_final_statistics" ( "rank" real, "airport" text, "location" text, "code_iata" text, "total_cargo_metric_tonnes" text, "2003_rank" text, "pct_change" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the % Change at London Heathrow airport?`: ```sql
SELECT "2003_rank" FROM "2004_final_statistics" WHERE "code_iata"='sin';
## Task Generate a SQL query to answer the following question: `What 2003 rank does the airport IATA code SIN have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_final_statistics" ( "rank" real, "airport" text, "location" text, "code_iata" text, "total_cargo_metric_tonnes" text, "2003_rank" text, "pct_change" text ); ### SQL Given the database schema, here is the SQL query that answers `What 2003 rank does the airport IATA code SIN have?`: ```sql
SELECT "airport" FROM "2004_final_statistics" WHERE "code_iata"='ams';
## Task Generate a SQL query to answer the following question: `Which airport has an IATA code of AMS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_final_statistics" ( "rank" real, "airport" text, "location" text, "code_iata" text, "total_cargo_metric_tonnes" text, "2003_rank" text, "pct_change" text ); ### SQL Given the database schema, here is the SQL query that answers `Which airport has an IATA code of AMS?`: ```sql
SELECT "code_iata" FROM "2004_final_statistics" WHERE "total_cargo_metric_tonnes"='1,838,894';
## Task Generate a SQL query to answer the following question: `What is the IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_final_statistics" ( "rank" real, "airport" text, "location" text, "code_iata" text, "total_cargo_metric_tonnes" text, "2003_rank" text, "pct_change" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes?`: ```sql
SELECT "2003_rank" FROM "2004_final_statistics" WHERE "airport"='los angeles international airport';
## Task Generate a SQL query to answer the following question: `What is the 2003 rank for Los Angeles International airport?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_final_statistics" ( "rank" real, "airport" text, "location" text, "code_iata" text, "total_cargo_metric_tonnes" text, "2003_rank" text, "pct_change" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2003 rank for Los Angeles International airport?`: ```sql
SELECT "pct_change" FROM "2004_final_statistics" WHERE "rank"<8 AND "2003_rank"='6';
## Task Generate a SQL query to answer the following question: `What % Change is listed against the airport with a rank less than 8 and a 2003 rank of 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_final_statistics" ( "rank" real, "airport" text, "location" text, "code_iata" text, "total_cargo_metric_tonnes" text, "2003_rank" text, "pct_change" text ); ### SQL Given the database schema, here is the SQL query that answers `What % Change is listed against the airport with a rank less than 8 and a 2003 rank of 6?`: ```sql
SELECT "district" FROM "south_carolina" WHERE "incumbent"='wyatt aiken';
## Task Generate a SQL query to answer the following question: `What district is Wyatt Aiken in?` ### 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 district is Wyatt Aiken in?`: ```sql
SELECT SUM("gold") FROM "medal_table" WHERE "silver">0 AND "total"<3 AND "nation"='bulgaria' AND "bronze"<0;
## Task Generate a SQL query to answer the following question: `Silver larger than 0, and a Total smaller than 3, and a Nation of bulgaria, and a Bronze smaller than 0 had what sum of gold?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Silver larger than 0, and a Total smaller than 3, and a Nation of bulgaria, and a Bronze smaller than 0 had what sum of gold?`: ```sql
SELECT SUM("gold") FROM "medal_table" WHERE "nation"='total';
## Task Generate a SQL query to answer the following question: `Nation of total has what sum of gold?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Nation of total has what sum of gold?`: ```sql
SELECT SUM("bronze") FROM "medal_table" WHERE "total"=3 AND "gold">0 AND "nation"='belarus' AND "silver">2;
## Task Generate a SQL query to answer the following question: `Total of 3, and a Gold larger than 0, and a Nation of belarus, and a Silver larger than 2 has what sum of bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Total of 3, and a Gold larger than 0, and a Nation of belarus, and a Silver larger than 2 has what sum of bronze?`: ```sql
SELECT AVG("silver") FROM "medal_table" WHERE "bronze"=22;
## Task Generate a SQL query to answer the following question: `Bronze of 22 has what average silver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Bronze of 22 has what average silver?`: ```sql
SELECT "position" FROM "league_table" WHERE "games_played"=5 AND "w_l_d"='1-2-2';
## Task Generate a SQL query to answer the following question: `Which position had 5 games played and a record of 1-2-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "position" real, "club_city_town" text, "games_played" real, "w_l_d" text, "goals_for_against" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which position had 5 games played and a record of 1-2-2?`: ```sql
SELECT "name" FROM "history_of_leaders" WHERE "term_end"='2013';
## Task Generate a SQL query to answer the following question: `What was the name of the leader whose term ended in 2013?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "history_of_leaders" ( "name" text, "term_start" real, "term_end" text, "date_of_birth" text, "date_of_death" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the name of the leader whose term ended in 2013?`: ```sql
SELECT "term_start" FROM "history_of_leaders" WHERE "term_end"='1919' AND "date_of_birth"='january 8, 1859';
## Task Generate a SQL query to answer the following question: `When was the start of the leader's term who was born on January 8, 1859 and whose term ended in 1919?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "history_of_leaders" ( "name" text, "term_start" real, "term_end" text, "date_of_birth" text, "date_of_death" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the start of the leader's term who was born on January 8, 1859 and whose term ended in 1919?`: ```sql
SELECT "name" FROM "history_of_leaders" WHERE "term_start"<1984 AND "date_of_birth"='december 17, 1874';
## Task Generate a SQL query to answer the following question: `Which leader born on December 17, 1874 started their term before 1984?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "history_of_leaders" ( "name" text, "term_start" real, "term_end" text, "date_of_birth" text, "date_of_death" text ); ### SQL Given the database schema, here is the SQL query that answers `Which leader born on December 17, 1874 started their term before 1984?`: ```sql
SELECT "date" FROM "doubles_4_2" WHERE "outcome"='winner' AND "opponents_in_the_final"='nikola fraňková carmen klaschka';
## Task Generate a SQL query to answer the following question: `What date shows the Outcome of winner against nikola fraňková carmen klaschka?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_4_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What date shows the Outcome of winner against nikola fraňková carmen klaschka?`: ```sql
SELECT "outcome" FROM "doubles_4_2" WHERE "tournament"='jounieh';
## Task Generate a SQL query to answer the following question: `What is the Outcome of the jounieh tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_4_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Outcome of the jounieh tournament?`: ```sql
SELECT "date" FROM "doubles_4_2" WHERE "score"='6–3 6–4';
## Task Generate a SQL query to answer the following question: `What date was the score of 6–3 6–4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_4_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the score of 6–3 6–4?`: ```sql
SELECT "9_00" FROM "friday" WHERE "10_00"='20/20';
## Task Generate a SQL query to answer the following question: `What is the 9:00 episode that will be shown on the station that will show 20/20 at 10:00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 9:00 episode that will be shown on the station that will show 20/20 at 10:00?`: ```sql
SELECT "9_00" FROM "friday" WHERE "8_00"='dawson''s creek';
## Task Generate a SQL query to answer the following question: `What is the 9:00 show that will be aired on the station that airs Dawson's Creek at 8:00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 9:00 show that will be aired on the station that airs Dawson's Creek at 8:00?`: ```sql
SELECT "9_30" FROM "friday" WHERE "8_30"='the red green show';
## Task Generate a SQL query to answer the following question: `What is the 9:30 program airing on the station that airs The Red Green Show at 8:30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 9:30 program airing on the station that airs The Red Green Show at 8:30?`: ```sql
SELECT "8_30" FROM "friday" WHERE "7_30"='various programs';
## Task Generate a SQL query to answer the following question: `What is the 8:30 program that airs on the station that airs various programs at 7:30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 8:30 program that airs on the station that airs various programs at 7:30?`: ```sql
SELECT "9_30" FROM "friday" WHERE "8_30"='dawson''s creek';
## Task Generate a SQL query to answer the following question: `What is the 9:30 program that airs on the station that airs Dawson's Creek at 8:30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text, "10_30" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 9:30 program that airs on the station that airs Dawson's Creek at 8:30?`: ```sql
SELECT "date" FROM "game_log" WHERE "opponent"='indiana pacers';
## Task Generate a SQL query to answer the following question: `when indiana pacers were the opponent what was the date?` ### 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 `when indiana pacers were the opponent what was the date?`: ```sql
SELECT "try_bonus" FROM "2007_2008_table" WHERE "tries_against"='55';
## Task Generate a SQL query to answer the following question: `tries against is 55, what is the try bonus?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `tries against is 55, what is the try bonus?`: ```sql
SELECT "points_against" FROM "2007_2008_table" WHERE "tries_against"='29';
## Task Generate a SQL query to answer the following question: `tries against is 29, what is the points against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `tries against is 29, what is the points against?`: ```sql
SELECT "tries_for" FROM "2007_2008_table" WHERE "tries_against"='correct as of 2007-10-15';
## Task Generate a SQL query to answer the following question: `tries against correct as of 2007-10-15 has what tries for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `tries against correct as of 2007-10-15 has what tries for?`: ```sql
SELECT "tries_for" FROM "2007_2008_table" WHERE "tries_against"='correct as of 2007-10-15';
## Task Generate a SQL query to answer the following question: `tries against correct as of 2007-10-15 has what tries for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `tries against correct as of 2007-10-15 has what tries for?`: ```sql
SELECT "lost" FROM "2007_2008_table" WHERE "played"='22' AND "tries_against"='88';
## Task Generate a SQL query to answer the following question: `tries against is 88, played is 22, what is the lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text ); ### SQL Given the database schema, here is the SQL query that answers `tries against is 88, played is 22, what is the lost?`: ```sql
SELECT "silver" FROM "taijiquan" WHERE "year"<2010 AND "gold"='chan ming shu';
## Task Generate a SQL query to answer the following question: `Who won silver in the year before 2010, the year Chan Ming Shu won gold?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "taijiquan" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won silver in the year before 2010, the year Chan Ming Shu won gold?`: ```sql
SELECT "location" FROM "taijiquan" WHERE "year"<2010 AND "silver"='hei zhi hong';
## Task Generate a SQL query to answer the following question: `What is the location for the year under 2010 and the year Hei Zhi Hong won silver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "taijiquan" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location for the year under 2010 and the year Hei Zhi Hong won silver?`: ```sql
SELECT "location" FROM "taijiquan" WHERE "year">2006;
## Task Generate a SQL query to answer the following question: `Which location had a year over 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "taijiquan" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `Which location had a year over 2006?`: ```sql
SELECT "date" FROM "pre_season_friendles" WHERE "score_f_a"='2–0' AND "opponents"='walsall';
## Task Generate a SQL query to answer the following question: `Score F–A of 2–0, and a Opponents of walsall has what date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pre_season_friendles" ( "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text ); ### SQL Given the database schema, here is the SQL query that answers `Score F–A of 2–0, and a Opponents of walsall has what date?`: ```sql
SELECT "opponents" FROM "pre_season_friendles" WHERE "score_f_a"='3–0' AND "date"='31 july 2007';
## Task Generate a SQL query to answer the following question: `Score F–A of 3–0, and a Date of 31 july 2007 had what opponents?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pre_season_friendles" ( "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text ); ### SQL Given the database schema, here is the SQL query that answers `Score F–A of 3–0, and a Date of 31 july 2007 had what opponents?`: ```sql
SELECT "date" FROM "pre_season_friendles" WHERE "opponents"='sheffield wednesday';
## Task Generate a SQL query to answer the following question: `Opponents of sheffield wednesday had what date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pre_season_friendles" ( "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text ); ### SQL Given the database schema, here is the SQL query that answers `Opponents of sheffield wednesday had what date?`: ```sql
SELECT "date" FROM "pre_season_friendles" WHERE "opponents"='sheffield wednesday';
## Task Generate a SQL query to answer the following question: `Opponents of sheffield wednesday had what date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pre_season_friendles" ( "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text ); ### SQL Given the database schema, here is the SQL query that answers `Opponents of sheffield wednesday had what date?`: ```sql
SELECT "opponents" FROM "pre_season_friendles" WHERE "date"='4 august 2007';
## Task Generate a SQL query to answer the following question: `Date of 4 august 2007 had what opponents?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pre_season_friendles" ( "date" text, "opponents" text, "venue" text, "result" text, "score_f_a" text ); ### SQL Given the database schema, here is the SQL query that answers `Date of 4 august 2007 had what opponents?`: ```sql
SELECT "position" FROM "draft_picks" WHERE "player"='david laliberte';
## Task Generate a SQL query to answer the following question: `WHich Position has a Player of david laliberte?` ### 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 has a Player of david laliberte?`: ```sql
SELECT "position" FROM "draft_picks" WHERE "player"='gino pisellini';
## Task Generate a SQL query to answer the following question: `Which Position has a Player of gino pisellini?` ### 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 has a Player of gino pisellini?`: ```sql
SELECT "winning_score" FROM "lpga_tour_20" WHERE "tournament"='standard register ping' AND "runner_s_up"='kelly robbins';
## Task Generate a SQL query to answer the following question: `What is the winning score of standard register ping tournament, which has Kelly Robbins as the runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_20" ( "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 is the winning score of standard register ping tournament, which has Kelly Robbins as the runner-up?`: ```sql
SELECT "winning_score" FROM "lpga_tour_20" WHERE "date"='16 may 1993';
## Task Generate a SQL query to answer the following question: `What is the winning score of the tournament on 16 May 1993?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_20" ( "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 is the winning score of the tournament on 16 May 1993?`: ```sql
SELECT "margin_of_victory" FROM "lpga_tour_20" WHERE "date"='5 jun 1988';
## Task Generate a SQL query to answer the following question: `What is the margin of victory of the tournament on 5 Jun 1988?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_20" ( "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 is the margin of victory of the tournament on 5 Jun 1988?`: ```sql
SELECT "winning_score" FROM "lpga_tour_20" WHERE "runner_s_up"='robin walton';
## Task Generate a SQL query to answer the following question: `What is the winning scor of the tournament with Robin Walton as the runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_20" ( "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 is the winning scor of the tournament with Robin Walton as the runner-up?`: ```sql
SELECT "nhl_team" FROM "draft_picks" WHERE "college_junior_club_team_league"='shattuck-saint mary''s school (midget major aaa)';
## Task Generate a SQL query to answer the following question: `which NHL team has a College/Junior/Club Team (League) of shattuck-saint mary's school (midget major aaa)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "nationality" text, "nhl_team" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `which NHL team has a College/Junior/Club Team (League) of shattuck-saint mary's school (midget major aaa)?`: ```sql
SELECT COUNT("round") FROM "draft_picks" WHERE "nationality"='canada' AND "college_junior_club_team_league"='fort mcmurray oil barons (ajhl)';
## Task Generate a SQL query to answer the following question: `How many Rounds have a Nationality of canada, and a College/Junior/Club Team (League) of fort mcmurray oil barons (ajhl)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "nationality" text, "nhl_team" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Rounds have a Nationality of canada, and a College/Junior/Club Team (League) of fort mcmurray oil barons (ajhl)?`: ```sql
SELECT AVG("round") FROM "draft_picks" WHERE "nhl_team"='edmonton oilers' AND "player"='vyacheslav trukhno';
## Task Generate a SQL query to answer the following question: `Which Round has a NHL team of edmonton oilers and a Player of vyacheslav trukhno?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "nationality" text, "nhl_team" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Round has a NHL team of edmonton oilers and a Player of vyacheslav trukhno?`: ```sql
SELECT MIN("round") FROM "draft_picks" WHERE "nationality"='united states' AND "college_junior_club_team_league"='breck school (ushs)';
## Task Generate a SQL query to answer the following question: `Which Round has a Nationality of united states, and a College/Junior/Club Team (League) of breck school (ushs)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "nationality" text, "nhl_team" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Round has a Nationality of united states, and a College/Junior/Club Team (League) of breck school (ushs)?`: ```sql
SELECT "max_1_min_wind_mph_km_h" FROM "2010_pacific_hurricane_statistics" WHERE "min_press_mbar"='997';
## Task Generate a SQL query to answer the following question: `What is the max 1-min wind mph when the minimum press is 997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_pacific_hurricane_statistics" ( "storm_name" text, "dates_active" text, "max_1_min_wind_mph_km_h" text, "min_press_mbar" text, "damage_millions_usd" text, "deaths" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the max 1-min wind mph when the minimum press is 997?`: ```sql
SELECT "deaths" FROM "2010_pacific_hurricane_statistics" WHERE "storm_name"='darby';
## Task Generate a SQL query to answer the following question: `How many deaths occurred during Darby?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_pacific_hurricane_statistics" ( "storm_name" text, "dates_active" text, "max_1_min_wind_mph_km_h" text, "min_press_mbar" text, "damage_millions_usd" text, "deaths" text ); ### SQL Given the database schema, here is the SQL query that answers `How many deaths occurred during Darby?`: ```sql
SELECT "distance_from_jaffa" FROM "original_stations" WHERE "name_location"='jerusalem';
## Task Generate a SQL query to answer the following question: `What is the distance from Jaffa of Jerusalem station?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "original_stations" ( "name_location" text, "other_later_names" text, "operation" text, "distance_from_jaffa" text, "elevation" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the distance from Jaffa of Jerusalem station?`: ```sql
SELECT "visitor" FROM "february" WHERE "date"='february 11';
## Task Generate a SQL query to answer the following question: `What visitor has February 11 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What visitor has February 11 as the date?`: ```sql
SELECT "venue" FROM "international_goals" WHERE "competition"='friendly match';
## Task Generate a SQL query to answer the following question: `Which venue is the friendly match in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which venue is the friendly match in?`: ```sql
SELECT "result" FROM "international_goals" WHERE "competition"='friendly match' AND "venue"='seoul';
## Task Generate a SQL query to answer the following question: `What is the result of the friendly match in Seoul?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result of the friendly match in Seoul?`: ```sql
SELECT "result" FROM "international_goals" WHERE "competition"='2007 afc asian cup';
## Task Generate a SQL query to answer the following question: `What is the result of the 2007 AFC asian cup?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result of the 2007 AFC asian cup?`: ```sql
SELECT "runner_s_up" FROM "senior_pga_tour_wins_11" WHERE "margin_of_victory"='1 stroke' AND "tournament"='world seniors invitational';
## Task Generate a SQL query to answer the following question: `Which Runner(s)-up has a Margin of victory of 1 stroke, and a Tournament of world seniors invitational?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_pga_tour_wins_11" ( "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 `Which Runner(s)-up has a Margin of victory of 1 stroke, and a Tournament of world seniors invitational?`: ```sql
SELECT "date" FROM "senior_pga_tour_wins_11" WHERE "margin_of_victory"='4 strokes';
## Task Generate a SQL query to answer the following question: `Which Date has a Margin of victory of 4 strokes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_pga_tour_wins_11" ( "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 `Which Date has a Margin of victory of 4 strokes?`: ```sql
SELECT "runner_s_up" FROM "senior_pga_tour_wins_11" WHERE "tournament"='general foods pga seniors'' championship';
## Task Generate a SQL query to answer the following question: `Which Runner(s)-up has a Tournament of general foods pga seniors' championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_pga_tour_wins_11" ( "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 `Which Runner(s)-up has a Tournament of general foods pga seniors' championship?`: ```sql
SELECT "tournament" FROM "senior_pga_tour_wins_11" WHERE "margin_of_victory"='2 strokes' AND "winning_score"='−14 (68-66-68=202)';
## Task Generate a SQL query to answer the following question: `Which Tournament has a Margin of victory of 2 strokes, and a Winning score of −14 (68-66-68=202)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_pga_tour_wins_11" ( "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 `Which Tournament has a Margin of victory of 2 strokes, and a Winning score of −14 (68-66-68=202)?`: ```sql
SELECT "date" FROM "senior_pga_tour_wins_11" WHERE "winning_score"='−9 (70-64-70=203)';
## Task Generate a SQL query to answer the following question: `Which Date has a Winning score of −9 (70-64-70=203)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senior_pga_tour_wins_11" ( "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 `Which Date has a Winning score of −9 (70-64-70=203)?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "date"='february 11';
## Task Generate a SQL query to answer the following question: `What was the High points when date was February 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the High points when date was February 11?`: ```sql
SELECT "team" FROM "game_log" WHERE "high_rebounds"='popeye jones (14)' AND "record"='16-28';
## Task Generate a SQL query to answer the following question: `What was the team that has a High rebounds of popeye jones (14), and when the Record was 16-28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the team that has a High rebounds of popeye jones (14), and when the Record was 16-28?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "date"='february 27';
## Task Generate a SQL query to answer the following question: `What is the Location Attendance when the Date was February 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Location Attendance when the Date was February 27?`: ```sql
SELECT SUM("game") FROM "game_log" WHERE "record"='17-29';
## Task Generate a SQL query to answer the following question: `What is the score of the scores when Game had a Record of 17-29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the scores when Game had a Record of 17-29?`: ```sql
SELECT "skip" FROM "provincial_champions" WHERE "lead"='lisa weagle';
## Task Generate a SQL query to answer the following question: `Who has the lead on Lisa Weagle?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provincial_champions" ( "year" real, "event" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has the lead on Lisa Weagle?`: ```sql
SELECT "event" FROM "provincial_champions" WHERE "skip"='john morris' AND "second"='matt st. louis';
## Task Generate a SQL query to answer the following question: `Which event shows Matt St. Louis in second and a skip of John Morris?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provincial_champions" ( "year" real, "event" text, "skip" text, "third" text, "second" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which event shows Matt St. Louis in second and a skip of John Morris?`: ```sql
SELECT MAX("attempts") FROM "rushing" WHERE "net_yards"<631 AND "touchdowns"=2;
## Task Generate a SQL query to answer the following question: `What are the highest attempts that have net yards less than 631, and 2 for the touchdowns?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rushing" ( "player" text, "attempts" real, "net_yards" real, "yards_per_attempt" real, "touchdowns" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the highest attempts that have net yards less than 631, and 2 for the touchdowns?`: ```sql
SELECT AVG("net_yards") FROM "rushing" WHERE "touchdowns"=9 AND "attempts"=145 AND "yards_per_attempt">4.8;
## Task Generate a SQL query to answer the following question: `What are the average net yards that have 9 as the touchdowns, 145 as the attempts, and yards per attempt greater than 4.8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rushing" ( "player" text, "attempts" real, "net_yards" real, "yards_per_attempt" real, "touchdowns" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the average net yards that have 9 as the touchdowns, 145 as the attempts, and yards per attempt greater than 4.8?`: ```sql
SELECT SUM("yards_per_attempt") FROM "rushing" WHERE "net_yards">631;
## Task Generate a SQL query to answer the following question: `How many yards per attempt have net yards greater than 631?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rushing" ( "player" text, "attempts" real, "net_yards" real, "yards_per_attempt" real, "touchdowns" real ); ### SQL Given the database schema, here is the SQL query that answers `How many yards per attempt have net yards greater than 631?`: ```sql
SELECT MAX("touchdowns") FROM "rushing" WHERE "net_yards">631 AND "attempts"<145;
## Task Generate a SQL query to answer the following question: `What are the highest touchdowns that have net yards greater than 631, with attempts less than 145?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rushing" ( "player" text, "attempts" real, "net_yards" real, "yards_per_attempt" real, "touchdowns" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the highest touchdowns that have net yards greater than 631, with attempts less than 145?`: ```sql
SELECT "slalom" FROM "season_standings" WHERE "season">1994 AND "overall">22;
## Task Generate a SQL query to answer the following question: `What is the value for Slalom in seasons later than 1994 and overall value greater than 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_standings" ( "season" real, "overall" real, "slalom" text, "giant_slalom" real, "super_g" text, "downhill" text, "combined" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the value for Slalom in seasons later than 1994 and overall value greater than 22?`: ```sql
SELECT COUNT("season") FROM "season_standings" WHERE "super_g"='2' AND "overall"=3;
## Task Generate a SQL query to answer the following question: `How many seasons had a Super G of 2 and overall of 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_standings" ( "season" real, "overall" real, "slalom" text, "giant_slalom" real, "super_g" text, "downhill" text, "combined" text ); ### SQL Given the database schema, here is the SQL query that answers `How many seasons had a Super G of 2 and overall of 3?`: ```sql
SELECT "opponent" FROM "singles_13_6_7" WHERE "tournament"='auckland, new zealand';
## Task Generate a SQL query to answer the following question: `Who was the Opponent in the Auckland, New Zealand Tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_13_6_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Opponent in the Auckland, New Zealand Tournament?`: ```sql
SELECT "date" FROM "singles_13_6_7" WHERE "opponent"='rafael nadal';
## Task Generate a SQL query to answer the following question: `On what Date was Rafael Nadal the Opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_13_6_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `On what Date was Rafael Nadal the Opponent?`: ```sql
SELECT "opponent" FROM "singles_13_6_7" WHERE "surface"='hard (i)';
## Task Generate a SQL query to answer the following question: `Who was the Opponent on a Hard (i) Surface?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_13_6_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Opponent on a Hard (i) Surface?`: ```sql
SELECT "score" FROM "singles_13_6_7" WHERE "tournament"='auckland, new zealand';
## Task Generate a SQL query to answer the following question: `What was the Score at the Auckland, New Zealand Tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_13_6_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Score at the Auckland, New Zealand Tournament?`: ```sql
SELECT "team" FROM "teams_and_venues" WHERE "venue"='dinamo, brest';
## Task Generate a SQL query to answer the following question: `What team plays in Dinamo, Brest?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_1996" text ); ### SQL Given the database schema, here is the SQL query that answers `What team plays in Dinamo, Brest?`: ```sql