chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sycamores_in_professional_leagues_50\" (\n \"player\" text,\n \"class_year\" real,\n \"position\" text,\n \"teams\" text,\n \"career\" text,\n \"highlight_s\" text\n);\n\nQuestion: What class year was the player whose highlights were 35 career INTs from?" }, { "role": "assistant", "content": "SELECT MIN(\"class_year\") FROM \"sycamores_in_professional_leagues_50\" WHERE \"highlight_s\"='35 Career INTs';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sycamores_in_professional_leagues_50\" (\n \"player\" text,\n \"class_year\" real,\n \"position\" text,\n \"teams\" text,\n \"career\" text,\n \"highlight_s\" text\n);\n\nQuestion: What class year was the player who played for Buffalo from? " }, { "role": "assistant", "content": "SELECT MIN(\"class_year\") FROM \"sycamores_in_professional_leagues_50\" WHERE \"teams\"='Buffalo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"gore_pct\" text,\n \"gore_num\" real,\n \"bush_pct\" text,\n \"bush_num\" real,\n \"others_pct\" text,\n \"others_num\" text\n);\n\nQuestion: Name the gore number for others # 6.6%" }, { "role": "assistant", "content": "SELECT MIN(\"gore_num\") FROM \"by_county\" WHERE \"others_num\"='6.6%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"gore_pct\" text,\n \"gore_num\" real,\n \"bush_pct\" text,\n \"bush_num\" real,\n \"others_pct\" text,\n \"others_num\" text\n);\n\nQuestion: Name the others % for bush number 1372" }, { "role": "assistant", "content": "SELECT \"others_pct\" FROM \"by_county\" WHERE \"bush_num\"=1372;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"gore_pct\" text,\n \"gore_num\" real,\n \"bush_pct\" text,\n \"bush_num\" real,\n \"others_pct\" text,\n \"others_num\" text\n);\n\nQuestion: Name the gore number for others % being 5.3%" }, { "role": "assistant", "content": "SELECT \"gore_num\" FROM \"by_county\" WHERE \"others_pct\"='5.3%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"gore_pct\" text,\n \"gore_num\" real,\n \"bush_pct\" text,\n \"bush_num\" real,\n \"others_pct\" text,\n \"others_num\" text\n);\n\nQuestion: Name the couty for others% 5.8" }, { "role": "assistant", "content": "SELECT \"county\" FROM \"by_county\" WHERE \"others_pct\"='5.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"county\" text,\n \"gore_pct\" text,\n \"gore_num\" real,\n \"bush_pct\" text,\n \"bush_num\" real,\n \"others_pct\" text,\n \"others_num\" text\n);\n\nQuestion: Name the number of bush % for elko" }, { "role": "assistant", "content": "SELECT COUNT(\"bush_pct\") FROM \"by_county\" WHERE \"county\"='Elko';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: If the series is ADAC GT Masters and poles is 1, what is the name of the team?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"career_summary\" WHERE \"poles\"=1 AND \"series\"='ADAC GT Masters';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: If the position of 26th what is the season total number?" }, { "role": "assistant", "content": "SELECT COUNT(\"season\") FROM \"career_summary\" WHERE \"position\"='26th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: If the points is 41, what is the season?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"career_summary\" WHERE \"points\"='41';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_recent_lower_tier_county_cup_sou\" (\n \"season\" text,\n \"junior_south_winners\" text,\n \"intermediate_south_winners\" text,\n \"minor_south_winners\" text,\n \"primary_south_winners\" text\n);\n\nQuestion: If the primary (South) winners is Inter The Bloomfield, what is the season total number?" }, { "role": "assistant", "content": "SELECT COUNT(\"season\") FROM \"list_of_recent_lower_tier_county_cup_sou\" WHERE \"primary_south_winners\"='Inter The Bloomfield';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_recent_lower_tier_county_cup_sou\" (\n \"season\" text,\n \"junior_south_winners\" text,\n \"intermediate_south_winners\" text,\n \"minor_south_winners\" text,\n \"primary_south_winners\" text\n);\n\nQuestion: What is the season total number if the primary (South) winners is Ridings High 'A'?" }, { "role": "assistant", "content": "SELECT COUNT(\"season\") FROM \"list_of_recent_lower_tier_county_cup_sou\" WHERE \"primary_south_winners\"='Ridings High ''A''';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_recent_lower_tier_county_cup_sou\" (\n \"season\" text,\n \"junior_south_winners\" text,\n \"intermediate_south_winners\" text,\n \"minor_south_winners\" text,\n \"primary_south_winners\" text\n);\n\nQuestion: What is the year of the season if the intermediate (South) winners is Southmead Athletic?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"list_of_recent_lower_tier_county_cup_sou\" WHERE \"intermediate_south_winners\"='Southmead Athletic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_recent_lower_tier_county_cup_sou\" (\n \"season\" text,\n \"junior_south_winners\" text,\n \"intermediate_south_winners\" text,\n \"minor_south_winners\" text,\n \"primary_south_winners\" text\n);\n\nQuestion: What is the season date if the minor (South) winners is Bristol Sanctuary XI?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"list_of_recent_lower_tier_county_cup_sou\" WHERE \"minor_south_winners\"='Bristol Sanctuary XI';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_recent_lower_tier_county_cup_sou\" (\n \"season\" text,\n \"junior_south_winners\" text,\n \"intermediate_south_winners\" text,\n \"minor_south_winners\" text,\n \"primary_south_winners\" text\n);\n\nQuestion: What isthe minor (South) winners total number is the primary (South) winners is Mendip Gate?" }, { "role": "assistant", "content": "SELECT COUNT(\"minor_south_winners\") FROM \"list_of_recent_lower_tier_county_cup_sou\" WHERE \"primary_south_winners\"='Mendip Gate';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23014685_1\" (\n \"no\" real,\n \"place_date\" text,\n \"target\" text,\n \"area_damaged\" text,\n \"cause_of_damage\" text,\n \"intercepted_by_patriot\" text\n);\n\nQuestion: What area was damaged when King Khalid Military City was targeted?" }, { "role": "assistant", "content": "SELECT \"area_damaged\" FROM \"table1_23014685_1\" WHERE \"target\"='King Khalid Military City';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23014685_1\" (\n \"no\" real,\n \"place_date\" text,\n \"target\" text,\n \"area_damaged\" text,\n \"cause_of_damage\" text,\n \"intercepted_by_patriot\" text\n);\n\nQuestion: What was the place and date that the Apartments area was damaged?" }, { "role": "assistant", "content": "SELECT \"place_date\" FROM \"table1_23014685_1\" WHERE \"area_damaged\"='Apartments area';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23014685_1\" (\n \"no\" real,\n \"place_date\" text,\n \"target\" text,\n \"area_damaged\" text,\n \"cause_of_damage\" text,\n \"intercepted_by_patriot\" text\n);\n\nQuestion: Was the missile intercepted by patriot when the parking lot was damaged?" }, { "role": "assistant", "content": "SELECT \"intercepted_by_patriot\" FROM \"table1_23014685_1\" WHERE \"area_damaged\"='Parking lot';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23014685_1\" (\n \"no\" real,\n \"place_date\" text,\n \"target\" text,\n \"area_damaged\" text,\n \"cause_of_damage\" text,\n \"intercepted_by_patriot\" text\n);\n\nQuestion: What number missile led to damage to the Islamic University campus?" }, { "role": "assistant", "content": "SELECT MIN(\"no\") FROM \"table1_23014685_1\" WHERE \"area_damaged\"='Islamic University campus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23015396_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text\n);\n\nQuestion: Name the number of year for mark martin" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"table1_23015396_1\" WHERE \"driver\"='Mark Martin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23015396_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"manufacturer\" text,\n \"laps\" real,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text\n);\n\nQuestion: Name the number of year for june 30" }, { "role": "assistant", "content": "SELECT COUNT(\"year\") FROM \"table1_23015396_1\" WHERE \"date\"='June 30';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"32_nm_dual_core\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"gpu_frequency\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the model number for part numbers of cm80616003177acbx80616i5660?" }, { "role": "assistant", "content": "SELECT \"model_number\" FROM \"32_nm_dual_core\" WHERE \"part_number_s\"='CM80616003177ACBX80616I5660';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"32_nm_dual_core\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"gpu_frequency\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is every release price(USD) for model number core i5-650?" }, { "role": "assistant", "content": "SELECT \"release_price_usd\" FROM \"32_nm_dual_core\" WHERE \"model_number\"='Core i5-650';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"32_nm_dual_core\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"gpu_frequency\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: How many frequencies have a model number of core i5-655k?" }, { "role": "assistant", "content": "SELECT COUNT(\"frequency\") FROM \"32_nm_dual_core\" WHERE \"model_number\"='Core i5-655K';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"32_nm_dual_core\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"gpu_frequency\" text,\n \"cores\" real,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"i_o_bus\" text,\n \"mult\" text,\n \"memory\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is every part number with model number core i5-670?" }, { "role": "assistant", "content": "SELECT \"part_number_s\" FROM \"32_nm_dual_core\" WHERE \"model_number\"='Core i5-670';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2009_10_big_ten_conference_men_s_basketb\" (\n \"acc_team\" text,\n \"big_ten_team\" text,\n \"location\" text,\n \"attendance\" real,\n \"winner\" text,\n \"challenge_leader\" text\n);\n\nQuestion: What is the record for Big Ten Team #4 Purdue?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"2009_10_big_ten_conference_men_s_basketb\" WHERE \"big_ten_team\"='#4 Purdue';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: Name the avg start for avg finish being 24.2" }, { "role": "assistant", "content": "SELECT \"avg_start\" FROM \"nascar_sprint_cup_series\" WHERE \"avg_finish\"='24.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: Name the year for avg start being 22.4" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"nascar_sprint_cup_series\" WHERE \"avg_start\"='22.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kei_and_ki_indexes_by_country\" (\n \"country\" text,\n \"kei\" text,\n \"ki\" text,\n \"economic_incentive_regime\" text,\n \"innovation\" text,\n \"education\" text,\n \"ict\" text,\n \"2008_rank\" real\n);\n\nQuestion: How many KEI catagories are listed when the economic incentive regime is 2.56? " }, { "role": "assistant", "content": "SELECT COUNT(\"kei\") FROM \"kei_and_ki_indexes_by_country\" WHERE \"economic_incentive_regime\"='2.56';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kei_and_ki_indexes_by_country\" (\n \"country\" text,\n \"kei\" text,\n \"ki\" text,\n \"economic_incentive_regime\" text,\n \"innovation\" text,\n \"education\" text,\n \"ict\" text,\n \"2008_rank\" real\n);\n\nQuestion: What is the innovation when the economic incentive grime is 7.14? " }, { "role": "assistant", "content": "SELECT \"innovation\" FROM \"kei_and_ki_indexes_by_country\" WHERE \"economic_incentive_regime\"='7.14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kei_and_ki_indexes_by_country\" (\n \"country\" text,\n \"kei\" text,\n \"ki\" text,\n \"economic_incentive_regime\" text,\n \"innovation\" text,\n \"education\" text,\n \"ict\" text,\n \"2008_rank\" real\n);\n\nQuestion: What is the education in Nepal? " }, { "role": "assistant", "content": "SELECT \"education\" FROM \"kei_and_ki_indexes_by_country\" WHERE \"country\"='Nepal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kei_and_ki_indexes_by_country\" (\n \"country\" text,\n \"kei\" text,\n \"ki\" text,\n \"economic_incentive_regime\" text,\n \"innovation\" text,\n \"education\" text,\n \"ict\" text,\n \"2008_rank\" real\n);\n\nQuestion: What is the 2008 rank of Djibouti? " }, { "role": "assistant", "content": "SELECT \"2008_rank\" FROM \"kei_and_ki_indexes_by_country\" WHERE \"country\"='Djibouti';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kei_and_ki_indexes_by_country\" (\n \"country\" text,\n \"kei\" text,\n \"ki\" text,\n \"economic_incentive_regime\" text,\n \"innovation\" text,\n \"education\" text,\n \"ict\" text,\n \"2008_rank\" real\n);\n\nQuestion: What is the ICT when education is 1.73 and KI is ag 1.99? " }, { "role": "assistant", "content": "SELECT \"ict\" FROM \"kei_and_ki_indexes_by_country\" WHERE \"education\"='1.73' AND \"ki\"='1.99';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kei_and_ki_indexes_by_country\" (\n \"country\" text,\n \"kei\" text,\n \"ki\" text,\n \"economic_incentive_regime\" text,\n \"innovation\" text,\n \"education\" text,\n \"ict\" text,\n \"2008_rank\" real\n);\n\nQuestion: What is the education when the economic incentive regime is 1.58?" }, { "role": "assistant", "content": "SELECT \"education\" FROM \"kei_and_ki_indexes_by_country\" WHERE \"economic_incentive_regime\"='1.58';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23114705_7\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"n_z_viewers_thousand\" text\n);\n\nQuestion: How many thousands of viewers tuned in for \"Make Mad the Guilty and Appal the Free\"?" }, { "role": "assistant", "content": "SELECT \"n_z_viewers_thousand\" FROM \"table1_23114705_7\" WHERE \"title\"='\\\"Make Mad the Guilty and Appal the Free\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23114705_7\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"n_z_viewers_thousand\" text\n);\n\nQuestion: When did \"Follow Her Close\" air?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_23114705_7\" WHERE \"title\"='\\\"Follow Her Close\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23114705_7\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"n_z_viewers_thousand\" text\n);\n\nQuestion: What was the air date of the episod that had 456.58 thousand viewers?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_23114705_7\" WHERE \"n_z_viewers_thousand\"='456.58';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2311410_1\" (\n \"season\" text,\n \"episodes\" real,\n \"series_premiere\" text,\n \"series_finale\" text,\n \"winning_couple\" text,\n \"winning_profit_aud\" text,\n \"host_s\" text,\n \"judges\" text\n);\n\nQuestion: What season had a winning profit of $15,000?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"table1_2311410_1\" WHERE \"winning_profit_aud\"='$15,000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2311410_1\" (\n \"season\" text,\n \"episodes\" real,\n \"series_premiere\" text,\n \"series_finale\" text,\n \"winning_couple\" text,\n \"winning_profit_aud\" text,\n \"host_s\" text,\n \"judges\" text\n);\n\nQuestion: How many series premieres did the season \"All-stars\" have?" }, { "role": "assistant", "content": "SELECT COUNT(\"series_premiere\") FROM \"table1_2311410_1\" WHERE \"season\"='All-Stars';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2311410_5\" (\n \"week\" real,\n \"room_s\" text,\n \"john_and_neisha\" text,\n \"mark_and_duncan\" text,\n \"erin_and_jake\" text,\n \"chez_and_brenton\" text,\n \"winner\" text\n);\n\nQuestion: Name the erin and jake for week 4" }, { "role": "assistant", "content": "SELECT \"erin_and_jake\" FROM \"table1_2311410_5\" WHERE \"week\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23117208_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text,\n \"viewers_millions\" text\n);\n\nQuestion: when the number of spectator are 5.28 millions, which is the smallest number of the episode in series? " }, { "role": "assistant", "content": "SELECT MIN(\"no_in_series\") FROM \"table1_23117208_3\" WHERE \"viewers_millions\"='5.28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23117208_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text,\n \"viewers_millions\" text\n);\n\nQuestion: which is the biggest number of episode in the season, where the number of the episode in series is 20?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_season\") FROM \"table1_23117208_3\" WHERE \"no_in_series\"=20;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23117208_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text,\n \"viewers_millions\" text\n);\n\nQuestion: what is the name of the episode when the number of spectators was 5.60 millions?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_23117208_3\" WHERE \"viewers_millions\"='5.60';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23117208_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text,\n \"viewers_millions\" text\n);\n\nQuestion: how many millions of spectator did has the episode whose prod.code was rp#213?" }, { "role": "assistant", "content": "SELECT \"viewers_millions\" FROM \"table1_23117208_3\" WHERE \"prod_code\"='RP#213';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23117208_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text,\n \"viewers_millions\" text\n);\n\nQuestion: which is the biggest number of episode in the season, when the director of the episode was Constantine Makris?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_season\") FROM \"table1_23117208_3\" WHERE \"directed_by\"='Constantine Makris';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23117208_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text,\n \"viewers_millions\" text\n);\n\nQuestion: What is the name of the episode that was written by Michael Rauch?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_23117208_5\" WHERE \"written_by\"='Michael Rauch';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23117208_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text,\n \"viewers_millions\" text\n);\n\nQuestion: For the episode directed by Matthew Penn, what is the total number in the series?" }, { "role": "assistant", "content": "SELECT \"no_in_series\" FROM \"table1_23117208_5\" WHERE \"directed_by\"='Matthew Penn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23117208_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text,\n \"viewers_millions\" text\n);\n\nQuestion: Name the production code for 4.92 million viewers" }, { "role": "assistant", "content": "SELECT \"prod_code\" FROM \"table1_23117208_4\" WHERE \"viewers_millions\"='4.92';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23117208_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text,\n \"viewers_millions\" text\n);\n\nQuestion: Name the least number in season for jessica ball" }, { "role": "assistant", "content": "SELECT MIN(\"no_in_season\") FROM \"table1_23117208_4\" WHERE \"written_by\"='Jessica Ball';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team_name\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"final_placing\" text\n);\n\nQuestion: How many flaps did he have when he had 109 points?" }, { "role": "assistant", "content": "SELECT MAX(\"f_laps\") FROM \"career_summary\" WHERE \"points\"=109;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team_name\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"final_placing\" text\n);\n\nQuestion: How many wins did he have with carlin motorsport?" }, { "role": "assistant", "content": "SELECT COUNT(\"wins\") FROM \"career_summary\" WHERE \"team_name\"='Carlin Motorsport';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team_name\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"final_placing\" text\n);\n\nQuestion: What was the most races he had in a season?" }, { "role": "assistant", "content": "SELECT MAX(\"races\") FROM \"career_summary\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"player\" text,\n \"rr_w_l\" text,\n \"sets_w_l\" text,\n \"games_w_l\" text,\n \"standings\" real\n);\n\nQuestion: What are Ken Rosewall's sets w-l?" }, { "role": "assistant", "content": "SELECT \"sets_w_l\" FROM \"standings\" WHERE \"player\"='Ken Rosewall';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"player\" text,\n \"rr_w_l\" text,\n \"sets_w_l\" text,\n \"games_w_l\" text,\n \"standings\" real\n);\n\nQuestion: What are Arthur Ashe's games w-l?" }, { "role": "assistant", "content": "SELECT \"games_w_l\" FROM \"standings\" WHERE \"player\"='Arthur Ashe';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"player\" text,\n \"rr_w_l\" text,\n \"sets_w_l\" text,\n \"games_w_l\" text,\n \"standings\" real\n);\n\nQuestion: Name the games w-1 for cliff richey" }, { "role": "assistant", "content": "SELECT \"games_w_l\" FROM \"standings\" WHERE \"player\"='Cliff Richey';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership_progress_table\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"points_classification\" text,\n \"youth_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: What stage number had the general classification Rory Sutherland?" }, { "role": "assistant", "content": "SELECT COUNT(\"stage\") FROM \"classification_leadership_progress_table\" WHERE \"general_classification\"='Rory Sutherland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership_progress_table\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"points_classification\" text,\n \"youth_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: Who was the Youth Classification in the race with Kenneth Hanson as Mountains Classification and Lucas Sebastian Haedo as winner?" }, { "role": "assistant", "content": "SELECT \"youth_classification\" FROM \"classification_leadership_progress_table\" WHERE \"mountains_classification\"='Kenneth Hanson' AND \"winner\"='Lucas Sebastian Haedo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership_progress_table\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"points_classification\" text,\n \"youth_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: Who won the race with Tom Zirbel as Mountains Classification and Thomas Soladay as Points Classification?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"classification_leadership_progress_table\" WHERE \"mountains_classification\"='Tom Zirbel' AND \"points_classification\"='Thomas Soladay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership_progress_table\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"points_classification\" text,\n \"youth_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: Who was Mountains Classification in the race with Nick Frey as Youth Classification and Tom Zirbel as Points Classification?" }, { "role": "assistant", "content": "SELECT \"mountains_classification\" FROM \"classification_leadership_progress_table\" WHERE \"youth_classification\"='Nick Frey' AND \"points_classification\"='Tom Zirbel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"classification_leadership_progress_table\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"points_classification\" text,\n \"youth_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: How many Mountains Classifications were in the race with Mike Northey as Youth Classification?" }, { "role": "assistant", "content": "SELECT COUNT(\"mountains_classification\") FROM \"classification_leadership_progress_table\" WHERE \"youth_classification\"='Mike Northey';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23143607_1\" (\n \"autonomous_community\" text,\n \"organization\" text,\n \"television_channels\" text,\n \"radio_stations\" text,\n \"foundation\" real\n);\n\nQuestion: How many foundation dates were there when the television channels is canal nou canal nou dos canal nou 24 tvvi?" }, { "role": "assistant", "content": "SELECT COUNT(\"foundation\") FROM \"table1_23143607_1\" WHERE \"television_channels\"='Canal Nou Canal Nou Dos Canal Nou 24 TVVi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23143607_1\" (\n \"autonomous_community\" text,\n \"organization\" text,\n \"television_channels\" text,\n \"radio_stations\" text,\n \"foundation\" real\n);\n\nQuestion: If the radio stations is radio nou si radio radio nou m\u00fasica; what were the total number of television channels?" }, { "role": "assistant", "content": "SELECT COUNT(\"television_channels\") FROM \"table1_23143607_1\" WHERE \"radio_stations\"='Radio Nou Si Radio Radio Nou M\u00fasica';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23143607_1\" (\n \"autonomous_community\" text,\n \"organization\" text,\n \"television_channels\" text,\n \"radio_stations\" text,\n \"foundation\" real\n);\n\nQuestion: What is the total number of television channels when one of the radio stations is onda madrid?" }, { "role": "assistant", "content": "SELECT COUNT(\"television_channels\") FROM \"table1_23143607_1\" WHERE \"radio_stations\"='Onda Madrid';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23143607_1\" (\n \"autonomous_community\" text,\n \"organization\" text,\n \"television_channels\" text,\n \"radio_stations\" text,\n \"foundation\" real\n);\n\nQuestion: Which of the radio stations has the organization of ente p\u00fablico radio televisi\u00f3n madrid (eprtvm)?" }, { "role": "assistant", "content": "SELECT \"radio_stations\" FROM \"table1_23143607_1\" WHERE \"organization\"='Ente P\u00fablico Radio Televisi\u00f3n Madrid (EPRTVM)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23143607_1\" (\n \"autonomous_community\" text,\n \"organization\" text,\n \"television_channels\" text,\n \"radio_stations\" text,\n \"foundation\" real\n);\n\nQuestion: What is the autonomous community with television channels tpa tpa2 rtpa internacional?" }, { "role": "assistant", "content": "SELECT \"autonomous_community\" FROM \"table1_23143607_1\" WHERE \"television_channels\"='TPA TPA2 RTPA Internacional';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23170118_2\" (\n \"episode_number\" text,\n \"title\" text,\n \"villains\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who was the writer of \"Face Off\"?" }, { "role": "assistant", "content": "SELECT \"writer\" FROM \"table1_23170118_2\" WHERE \"title\"='\\\"Face Off\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23170118_2\" (\n \"episode_number\" text,\n \"title\" text,\n \"villains\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who were the directors of the episode \"nano nits\" written by nathan cockerill?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_23170118_2\" WHERE \"writer\"='Nathan Cockerill' AND \"title\"='\\\"Nano Nits\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23170118_2\" (\n \"episode_number\" text,\n \"title\" text,\n \"villains\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who are the villains in \"the others\"?" }, { "role": "assistant", "content": "SELECT \"villains\" FROM \"table1_23170118_2\" WHERE \"title\"='\\\"The Others\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23170118_2\" (\n \"episode_number\" text,\n \"title\" text,\n \"villains\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: What was the original air date of the episode \"nano nits\"?" }, { "role": "assistant", "content": "SELECT \"original_airdate\" FROM \"table1_23170118_2\" WHERE \"title\"='\\\"Nano Nits\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23170118_2\" (\n \"episode_number\" text,\n \"title\" text,\n \"villains\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: How many villains were in episode 3 (13)?" }, { "role": "assistant", "content": "SELECT COUNT(\"villains\") FROM \"table1_23170118_2\" WHERE \"episode_number\"='3 (13)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_23170118_2\" (\n \"episode_number\" text,\n \"title\" text,\n \"villains\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text\n);\n\nQuestion: What was the title of the episode where reg lacey (aka mr. b) played the villain?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_23170118_2\" WHERE \"villains\"='Reg Lacey (AKA Mr. B)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"minutes\" real,\n \"field_goals\" real,\n \"three_pointers\" real,\n \"free_throws\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"blocks\" real,\n \"steals\" real,\n \"points\" real\n);\n\nQuestion: Name the most three pointers for dewanna bonner" }, { "role": "assistant", "content": "SELECT MAX(\"three_pointers\") FROM \"player_stats\" WHERE \"player\"='DeWanna Bonner';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"minutes\" real,\n \"field_goals\" real,\n \"three_pointers\" real,\n \"free_throws\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"blocks\" real,\n \"steals\" real,\n \"points\" real\n);\n\nQuestion: Name the least field goals for chantel hilliard" }, { "role": "assistant", "content": "SELECT MIN(\"field_goals\") FROM \"player_stats\" WHERE \"player\"='Chantel Hilliard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"minutes\" real,\n \"field_goals\" real,\n \"three_pointers\" real,\n \"free_throws\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"blocks\" real,\n \"steals\" real,\n \"points\" real\n);\n\nQuestion: Name the most minutes for morgan jennings" }, { "role": "assistant", "content": "SELECT MAX(\"minutes\") FROM \"player_stats\" WHERE \"player\"='Morgan Jennings';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"minutes\" real,\n \"field_goals\" real,\n \"three_pointers\" real,\n \"free_throws\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"blocks\" real,\n \"steals\" real,\n \"points\" real\n);\n\nQuestion: Name the most free throws for 4 steals" }, { "role": "assistant", "content": "SELECT MAX(\"free_throws\") FROM \"player_stats\" WHERE \"steals\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"conference_standings\" (\n \"team\" text,\n \"sec_wins\" real,\n \"sec_losses\" real,\n \"percentage\" text,\n \"home_record\" text,\n \"road_record\" text,\n \"overall_record\" text\n);\n\nQuestion: What is the road record for the team with an overall record of 22-11?" }, { "role": "assistant", "content": "SELECT \"road_record\" FROM \"conference_standings\" WHERE \"overall_record\"='22-11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"conference_standings\" (\n \"team\" text,\n \"sec_wins\" real,\n \"sec_losses\" real,\n \"percentage\" text,\n \"home_record\" text,\n \"road_record\" text,\n \"overall_record\" text\n);\n\nQuestion: What is the road record for Vanderbilt?" }, { "role": "assistant", "content": "SELECT COUNT(\"road_record\") FROM \"conference_standings\" WHERE \"team\"='Vanderbilt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"conference_standings\" (\n \"team\" text,\n \"sec_wins\" real,\n \"sec_losses\" real,\n \"percentage\" text,\n \"home_record\" text,\n \"road_record\" text,\n \"overall_record\" text\n);\n\nQuestion: What team's overal record is 22-11?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"conference_standings\" WHERE \"overall_record\"='22-11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"conference_standings\" (\n \"team\" text,\n \"sec_wins\" real,\n \"sec_losses\" real,\n \"percentage\" text,\n \"home_record\" text,\n \"road_record\" text,\n \"overall_record\" text\n);\n\nQuestion: What is the percentage for the team with a road record of 3-4 and a home record of 7-0?" }, { "role": "assistant", "content": "SELECT \"percentage\" FROM \"conference_standings\" WHERE \"road_record\"='3-4' AND \"home_record\"='7-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"minutes\" real,\n \"field_goals\" real,\n \"three_pointers\" real,\n \"free_throws\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"blocks\" real,\n \"steals\" real,\n \"points\" real\n);\n\nQuestion: Name the number of three pointers for 67" }, { "role": "assistant", "content": "SELECT COUNT(\"three_pointers\") FROM \"player_stats\" WHERE \"points\"=67;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"minutes\" real,\n \"field_goals\" real,\n \"three_pointers\" real,\n \"free_throws\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"blocks\" real,\n \"steals\" real,\n \"points\" real\n);\n\nQuestion: Name the field goals for alexis yackley" }, { "role": "assistant", "content": "SELECT MAX(\"field_goals\") FROM \"player_stats\" WHERE \"player\"='Alexis Yackley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"minutes\" real,\n \"field_goals\" real,\n \"three_pointers\" real,\n \"free_throws\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"blocks\" real,\n \"steals\" real,\n \"points\" real\n);\n\nQuestion: Name the number of assists for 321 minutes " }, { "role": "assistant", "content": "SELECT COUNT(\"assists\") FROM \"player_stats\" WHERE \"minutes\"=321;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"player_stats\" (\n \"player\" text,\n \"games_played\" real,\n \"minutes\" real,\n \"field_goals\" real,\n \"three_pointers\" real,\n \"free_throws\" real,\n \"rebounds\" real,\n \"assists\" real,\n \"blocks\" real,\n \"steals\" real,\n \"points\" real\n);\n\nQuestion: Name the number of players for field goals being 25 and blocks is 6" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"player_stats\" WHERE \"field_goals\"=25 AND \"blocks\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the location attendance of 5-15" }, { "role": "assistant", "content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"record\"='5-15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the record for golden state" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"team\"='Golden State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the number of high points for record 5-17" }, { "role": "assistant", "content": "SELECT COUNT(\"high_points\") FROM \"game_log\" WHERE \"record\"='5-17';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Name the record for houston" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"game_log\" WHERE \"team\"='Houston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"cardinal_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: Name the cardinal points for 19-4 record" }, { "role": "assistant", "content": "SELECT MIN(\"cardinal_points\") FROM \"schedule\" WHERE \"record\"='19-4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"location\" text,\n \"opponent\" text,\n \"cardinal_points\" real,\n \"opp_points\" real,\n \"record\" text\n);\n\nQuestion: Name the location for 2-1 record" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"schedule\" WHERE \"record\"='2-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"base_salary\" (\n \"gs_grade\" real,\n \"step_1\" text,\n \"step_2\" text,\n \"step_3\" text,\n \"step_4\" text,\n \"step_5\" text,\n \"step_6\" text,\n \"step_7\" text,\n \"step_8\" text,\n \"step_9\" text,\n \"step_10\" text\n);\n\nQuestion: Name the total number of step 6 for 11 gs grade" }, { "role": "assistant", "content": "SELECT COUNT(\"step_6\") FROM \"base_salary\" WHERE \"gs_grade\"=11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wta_tier_i\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: such as are entire the rating of closing where championship is moscow" }, { "role": "assistant", "content": "SELECT \"score_in_final\" FROM \"wta_tier_i\" WHERE \"championship\"='Moscow';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wta_tier_i\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: as is the quantity variety of score between ultimate the place opponents between remaining is alexandra fusai nathalie tauziat" }, { "role": "assistant", "content": "SELECT COUNT(\"score_in_final\") FROM \"wta_tier_i\" WHERE \"opponents_in_final\"='Alexandra Fusai Nathalie Tauziat';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wta_tier_i\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: what are every one of the rivals in conclusive where title is z\u00fcrich" }, { "role": "assistant", "content": "SELECT \"opponents_in_final\" FROM \"wta_tier_i\" WHERE \"championship\"='Z\u00fcrich';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"wta_tier_i\" (\n \"outcome\" text,\n \"year\" real,\n \"championship\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: what are all the score in conclusive where title is rome" }, { "role": "assistant", "content": "SELECT \"score_in_final\" FROM \"wta_tier_i\" WHERE \"championship\"='Rome';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"import\" (\n \"num\" real,\n \"importing_nation\" text,\n \"10_3_bbl_day_2011\" real,\n \"10_3_m_3_day_2011\" real,\n \"10_3_bbl_day_2009\" real,\n \"10_3_m_3_day_2009\" real,\n \"10_3_bbl_day_2006\" real,\n \"10_3_m_3_day_2006\" real\n);\n\nQuestion: At what # does 10 3 bbl/day (2006) equal 5097?" }, { "role": "assistant", "content": "SELECT MIN(\"num\") FROM \"import\" WHERE \"10_3_bbl_day_2006\"=5097;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"import\" (\n \"num\" real,\n \"importing_nation\" text,\n \"10_3_bbl_day_2011\" real,\n \"10_3_m_3_day_2011\" real,\n \"10_3_bbl_day_2009\" real,\n \"10_3_m_3_day_2009\" real,\n \"10_3_bbl_day_2006\" real,\n \"10_3_m_3_day_2006\" real\n);\n\nQuestion: In how many importing nations is 10 3 m 3 /day (2006) equivalent to 150? " }, { "role": "assistant", "content": "SELECT COUNT(\"importing_nation\") FROM \"import\" WHERE \"10_3_m_3_day_2006\"=150;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"import\" (\n \"num\" real,\n \"importing_nation\" text,\n \"10_3_bbl_day_2011\" real,\n \"10_3_m_3_day_2011\" real,\n \"10_3_bbl_day_2009\" real,\n \"10_3_m_3_day_2009\" real,\n \"10_3_bbl_day_2006\" real,\n \"10_3_m_3_day_2006\" real\n);\n\nQuestion: What is the highest number in 10 3 m 3 /day (2011) where 10 3 bbl/day (2006) is equivalent to 787?" }, { "role": "assistant", "content": "SELECT MAX(\"10_3_m_3_day_2011\") FROM \"import\" WHERE \"10_3_bbl_day_2006\"=787;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"production\" (\n \"num\" real,\n \"producing_nation\" text,\n \"10_3_bbl_d_2006\" text,\n \"10_3_bbl_d_2007\" real,\n \"10_3_bbl_d_2008\" real,\n \"10_3_bbl_d_2009\" real,\n \"present_share\" text\n);\n\nQuestion: Name the most 10 3 bbl/d (2008) for present share being 1.7%" }, { "role": "assistant", "content": "SELECT MAX(\"10_3_bbl_d_2008\") FROM \"production\" WHERE \"present_share\"='1.7%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"production\" (\n \"num\" real,\n \"producing_nation\" text,\n \"10_3_bbl_d_2006\" text,\n \"10_3_bbl_d_2007\" real,\n \"10_3_bbl_d_2008\" real,\n \"10_3_bbl_d_2009\" real,\n \"present_share\" text\n);\n\nQuestion: Name the present share for australia" }, { "role": "assistant", "content": "SELECT \"present_share\" FROM \"production\" WHERE \"producing_nation\"='Australia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"production\" (\n \"num\" real,\n \"producing_nation\" text,\n \"10_3_bbl_d_2006\" text,\n \"10_3_bbl_d_2007\" real,\n \"10_3_bbl_d_2008\" real,\n \"10_3_bbl_d_2009\" real,\n \"present_share\" text\n);\n\nQuestion: Name the 10 3 bbl/d (2009) when 10 3 bbl/d (2007) is 180" }, { "role": "assistant", "content": "SELECT \"10_3_bbl_d_2009\" FROM \"production\" WHERE \"10_3_bbl_d_2007\"=180;" } ]