output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "length" FROM "schedule_and_results" WHERE "winning_driver"='Roger McCluskey';
## Task Generate a SQL query to answer the following question: `What length was won by Roger McCluskey?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "length" text, "race_name" text, "track" text, "location" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `What length was won by Roger McCluskey?`: ```sql
SELECT "rnd" FROM "schedule_and_results" WHERE "track"='Phoenix International Raceway';
## Task Generate a SQL query to answer the following question: `What rounds did Phoenix International Raceway host?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "length" text, "race_name" text, "track" text, "location" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `What rounds did Phoenix International Raceway host?`: ```sql
SELECT "length" FROM "schedule_and_results" WHERE "track"='Pocono International Raceway';
## Task Generate a SQL query to answer the following question: `What are the lengths hosted by Pocono International Raceway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "length" text, "race_name" text, "track" text, "location" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the lengths hosted by Pocono International Raceway?`: ```sql
SELECT "length" FROM "schedule_and_results" WHERE "track"='Phoenix International Raceway';
## Task Generate a SQL query to answer the following question: `What lengths did Phoenix International Raceway host?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "length" text, "race_name" text, "track" text, "location" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `What lengths did Phoenix International Raceway host?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "score"='L 83–118 (OT)';
## Task Generate a SQL query to answer the following question: `Name the location attendance for score being l 83–118 (ot)` ### 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 `Name the location attendance for score being l 83–118 (ot)`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "date"='December 9';
## Task Generate a SQL query to answer the following question: `Name the high assists for december 9` ### 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 `Name the high assists for december 9`: ```sql
SELECT COUNT("winner") FROM "classification_leadership" WHERE "team_classification"='Kelme-Costa Blanca' AND "combativity_award"='Jacky Durand';
## Task Generate a SQL query to answer the following question: `What is the total number of winners when the team classification leader was Kelme-Costa Blanca and the combativity award was won by Jacky Durand?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" text, "combativity_award" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of winners when the team classification leader was Kelme-Costa Blanca and the combativity award was won by Jacky Durand?`: ```sql
SELECT "general_classification" FROM "classification_leadership" WHERE "young_rider_classification"='Salvatore Commesso' AND "winner"='Erik Dekker';
## Task Generate a SQL query to answer the following question: `Who was the general classification leader when the young rider classification leader was Salvatore Commesso and the winner was Erik Dekker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" text, "combativity_award" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the general classification leader when the young rider classification leader was Salvatore Commesso and the winner was Erik Dekker?`: ```sql
SELECT COUNT("team_classification") FROM "classification_leadership" WHERE "young_rider_classification"='Salvatore Commesso' AND "combativity_award"='Jacky Durand';
## Task Generate a SQL query to answer the following question: `What is the total number of team classifications when the young rider classification leader was Salvatore Commesso and the combativity award winner was Jacky Durand?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" text, "combativity_award" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of team classifications when the young rider classification leader was Salvatore Commesso and the combativity award winner was Jacky Durand?`: ```sql
SELECT MIN("rnd") FROM "schedule_and_results" WHERE "winning_driver"='Al Unser' AND "track"='Wisconsin State Fair Park Speedway';
## Task Generate a SQL query to answer the following question: `In what round did Al Unser win at Wisconsin State Fair Park Speedway? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `In what round did Al Unser win at Wisconsin State Fair Park Speedway? `: ```sql
SELECT COUNT("race_name") FROM "schedule_and_results" WHERE "location"='College Station, Texas' AND "winning_driver"='Johnny Rutherford';
## Task Generate a SQL query to answer the following question: `How many races are in College Station, Texas and won by Johnny Rutherford? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `How many races are in College Station, Texas and won by Johnny Rutherford? `: ```sql
SELECT "race_name" FROM "schedule_and_results" WHERE "pole_position"='Al Unser';
## Task Generate a SQL query to answer the following question: `What was the name of the race that Al Unser had the pole position? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the name of the race that Al Unser had the pole position? `: ```sql
SELECT "track" FROM "schedule_and_results" WHERE "race_name"='International 500 Mile Sweepstakes';
## Task Generate a SQL query to answer the following question: `What is the name of the track for the International 500 mile Sweepstakes race? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the track for the International 500 mile Sweepstakes race? `: ```sql
SELECT "location" FROM "schedule_and_results" WHERE "pole_position"='Gordon Johncock';
## Task Generate a SQL query to answer the following question: `Which locations did Gordon Johncock hold the pole position? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `Which locations did Gordon Johncock hold the pole position? `: ```sql
SELECT "classification" FROM "contemporary_humor_magazines" WHERE "title"='Fish Rap Live!';
## Task Generate a SQL query to answer the following question: `What classifications does Fish Rap live! has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contemporary_humor_magazines" ( "title" text, "language" text, "country" text, "years_published" text, "frequency" text, "medium" text, "classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What classifications does Fish Rap live! has?`: ```sql
SELECT COUNT("race_name") FROM "schedule_and_results" WHERE "date"='October 1';
## Task Generate a SQL query to answer the following question: `How many races took place on October 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "type" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `How many races took place on October 1?`: ```sql
SELECT COUNT("type") FROM "schedule_and_results" WHERE "track"='Phoenix International Raceway';
## Task Generate a SQL query to answer the following question: `How many types of tracks are there on the Phoenix International raceway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "type" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `How many types of tracks are there on the Phoenix International raceway?`: ```sql
SELECT MAX("rnd") FROM "schedule_and_results" WHERE "race_name"='Daily Empress Indy Silverstone';
## Task Generate a SQL query to answer the following question: `Daily Empress Indy Silverstone took place on which round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "type" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `Daily Empress Indy Silverstone took place on which round?`: ```sql
SELECT COUNT("race_name") FROM "schedule_and_results" WHERE "track"='Indianapolis Motor Speedway';
## Task Generate a SQL query to answer the following question: `How many races took place on the Indianapolis Motor Speedway track?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "type" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `How many races took place on the Indianapolis Motor Speedway track?`: ```sql
SELECT "driver" FROM "table1_2267465_1" WHERE "race_time"='3:50:12';
## Task Generate a SQL query to answer the following question: `What driver achieved a 3:50:12 race time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2267465_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What driver achieved a 3:50:12 race time?`: ```sql
SELECT "manufacturer" FROM "table1_2267465_1" WHERE "team"='Race Hill Farm Team';
## Task Generate a SQL query to answer the following question: `Can you tell me the manufacturer behind Race Hill Farm Team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2267465_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the manufacturer behind Race Hill Farm Team?`: ```sql
SELECT COUNT("laps") FROM "table1_2267465_1" WHERE "race_time"='3:34:26';
## Task Generate a SQL query to answer the following question: `How many laps have a 3:34:26 race time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2267465_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `How many laps have a 3:34:26 race time?`: ```sql
SELECT "average_speed_mph" FROM "table1_2267465_1" WHERE "year"='1964';
## Task Generate a SQL query to answer the following question: `What's the average mph of 1964?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2267465_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the average mph of 1964?`: ```sql
SELECT "manufacturer" FROM "table1_2268216_1" WHERE "team"='Ranier-Lundy';
## Task Generate a SQL query to answer the following question: `Whose is the manufacturer for team Ranier-Lundy? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2268216_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" real, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Whose is the manufacturer for team Ranier-Lundy? `: ```sql
SELECT "year" FROM "table1_2268216_1" WHERE "average_speed_mph"='92.68';
## Task Generate a SQL query to answer the following question: `In what year was the average speed 92.68?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2268216_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" real, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `In what year was the average speed 92.68?`: ```sql
SELECT COUNT("year") FROM "table1_2268216_1" WHERE "team"='Joe Gibbs Racing' AND "manufacturer"='Pontiac';
## Task Generate a SQL query to answer the following question: `How many years was Pontiac the manufacturer for Joe Gibbs Racing? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2268216_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" real, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years was Pontiac the manufacturer for Joe Gibbs Racing? `: ```sql
SELECT "date" FROM "table1_2268216_1" WHERE "race_time"='2:43:19';
## Task Generate a SQL query to answer the following question: `What is the date for the race that had the time of 2:43:19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2268216_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" real, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date for the race that had the time of 2:43:19?`: ```sql
SELECT COUNT("average_speed_mph") FROM "table1_2268216_1" WHERE "year"='2003';
## Task Generate a SQL query to answer the following question: `How many average speeds are listed in the year 2003? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2268216_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" real, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `How many average speeds are listed in the year 2003? `: ```sql
SELECT "team" FROM "table1_2268216_1" WHERE "race_time"='2:53:57';
## Task Generate a SQL query to answer the following question: `What team had a race time of 2:53:57?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2268216_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" real, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What team had a race time of 2:53:57?`: ```sql
SELECT "sprint_classification" FROM "riders_jersey_progress_table" WHERE "winner"='Alejandro Valverde';
## Task Generate a SQL query to answer the following question: `Name the sprint classification being alejandro valverde` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "riders_jersey_progress_table" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "sprint_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the sprint classification being alejandro valverde`: ```sql
SELECT "stage" FROM "riders_jersey_progress_table" WHERE "mountains_classification"='no award';
## Task Generate a SQL query to answer the following question: `Name the stage for no award` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "riders_jersey_progress_table" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "sprint_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the stage for no award`: ```sql
SELECT COUNT("stage") FROM "riders_jersey_progress_table" WHERE "mountains_classification"='Lloyd Mondory';
## Task Generate a SQL query to answer the following question: `Name the total number of stage for lloyd mondory` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "riders_jersey_progress_table" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "sprint_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of stage for lloyd mondory`: ```sql
SELECT MAX("stage") FROM "riders_jersey_progress_table" WHERE "general_classification"='Alejandro Valverde' AND "team_classification"='Astana' AND "winner"='Greg Henderson';
## Task Generate a SQL query to answer the following question: `Name the most stage for alejandro valverde and astana greg henderson` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "riders_jersey_progress_table" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "sprint_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most stage for alejandro valverde and astana greg henderson`: ```sql
SELECT "tournament_winner" FROM "conference_winners_and_tournaments" WHERE "conference"='Border Conference';
## Task Generate a SQL query to answer the following question: `When the Border Conference was held, who was the tournament winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "conference_winners_and_tournaments" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `When the Border Conference was held, who was the tournament winner?`: ```sql
SELECT "tournament_winner" FROM "conference_winners_and_tournaments" WHERE "regular_season_winner"='Princeton';
## Task Generate a SQL query to answer the following question: `When Princeton was the regular season winner, who was the tournament winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "conference_winners_and_tournaments" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `When Princeton was the regular season winner, who was the tournament winner?`: ```sql
SELECT "conference_player_of_the_year" FROM "conference_winners_and_tournaments" WHERE "regular_season_winner"='Wyoming';
## Task Generate a SQL query to answer the following question: `When Wyoming won the regular season, who was the conference player of the year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "conference_winners_and_tournaments" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `When Wyoming won the regular season, who was the conference player of the year?`: ```sql
SELECT "experience" FROM "roster" WHERE "name"='Mel Daniels';
## Task Generate a SQL query to answer the following question: `How long has Mel Daniels been playing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "number" real, "name" text, "position" text, "height" text, "experience" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How long has Mel Daniels been playing?`: ```sql
SELECT "position" FROM "roster" WHERE "college"='San Jose State';
## Task Generate a SQL query to answer the following question: `What position did the player from San Jose State play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "number" real, "name" text, "position" text, "height" text, "experience" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What position did the player from San Jose State play?`: ```sql
SELECT "number" FROM "roster" WHERE "height"='6-6';
## Task Generate a SQL query to answer the following question: `What was the number of the player that was 6-6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "number" real, "name" text, "position" text, "height" text, "experience" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the number of the player that was 6-6?`: ```sql
SELECT "result" FROM "performances_and_result" WHERE "order_num"='10' AND "song_choice"='Coba';
## Task Generate a SQL query to answer the following question: `If the song choice is Coba and the order number is 10, what is the result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances_and_result" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `If the song choice is Coba and the order number is 10, what is the result?`: ```sql
SELECT "result" FROM "performances_and_result" WHERE "song_choice"='Coba';
## Task Generate a SQL query to answer the following question: `What is the result if Coba is the song choice?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances_and_result" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result if Coba is the song choice?`: ```sql
SELECT "order_num" FROM "performances_and_result" WHERE "song_choice"='Coba';
## Task Generate a SQL query to answer the following question: `If Coba is the song choice, what is the order number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances_and_result" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `If Coba is the song choice, what is the order number?`: ```sql
SELECT "theme" FROM "performances_and_result" WHERE "song_choice"='Crazy In Love';
## Task Generate a SQL query to answer the following question: `If Crazy In Love is the song choice, what is the theme?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances_and_result" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `If Crazy In Love is the song choice, what is the theme?`: ```sql
SELECT "result" FROM "performances_and_result" WHERE "week_num"='Top 40';
## Task Generate a SQL query to answer the following question: `For week number of the top 40, what was the results?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances_and_result" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `For week number of the top 40, what was the results?`: ```sql
SELECT "result" FROM "performances_and_result" WHERE "week_num"='Top 9';
## Task Generate a SQL query to answer the following question: `For week of top 9, what were the results?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances_and_result" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `For week of top 9, what were the results?`: ```sql
SELECT "type" FROM "group_membership" WHERE "city"='Birmingham';
## Task Generate a SQL query to answer the following question: `The city of Birmingham is what type of location?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_membership" ( "city" text, "county" text, "region" text, "local_authority" text, "type" text, "population" real, "urban_area" real, "metropolitan_area" real ); ### SQL Given the database schema, here is the SQL query that answers `The city of Birmingham is what type of location?`: ```sql
SELECT "type" FROM "group_membership" WHERE "local_authority"='Leeds City Council';
## Task Generate a SQL query to answer the following question: `Leeds City Council is the local authority for what type of location?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_membership" ( "city" text, "county" text, "region" text, "local_authority" text, "type" text, "population" real, "urban_area" real, "metropolitan_area" real ); ### SQL Given the database schema, here is the SQL query that answers `Leeds City Council is the local authority for what type of location?`: ```sql
SELECT "metropolitan_area" FROM "group_membership" WHERE "county"='Tyne and Wear';
## Task Generate a SQL query to answer the following question: `Tyne and Wear County has what total membership for their metropolitan area?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_membership" ( "city" text, "county" text, "region" text, "local_authority" text, "type" text, "population" real, "urban_area" real, "metropolitan_area" real ); ### SQL Given the database schema, here is the SQL query that answers `Tyne and Wear County has what total membership for their metropolitan area?`: ```sql
SELECT MAX("metropolitan_area") FROM "group_membership" WHERE "city"='Manchester';
## Task Generate a SQL query to answer the following question: `What is the total membership for the metropolitan area in the city of Manchester?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_membership" ( "city" text, "county" text, "region" text, "local_authority" text, "type" text, "population" real, "urban_area" real, "metropolitan_area" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total membership for the metropolitan area in the city of Manchester?`: ```sql
SELECT "runner_up_a" FROM "list_of_elected_m_ps" WHERE "winner"='K. P. Ramalingam';
## Task Generate a SQL query to answer the following question: `Who was the runner-up (a) if K. P. Ramalingam won the election?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the runner-up (a) if K. P. Ramalingam won the election?`: ```sql
SELECT "team_name" FROM "summary" WHERE "races"='1 (5)';
## Task Generate a SQL query to answer the following question: `When 1 (5) is the races what is the team name?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "year" real, "class" text, "team_name" text, "bike" text, "riders" text, "races" text, "wins" real, "podiums" real, "poles" real, "f_laps" real, "points" real, "pos" text ); ### SQL Given the database schema, here is the SQL query that answers `When 1 (5) is the races what is the team name?`: ```sql
SELECT MAX("poles") FROM "summary" WHERE "pos"='19th';
## Task Generate a SQL query to answer the following question: `When 19th is the position what is the highest amount of poles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "year" real, "class" text, "team_name" text, "bike" text, "riders" text, "races" text, "wins" real, "podiums" real, "poles" real, "f_laps" real, "points" real, "pos" text ); ### SQL Given the database schema, here is the SQL query that answers `When 19th is the position what is the highest amount of poles?`: ```sql
SELECT "pos" FROM "summary" WHERE "points"=86;
## Task Generate a SQL query to answer the following question: `When 86 is the amount of points what is the position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "year" real, "class" text, "team_name" text, "bike" text, "riders" text, "races" text, "wins" real, "podiums" real, "poles" real, "f_laps" real, "points" real, "pos" text ); ### SQL Given the database schema, here is the SQL query that answers `When 86 is the amount of points what is the position?`: ```sql
SELECT MAX("margin") FROM "list_of_elected_m_ps" WHERE "party"='NCO' AND "winner"='P. Ramachandran';
## Task Generate a SQL query to answer the following question: `Name the most margin for nco party and p. ramachandran won` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most margin for nco party and p. ramachandran won`: ```sql
SELECT "party_a" FROM "list_of_elected_m_ps" WHERE "runner_up_a"='M. S. K. Sathiyendran';
## Task Generate a SQL query to answer the following question: `Name the party a for m. s. k. sathiyendran runner up` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the party a for m. s. k. sathiyendran runner up`: ```sql
SELECT "party_a" FROM "list_of_elected_m_ps" WHERE "constituency"='Sriperumbudur';
## Task Generate a SQL query to answer the following question: `Name the party a for sriperumbudur` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the party a for sriperumbudur`: ```sql
SELECT COUNT("runner_up_a") FROM "list_of_elected_m_ps" WHERE "constituency"='Perambalur';
## Task Generate a SQL query to answer the following question: `Name the total number of runner up a for perambalur` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of runner up a for perambalur`: ```sql
SELECT "constituency" FROM "list_of_elected_m_ps" WHERE "margin"=175130;
## Task Generate a SQL query to answer the following question: `Name the constituency for 175130` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the constituency for 175130`: ```sql
SELECT COUNT("margin") FROM "list_of_elected_m_ps" WHERE "winner"='S. Singaravadivel';
## Task Generate a SQL query to answer the following question: `How many margins have a winner of S. Singaravadivel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `How many margins have a winner of S. Singaravadivel?`: ```sql
SELECT COUNT("winner") FROM "list_of_elected_m_ps" WHERE "runner_up_a"='A. Karthikeyan';
## Task Generate a SQL query to answer the following question: `How many winners have a runner-up of A. Karthikeyan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `How many winners have a runner-up of A. Karthikeyan?`: ```sql
SELECT "party_a" FROM "list_of_elected_m_ps" WHERE "winner"='P. Chidambaram';
## Task Generate a SQL query to answer the following question: `What is every party with a winner of P. Chidambaram?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every party with a winner of P. Chidambaram?`: ```sql
SELECT "party_a" FROM "list_of_elected_m_ps" WHERE "constituency"='Tiruchendur';
## Task Generate a SQL query to answer the following question: `What is every party A with a constituency of Tiruchendur?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every party A with a constituency of Tiruchendur?`: ```sql
SELECT "constituency" FROM "list_of_elected_m_ps" WHERE "runner_up_a"='D. Venugopal';
## Task Generate a SQL query to answer the following question: `Who is the constituency when the runner-up was d. Venugopal? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the constituency when the runner-up was d. Venugopal? `: ```sql
SELECT "party" FROM "list_of_elected_m_ps" WHERE "constituency"='10. Tindivanam';
## Task Generate a SQL query to answer the following question: `What is the party where the constituency is 10. Tindivanam? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the party where the constituency is 10. Tindivanam? `: ```sql
SELECT "party" FROM "list_of_elected_m_ps" WHERE "constituency"='1. Chennai North';
## Task Generate a SQL query to answer the following question: `What is the party when the constituency is 1. Chennai North? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the party when the constituency is 1. Chennai North? `: ```sql
SELECT COUNT("margin") FROM "list_of_elected_m_ps" WHERE "party"='Indian National Congress' AND "winner"='L. Adaikalaraj c';
## Task Generate a SQL query to answer the following question: `How many margin results are listed in the election that was won by L. Adaikalaraj C and the party was the Indian national congress? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `How many margin results are listed in the election that was won by L. Adaikalaraj C and the party was the Indian national congress? `: ```sql
SELECT MAX("margin") FROM "list_of_elected_m_ps" WHERE "winner"='K. Balathandayutham';
## Task Generate a SQL query to answer the following question: `What is the margin when k. balathandayutham is the winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the margin when k. balathandayutham is the winner?`: ```sql
SELECT "margin" FROM "list_of_elected_m_ps" WHERE "constituency"='Periyakulam';
## Task Generate a SQL query to answer the following question: `What is the margin when periyakulam is the constituency?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_elected_m_ps" ( "constituency" text, "winner" text, "party" text, "margin" real, "runner_up_a" text, "party_a" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the margin when periyakulam is the constituency?`: ```sql
SELECT "pole_position" FROM "schedule_and_results" WHERE "date"='August 15, 1981';
## Task Generate a SQL query to answer the following question: `Who had the pole position in the August 15, 1981 race? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "type" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the pole position in the August 15, 1981 race? `: ```sql
SELECT "track" FROM "schedule_and_results" WHERE "date"='September 12, 1981';
## Task Generate a SQL query to answer the following question: `Which track was used on September 12, 1981? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "rnd" real, "date" text, "race_name" text, "length" text, "track" text, "location" text, "type" text, "pole_position" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `Which track was used on September 12, 1981? `: ```sql
SELECT "park_and_ride" FROM "stations_under_construction" WHERE "city_neighborhood"='University of Washington';
## Task Generate a SQL query to answer the following question: `Name the park and ride for university of washington` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stations_under_construction" ( "station" text, "extension" text, "city_neighborhood" text, "projected_opening" real, "transit_connections" text, "park_and_ride" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the park and ride for university of washington`: ```sql
SELECT "extension" FROM "stations_under_construction" WHERE "city_neighborhood"='University of Washington';
## Task Generate a SQL query to answer the following question: `Name the extension for university of washington` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stations_under_construction" ( "station" text, "extension" text, "city_neighborhood" text, "projected_opening" real, "transit_connections" text, "park_and_ride" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the extension for university of washington`: ```sql
SELECT MIN("projected_opening") FROM "stations_under_construction";
## Task Generate a SQL query to answer the following question: `Name the least projected opening` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stations_under_construction" ( "station" text, "extension" text, "city_neighborhood" text, "projected_opening" real, "transit_connections" text, "park_and_ride" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least projected opening`: ```sql
SELECT "transit_connections" FROM "stations_under_construction" WHERE "station"='Capitol Hill U';
## Task Generate a SQL query to answer the following question: `Name the transit connections for capitol hill u` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stations_under_construction" ( "station" text, "extension" text, "city_neighborhood" text, "projected_opening" real, "transit_connections" text, "park_and_ride" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the transit connections for capitol hill u`: ```sql
SELECT "park_and_ride" FROM "stations_under_construction" WHERE "station"='Roosevelt U';
## Task Generate a SQL query to answer the following question: `Name the park and ride for roosevelt u` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stations_under_construction" ( "station" text, "extension" text, "city_neighborhood" text, "projected_opening" real, "transit_connections" text, "park_and_ride" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the park and ride for roosevelt u`: ```sql
SELECT COUNT("park_and_ride") FROM "planned_or_proposed_stations" WHERE "station"='Overlake Village';
## Task Generate a SQL query to answer the following question: `How many park and rides are proposed for Overlake Village?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "planned_or_proposed_stations" ( "station" text, "extension" text, "city_neighborhood" text, "projected_opening" text, "park_and_ride" text, "funded_by_st2" text ); ### SQL Given the database schema, here is the SQL query that answers `How many park and rides are proposed for Overlake Village?`: ```sql
SELECT COUNT("city_neighborhood") FROM "planned_or_proposed_stations" WHERE "station"='Hospital';
## Task Generate a SQL query to answer the following question: `How many neighborhoods have a station proposed at a Hospital?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "planned_or_proposed_stations" ( "station" text, "extension" text, "city_neighborhood" text, "projected_opening" text, "park_and_ride" text, "funded_by_st2" text ); ### SQL Given the database schema, here is the SQL query that answers `How many neighborhoods have a station proposed at a Hospital?`: ```sql
SELECT "city_neighborhood" FROM "planned_or_proposed_stations" WHERE "extension"='East Link' AND "park_and_ride"='Yes' AND "station"='Overlake Transit Center';
## Task Generate a SQL query to answer the following question: `What are all the City/Neighborhoods whose extension is East Link and proposed parking lot status is yes and whose proposed station is Overlake transit Center?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "planned_or_proposed_stations" ( "station" text, "extension" text, "city_neighborhood" text, "projected_opening" text, "park_and_ride" text, "funded_by_st2" text ); ### SQL Given the database schema, here is the SQL query that answers `What are all the City/Neighborhoods whose extension is East Link and proposed parking lot status is yes and whose proposed station is Overlake transit Center?`: ```sql
SELECT "funded_by_st2" FROM "planned_or_proposed_stations" WHERE "station"='Redondo/Star Lake';
## Task Generate a SQL query to answer the following question: `What is the funded by st2 status of the Redondo/Star Lake station?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "planned_or_proposed_stations" ( "station" text, "extension" text, "city_neighborhood" text, "projected_opening" text, "park_and_ride" text, "funded_by_st2" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the funded by st2 status of the Redondo/Star Lake station?`: ```sql
SELECT "transit_connections" FROM "stations" WHERE "station"='Pioneer Square U';
## Task Generate a SQL query to answer the following question: `What are the transit connections from Pioneer Square U?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stations" ( "station" text, "line_s" text, "city_neighborhood" text, "year_opened" real, "transit_connections" text, "park_and_ride" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the transit connections from Pioneer Square U?`: ```sql
SELECT "transit_connections" FROM "stations" WHERE "city_neighborhood"='Columbia City, Seattle';
## Task Generate a SQL query to answer the following question: `What's the transit connection in Columbia City, Seattle?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stations" ( "station" text, "line_s" text, "city_neighborhood" text, "year_opened" real, "transit_connections" text, "park_and_ride" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the transit connection in Columbia City, Seattle?`: ```sql
SELECT "pct_route_available" FROM "availability_and_names" WHERE "type_of_protection"='small patent';
## Task Generate a SQL query to answer the following question: `For small patent type of protections, what type of PCT route is available?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "availability_and_names" ( "country" text, "type_of_protection" text, "maximum_term" text, "pct_route_available" text, "conversion_from_patent_application" text ); ### SQL Given the database schema, here is the SQL query that answers `For small patent type of protections, what type of PCT route is available?`: ```sql
SELECT "conversion_from_patent_application" FROM "availability_and_names" WHERE "country"='Tonga';
## Task Generate a SQL query to answer the following question: `In Tonga, what is the conversion from patent application?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "availability_and_names" ( "country" text, "type_of_protection" text, "maximum_term" text, "pct_route_available" text, "conversion_from_patent_application" text ); ### SQL Given the database schema, here is the SQL query that answers `In Tonga, what is the conversion from patent application?`: ```sql
SELECT "pct_route_available" FROM "availability_and_names" WHERE "type_of_protection"='short patent';
## Task Generate a SQL query to answer the following question: `For short patent type of protections, what type of PCT route is available?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "availability_and_names" ( "country" text, "type_of_protection" text, "maximum_term" text, "pct_route_available" text, "conversion_from_patent_application" text ); ### SQL Given the database schema, here is the SQL query that answers `For short patent type of protections, what type of PCT route is available?`: ```sql
SELECT "pct_route_available" FROM "availability_and_names" WHERE "country"='Tangier Zone';
## Task Generate a SQL query to answer the following question: `In Tangier Zone, what is the PCT route availibility?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "availability_and_names" ( "country" text, "type_of_protection" text, "maximum_term" text, "pct_route_available" text, "conversion_from_patent_application" text ); ### SQL Given the database schema, here is the SQL query that answers `In Tangier Zone, what is the PCT route availibility?`: ```sql
SELECT "conversion_from_patent_application" FROM "availability_and_names" WHERE "maximum_term"='10 years' AND "pct_route_available"='Yes';
## Task Generate a SQL query to answer the following question: `When the PCT route available is yes and the maximum term is 10 years, what are the available conversions from patent applications?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "availability_and_names" ( "country" text, "type_of_protection" text, "maximum_term" text, "pct_route_available" text, "conversion_from_patent_application" text ); ### SQL Given the database schema, here is the SQL query that answers `When the PCT route available is yes and the maximum term is 10 years, what are the available conversions from patent applications?`: ```sql
SELECT "result" FROM "schedule" WHERE "record"='6-2';
## Task Generate a SQL query to answer the following question: `What was the result against the team which the Cowboys have a 6-2 record against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result against the team which the Cowboys have a 6-2 record against?`: ```sql
SELECT MIN("opponents") FROM "schedule" WHERE "cowboys_points"=36;
## Task Generate a SQL query to answer the following question: `What is the fewest points opponents have scored when the Cowboys score 36?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest points opponents have scored when the Cowboys score 36?`: ```sql
SELECT "opponents" FROM "schedule" WHERE "record"='1-0';
## Task Generate a SQL query to answer the following question: `How many opponents have a 1-0 record against the Cowboys?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many opponents have a 1-0 record against the Cowboys?`: ```sql
SELECT "game" FROM "schedule" WHERE "record"='6-3';
## Task Generate a SQL query to answer the following question: `What game was held against a team with a 6-3 record against the Cowboys?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What game was held against a team with a 6-3 record against the Cowboys?`: ```sql
SELECT COUNT("name") FROM "in" WHERE "country"='CIV';
## Task Generate a SQL query to answer the following question: `How many names have a country of civ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `How many names have a country of civ?`: ```sql
SELECT "name" FROM "in" WHERE "moving_from"='Northampton Town';
## Task Generate a SQL query to answer the following question: `Who moved from Northampton Town?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `Who moved from Northampton Town?`: ```sql
SELECT "moving_from" FROM "in" WHERE "name"='Kisnorbo';
## Task Generate a SQL query to answer the following question: `Where did Kisnorbo move from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did Kisnorbo move from?`: ```sql
SELECT "name" FROM "in" WHERE "n"=28;
## Task Generate a SQL query to answer the following question: `What is the name of the player when n is 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the player when n is 28?`: ```sql
SELECT "transfer_fee" FROM "in" WHERE "n"=2;
## Task Generate a SQL query to answer the following question: `How much was the transfer fee when n is 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `How much was the transfer fee when n is 2?`: ```sql
SELECT "name" FROM "loans_in" WHERE "age"=24;
## Task Generate a SQL query to answer the following question: `What player is 24 years old? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loans_in" ( "no" real, "p" text, "name" text, "country" text, "age" real, "loan_club" text, "started" text, "ended" text, "start_source" text, "end_source" text ); ### SQL Given the database schema, here is the SQL query that answers `What player is 24 years old? `: ```sql
SELECT "ted_morris_memorial_trophy_game_mvp" FROM "table1_228149_1" WHERE "date"='November 22, 2008';
## Task Generate a SQL query to answer the following question: `Name the ted morris memorial trophy for november 22, 2008` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_228149_1" ( "game" text, "date" text, "champion" text, "score" text, "runner_up" text, "stadium" text, "city" text, "ted_morris_memorial_trophy_game_mvp" text, "bruce_coulter_award" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the ted morris memorial trophy for november 22, 2008`: ```sql
SELECT "ted_morris_memorial_trophy_game_mvp" FROM "table1_228149_1" WHERE "game"='34th';
## Task Generate a SQL query to answer the following question: `Name the ted morris memorial trophy 34th game` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_228149_1" ( "game" text, "date" text, "champion" text, "score" text, "runner_up" text, "stadium" text, "city" text, "ted_morris_memorial_trophy_game_mvp" text, "bruce_coulter_award" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the ted morris memorial trophy 34th game`: ```sql
SELECT COUNT("bruce_coulter_award") FROM "table1_228149_1" WHERE "game"='9th';
## Task Generate a SQL query to answer the following question: `Nam the total number for bruce coulter award for 9th game` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_228149_1" ( "game" text, "date" text, "champion" text, "score" text, "runner_up" text, "stadium" text, "city" text, "ted_morris_memorial_trophy_game_mvp" text, "bruce_coulter_award" text ); ### SQL Given the database schema, here is the SQL query that answers `Nam the total number for bruce coulter award for 9th game`: ```sql
SELECT "bruce_coulter_award" FROM "table1_228149_1" WHERE "ted_morris_memorial_trophy_game_mvp"='Forrest Kennerd';
## Task Generate a SQL query to answer the following question: `Name the bruce coulter award for forrest kennerd` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_228149_1" ( "game" text, "date" text, "champion" text, "score" text, "runner_up" text, "stadium" text, "city" text, "ted_morris_memorial_trophy_game_mvp" text, "bruce_coulter_award" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the bruce coulter award for forrest kennerd`: ```sql