output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MIN("round") FROM "nfl_draft" WHERE "position"='linebacker' AND "player"='thomas henderson';
## Task Generate a SQL query to answer the following question: `What is the lowest Round, when Position is Linebacker, and when Player is Thomas Henderson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Round, when Position is Linebacker, and when Player is Thomas Henderson?`: ```sql
SELECT COUNT("pick_num") FROM "nfl_draft" WHERE "college"='oklahoma' AND "round"<4;
## Task Generate a SQL query to answer the following question: `What is the total number of Pick #, when College is Oklahoma, and when Round is less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Pick #, when College is Oklahoma, and when Round is less than 4?`: ```sql
SELECT "team" FROM "overview" WHERE "head_coach"='michalis pamboris';
## Task Generate a SQL query to answer the following question: `Which Team has a Head Coach of michalis pamboris?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overview" ( "team" text, "head_coach" text, "team_captain" text, "venue" text, "capacity" real, "kitmaker" text, "shirt_sponsor" text, "club_chairman" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Team has a Head Coach of michalis pamboris?`: ```sql
SELECT MAX("capacity") FROM "overview" WHERE "kitmaker"='umbro';
## Task Generate a SQL query to answer the following question: `What is umbro's highest capacity?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overview" ( "team" text, "head_coach" text, "team_captain" text, "venue" text, "capacity" real, "kitmaker" text, "shirt_sponsor" text, "club_chairman" text ); ### SQL Given the database schema, here is the SQL query that answers `What is umbro's highest capacity?`: ```sql
SELECT "venue" FROM "overview" WHERE "kitmaker"='lotto' AND "team"='apoel';
## Task Generate a SQL query to answer the following question: `Which Venue has a Kitmaker of lotto, and a Team of apoel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "overview" ( "team" text, "head_coach" text, "team_captain" text, "venue" text, "capacity" real, "kitmaker" text, "shirt_sponsor" text, "club_chairman" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Venue has a Kitmaker of lotto, and a Team of apoel?`: ```sql
SELECT "drawn" FROM "league_table" WHERE "tries_for"='58';
## Task Generate a SQL query to answer the following question: `What is the drawn number when there are 58 tries?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_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 `What is the drawn number when there are 58 tries?`: ```sql
SELECT "played" FROM "league_table" WHERE "tries_against"='correct as of 18:13 26 may 2008';
## Task Generate a SQL query to answer the following question: `What is the played number when the tries against shows correct as of 18:13 26 May 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_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 `What is the played number when the tries against shows correct as of 18:13 26 May 2008?`: ```sql
SELECT "drawn" FROM "league_table" WHERE "points_for"='402';
## Task Generate a SQL query to answer the following question: `What is the drawn when there are 402 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_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 `What is the drawn when there are 402 points?`: ```sql
SELECT "try_bonus" FROM "league_table" WHERE "points_against"='492';
## Task Generate a SQL query to answer the following question: `What is the try bonus when there are 492 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_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 `What is the try bonus when there are 492 points?`: ```sql
SELECT "points_against" FROM "league_table" WHERE "tries_against"='53';
## Task Generate a SQL query to answer the following question: `What is the number of points against when the tries against was 53?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_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 `What is the number of points against when the tries against was 53?`: ```sql
SELECT "played" FROM "league_table" WHERE "points_against"='179';
## Task Generate a SQL query to answer the following question: `What is the played number when the points against is 179?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_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 `What is the played number when the points against is 179?`: ```sql
SELECT MAX("total_made") FROM "setting_the_nba_finals_3pt_record" WHERE "percent_made">0.166 AND "3_pm_a"='3-5';
## Task Generate a SQL query to answer the following question: `what total made has a percent made greater than 0.166 and a 3pm-a of 3-5` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "setting_the_nba_finals_3pt_record" ( "game" real, "3_pm_a" text, "percent_made" real, "total_made" real, "total_attempted" real, "series_percent" real ); ### SQL Given the database schema, here is the SQL query that answers `what total made has a percent made greater than 0.166 and a 3pm-a of 3-5`: ```sql
SELECT SUM("total_made") FROM "setting_the_nba_finals_3pt_record" WHERE "3_pm_a"='5-5' AND "total_attempted"<14;
## Task Generate a SQL query to answer the following question: `what is the total made with a 3pm-a of 5-5 and a total attempted less than 14` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "setting_the_nba_finals_3pt_record" ( "game" real, "3_pm_a" text, "percent_made" real, "total_made" real, "total_attempted" real, "series_percent" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the total made with a 3pm-a of 5-5 and a total attempted less than 14`: ```sql
SELECT COUNT("series_percent") FROM "setting_the_nba_finals_3pt_record" WHERE "total_attempted"<49 AND "percent_made"=0.777;
## Task Generate a SQL query to answer the following question: `what is the total series percent that has total attempted less than 49, and a percent made of 0.777` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "setting_the_nba_finals_3pt_record" ( "game" real, "3_pm_a" text, "percent_made" real, "total_made" real, "total_attempted" real, "series_percent" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the total series percent that has total attempted less than 49, and a percent made of 0.777`: ```sql
SELECT COUNT("total_attempted") FROM "setting_the_nba_finals_3pt_record" WHERE "total_made"=16;
## Task Generate a SQL query to answer the following question: `what is the total attempted with a total made 16` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "setting_the_nba_finals_3pt_record" ( "game" real, "3_pm_a" text, "percent_made" real, "total_made" real, "total_attempted" real, "series_percent" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the total attempted with a total made 16`: ```sql
SELECT SUM("district") FROM "senate" WHERE "took_office">1981 AND "senator"='cyndi taylor krier';
## Task Generate a SQL query to answer the following question: `What is the sum of District, when Took Office is greater than 1981, and when Senator is Cyndi Taylor Krier?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate" ( "senator" text, "party" text, "district" real, "home_town" text, "took_office" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of District, when Took Office is greater than 1981, and when Senator is Cyndi Taylor Krier?`: ```sql
SELECT "party" FROM "senate" WHERE "district"<10 AND "took_office"<1991 AND "home_town"='mount pleasant';
## Task Generate a SQL query to answer the following question: `What is Party, when District is less than 10, when Took Office is less than 1991, and when Home Town is Mount Pleasant?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate" ( "senator" text, "party" text, "district" real, "home_town" text, "took_office" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Party, when District is less than 10, when Took Office is less than 1991, and when Home Town is Mount Pleasant?`: ```sql
SELECT MIN("took_office") FROM "senate" WHERE "senator"='eddie bernice johnson' AND "district">23;
## Task Generate a SQL query to answer the following question: `What is the lowest Took Office, when Senator is Eddie Bernice Johnson, and when District is greater than 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate" ( "senator" text, "party" text, "district" real, "home_town" text, "took_office" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Took Office, when Senator is Eddie Bernice Johnson, and when District is greater than 23?`: ```sql
SELECT "period" FROM "penalty_summary" WHERE "player"='stanislav chistov';
## Task Generate a SQL query to answer the following question: `In which period did Stanislav Chistov get a penalty?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "penalty_summary" ( "period" text, "team" text, "player" text, "penalty" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `In which period did Stanislav Chistov get a penalty?`: ```sql
SELECT "penalty" FROM "penalty_summary" WHERE "time"='29:17';
## Task Generate a SQL query to answer the following question: `What was a penalty given for at time 29:17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "penalty_summary" ( "period" text, "team" text, "player" text, "penalty" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was a penalty given for at time 29:17?`: ```sql
SELECT "team" FROM "penalty_summary" WHERE "time"='32:17';
## Task Generate a SQL query to answer the following question: `What team was the player that received a penalty at time 32:17 playing for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "penalty_summary" ( "period" text, "team" text, "player" text, "penalty" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What team was the player that received a penalty at time 32:17 playing for?`: ```sql
SELECT "team" FROM "penalty_summary" WHERE "penalty"='roughing' AND "player"='ryan callahan';
## Task Generate a SQL query to answer the following question: `What team was Ryan Callahan, who received a penalty for roughing, playing for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "penalty_summary" ( "period" text, "team" text, "player" text, "penalty" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What team was Ryan Callahan, who received a penalty for roughing, playing for?`: ```sql
SELECT "head_coach" FROM "malaysia_xi" WHERE "opponent"='arsenal';
## Task Generate a SQL query to answer the following question: `Who was the head coach when the opponent was Arsenal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "malaysia_xi" ( "date" text, "location" text, "head_coach" text, "opponent" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the head coach when the opponent was Arsenal?`: ```sql
SELECT "opponent" FROM "malaysia_xi" WHERE "head_coach"='b. sathianathan';
## Task Generate a SQL query to answer the following question: `Who was the opponent when the head coach was B. Sathianathan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "malaysia_xi" ( "date" text, "location" text, "head_coach" text, "opponent" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent when the head coach was B. Sathianathan?`: ```sql
SELECT "date" FROM "malaysia_xi" WHERE "opponent"='arsenal';
## Task Generate a SQL query to answer the following question: `When was the opponent Arsenal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "malaysia_xi" ( "date" text, "location" text, "head_coach" text, "opponent" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the opponent Arsenal?`: ```sql
SELECT "result" FROM "malaysia_xi" WHERE "opponent"='arsenal';
## Task Generate a SQL query to answer the following question: `What was the result when the opponent was Arsenal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "malaysia_xi" ( "date" text, "location" text, "head_coach" text, "opponent" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result when the opponent was Arsenal?`: ```sql
SELECT MAX("neutral_losses") FROM "atlantic_coast_conference_10_3_1" WHERE "neutral_wins"=0 AND "home_losses"=0 AND "away_losses"<0;
## Task Generate a SQL query to answer the following question: `What is the highest neutral losses of the institution with 0 neutral wins, 0 home losses, and less than 0 away losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlantic_coast_conference_10_3_1" ( "institution" text, "wins" real, "loss" real, "home_wins" real, "home_losses" real, "away_wins" real, "away_losses" real, "neutral_wins" real, "neutral_losses" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest neutral losses of the institution with 0 neutral wins, 0 home losses, and less than 0 away losses?`: ```sql
SELECT SUM("home_wins") FROM "atlantic_coast_conference_10_3_1" WHERE "institution"='boston college eagles' AND "wins">6;
## Task Generate a SQL query to answer the following question: `What is the sum of the home wins of the Boston College Eagles, which has more than 6 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlantic_coast_conference_10_3_1" ( "institution" text, "wins" real, "loss" real, "home_wins" real, "home_losses" real, "away_wins" real, "away_losses" real, "neutral_wins" real, "neutral_losses" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the home wins of the Boston College Eagles, which has more than 6 wins?`: ```sql
SELECT MAX("home_wins") FROM "atlantic_coast_conference_10_3_1" WHERE "away_losses"=0 AND "wins">6;
## Task Generate a SQL query to answer the following question: `What is the highest number of home wins of the institution with 0 away losses and more than 6 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlantic_coast_conference_10_3_1" ( "institution" text, "wins" real, "loss" real, "home_wins" real, "home_losses" real, "away_wins" real, "away_losses" real, "neutral_wins" real, "neutral_losses" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of home wins of the institution with 0 away losses and more than 6 wins?`: ```sql
SELECT MAX("neutral_losses") FROM "atlantic_coast_conference_10_3_1" WHERE "institution"='florida state seminoles' AND "away_losses"<5;
## Task Generate a SQL query to answer the following question: `What is the highest number of neutral losses of the Florida State Seminoles, which has less than 5 away losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlantic_coast_conference_10_3_1" ( "institution" text, "wins" real, "loss" real, "home_wins" real, "home_losses" real, "away_wins" real, "away_losses" real, "neutral_wins" real, "neutral_losses" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of neutral losses of the Florida State Seminoles, which has less than 5 away losses?`: ```sql
SELECT MAX("wins") FROM "atlantic_coast_conference_10_3_1" WHERE "neutral_wins">0 AND "away_wins"<2;
## Task Generate a SQL query to answer the following question: `What is the highest number of wins of the institution with more than 0 neutral wins and less than 2 away wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlantic_coast_conference_10_3_1" ( "institution" text, "wins" real, "loss" real, "home_wins" real, "home_losses" real, "away_wins" real, "away_losses" real, "neutral_wins" real, "neutral_losses" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of wins of the institution with more than 0 neutral wins and less than 2 away wins?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='evangelista cyborg';
## Task Generate a SQL query to answer the following question: `What is the Record when Evangelista Cyborg was the opponent?` ### 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, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Record when Evangelista Cyborg was the opponent?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "location"='brazil';
## Task Generate a SQL query to answer the following question: `What is the Method for Brazil?` ### 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, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Method for Brazil?`: ```sql
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "method"='submission (punches)';
## Task Generate a SQL query to answer the following question: `What round was the method submission (punches)?` ### 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, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What round was the method submission (punches)?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "record"='3-2';
## Task Generate a SQL query to answer the following question: `What is the method when the record was 3-2?` ### 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, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the method when the record was 3-2?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"=3;
## Task Generate a SQL query to answer the following question: `What is the method when the round shows 3?` ### 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, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the method when the round shows 3?`: ```sql
SELECT "run_3" FROM "results" WHERE "rank"='12';
## Task Generate a SQL query to answer the following question: `What was the run 3 for the team in rank 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the run 3 for the team in rank 12?`: ```sql
SELECT "run_3" FROM "results" WHERE "run_1"='1:17.6';
## Task Generate a SQL query to answer the following question: `What was the run 3 for the team with a run 1 of 1:17.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the run 3 for the team with a run 1 of 1:17.6?`: ```sql
SELECT "rank" FROM "results" WHERE "run_2"='1:20.8' AND "run_4"='1:23.0';
## Task Generate a SQL query to answer the following question: `What was the rank of the team with a run 2 of 1:20.8 and a run 4 of 1:23.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the rank of the team with a run 2 of 1:20.8 and a run 4 of 1:23.0?`: ```sql
SELECT "run_1" FROM "results" WHERE "run_3"='1:21.4' AND "run_4"='1:23.0';
## Task Generate a SQL query to answer the following question: `What was the run 1 for the team with a run 3 of 1:21.4 and a run 4 of 1:23.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the run 1 for the team with a run 3 of 1:21.4 and a run 4 of 1:23.0?`: ```sql
SELECT "team" FROM "results" WHERE "run_4"='1:24.4';
## Task Generate a SQL query to answer the following question: `Which team had a run 4 of 1:24.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "run_4" text, "final" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team had a run 4 of 1:24.4?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "opponent"='oakland raiders';
## Task Generate a SQL query to answer the following question: `What is the Attendance at the game against the Oakland Raiders?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Attendance at the game against the Oakland Raiders?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "week"=10;
## Task Generate a SQL query to answer the following question: `What was the Attendance in Week 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Attendance in Week 10?`: ```sql
SELECT "principal_activities" FROM "subsidiaries" WHERE "incorporated_in"='france';
## Task Generate a SQL query to answer the following question: `Which Principal activities have an Incorporated in of france?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subsidiaries" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Principal activities have an Incorporated in of france?`: ```sql
SELECT "type" FROM "subsidiaries" WHERE "incorporated_in"='netherlands' AND "principal_activities"='airline' AND "company"='transavia.com';
## Task Generate a SQL query to answer the following question: `Which Type has an Incorporated in of netherlands, a Principal activities of airline, and a Company of transavia.com?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subsidiaries" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Type has an Incorporated in of netherlands, a Principal activities of airline, and a Company of transavia.com?`: ```sql
SELECT "group_s_equity_shareholding" FROM "subsidiaries" WHERE "company"='epcor';
## Task Generate a SQL query to answer the following question: `Which Group's Equity Shareholding has a Company of epcor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subsidiaries" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Group's Equity Shareholding has a Company of epcor?`: ```sql
SELECT "incorporated_in" FROM "subsidiaries" WHERE "group_s_equity_shareholding"='100%' AND "principal_activities"='flight academy';
## Task Generate a SQL query to answer the following question: `Which Incorporated in has a Group's Equity Shareholding of 100%, and a Principal activities of flight academy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subsidiaries" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Incorporated in has a Group's Equity Shareholding of 100%, and a Principal activities of flight academy?`: ```sql
SELECT "type" FROM "subsidiaries" WHERE "company"='epcor';
## Task Generate a SQL query to answer the following question: `Which Type has a Company of epcor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subsidiaries" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Type has a Company of epcor?`: ```sql
SELECT "type" FROM "subsidiaries" WHERE "principal_activities"='health services';
## Task Generate a SQL query to answer the following question: `Which Type has a Principal activities of health services?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subsidiaries" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Type has a Principal activities of health services?`: ```sql
SELECT "2_f" FROM "simple_present_tense" WHERE "3_f"='she khae';
## Task Generate a SQL query to answer the following question: `What is the 2F of she khae?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "simple_present_tense" ( "verb" text, "2_vf" text, "2_f" text, "3_f" text, "2_3_p" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2F of she khae?`: ```sql
SELECT "3_f" FROM "simple_present_tense" WHERE "2_f"='tumi khao';
## Task Generate a SQL query to answer the following question: `If 2F is tumi khao, what is 3F?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "simple_present_tense" ( "verb" text, "2_vf" text, "2_f" text, "3_f" text, "2_3_p" text ); ### SQL Given the database schema, here is the SQL query that answers `If 2F is tumi khao, what is 3F?`: ```sql
SELECT "2_vf" FROM "simple_present_tense" WHERE "verb"='dhoa';
## Task Generate a SQL query to answer the following question: `For the verb dhoa, what is the 2VF?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "simple_present_tense" ( "verb" text, "2_vf" text, "2_f" text, "3_f" text, "2_3_p" text ); ### SQL Given the database schema, here is the SQL query that answers `For the verb dhoa, what is the 2VF?`: ```sql
SELECT "subject" FROM "electoral_history" WHERE "election"='general' AND "office"='queen anne''s county state''s attorney';
## Task Generate a SQL query to answer the following question: `What is the name of the subject who ran in the general election for Queen Anne's County State's Attorney?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "electoral_history" ( "year" real, "office" text, "election" text, "subject" text, "party" text, "votes" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the subject who ran in the general election for Queen Anne's County State's Attorney?`: ```sql
SELECT "writer" FROM "list_of_doctor_who_audio_releases" WHERE "company"='bbv' AND "title"='the year of the cat';
## Task Generate a SQL query to answer the following question: `Who was the writer of The Year of the Cat from the BBV?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_doctor_who_audio_releases" ( "title" text, "writer" text, "format" text, "company" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the writer of The Year of the Cat from the BBV?`: ```sql
SELECT COUNT("goals_for") FROM "final_table" WHERE "drawn"=10;
## Task Generate a SQL query to answer the following question: `How many Goals For have Drawn of 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Goals For have Drawn of 10?`: ```sql
SELECT MAX("lost") FROM "final_table" WHERE "drawn">12 AND "goals_against"=54;
## Task Generate a SQL query to answer the following question: `Which Lost has Drawn larger than 12, and Goals Against of 54?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Lost has Drawn larger than 12, and Goals Against of 54?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='superbrawl 21';
## Task Generate a SQL query to answer the following question: `What is the record for the Superbrawl 21?` ### 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, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record for the Superbrawl 21?`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "opponent"='ricky shivers';
## Task Generate a SQL query to answer the following question: `What location shows round was 1, and against Ricky Shivers?` ### 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, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What location shows round was 1, and against Ricky Shivers?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "round">2 AND "res"='loss' AND "record"='15–3';
## Task Generate a SQL query to answer the following question: `What is the method for a match with a Round larger than 2, he took a loss, and 15–3 was the record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the method for a match with a Round larger than 2, he took a loss, and 15–3 was the record?`: ```sql
SELECT "position" FROM "cfl_draft" WHERE "pick"='11 (via calgary)';
## Task Generate a SQL query to answer the following question: `Which Position has a Pick of 11 (via calgary)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cfl_draft" ( "round" real, "pick" text, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Position has a Pick of 11 (via calgary)?`: ```sql
SELECT SUM("round") FROM "cfl_draft" WHERE "pick"='25 (via hamilton)';
## Task Generate a SQL query to answer the following question: `Which Round has a Pick of 25 (via hamilton)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cfl_draft" ( "round" real, "pick" text, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Round has a Pick of 25 (via hamilton)?`: ```sql
SELECT "school_club_team" FROM "cfl_draft" WHERE "round">3 AND "player"='sammy okpro';
## Task Generate a SQL query to answer the following question: `Which School/Club Team has a Round larger than 3, and a Player of sammy okpro?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cfl_draft" ( "round" real, "pick" text, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which School/Club Team has a Round larger than 3, and a Player of sammy okpro?`: ```sql
SELECT AVG("round") FROM "cfl_draft" WHERE "player"='sammy okpro';
## Task Generate a SQL query to answer the following question: `Which Round has a Player of sammy okpro?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cfl_draft" ( "round" real, "pick" text, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Round has a Player of sammy okpro?`: ```sql
SELECT "position" FROM "cfl_draft" WHERE "round"=4 AND "school_club_team"='concordia';
## Task Generate a SQL query to answer the following question: `Which Position has a Round of 4, and a School/Club Team of concordia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cfl_draft" ( "round" real, "pick" text, "player" text, "position" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Position has a Round of 4, and a School/Club Team of concordia?`: ```sql
SELECT "score" FROM "regular_season" WHERE "record"='29–23–13';
## Task Generate a SQL query to answer the following question: `What is the Score of the game with a Record of 29–23–13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Score of the game with a Record of 29–23–13?`: ```sql
SELECT "visitor" FROM "regular_season" WHERE "record"='21–17–13';
## Task Generate a SQL query to answer the following question: `What is the Visitor of the game with a Record of 21–17–13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Visitor of the game with a Record of 21–17–13?`: ```sql
SELECT "visitor" FROM "regular_season" WHERE "date"='december 25';
## Task Generate a SQL query to answer the following question: `What is the Visitor of the game on December 25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Visitor of the game on December 25?`: ```sql
SELECT "date" FROM "regular_season" WHERE "record"='8–10–6';
## Task Generate a SQL query to answer the following question: `What is the Date of the game with a Record of 8–10–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date of the game with a Record of 8–10–6?`: ```sql
SELECT "date" FROM "regular_season" WHERE "record"='1–2–4';
## Task Generate a SQL query to answer the following question: `What is the Date of the game with a Record of 1–2–4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date of the game with a Record of 1–2–4?`: ```sql
SELECT "date" FROM "regular_season" WHERE "record"='27–21–13';
## Task Generate a SQL query to answer the following question: `What is the Date of the game with a Record of 27–21–13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date of the game with a Record of 27–21–13?`: ```sql
SELECT "year_s_won" FROM "made_the_cut" WHERE "total"<292 AND "player"='hale irwin';
## Task Generate a SQL query to answer the following question: `Which Year(s) won has a Total smaller than 292, and a Player of hale irwin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year(s) won has a Total smaller than 292, and a Player of hale irwin?`: ```sql
SELECT "to_par" FROM "made_the_cut" WHERE "player"='fuzzy zoeller';
## Task Generate a SQL query to answer the following question: `What is fuzzy zoeller's to par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What is fuzzy zoeller's to par?`: ```sql
SELECT "to_par" FROM "made_the_cut" WHERE "year_s_won"='1982';
## Task Generate a SQL query to answer the following question: `What To par was won in 1982?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What To par was won in 1982?`: ```sql
SELECT "to_par" FROM "made_the_cut" WHERE "player"='curtis strange';
## Task Generate a SQL query to answer the following question: `What is curtis strange's to par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What is curtis strange's to par?`: ```sql
SELECT "score" FROM "regular_season" WHERE "date"='november 18';
## Task Generate a SQL query to answer the following question: `WHAT IS THE SCORE WITH A DATE OF NOVEMBER 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE SCORE WITH A DATE OF NOVEMBER 18?`: ```sql
SELECT "visitor" FROM "regular_season" WHERE "date"='february 9';
## Task Generate a SQL query to answer the following question: `WHAT IS THE VISITOR FOR FEBRUARY 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE VISITOR FOR FEBRUARY 9?`: ```sql
SELECT "place" FROM "first_round" WHERE "score"<70;
## Task Generate a SQL query to answer the following question: `What is the place of the player who scored less than 70?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the place of the player who scored less than 70?`: ```sql
SELECT "player" FROM "round_six" WHERE "pick_num">38 AND "cfl_team"='saskatchewan';
## Task Generate a SQL query to answer the following question: `Which player was chosen by Saskatchewan in a pick larger than 38?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_six" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player was chosen by Saskatchewan in a pick larger than 38?`: ```sql
SELECT SUM("points") FROM "play_offs" WHERE "assists"=7 AND "games"=11 AND "goals"<6;
## Task Generate a SQL query to answer the following question: `If the goals scored were below 6, 11 games were played, and there were 7 assists, what's the sum of points with games meeting these criteria?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "play_offs" ( "player" text, "club" text, "games" real, "goals" real, "assists" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `If the goals scored were below 6, 11 games were played, and there were 7 assists, what's the sum of points with games meeting these criteria?`: ```sql
SELECT MAX("games") FROM "play_offs" WHERE "assists">10;
## Task Generate a SQL query to answer the following question: `What's the highest amount of Games recorded that have more than 10 assists?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "play_offs" ( "player" text, "club" text, "games" real, "goals" real, "assists" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the highest amount of Games recorded that have more than 10 assists?`: ```sql
SELECT "updated_in_past_30_days" FROM "general_information_feature_comparison" WHERE "registration"='open to people 13 and over';
## Task Generate a SQL query to answer the following question: `What is Updated In Past 30 Days, when Registration is "Open to people 13 and over"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_information_feature_comparison" ( "name" text, "year_began" text, "s_registered_user" text, "updated_in_past_30_days" text, "registration" text, "ability_to_syndicate_off_site_feeds" text, "userpics_free" text, "userpics_paid" text, "monthly_cost_for_paid_account" text, "yearly_cost_for_paid_account" text, "permanent_account" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Updated In Past 30 Days, when Registration is "Open to people 13 and over"?`: ```sql
SELECT "permanent_account" FROM "general_information_feature_comparison" WHERE "updated_in_past_30_days"='10324';
## Task Generate a SQL query to answer the following question: `What is Permanent Account, when Updated In Past 30 Days is 10324?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_information_feature_comparison" ( "name" text, "year_began" text, "s_registered_user" text, "updated_in_past_30_days" text, "registration" text, "ability_to_syndicate_off_site_feeds" text, "userpics_free" text, "userpics_paid" text, "monthly_cost_for_paid_account" text, "yearly_cost_for_paid_account" text, "permanent_account" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Permanent Account, when Updated In Past 30 Days is 10324?`: ```sql
SELECT "userpics_free" FROM "general_information_feature_comparison" WHERE "registration"='open' AND "yearly_cost_for_paid_account"='unknown' AND "name"='kraslan';
## Task Generate a SQL query to answer the following question: `What is Userpics Free, when Registration is Open, when Yearly Cost For Paid Account is "unknown", and when Name is Kraslan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_information_feature_comparison" ( "name" text, "year_began" text, "s_registered_user" text, "updated_in_past_30_days" text, "registration" text, "ability_to_syndicate_off_site_feeds" text, "userpics_free" text, "userpics_paid" text, "monthly_cost_for_paid_account" text, "yearly_cost_for_paid_account" text, "permanent_account" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Userpics Free, when Registration is Open, when Yearly Cost For Paid Account is "unknown", and when Name is Kraslan?`: ```sql
SELECT "userpics_free" FROM "general_information_feature_comparison" WHERE "monthly_cost_for_paid_account"='unknown' AND "s_registered_user"='2340';
## Task Generate a SQL query to answer the following question: `What is Userpics Free, when Monthly Cost For Paid Account is "unknown", and when S Registered User is 2340?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_information_feature_comparison" ( "name" text, "year_began" text, "s_registered_user" text, "updated_in_past_30_days" text, "registration" text, "ability_to_syndicate_off_site_feeds" text, "userpics_free" text, "userpics_paid" text, "monthly_cost_for_paid_account" text, "yearly_cost_for_paid_account" text, "permanent_account" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Userpics Free, when Monthly Cost For Paid Account is "unknown", and when S Registered User is 2340?`: ```sql
SELECT "yearly_cost_for_paid_account" FROM "general_information_feature_comparison" WHERE "monthly_cost_for_paid_account"='5 usd' AND "userpics_paid"='50';
## Task Generate a SQL query to answer the following question: `What is Yearly Cost For Paid Account, when Montly Cost For Paid Account is 5 USD, and when Userpics Paid is 50?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_information_feature_comparison" ( "name" text, "year_began" text, "s_registered_user" text, "updated_in_past_30_days" text, "registration" text, "ability_to_syndicate_off_site_feeds" text, "userpics_free" text, "userpics_paid" text, "monthly_cost_for_paid_account" text, "yearly_cost_for_paid_account" text, "permanent_account" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Yearly Cost For Paid Account, when Montly Cost For Paid Account is 5 USD, and when Userpics Paid is 50?`: ```sql
SELECT "s_registered_user" FROM "general_information_feature_comparison" WHERE "userpics_free"='6 [free] or 15 [plus]';
## Task Generate a SQL query to answer the following question: `What is the S Registered User, when Userpics Free is 6 [free] or 15 [plus]?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "general_information_feature_comparison" ( "name" text, "year_began" text, "s_registered_user" text, "updated_in_past_30_days" text, "registration" text, "ability_to_syndicate_off_site_feeds" text, "userpics_free" text, "userpics_paid" text, "monthly_cost_for_paid_account" text, "yearly_cost_for_paid_account" text, "permanent_account" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the S Registered User, when Userpics Free is 6 [free] or 15 [plus]?`: ```sql
SELECT "venue" FROM "international_goals" WHERE "date"='2003-08-13';
## Task Generate a SQL query to answer the following question: `What is Venue, when Date is "2003-08-13"?` ### 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 Venue, when Date is "2003-08-13"?`: ```sql
SELECT "score" FROM "international_goals" WHERE "date"='2000-05-23';
## Task Generate a SQL query to answer the following question: `What is Score, when Date is "2000-05-23"?` ### 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 Score, when Date is "2000-05-23"?`: ```sql
SELECT "result" FROM "international_goals" WHERE "date"='2000-05-23';
## Task Generate a SQL query to answer the following question: `What is Result, when Date is "2000-05-23"?` ### 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 Result, when Date is "2000-05-23"?`: ```sql
SELECT "competition" FROM "international_goals" WHERE "date"='1999-08-07';
## Task Generate a SQL query to answer the following question: `What is Competition, when Date is "1999-08-07"?` ### 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 Competition, when Date is "1999-08-07"?`: ```sql
SELECT "week" FROM "singles" WHERE "winners"='serena williams 6–1, 6–7(7), 6–3';
## Task Generate a SQL query to answer the following question: `In what Week was Serena Williams 6–1, 6–7(7), 6–3 the Winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winners" text, "finalists" text, "semifinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Week was Serena Williams 6–1, 6–7(7), 6–3 the Winner?`: ```sql
SELECT "finalists" FROM "singles" WHERE "surface"='hard' AND "winners"='serena williams 6–1, 6–7(7), 6–3';
## Task Generate a SQL query to answer the following question: `Who was the Finalist on a Hard Surface with Winner Serena Williams 6–1, 6–7(7), 6–3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winners" text, "finalists" text, "semifinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Finalist on a Hard Surface with Winner Serena Williams 6–1, 6–7(7), 6–3?`: ```sql
SELECT "week" FROM "singles" WHERE "tournament"='rome';
## Task Generate a SQL query to answer the following question: `In what Week is the Rome Tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winners" text, "finalists" text, "semifinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Week is the Rome Tournament?`: ```sql
SELECT "region" FROM "release_history" WHERE "label"='zzt' AND "date"='27 september 2004';
## Task Generate a SQL query to answer the following question: `Which regio has a label of zzt and a date of 27 september 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `Which regio has a label of zzt and a date of 27 september 2004?`: ```sql
SELECT "catalog" FROM "release_history" WHERE "date"='24 march 2006';
## Task Generate a SQL query to answer the following question: `Which catalog has a date of 24 march 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `Which catalog has a date of 24 march 2006?`: ```sql
SELECT "format" FROM "release_history" WHERE "region"='united kingdom';
## Task Generate a SQL query to answer the following question: `Which format has a region of united kingdom?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `Which format has a region of united kingdom?`: ```sql
SELECT "date" FROM "release_history" WHERE "region"='united kingdom';
## Task Generate a SQL query to answer the following question: `Which date has a region of united kingdom?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has a region of united kingdom?`: ```sql
SELECT "region" FROM "release_history" WHERE "date"='24 march 2006';
## Task Generate a SQL query to answer the following question: `Which regio has a date of 24 march 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); ### SQL Given the database schema, here is the SQL query that answers `Which regio has a date of 24 march 2006?`: ```sql
SELECT "a330" FROM "airbus_jetliners_1972_1994" WHERE "a310"='b10';
## Task Generate a SQL query to answer the following question: `What is the A330 for A310 B10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "airbus_jetliners_1972_1994" ( "model" text, "a300" text, "a310" text, "a320" text, "a330" text, "a340" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the A330 for A310 B10?`: ```sql
SELECT "a330" FROM "airbus_jetliners_1972_1994" WHERE "a310"='wide';
## Task Generate a SQL query to answer the following question: `What is the A330 and the A310 wide?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "airbus_jetliners_1972_1994" ( "model" text, "a300" text, "a310" text, "a320" text, "a330" text, "a340" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the A330 and the A310 wide?`: ```sql