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 \"replaced_pageants\" (\n \"country_territory\" text,\n \"former_pageant\" text,\n \"last_competed\" real,\n \"new_pageant\" text,\n \"franchise_since\" real\n);\n\nQuestion: How many new pageants does Aruba have?" }, { "role": "assistant", "content": "SELECT COUNT(\"new_pageant\") FROM \"replaced_pageants\" WHERE \"country_territory\"='Aruba';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"replaced_pageants\" (\n \"country_territory\" text,\n \"former_pageant\" text,\n \"last_competed\" real,\n \"new_pageant\" text,\n \"franchise_since\" real\n);\n\nQuestion: which is the new pageant from spain?" }, { "role": "assistant", "content": "SELECT \"new_pageant\" FROM \"replaced_pageants\" WHERE \"country_territory\"='Spain';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"report\" text\n);\n\nQuestion: Who was the away team when Carlton was the home team?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_16\" WHERE \"home_team\"='Carlton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"argentine_clubs_in_international_competi\" (\n \"team\" text,\n \"intercontinental\" text,\n \"recopa_1996\" text,\n \"supercopa_1996\" text,\n \"conmebol_1996\" text,\n \"copa_libertadores_1997\" text\n);\n\nQuestion: what is the number of teams where conmebol 1996 did not qualify?" }, { "role": "assistant", "content": "SELECT COUNT(\"team\") FROM \"argentine_clubs_in_international_competi\" WHERE \"conmebol_1996\"='did not qualify';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"argentine_clubs_in_international_competi\" (\n \"team\" text,\n \"intercontinental\" text,\n \"recopa_1996\" text,\n \"supercopa_1996\" text,\n \"conmebol_1996\" text,\n \"copa_libertadores_1997\" text\n);\n\nQuestion: what is the racing club where copa libertadores 1997?" }, { "role": "assistant", "content": "SELECT \"copa_libertadores_1997\" FROM \"argentine_clubs_in_international_competi\" WHERE \"team\"='Racing Club';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"argentine_clubs_in_international_competi\" (\n \"team\" text,\n \"intercontinental\" text,\n \"recopa_1996\" text,\n \"supercopa_1996\" text,\n \"conmebol_1996\" text,\n \"copa_libertadores_1997\" text\n);\n\nQuestion: what is th copa libertadores 1997 is qf?" }, { "role": "assistant", "content": "SELECT \"copa_libertadores_1997\" FROM \"argentine_clubs_in_international_competi\" WHERE \"supercopa_1996\"='QF';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"report\" text\n);\n\nQuestion: What's the maximum crowd when scg is the ground?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_19\" WHERE \"ground\"='SCG';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"report\" text\n);\n\nQuestion: What are the away teams when they scored 5.11 (41)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_19\" WHERE \"away_team_score\"='5.11 (41)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"report\" text\n);\n\nQuestion: What are the ground when the away team scored 6.9 (45)?" }, { "role": "assistant", "content": "SELECT \"ground\" FROM \"round_19\" WHERE \"away_team_score\"='6.9 (45)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"report\" text\n);\n\nQuestion: What are the ground where the crowd totals 19929?" }, { "role": "assistant", "content": "SELECT \"ground\" FROM \"round_19\" WHERE \"crowd\"=19929;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"report\" text\n);\n\nQuestion: Name the home team for manuka oval" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_18\" WHERE \"ground\"='Manuka Oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_18\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"report\" text\n);\n\nQuestion: Name the away team score for richmond" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_18\" WHERE \"away_team\"='Richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"report\" text\n);\n\nQuestion: Who made the report when the home team is north Melbourne?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"round_22\" WHERE \"home_team\"='North Melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"report\" text\n);\n\nQuestion: Who played Richmond at home?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_22\" WHERE \"away_team\"='Richmond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_22\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"report\" text\n);\n\nQuestion: Who has the home ground Aami stadium?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_22\" WHERE \"ground\"='AAMI Stadium';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"south_carolina\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text,\n \"candidates\" text\n);\n\nQuestion: Who were all candidate when incumbent was D. Wyatt Aiken?" }, { "role": "assistant", "content": "SELECT \"candidates\" FROM \"south_carolina\" WHERE \"incumbent\"='D. Wyatt Aiken';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"south_carolina\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text,\n \"candidates\" text\n);\n\nQuestion: How many incumbents for the district of South Carolina 5?" }, { "role": "assistant", "content": "SELECT COUNT(\"incumbent\") FROM \"south_carolina\" WHERE \"district\"='South Carolina 5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"south_carolina\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text,\n \"candidates\" text\n);\n\nQuestion: Who was everyone first elected when incumbent was John J. Hemphill?" }, { "role": "assistant", "content": "SELECT \"first_elected\" FROM \"south_carolina\" WHERE \"incumbent\"='John J. Hemphill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"juniors\" (\n \"year\" real,\n \"boys_singles\" text,\n \"girls_singles\" text,\n \"boys_doubles\" text,\n \"girls_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: When the girls singles is lindaweni fanetri what is the mixed doubled?" }, { "role": "assistant", "content": "SELECT \"mixed_doubles\" FROM \"juniors\" WHERE \"girls_singles\"='Lindaweni Fanetri';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"juniors\" (\n \"year\" real,\n \"boys_singles\" text,\n \"girls_singles\" text,\n \"boys_doubles\" text,\n \"girls_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: When the girls doubles is ayu pratiwi anggi widia what is the boys doubles?" }, { "role": "assistant", "content": "SELECT \"boys_doubles\" FROM \"juniors\" WHERE \"girls_doubles\"='Ayu Pratiwi Anggi Widia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"juniors\" (\n \"year\" real,\n \"boys_singles\" text,\n \"girls_singles\" text,\n \"boys_doubles\" text,\n \"girls_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: When mixed doubles is didit juang indrianto yayu rahayu what is the most current year?" }, { "role": "assistant", "content": "SELECT MAX(\"year\") FROM \"juniors\" WHERE \"mixed_doubles\"='Didit Juang Indrianto Yayu Rahayu';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"juniors\" (\n \"year\" real,\n \"boys_singles\" text,\n \"girls_singles\" text,\n \"boys_doubles\" text,\n \"girls_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: When mixed doubles is danny bawa chrisnanta debby susanto what is the boys singles?" }, { "role": "assistant", "content": "SELECT \"boys_singles\" FROM \"juniors\" WHERE \"mixed_doubles\"='Danny Bawa Chrisnanta Debby Susanto';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"juniors\" (\n \"year\" real,\n \"boys_singles\" text,\n \"girls_singles\" text,\n \"boys_doubles\" text,\n \"girls_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: When girls doubles is anneke feinya agustin wenny setiawati what is the mixed doubles?" }, { "role": "assistant", "content": "SELECT \"mixed_doubles\" FROM \"juniors\" WHERE \"girls_doubles\"='Anneke Feinya Agustin Wenny Setiawati';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14325653_2\" (\n \"year_ceremony\" text,\n \"video_game\" text,\n \"publisher_s\" text,\n \"platform_s_a\" text,\n \"result\" text\n);\n\nQuestion: Name the total number of publishers for flushed away" }, { "role": "assistant", "content": "SELECT COUNT(\"publisher_s\") FROM \"table1_14325653_2\" WHERE \"video_game\"='Flushed Away';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14325653_2\" (\n \"year_ceremony\" text,\n \"video_game\" text,\n \"publisher_s\" text,\n \"platform_s_a\" text,\n \"result\" text\n);\n\nQuestion: Name the publisher for resident evil 4" }, { "role": "assistant", "content": "SELECT \"publisher_s\" FROM \"table1_14325653_2\" WHERE \"video_game\"='Resident Evil 4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14330096_4\" (\n \"totalnum\" real,\n \"seriesnum\" real,\n \"title\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the highest total number?" }, { "role": "assistant", "content": "SELECT MAX(\"totalnum\") FROM \"table1_14330096_4\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14330096_4\" (\n \"totalnum\" real,\n \"seriesnum\" real,\n \"title\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many of the episodes have Roger Goldby as the director?" }, { "role": "assistant", "content": "SELECT \"totalnum\" FROM \"table1_14330096_4\" WHERE \"director\"='Roger Goldby';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14330096_4\" (\n \"totalnum\" real,\n \"seriesnum\" real,\n \"title\" text,\n \"writer\" text,\n \"director\" text,\n \"original_air_date\" text\n);\n\nQuestion: Which episodes have Patrick Lau as the director and Lisa Holdsworth as the writer?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_14330096_4\" WHERE \"director\"='Patrick Lau' AND \"writer\"='Lisa Holdsworth';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_agr_reactors\" (\n \"agr_power_station\" text,\n \"net_m_we\" real,\n \"construction_started\" real,\n \"connected_to_grid\" real,\n \"commercial_operation\" real,\n \"accounting_closure_date\" real\n);\n\nQuestion: What is the Closure date of Hunterston B" }, { "role": "assistant", "content": "SELECT MIN(\"accounting_closure_date\") FROM \"current_agr_reactors\" WHERE \"agr_power_station\"='Hunterston B';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_agr_reactors\" (\n \"agr_power_station\" text,\n \"net_m_we\" real,\n \"construction_started\" real,\n \"connected_to_grid\" real,\n \"commercial_operation\" real,\n \"accounting_closure_date\" real\n);\n\nQuestion: How many power stations are connected to grid at Heysham 2" }, { "role": "assistant", "content": "SELECT COUNT(\"connected_to_grid\") FROM \"current_agr_reactors\" WHERE \"agr_power_station\"='Heysham 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_agr_reactors\" (\n \"agr_power_station\" text,\n \"net_m_we\" real,\n \"construction_started\" real,\n \"connected_to_grid\" real,\n \"commercial_operation\" real,\n \"accounting_closure_date\" real\n);\n\nQuestion: What year did construction start at Heysham 1" }, { "role": "assistant", "content": "SELECT \"construction_started\" FROM \"current_agr_reactors\" WHERE \"agr_power_station\"='Heysham 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_agr_reactors\" (\n \"agr_power_station\" text,\n \"net_m_we\" real,\n \"construction_started\" real,\n \"connected_to_grid\" real,\n \"commercial_operation\" real,\n \"accounting_closure_date\" real\n);\n\nQuestion: When did construction start on the Power station with a net MWE of 1190" }, { "role": "assistant", "content": "SELECT MIN(\"construction_started\") FROM \"current_agr_reactors\" WHERE \"net_m_we\"=1190;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scoring_leaders\" (\n \"player\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Name the most extra points for john heston" }, { "role": "assistant", "content": "SELECT MAX(\"extra_points\") FROM \"scoring_leaders\" WHERE \"player\"='John Heston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_63_oberlin_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Who scored the most points?" }, { "role": "assistant", "content": "SELECT MAX(\"points\") FROM \"michigan_63_oberlin_0\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_63_oberlin_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: What position did Joe Maddock play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"michigan_63_oberlin_0\" WHERE \"player\"='Joe Maddock';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_63_oberlin_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many extra points did Paul Jones score?" }, { "role": "assistant", "content": "SELECT COUNT(\"extra_points\") FROM \"michigan_63_oberlin_0\" WHERE \"player\"='Paul Jones';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_86_ohio_state_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many points did Albert Herrnstein make?" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"michigan_86_ohio_state_0\" WHERE \"player\"='Albert Herrnstein';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_86_ohio_state_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: What positions did Paul Jones play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"michigan_86_ohio_state_0\" WHERE \"player\"='Paul Jones';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_86_ohio_state_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: What is the least amount of field goals made by a player?" }, { "role": "assistant", "content": "SELECT MIN(\"field_goals\") FROM \"michigan_86_ohio_state_0\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scoring_summary\" (\n \"player\" text,\n \"touchdowns_5_points\" real,\n \"extra_points_1_point\" real,\n \"field_goals_5_points\" real,\n \"safeties_2_points\" real,\n \"total_points\" real\n);\n\nQuestion: How many extra points did Paul Dickey received" }, { "role": "assistant", "content": "SELECT MAX(\"extra_points_1_point\") FROM \"scoring_summary\" WHERE \"player\"='Paul Dickey';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scoring_summary\" (\n \"player\" text,\n \"touchdowns_5_points\" real,\n \"extra_points_1_point\" real,\n \"field_goals_5_points\" real,\n \"safeties_2_points\" real,\n \"total_points\" real\n);\n\nQuestion: How many 5 points field goals is minimum" }, { "role": "assistant", "content": "SELECT MIN(\"field_goals_5_points\") FROM \"scoring_summary\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"scoring_summary\" (\n \"player\" text,\n \"touchdowns_5_points\" real,\n \"extra_points_1_point\" real,\n \"field_goals_5_points\" real,\n \"safeties_2_points\" real,\n \"total_points\" real\n);\n\nQuestion: How many player with total points of 75" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"scoring_summary\" WHERE \"total_points\"=75;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_65_ohio_normal_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Name the most field goals" }, { "role": "assistant", "content": "SELECT MAX(\"field_goals\") FROM \"michigan_65_ohio_normal_0\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_65_ohio_normal_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Name the number of points for right halfback and starter being yes" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"michigan_65_ohio_normal_0\" WHERE \"position\"='Right halfback' AND \"starter\"='yes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_65_ohio_normal_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Na,e the number of field goals for right tackle" }, { "role": "assistant", "content": "SELECT COUNT(\"field_goals\") FROM \"michigan_65_ohio_normal_0\" WHERE \"position\"='Right tackle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_65_ohio_normal_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Name the most extra points for right halfback" }, { "role": "assistant", "content": "SELECT MAX(\"extra_points\") FROM \"michigan_65_ohio_normal_0\" WHERE \"position\"='Right halfback';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_48_ohio_northern_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: What positions does Tom Hammond play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"michigan_48_ohio_northern_0\" WHERE \"player\"='Tom Hammond';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_48_ohio_northern_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: What positions does Hal Weeks play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"michigan_48_ohio_northern_0\" WHERE \"player\"='Hal Weeks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_48_ohio_northern_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many points does Clark have? " }, { "role": "assistant", "content": "SELECT \"points\" FROM \"michigan_48_ohio_northern_0\" WHERE \"player\"='Clark';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_72_american_medical_school_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many points did the player who was right guard score?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"michigan_72_american_medical_school_0\" WHERE \"position\"='Right guard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_72_american_medical_school_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: Was there a starter when 3 touchdowns were scored?" }, { "role": "assistant", "content": "SELECT \"starter\" FROM \"michigan_72_american_medical_school_0\" WHERE \"touchdowns\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_72_american_medical_school_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many touchdowns were there when Heston was in play?" }, { "role": "assistant", "content": "SELECT MAX(\"touchdowns\") FROM \"michigan_72_american_medical_school_0\" WHERE \"player\"='Heston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"michigan_72_american_medical_school_0\" (\n \"player\" text,\n \"position\" text,\n \"starter\" text,\n \"touchdowns\" real,\n \"extra_points\" real,\n \"field_goals\" real,\n \"points\" real\n);\n\nQuestion: How many maximum points were there when the left tackle was played and there were 5 extra points?" }, { "role": "assistant", "content": "SELECT MAX(\"points\") FROM \"michigan_72_american_medical_school_0\" WHERE \"position\"='Left tackle' AND \"extra_points\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"presenters\" (\n \"series\" text,\n \"main_presenter\" text,\n \"co_presenter\" text,\n \"comedian\" text,\n \"uk_co_presenter\" text\n);\n\nQuestion: Who are the UK co-presenters that have Joe Swash as a co-presenter and Russell Kane as a comedian?" }, { "role": "assistant", "content": "SELECT COUNT(\"uk_co_presenter\") FROM \"presenters\" WHERE \"co_presenter\"='Joe Swash' AND \"comedian\"='Russell Kane';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"presenters\" (\n \"series\" text,\n \"main_presenter\" text,\n \"co_presenter\" text,\n \"comedian\" text,\n \"uk_co_presenter\" text\n);\n\nQuestion: What series have Caroline Flack as a main presenter?" }, { "role": "assistant", "content": "SELECT \"series\" FROM \"presenters\" WHERE \"main_presenter\"='Caroline Flack';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"presenters\" (\n \"series\" text,\n \"main_presenter\" text,\n \"co_presenter\" text,\n \"comedian\" text,\n \"uk_co_presenter\" text\n);\n\nQuestion: Who is the co-presenter of the series Seven (2007)?" }, { "role": "assistant", "content": "SELECT \"co_presenter\" FROM \"presenters\" WHERE \"series\"='Seven (2007)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"presenters\" (\n \"series\" text,\n \"main_presenter\" text,\n \"co_presenter\" text,\n \"comedian\" text,\n \"uk_co_presenter\" text\n);\n\nQuestion: Who is the main presenter of the series Twelve (2012)?" }, { "role": "assistant", "content": "SELECT \"main_presenter\" FROM \"presenters\" WHERE \"series\"='Twelve (2012)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"presenters\" (\n \"series\" text,\n \"main_presenter\" text,\n \"co_presenter\" text,\n \"comedian\" text,\n \"uk_co_presenter\" text\n);\n\nQuestion: Who is the UK co-presenters that have Joe Swash as a co-presenter of the series Eleven (2011)?" }, { "role": "assistant", "content": "SELECT \"uk_co_presenter\" FROM \"presenters\" WHERE \"co_presenter\"='Joe Swash' AND \"series\"='Eleven (2011)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_1_2002\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: What position did Nell McAndrew finish?" }, { "role": "assistant", "content": "SELECT \"finished\" FROM \"series_1_2002\" WHERE \"celebrity\"='Nell McAndrew';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_1_2002\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: Who was the champion boxer?" }, { "role": "assistant", "content": "SELECT \"celebrity\" FROM \"series_1_2002\" WHERE \"famous_for\"='Champion boxer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_1_2002\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: When did Darren Day enter?" }, { "role": "assistant", "content": "SELECT \"entered\" FROM \"series_1_2002\" WHERE \"celebrity\"='Darren Day';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_1_2002\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: What position did Tara Palmer-Tomkinson finish?" }, { "role": "assistant", "content": "SELECT \"finished\" FROM \"series_1_2002\" WHERE \"celebrity\"='Tara Palmer-Tomkinson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_1_2002\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: When did the 4th finisher enter?" }, { "role": "assistant", "content": "SELECT \"entered\" FROM \"series_1_2002\" WHERE \"finished\"='4th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_1_2002\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: When did Darren Day enter?" }, { "role": "assistant", "content": "SELECT \"entered\" FROM \"series_1_2002\" WHERE \"celebrity\"='Darren Day';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_2_2003\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: How many people finished 9th?" }, { "role": "assistant", "content": "SELECT COUNT(\"exited\") FROM \"series_2_2003\" WHERE \"finished\"='9th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_details\" (\n \"series\" text,\n \"presenters\" text,\n \"start_date\" text,\n \"end_date\" text,\n \"days_in_camp\" real,\n \"camp_mates\" real,\n \"winner\" text,\n \"highest_viewers_millions\" text,\n \"lowest_viewers_millions\" text,\n \"average_viewers_millions\" text\n);\n\nQuestion: What was the least amount of camp mates?" }, { "role": "assistant", "content": "SELECT MIN(\"camp_mates\") FROM \"series_details\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14346353_1\" (\n \"series_num\" real,\n \"title\" text,\n \"story_by\" text,\n \"teleplay_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who directed series #4 that was teleplayed by David Simon?" }, { "role": "assistant", "content": "SELECT COUNT(\"directed_by\") FROM \"table1_14346353_1\" WHERE \"teleplay_by\"='David Simon' AND \"series_num\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14346353_1\" (\n \"series_num\" real,\n \"title\" text,\n \"story_by\" text,\n \"teleplay_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What is the title of series #1?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_14346353_1\" WHERE \"series_num\"=1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14345690_5\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: What is the finished place where exited is day 11?" }, { "role": "assistant", "content": "SELECT \"finished\" FROM \"table1_14345690_5\" WHERE \"exited\"='Day 11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14345690_5\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: Who is the famous for that finished 2nd?" }, { "role": "assistant", "content": "SELECT \"famous_for\" FROM \"table1_14345690_5\" WHERE \"finished\"='2nd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14345690_5\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: What is the famous for where the finished is 5th?" }, { "role": "assistant", "content": "SELECT \"famous_for\" FROM \"table1_14345690_5\" WHERE \"finished\"='5th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14345690_5\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: What is the exited day where the celebrity is vic reeves?" }, { "role": "assistant", "content": "SELECT \"exited\" FROM \"table1_14345690_5\" WHERE \"celebrity\"='Vic Reeves';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_14345690_5\" (\n \"celebrity\" text,\n \"famous_for\" text,\n \"entered\" text,\n \"exited\" text,\n \"finished\" text\n);\n\nQuestion: what is the celebrity where the finished is 5th?" }, { "role": "assistant", "content": "SELECT \"celebrity\" FROM \"table1_14345690_5\" WHERE \"finished\"='5th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ohio\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" text,\n \"result\" text,\n \"candidates\" text\n);\n\nQuestion: When was incumbent John Thomas Wilson first elected? " }, { "role": "assistant", "content": "SELECT \"first_elected\" FROM \"ohio\" WHERE \"incumbent\"='John Thomas Wilson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ohio\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" text,\n \"result\" text,\n \"candidates\" text\n);\n\nQuestion: Who were the candidates in the election where John Beatty was the incumbent? " }, { "role": "assistant", "content": "SELECT \"candidates\" FROM \"ohio\" WHERE \"incumbent\"='John Beatty';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ohio\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" text,\n \"result\" text,\n \"candidates\" text\n);\n\nQuestion: Who was the incumbent in the Ohio 16 district? " }, { "role": "assistant", "content": "SELECT \"incumbent\" FROM \"ohio\" WHERE \"district\"='Ohio 16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1991_92\" text,\n \"1992_93\" text,\n \"1993_94\" real\n);\n\nQuestion: What is the average for the team with n/a in 1992 and 37 in 1992-93?" }, { "role": "assistant", "content": "SELECT \"average\" FROM \"relegation\" WHERE \"1991_92\"='N/A' AND \"1992_93\"='37';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1991_92\" text,\n \"1992_93\" text,\n \"1993_94\" real\n);\n\nQuestion: What is the result in 91-92 for the team with a 1.053 average?" }, { "role": "assistant", "content": "SELECT \"1991_92\" FROM \"relegation\" WHERE \"average\"='1.053';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1991_92\" text,\n \"1992_93\" text,\n \"1993_94\" real\n);\n\nQuestion: What is the 92'-93 result for the team with 55 in 91'-92?" }, { "role": "assistant", "content": "SELECT \"1992_93\" FROM \"relegation\" WHERE \"1991_92\"='55';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1991_92\" text,\n \"1992_93\" text,\n \"1993_94\" real\n);\n\nQuestion: What is the average for the team with 39 in 1991-92?" }, { "role": "assistant", "content": "SELECT \"average\" FROM \"relegation\" WHERE \"1991_92\"='39';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_roster_season_2012_13\" (\n \"shirt_no\" real,\n \"nationality\" text,\n \"player\" text,\n \"birth_date\" text,\n \"height\" real,\n \"position\" text\n);\n\nQuestion: Name the birth date for shirt number 7" }, { "role": "assistant", "content": "SELECT \"birth_date\" FROM \"team_roster_season_2012_13\" WHERE \"shirt_no\"=7;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"team_roster_season_2012_13\" (\n \"shirt_no\" real,\n \"nationality\" text,\n \"player\" text,\n \"birth_date\" text,\n \"height\" real,\n \"position\" text\n);\n\nQuestion: Name the maximum height for yury berezhko" }, { "role": "assistant", "content": "SELECT MAX(\"height\") FROM \"team_roster_season_2012_13\" WHERE \"player\"='Yury Berezhko';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1989_90\" text,\n \"1990_91\" text,\n \"1991_1992\" real\n);\n\nQuestion: Name the least points where 1989-90 is 31" }, { "role": "assistant", "content": "SELECT MIN(\"points\") FROM \"relegation\" WHERE \"1989_90\"='31';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1989_90\" text,\n \"1990_91\" text,\n \"1991_1992\" real\n);\n\nQuestion: Name the 1991-1992 for river plate" }, { "role": "assistant", "content": "SELECT \"1991_1992\" FROM \"relegation\" WHERE \"team\"='River Plate';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1439045_5\" (\n \"model\" text,\n \"year\" text,\n \"die_size_mm_2_1\" text,\n \"config_core_2\" text,\n \"m_triangles_s_1\" real,\n \"m_pixel_s_1\" real,\n \"bus_width_bit\" text,\n \"direct_x\" text,\n \"open_gl\" text,\n \"open_gl_es\" text,\n \"gflops_200_m_hz\" text,\n \"frequency\" real\n);\n\nQuestion: Which models can perform flops(@ 200mhz) is 3.2" }, { "role": "assistant", "content": "SELECT \"model\" FROM \"table1_1439045_5\" WHERE \"gflops_200_m_hz\"='3.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1439045_5\" (\n \"model\" text,\n \"year\" text,\n \"die_size_mm_2_1\" text,\n \"config_core_2\" text,\n \"m_triangles_s_1\" real,\n \"m_pixel_s_1\" real,\n \"bus_width_bit\" text,\n \"direct_x\" text,\n \"open_gl\" text,\n \"open_gl_es\" text,\n \"gflops_200_m_hz\" text,\n \"frequency\" real\n);\n\nQuestion: Which version of opengl is used by model sgx520?" }, { "role": "assistant", "content": "SELECT \"open_gl_es\" FROM \"table1_1439045_5\" WHERE \"model\"='SGX520';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1439045_5\" (\n \"model\" text,\n \"year\" text,\n \"die_size_mm_2_1\" text,\n \"config_core_2\" text,\n \"m_triangles_s_1\" real,\n \"m_pixel_s_1\" real,\n \"bus_width_bit\" text,\n \"direct_x\" text,\n \"open_gl\" text,\n \"open_gl_es\" text,\n \"gflops_200_m_hz\" text,\n \"frequency\" real\n);\n\nQuestion: What is the die size(mm 2) for model sgx531?" }, { "role": "assistant", "content": "SELECT \"die_size_mm_2_1\" FROM \"table1_1439045_5\" WHERE \"model\"='SGX531';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1991_92\" text,\n \"1992_93\" text,\n \"1993_94\" real\n);\n\nQuestion: Name the total number of 1991-92 for 1992-93 for 44" }, { "role": "assistant", "content": "SELECT COUNT(\"1991_92\") FROM \"relegation\" WHERE \"1992_93\"='44';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"average\" text,\n \"points\" real,\n \"played\" real,\n \"1991_92\" text,\n \"1992_93\" text,\n \"1993_94\" real\n);\n\nQuestion: Name the team for average 1.026 for 1991-92 being 40" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"relegation\" WHERE \"average\"='1.026' AND \"1991_92\"='40';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"barangays\" (\n \"barangay\" text,\n \"population_2010\" real,\n \"economic_class\" text,\n \"land_area_in_sqm\" real,\n \"punong_barangay_term_2010_2013\" text\n);\n\nQuestion: Name the economic class for punong barangay being antonio b. gangan" }, { "role": "assistant", "content": "SELECT \"economic_class\" FROM \"barangays\" WHERE \"punong_barangay_term_2010_2013\"='Antonio B. Gangan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"barangays\" (\n \"barangay\" text,\n \"population_2010\" real,\n \"economic_class\" text,\n \"land_area_in_sqm\" real,\n \"punong_barangay_term_2010_2013\" text\n);\n\nQuestion: Name the economic class for arnold g. apalla" }, { "role": "assistant", "content": "SELECT \"economic_class\" FROM \"barangays\" WHERE \"punong_barangay_term_2010_2013\"='Arnold G. Apalla';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"barangays\" (\n \"barangay\" text,\n \"population_2010\" real,\n \"economic_class\" text,\n \"land_area_in_sqm\" real,\n \"punong_barangay_term_2010_2013\" text\n);\n\nQuestion: Name the economic class for artemoio m. baymosa" }, { "role": "assistant", "content": "SELECT \"economic_class\" FROM \"barangays\" WHERE \"punong_barangay_term_2010_2013\"='Artemoio M. Baymosa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kuopio\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_nt_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Name the total number of 1stm when 2nd m is 125.5" }, { "role": "assistant", "content": "SELECT COUNT(\"1st_m\") FROM \"kuopio\" WHERE \"2nd_m\"='125.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kuopio\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_nt_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Name the overall wc points rank for 2nd m for 122.5" }, { "role": "assistant", "content": "SELECT \"overall_wc_points_rank\" FROM \"kuopio\" WHERE \"2nd_m\"='122.5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"kuopio\" (\n \"rank\" real,\n \"name\" text,\n \"nationality\" text,\n \"1st_m\" text,\n \"2nd_m\" text,\n \"points\" text,\n \"overall_nt_points\" text,\n \"overall_wc_points_rank\" text\n);\n\nQuestion: Name the number of nationality is tom hilde" }, { "role": "assistant", "content": "SELECT COUNT(\"nationality\") FROM \"kuopio\" WHERE \"name\"='Tom Hilde';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1439096_1\" (\n \"episode_no\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date_atv\" text,\n \"production_no\" real\n);\n\nQuestion: What was the original air date (atv) of the episode \"Recall to Service\"?" }, { "role": "assistant", "content": "SELECT \"original_air_date_atv\" FROM \"table1_1439096_1\" WHERE \"title\"='\\\"Recall to Service\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1439096_1\" (\n \"episode_no\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date_atv\" text,\n \"production_no\" real\n);\n\nQuestion: Who was the director of the episode originally aired on 26 October 1969?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_1439096_1\" WHERE \"original_air_date_atv\"='26 October 1969';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1439096_1\" (\n \"episode_no\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date_atv\" text,\n \"production_no\" real\n);\n\nQuestion: What is the lowest production number?" }, { "role": "assistant", "content": "SELECT MIN(\"production_no\") FROM \"table1_1439096_1\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1439096_1\" (\n \"episode_no\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date_atv\" text,\n \"production_no\" real\n);\n\nQuestion: What is the title of the episode with the original air date of 28 September 1969?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_1439096_1\" WHERE \"original_air_date_atv\"='28 September 1969';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1439096_1\" (\n \"episode_no\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date_atv\" text,\n \"production_no\" real\n);\n\nQuestion: What was the original air date (atv) of episode 1?" }, { "role": "assistant", "content": "SELECT \"original_air_date_atv\" FROM \"table1_1439096_1\" WHERE \"episode_no\"=1;" } ]