text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_13_num_dream_bigger" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Question: What is the number of external links with a coach named Katie Kansas? <|assistant|> SELECT COUNT("external_link") FROM "season_13_num_dream_bigger" WHERE "coach"='Katie Kansas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_13_num_dream_bigger" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Question: What is the minimum number of seasons? <|assistant|> SELECT MIN("season") FROM "season_13_num_dream_bigger";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_13_num_dream_bigger" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Question: What is the episode summary for episode 5? <|assistant|> SELECT "episode_summary" FROM "season_13_num_dream_bigger" WHERE "episode"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_13_num_dream_bigger" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Question: What is the summary for the episode with a coach named Rebecca Star? <|assistant|> SELECT "episode_summary" FROM "season_13_num_dream_bigger" WHERE "coach"='Rebecca Star';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2140071_10" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Question: Name the episode with maritza reveron <|assistant|> SELECT "episode" FROM "table1_2140071_10" WHERE "coach"='Maritza Reveron';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2140071_10" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Question: Name the season for august 16, 2010 <|assistant|> SELECT "season" FROM "table1_2140071_10" WHERE "premier_date"='August 16, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2140071_10" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Question: Name the number of episode summary for jesse csincsak <|assistant|> SELECT COUNT("episode_summary") FROM "table1_2140071_10" WHERE "coach"='Jesse Csincsak';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2140071_10" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Question: Name the number of coach for full episode deshunae is made into a volleyball player. <|assistant|> SELECT COUNT("coach") FROM "table1_2140071_10" WHERE "external_link"='Full Episode' AND "episode_summary"='Deshunae is made into a volleyball player.';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2140071_10" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Question: Name the coach for may 20, 2010 <|assistant|> SELECT "coach" FROM "table1_2140071_10" WHERE "premier_date"='May 20, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2139390_2" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Name the team for june 20 <|assistant|> SELECT "team" FROM "table1_2139390_2" WHERE "date"='June 20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2139390_2" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text ); Question: Name the race time for 2002 <|assistant|> SELECT "race_time" FROM "table1_2139390_2" WHERE "year"=2002;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_5" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Question: How many seasons have a premier date of January 6, 2005? <|assistant|> SELECT COUNT("season") FROM "season_5" WHERE "premier_date"='January 6, 2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_5" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Question: What is the last season? <|assistant|> SELECT MAX("season") FROM "season_5";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_5" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Question: What date did the episode, with John O'Connell as the coach, premier? <|assistant|> SELECT "premier_date" FROM "season_5" WHERE "coach"='John O''Connell';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: Name the result for total attendance-regular season <|assistant|> SELECT "result_games" FROM "canadian_football_league_attendance" WHERE "type_of_record"='Total Attendance-Regular season';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: Name the result/games for 52521 <|assistant|> SELECT "result_games" FROM "canadian_football_league_attendance" WHERE "attendance"=52521;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: Name the result/games for 54530 <|assistant|> SELECT "result_games" FROM "canadian_football_league_attendance" WHERE "attendance"=54530;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: Name the stadium for regular season game <|assistant|> SELECT "stadium" FROM "canadian_football_league_attendance" WHERE "type_of_record"='Regular season game';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: Name the result/games for 54741 <|assistant|> SELECT "result_games" FROM "canadian_football_league_attendance" WHERE "attendance"=54741;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "team_num1" text, "agg_score" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: state team #2 in the match of first leg score 0-1 <|assistant|> SELECT "team_num2" FROM "first_round" WHERE "1st_leg"='0-1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "team_num1" text, "agg_score" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: give the 1st leg score against ilisiakos <|assistant|> SELECT "1st_leg" FROM "first_round" WHERE "team_num2"='Ilisiakos';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "team_num1" text, "agg_score" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: which team #1 played again chalkida <|assistant|> SELECT "team_num1" FROM "first_round" WHERE "team_num2"='Chalkida';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "team_num1" text, "agg_score" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: which team#2 played against poseidon neoi porroi <|assistant|> SELECT "team_num2" FROM "first_round" WHERE "team_num1"='Poseidon Neoi Porroi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21436373_10" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: When was the pre-season game record achieved? <|assistant|> SELECT "date_year" FROM "table1_21436373_10" WHERE "type_of_record"='Pre-season game';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21436373_10" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: What is the maximal number of people that attended any of these games? <|assistant|> SELECT MAX("attendance") FROM "table1_21436373_10";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: what is the attendance in 2011 records <|assistant|> SELECT "attendance" FROM "canadian_football_league_attendance" WHERE "date_year"='2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: what type of record was made where result/games is 10 games (29,606 avg.) <|assistant|> SELECT "type_of_record" FROM "canadian_football_league_attendance" WHERE "result_games"='10 games (29,606 avg.)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: where was the total attendance-regular season record made <|assistant|> SELECT "stadium" FROM "canadian_football_league_attendance" WHERE "type_of_record"='Total Attendance-Regular season';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: where was sun 09/12/93 record made <|assistant|> SELECT "stadium" FROM "canadian_football_league_attendance" WHERE "date_year"='Sun 09/12/93';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: how many records had result/games: 10 games (29,606 avg.) <|assistant|> SELECT COUNT("type_of_record") FROM "canadian_football_league_attendance" WHERE "result_games"='10 games (29,606 avg.)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: what is the highest attendance for a total attendance-regular season record <|assistant|> SELECT MAX("attendance") FROM "canadian_football_league_attendance" WHERE "type_of_record"='Total Attendance-Regular season';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: When 2005 is the date/year how many measurements of attendance are there? <|assistant|> SELECT COUNT("attendance") FROM "canadian_football_league_attendance" WHERE "date_year"='2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: When 27585 is the attendance what are the results of the games? <|assistant|> SELECT "result_games" FROM "canadian_football_league_attendance" WHERE "attendance"=27585;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: When 9 games (28,002 avg.) is the results of the games what is the date/year? <|assistant|> SELECT "date_year" FROM "canadian_football_league_attendance" WHERE "result_games"='9 games (28,002 avg.)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: When 255627 is the attendance what is the stadium? <|assistant|> SELECT "stadium" FROM "canadian_football_league_attendance" WHERE "attendance"=255627;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: What record was set on Tue 11/02/75? <|assistant|> SELECT "type_of_record" FROM "canadian_football_league_attendance" WHERE "date_year"='Tue 11/02/75';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: What record was set when the result/game was equal to 9 games (28,595 avg.) <|assistant|> SELECT "type_of_record" FROM "canadian_football_league_attendance" WHERE "result_games"='9 games (28,595 avg.)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: What record was set when the result/game was montreal 20 @ ottawa 10? <|assistant|> SELECT "type_of_record" FROM "canadian_football_league_attendance" WHERE "result_games"='Montreal 20 @ Ottawa 10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: Which stadium had the result/game montreal 20 @ ottawa 10? <|assistant|> SELECT "stadium" FROM "canadian_football_league_attendance" WHERE "result_games"='Montreal 20 @ Ottawa 10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21436373_5" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: For what year is the type of record 'total attendance-regular season? <|assistant|> SELECT "date_year" FROM "table1_21436373_5" WHERE "type_of_record"='Total Attendance-Regular season';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21436373_5" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: What type of record is the result of the game Montreal 31 @ Calgary 32? <|assistant|> SELECT "type_of_record" FROM "table1_21436373_5" WHERE "result_games"='Montreal 31 @ Calgary 32';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21436373_5" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: On what date/s has attendance been 45010? <|assistant|> SELECT "date_year" FROM "table1_21436373_5" WHERE "attendance"=45010;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: What is the number of attendance with the pre-season game as the type of record? <|assistant|> SELECT COUNT("attendance") FROM "canadian_football_league_attendance" WHERE "type_of_record"='Pre-season game';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: Which type of record has result/games of 9 games (57,144 avg.) <|assistant|> SELECT "type_of_record" FROM "canadian_football_league_attendance" WHERE "result_games"='9 games (57,144 avg.)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: What is the result/games of Sun 11/28/10 as the date/year? <|assistant|> SELECT "result_games" FROM "canadian_football_league_attendance" WHERE "date_year"='Sun 11/28/10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: Which stadium has the date/year of Fri 06/25/82? <|assistant|> SELECT "stadium" FROM "canadian_football_league_attendance" WHERE "date_year"='Fri 06/25/82';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" real, "date_year" text, "stadium" text, "result_games" text ); Question: Which type of record has result/games of b.c. 16 @ edmonton 22? <|assistant|> SELECT "type_of_record" FROM "canadian_football_league_attendance" WHERE "result_games"='B.C. 16 @ Edmonton 22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "barangays" ( "barangay" text, "population_2000" real, "population_2007" real, "population_2010" real, "barangay_fiesta" text ); Question: What was the populati in 2000 for Panlicsian? <|assistant|> SELECT MIN("population_2000") FROM "barangays" WHERE "barangay"='Panlicsian';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "barangays" ( "barangay" text, "population_2000" real, "population_2007" real, "population_2010" real, "barangay_fiesta" text ); Question: What was the population in 2010 for Minane <|assistant|> SELECT MAX("population_2010") FROM "barangays" WHERE "barangay"='Minane';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "barangays" ( "barangay" text, "population_2000" real, "population_2007" real, "population_2010" real, "barangay_fiesta" text ); Question: What is the 2007 population for Corazon de Jesus? <|assistant|> SELECT "population_2007" FROM "barangays" WHERE "barangay"='Corazon De Jesus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "barangays" ( "barangay" text, "population_2000" real, "population_2007" real, "population_2010" real, "barangay_fiesta" text ); Question: What is the 2010 population when the 2000 population is 5720? <|assistant|> SELECT MAX("population_2010") FROM "barangays" WHERE "population_2000"=5720;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pocket_monsters_diamond_pearl_series" ( "num" real, "japanese_title" text, "r_maji" text, "japanese_translation" text, "vocalist" text, "episodes_used" text ); Question: Name the romaji by your side ~hikari's theme~ (popup.version) <|assistant|> SELECT "r_maji" FROM "pocket_monsters_diamond_pearl_series" WHERE "japanese_translation"='By Your Side ~Hikari''s Theme~ (PopUp.Version)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pocket_monsters_diamond_pearl_series" ( "num" real, "japanese_title" text, "r_maji" text, "japanese_translation" text, "vocalist" text, "episodes_used" text ); Question: Name the vocalist for kaze no messēji (pokapoka-version) <|assistant|> SELECT "vocalist" FROM "pocket_monsters_diamond_pearl_series" WHERE "r_maji"='Kaze no Messēji (PokaPoka-Version)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pocket_monsters_diamond_pearl_series" ( "num" real, "japanese_title" text, "r_maji" text, "japanese_translation" text, "vocalist" text, "episodes_used" text ); Question: Name the least number for 君のそばで~ヒカリのテーマ~(popup.version) <|assistant|> SELECT MIN("num") FROM "pocket_monsters_diamond_pearl_series" WHERE "japanese_title"='君のそばで~ヒカリのテーマ~(PopUp.Version)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pocket_monsters_diamond_pearl_series" ( "num" real, "japanese_title" text, "r_maji" text, "japanese_translation" text, "vocalist" text, "episodes_used" text ); Question: Name the number of vocalists for which one ~ is it? <|assistant|> SELECT COUNT("vocalist") FROM "pocket_monsters_diamond_pearl_series" WHERE "japanese_translation"='Which One ~ Is It?';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "alpg_tour_6" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); Question: Name the to par for 20 feb 2005 <|assistant|> SELECT "to_par" FROM "alpg_tour_6" WHERE "date"='20 Feb 2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "alpg_tour_6" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); Question: Name the number for margin of victory being 3 strokes <|assistant|> SELECT COUNT("no") FROM "alpg_tour_6" WHERE "margin_of_victory"='3 strokes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "alpg_tour_6" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); Question: Name the winning score for 8 feb 2009 <|assistant|> SELECT COUNT("winning_score") FROM "alpg_tour_6" WHERE "date"='8 Feb 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21458142_1" ( "title" text, "total_copies_sold" text, "sales_breakdown" text, "genre" text, "release_date" text, "developer" text, "publisher" text ); Question: Who published the title in the pet-raising simulator genre? <|assistant|> SELECT "publisher" FROM "table1_21458142_1" WHERE "genre"='Pet-raising simulator';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21458142_1" ( "title" text, "total_copies_sold" text, "sales_breakdown" text, "genre" text, "release_date" text, "developer" text, "publisher" text ); Question: What's the sales breakdown for Nintendo's Mario Kart DS? <|assistant|> SELECT "sales_breakdown" FROM "table1_21458142_1" WHERE "publisher"='Nintendo' AND "title"='Mario Kart DS';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21458142_1" ( "title" text, "total_copies_sold" text, "sales_breakdown" text, "genre" text, "release_date" text, "developer" text, "publisher" text ); Question: How many copies were sold of the game released on october 23, 2008? <|assistant|> SELECT "total_copies_sold" FROM "table1_21458142_1" WHERE "release_date"='October 23, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21458142_1" ( "title" text, "total_copies_sold" text, "sales_breakdown" text, "genre" text, "release_date" text, "developer" text, "publisher" text ); Question: What's the sales breakdown of the Nintendo game released on May 15, 2006? <|assistant|> SELECT "sales_breakdown" FROM "table1_21458142_1" WHERE "publisher"='Nintendo' AND "release_date"='May 15, 2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "total_pts" text, "ranking" real ); Question: Name the most races <|assistant|> SELECT MAX("races") FROM "round_robin";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "total_pts" text, "ranking" real ); Question: Name the most races <|assistant|> SELECT MAX("races") FROM "round_robin";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "total_pts" text, "ranking" real ); Question: Name the most rr 1 pts <|assistant|> SELECT MAX("rr1_pts") FROM "round_robin";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "total_pts" text, "ranking" real ); Question: Name the number of total pts for gbr challenge <|assistant|> SELECT COUNT("total_pts") FROM "round_robin" WHERE "team_name"='GBR Challenge';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rank_by_number_of_wins" ( "city_nation" text, "first_place" real, "second_place" real, "third_place" real, "total_top_3_placements" real, "first_place_winning_year_s_if_applicable" text ); Question: What is the total number of second place finishes when the city & nation was Chicago, USA? <|assistant|> SELECT COUNT("second_place") FROM "rank_by_number_of_wins" WHERE "city_nation"='Chicago, USA';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rank_by_number_of_wins" ( "city_nation" text, "first_place" real, "second_place" real, "third_place" real, "total_top_3_placements" real, "first_place_winning_year_s_if_applicable" text ); Question: What is the total number of third place finishes when the city & nation was Vancouver, Canada? <|assistant|> SELECT MIN("third_place") FROM "rank_by_number_of_wins" WHERE "city_nation"='Vancouver, Canada';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rank_by_number_of_wins" ( "city_nation" text, "first_place" real, "second_place" real, "third_place" real, "total_top_3_placements" real, "first_place_winning_year_s_if_applicable" text ); Question: What is the largest third place finish when first place winning year(s) (if applicable) was n/a? <|assistant|> SELECT MAX("third_place") FROM "rank_by_number_of_wins" WHERE "first_place_winning_year_s_if_applicable"='N/A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rank_by_number_of_wins" ( "city_nation" text, "first_place" real, "second_place" real, "third_place" real, "total_top_3_placements" real, "first_place_winning_year_s_if_applicable" text ); Question: What is the smallest third place finish? <|assistant|> SELECT MIN("third_place") FROM "rank_by_number_of_wins";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2147588_3" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text ); Question: What change caused a change of staff in March 9, 1865? <|assistant|> SELECT "reason_for_change" FROM "table1_2147588_3" WHERE "date_of_successors_formal_installation"='March 9, 1865';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2147588_3" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text ); Question: Who was the successor for the new seat? <|assistant|> SELECT "successor" FROM "table1_2147588_3" WHERE "vacator"='New seat';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2147588_3" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text ); Question: What was the reason for change in staff in formal installations on March 15, 1865? <|assistant|> SELECT "reason_for_change" FROM "table1_2147588_3" WHERE "date_of_successors_formal_installation"='March 15, 1865';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2147588_3" ( "state_class" text, "vacator" text, "reason_for_change" text, "successor" text, "date_of_successors_formal_installation" text ); Question: Who was the successor for the new seat? <|assistant|> SELECT "successor" FROM "table1_2147588_3" WHERE "vacator"='New seat';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2147588_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: When nathaniel g. taylor (u) is the successor what is the vacator? <|assistant|> SELECT "vacator" FROM "table1_2147588_4" WHERE "successor"='Nathaniel G. Taylor (U)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2147588_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: When william b. campbell (u) is the successor what is the district? <|assistant|> SELECT "district" FROM "table1_2147588_4" WHERE "successor"='William B. Campbell (U)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2147588_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: When james brooks (d) is the vacator what is the date the successor was seated? <|assistant|> SELECT "date_successor_seated" FROM "table1_2147588_4" WHERE "vacator"='James Brooks (D)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2147588_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: When john w. leftwich (uu) is the successor what is the date the successor was seated? <|assistant|> SELECT "date_successor_seated" FROM "table1_2147588_4" WHERE "successor"='John W. Leftwich (UU)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2147588_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Question: When new york 8th is teh district who is the successor? <|assistant|> SELECT "successor" FROM "table1_2147588_4" WHERE "district"='New York 8th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "rr3_pts" real, "rr4_pts" text, "total_pts" real, "ranking" real ); Question: When 20 is the rr4 points what is the lowest rr3 points? <|assistant|> SELECT MIN("rr3_pts") FROM "round_robin" WHERE "rr4_pts"='20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "rr3_pts" real, "rr4_pts" text, "total_pts" real, "ranking" real ); Question: When 70 is the total points what is the rr4 points? <|assistant|> SELECT "rr4_pts" FROM "round_robin" WHERE "total_pts"=70;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "rr3_pts" real, "rr4_pts" text, "total_pts" real, "ranking" real ); Question: When 3 is the rr1 points what is won score? <|assistant|> SELECT "won" FROM "round_robin" WHERE "rr1_pts"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "rr3_pts" real, "rr4_pts" text, "total_pts" real, "ranking" real ); Question: When spanish challenge is the team name what are the rr1 points? <|assistant|> SELECT "rr1_pts" FROM "round_robin" WHERE "team_name"='Spanish Challenge';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "name" text, "career" text, "matches" real, "innings" real, "not_out" real, "runs_scored" real, "high_score" text, "50s" real, "100s" real, "average" text ); Question: Name the innings for 5088 runs scored <|assistant|> SELECT COUNT("innings") FROM "references" WHERE "runs_scored"=5088;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "name" text, "career" text, "matches" real, "innings" real, "not_out" real, "runs_scored" real, "high_score" text, "50s" real, "100s" real, "average" text ); Question: Name the matches for mark taylor category:articles with hcards <|assistant|> SELECT MAX("matches") FROM "references" WHERE "name"='Mark Taylor Category:Articles with hCards';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "name" text, "career" text, "matches" real, "innings" real, "not_out" real, "runs_scored" real, "high_score" text, "50s" real, "100s" real, "average" text ); Question: Name the most runs scored <|assistant|> SELECT MAX("runs_scored") FROM "references";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "name" text, "career" text, "matches" real, "innings" real, "not_out" real, "runs_scored" real, "high_score" text, "50s" real, "100s" real, "average" text ); Question: Name the least matches for not out being 44 <|assistant|> SELECT MIN("matches") FROM "references" WHERE "not_out"=44;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2150068_1" ( "satellite" text, "launch_date_utc" text, "decay" text, "mass_kg" text, "diameter_m" text, "nssdc_id" text, "nation" text, "usage" text ); Question: What nation was Pageos 1 from? <|assistant|> SELECT "nation" FROM "table1_2150068_1" WHERE "satellite"='PAGEOS 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2150068_1" ( "satellite" text, "launch_date_utc" text, "decay" text, "mass_kg" text, "diameter_m" text, "nssdc_id" text, "nation" text, "usage" text ); Question: What was the launch date for the sattelite with ado that was 4 kg and 3 meters in diameter? <|assistant|> SELECT "launch_date_utc" FROM "table1_2150068_1" WHERE "usage"='ado' AND "mass_kg"='4' AND "diameter_m"='3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2150068_1" ( "satellite" text, "launch_date_utc" text, "decay" text, "mass_kg" text, "diameter_m" text, "nssdc_id" text, "nation" text, "usage" text ); Question: What was the decay for the sattelite that was 180 kg? <|assistant|> SELECT "decay" FROM "table1_2150068_1" WHERE "mass_kg"='180';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2150068_1" ( "satellite" text, "launch_date_utc" text, "decay" text, "mass_kg" text, "diameter_m" text, "nssdc_id" text, "nation" text, "usage" text ); Question: What is the nssdc id for Echo 1? <|assistant|> SELECT "nssdc_id" FROM "table1_2150068_1" WHERE "satellite"='Echo 1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2150068_1" ( "satellite" text, "launch_date_utc" text, "decay" text, "mass_kg" text, "diameter_m" text, "nssdc_id" text, "nation" text, "usage" text ); Question: What is the launch date for the sattelite with a nssdc id of 1960-009a? <|assistant|> SELECT "launch_date_utc" FROM "table1_2150068_1" WHERE "nssdc_id"='1960-009A';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2150068_1" ( "satellite" text, "launch_date_utc" text, "decay" text, "mass_kg" text, "diameter_m" text, "nssdc_id" text, "nation" text, "usage" text ); Question: What is the decay for the sattelite with an id that is 1990-081c? <|assistant|> SELECT "decay" FROM "table1_2150068_1" WHERE "nssdc_id"='1990-081C';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "soundtrack" ( "year" real, "song_title" text, "artist" text, "genre" text, "original_game" text, "band_tier_venue" text, "exportable_to_gh5_bh" text ); Question: How many song titles belong to the artist Ratt? <|assistant|> SELECT COUNT("song_title") FROM "soundtrack" WHERE "artist"='Ratt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "soundtrack" ( "year" real, "song_title" text, "artist" text, "genre" text, "original_game" text, "band_tier_venue" text, "exportable_to_gh5_bh" text ); Question: What is every original game for the artist Lynyrd Skynyrd? <|assistant|> SELECT "original_game" FROM "soundtrack" WHERE "artist"='Lynyrd Skynyrd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "soundtrack" ( "year" real, "song_title" text, "artist" text, "genre" text, "original_game" text, "band_tier_venue" text, "exportable_to_gh5_bh" text ); Question: What is every song title for the rock genre and Guitar Hero as original game and the artist is Queens of the Stone Age? <|assistant|> SELECT "song_title" FROM "soundtrack" WHERE "genre"='Rock' AND "original_game"='Guitar Hero' AND "artist"='Queens of the Stone Age';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "soundtrack" ( "year" real, "song_title" text, "artist" text, "genre" text, "original_game" text, "band_tier_venue" text, "exportable_to_gh5_bh" text ); Question: What is every song title for 2007? <|assistant|> SELECT "song_title" FROM "soundtrack" WHERE "year"=2007;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21501511_1" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); Question: What was Lambert's song choice in the top 13? <|assistant|> SELECT "song_choice" FROM "table1_21501511_1" WHERE "week_num"='Top 13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21501511_1" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); Question: What order did Lambert perform in the top 11? <|assistant|> SELECT "order_num" FROM "table1_21501511_1" WHERE "week_num"='Top 11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_21501511_1" ( "week_num" text, "theme" text, "song_choice" text, "original_artist" text, "order_num" text, "result" text ); Question: What week was themed disco? <|assistant|> SELECT "week_num" FROM "table1_21501511_1" WHERE "theme"='Disco';<|endoftext|>