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 \"population_area_and_density_sortable_on_\" (\n \"province\" text,\n \"population_2004_estimate\" real,\n \"area_km\" real,\n \"density\" text,\n \"gdp_2003_pps_in_mil\" real,\n \"gdp_per_cap_2003_in\" real\n);\n\nQuestion: Which province has a gdp of 38355\u20ac million euros?" }, { "role": "assistant", "content": "SELECT \"province\" FROM \"population_area_and_density_sortable_on_\" WHERE \"gdp_2003_pps_in_mil\"=38355;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"population_area_and_density_sortable_on_\" (\n \"province\" text,\n \"population_2004_estimate\" real,\n \"area_km\" real,\n \"density\" text,\n \"gdp_2003_pps_in_mil\" real,\n \"gdp_per_cap_2003_in\" real\n);\n\nQuestion: What is the population estimate for the place that gad a 18496\u20ac million euro gdp?" }, { "role": "assistant", "content": "SELECT \"population_2004_estimate\" FROM \"population_area_and_density_sortable_on_\" WHERE \"gdp_2003_pps_in_mil\"=18496;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10701133_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"featured_character_s\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the title when original air date is may15,2008?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_10701133_1\" WHERE \"original_air_date\"='May15,2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10701133_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"featured_character_s\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the highest no. in season?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_season\") FROM \"table1_10701133_1\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10701133_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"featured_character_s\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who directed the episode where u.s. viewers (million) is 12.90?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_10701133_1\" WHERE \"u_s_viewers_million\"='12.90';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1067134_1\" (\n \"dvd_name\" text,\n \"num_of_ep\" real,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: How many episodes aired in Region 2 beginning May 26, 2008?" }, { "role": "assistant", "content": "SELECT MIN(\"num_of_ep\") FROM \"table1_1067134_1\" WHERE \"region_2\"='May 26, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1067134_1\" (\n \"dvd_name\" text,\n \"num_of_ep\" real,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: What date did the DVD for season six come out in region 2?" }, { "role": "assistant", "content": "SELECT \"region_2\" FROM \"table1_1067134_1\" WHERE \"dvd_name\"='Season Six';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1067134_1\" (\n \"dvd_name\" text,\n \"num_of_ep\" real,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: What is the least amount of season epidsodes?" }, { "role": "assistant", "content": "SELECT MIN(\"num_of_ep\") FROM \"table1_1067134_1\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1067134_1\" (\n \"dvd_name\" text,\n \"num_of_ep\" real,\n \"region_1\" text,\n \"region_2\" text,\n \"region_4\" text\n);\n\nQuestion: What DVD season/name for region 2 was released August 22, 2010?" }, { "role": "assistant", "content": "SELECT \"dvd_name\" FROM \"table1_1067134_1\" WHERE \"region_2\"='August 22, 2010';" } ]
[ { "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\" text,\n \"series\" text,\n \"team_name\" text,\n \"races\" real,\n \"poles\" real,\n \"wins\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: How many points for 2005?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"career_summary\" WHERE \"season\"='2005';" } ]
[ { "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\" text,\n \"series\" text,\n \"team_name\" text,\n \"races\" real,\n \"poles\" real,\n \"wins\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: what is the score for the dams?" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"career_summary\" WHERE \"team_name\"='DAMS';" } ]
[ { "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\" text,\n \"series\" text,\n \"team_name\" text,\n \"races\" real,\n \"poles\" real,\n \"wins\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: how many positions in 2009?" }, { "role": "assistant", "content": "SELECT COUNT(\"position\") FROM \"career_summary\" WHERE \"season\"='2009';" } ]
[ { "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\" text,\n \"series\" text,\n \"team_name\" text,\n \"races\" real,\n \"poles\" real,\n \"wins\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: what is the least number of poles?" }, { "role": "assistant", "content": "SELECT MIN(\"poles\") FROM \"career_summary\";" } ]
[ { "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\" text,\n \"series\" text,\n \"team_name\" text,\n \"races\" real,\n \"poles\" real,\n \"wins\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: Which series with 62 points?" }, { "role": "assistant", "content": "SELECT \"series\" FROM \"career_summary\" WHERE \"points\"=62;" } ]
[ { "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\" text,\n \"series\" text,\n \"team_name\" text,\n \"races\" real,\n \"poles\" real,\n \"wins\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: What is the total for 10th position?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"career_summary\" WHERE \"position\"='10th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" text,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: how many reports of races took place on october 16?" }, { "role": "assistant", "content": "SELECT COUNT(\"report\") FROM \"races\" WHERE \"date\"='October 16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" text,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: what is the name of the report that lists the race name as long beach grand prix?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"races\" WHERE \"race_name\"='Long Beach Grand Prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" text,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: what is the report called where the circuit took place at the nazareth speedway?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"races\" WHERE \"circuit\"='Nazareth Speedway';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" text,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: what is the name of the race where newman/haas racing is the winning team and rick mears is at the pole position?" }, { "role": "assistant", "content": "SELECT \"race_name\" FROM \"races\" WHERE \"winning_team\"='Newman/Haas Racing' AND \"pole_position\"='Rick Mears';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" text,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: meadowlands sports complex is the circuit at which city/location?" }, { "role": "assistant", "content": "SELECT \"city_location\" FROM \"races\" WHERE \"circuit\"='Meadowlands Sports Complex';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"religious_group\" text,\n \"population_pct\" text,\n \"growth_1991_2001\" text,\n \"sex_ratio_total\" real,\n \"literacy_pct\" text,\n \"work_participation_pct\" text,\n \"sex_ratio_rural\" real,\n \"sex_ratio_urban\" real,\n \"sex_ratio_child\" real\n);\n\nQuestion: What is the literacy rate for groups that grew 103.1% between 1991 and 2001?" }, { "role": "assistant", "content": "SELECT \"literacy_pct\" FROM \"statistics\" WHERE \"growth_1991_2001\"='103.1%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"religious_group\" text,\n \"population_pct\" text,\n \"growth_1991_2001\" text,\n \"sex_ratio_total\" real,\n \"literacy_pct\" text,\n \"work_participation_pct\" text,\n \"sex_ratio_rural\" real,\n \"sex_ratio_urban\" real,\n \"sex_ratio_child\" real\n);\n\nQuestion: What is the lowest sex ratio in rural areas?" }, { "role": "assistant", "content": "SELECT MIN(\"sex_ratio_rural\") FROM \"statistics\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"religious_group\" text,\n \"population_pct\" text,\n \"growth_1991_2001\" text,\n \"sex_ratio_total\" real,\n \"literacy_pct\" text,\n \"work_participation_pct\" text,\n \"sex_ratio_rural\" real,\n \"sex_ratio_urban\" real,\n \"sex_ratio_child\" real\n);\n\nQuestion: What is the lowest child sex ratio in groups where employment is 31.3%?" }, { "role": "assistant", "content": "SELECT MIN(\"sex_ratio_child\") FROM \"statistics\" WHERE \"work_participation_pct\"='31.3%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"statistics\" (\n \"religious_group\" text,\n \"population_pct\" text,\n \"growth_1991_2001\" text,\n \"sex_ratio_total\" real,\n \"literacy_pct\" text,\n \"work_participation_pct\" text,\n \"sex_ratio_rural\" real,\n \"sex_ratio_urban\" real,\n \"sex_ratio_child\" real\n);\n\nQuestion: What is the population percentage of the group where the rural sex ratio is 953?" }, { "role": "assistant", "content": "SELECT \"population_pct\" FROM \"statistics\" WHERE \"sex_ratio_rural\"=953;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10715317_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the original air date for the title \"felonious monk\"?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_10715317_2\" WHERE \"title\"='\\\"Felonious Monk\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10715317_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the title of the episode directed by Peter Markle and written by Jerry Stahl?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_10715317_2\" WHERE \"directed_by\"='Peter Markle' AND \"written_by\"='Jerry Stahl';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10715317_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: How many episodes were titled \"identity crisis\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"directed_by\") FROM \"table1_10715317_2\" WHERE \"title\"='\\\"Identity Crisis\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television_broadcasters\" (\n \"year\" real,\n \"network\" text,\n \"host\" text,\n \"pre_race_analyst\" text,\n \"lap_by_lap\" text,\n \"color_commentator_s\" text,\n \"pit_reporters\" text\n);\n\nQuestion: Who does the lap-by-lap in 2011?" }, { "role": "assistant", "content": "SELECT \"lap_by_lap\" FROM \"television_broadcasters\" WHERE \"year\"=2011;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television_broadcasters\" (\n \"year\" real,\n \"network\" text,\n \"host\" text,\n \"pre_race_analyst\" text,\n \"lap_by_lap\" text,\n \"color_commentator_s\" text,\n \"pit_reporters\" text\n);\n\nQuestion: Which network has Marty Reid as host and lap-by-lap broadcaster?" }, { "role": "assistant", "content": "SELECT \"network\" FROM \"television_broadcasters\" WHERE \"lap_by_lap\"='Marty Reid' AND \"host\"='Marty Reid';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television_broadcasters\" (\n \"year\" real,\n \"network\" text,\n \"host\" text,\n \"pre_race_analyst\" text,\n \"lap_by_lap\" text,\n \"color_commentator_s\" text,\n \"pit_reporters\" text\n);\n\nQuestion: How many pre-race analysis occur when Allen Bestwick does the lap-by-lap?" }, { "role": "assistant", "content": "SELECT COUNT(\"pre_race_analyst\") FROM \"television_broadcasters\" WHERE \"lap_by_lap\"='Allen Bestwick';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10718192_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: What's the highest season number of an episode in the series?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_season\") FROM \"table1_10718192_2\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10718192_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: When did the episode titled \"Lucky Strike\" air for the first time?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_10718192_2\" WHERE \"title\"='\\\"Lucky Strike\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10718192_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: Who was the writer of the episode titled \"One Hit Wonder\"?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_10718192_2\" WHERE \"title\"='\\\"One Hit Wonder\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10718192_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: What's the date of the first airing of the episode with series number 63?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_10718192_2\" WHERE \"no_in_series\"=63;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10718525_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: How many titles got a viewership of 26.53 million?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"table1_10718525_2\" WHERE \"u_s_viewers_millions\"='26.53';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10718525_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: How many viewers tuned into the show directed by Matt Earl Beesley?" }, { "role": "assistant", "content": "SELECT \"u_s_viewers_millions\" FROM \"table1_10718525_2\" WHERE \"directed_by\"='Matt Earl Beesley';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10718631_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: Who wrote episode 94?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_10718631_2\" WHERE \"no_in_series\"=94;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10718631_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: Which episode was the number in the season where the number in the season is 10?" }, { "role": "assistant", "content": "SELECT \"no_in_series\" FROM \"table1_10718631_2\" WHERE \"no_in_season\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10718631_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: How many episodes were in the season that had the epiosde of \"crow's feet\"?" }, { "role": "assistant", "content": "SELECT \"no_in_season\" FROM \"table1_10718631_2\" WHERE \"title\"='\\\"Crow''s Feet\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10718631_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: When did the 113 episode air?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_10718631_2\" WHERE \"no_in_series\"=113;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10718631_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: How many titles were there for the 113 episode?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"table1_10718631_2\" WHERE \"no_in_series\"=113;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10718984_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the number in the season that Marlene Meyer wrote and 20.49 million people watched?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_season\") FROM \"table1_10718984_2\" WHERE \"written_by\"='Marlene Meyer' AND \"u_s_viewers_millions\"='20.49';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10718984_2\" (\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 \"u_s_viewers_millions\" text\n);\n\nQuestion: When did the no. 23 show originally air?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_10718984_2\" WHERE \"no_in_season\"=23;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" text,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: Which circuits had a race on October 4?" }, { "role": "assistant", "content": "SELECT \"circuit\" FROM \"races\" WHERE \"date\"='October 4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" text,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: In which reports does Michael Andretti have the pole position and Galles-Kraco Racing is the winning team?" }, { "role": "assistant", "content": "SELECT \"report\" FROM \"races\" WHERE \"pole_position\"='Michael Andretti' AND \"winning_team\"='Galles-Kraco Racing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" text,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: How many rounds were there of the Bosch Spark Plug Grand Prix?" }, { "role": "assistant", "content": "SELECT COUNT(\"rnd\") FROM \"races\" WHERE \"race_name\"='Bosch Spark Plug Grand Prix';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" text,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: Which rounds were held on August 9?" }, { "role": "assistant", "content": "SELECT \"rnd\" FROM \"races\" WHERE \"date\"='August 9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" text,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: On how many dates did the Michigan International Speedway hold a round?" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"races\" WHERE \"circuit\"='Michigan International Speedway';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"record_by_conference\" (\n \"conference\" text,\n \"num_of_bids\" real,\n \"record\" text,\n \"win_pct\" text,\n \"round_of_32\" real,\n \"sweet_sixteen\" real,\n \"elite_eight\" real,\n \"final_four\" real,\n \"championship_game\" real\n);\n\nQuestion: Name the total number of bids of the sun belt conference" }, { "role": "assistant", "content": "SELECT COUNT(\"num_of_bids\") FROM \"record_by_conference\" WHERE \"conference\"='Sun Belt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"record_by_conference\" (\n \"conference\" text,\n \"num_of_bids\" real,\n \"record\" text,\n \"win_pct\" text,\n \"round_of_32\" real,\n \"sweet_sixteen\" real,\n \"elite_eight\" real,\n \"final_four\" real,\n \"championship_game\" real\n);\n\nQuestion: Name the round of 32 in conference usa" }, { "role": "assistant", "content": "SELECT \"round_of_32\" FROM \"record_by_conference\" WHERE \"conference\"='Conference USA';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"record_by_conference\" (\n \"conference\" text,\n \"num_of_bids\" real,\n \"record\" text,\n \"win_pct\" text,\n \"round_of_32\" real,\n \"sweet_sixteen\" real,\n \"elite_eight\" real,\n \"final_four\" real,\n \"championship_game\" real\n);\n\nQuestion: What is the record when round of 32 is 0 and metro atlantic conference?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"record_by_conference\" WHERE \"round_of_32\"=0 AND \"conference\"='Metro Atlantic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"record_by_conference\" (\n \"conference\" text,\n \"num_of_bids\" real,\n \"record\" text,\n \"win_pct\" text,\n \"round_of_32\" real,\n \"sweet_sixteen\" real,\n \"elite_eight\" real,\n \"final_four\" real,\n \"championship_game\" real\n);\n\nQuestion: What is the number of bids with elite eight larger than 1.0" }, { "role": "assistant", "content": "SELECT COUNT(\"num_of_bids\") FROM \"record_by_conference\" WHERE \"elite_eight\">1.0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10749143_2\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who directed the episode with production code 7aff03?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_10749143_2\" WHERE \"production_code\"='7AFF03';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10749143_2\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What is the title of the episode wtih 10.34 million U.S viewers?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_10749143_2\" WHERE \"u_s_viewers_millions\"='10.34';" } ]
[ { "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\" text,\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\" text,\n \"position\" text\n);\n\nQuestion: What place is the team that completed 6 races?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"career_summary\" WHERE \"races\"=6;" } ]
[ { "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\" text,\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\" text,\n \"position\" text\n);\n\nQuestion: how much did the british formula three called \"fortec motorsport\" score?" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"career_summary\" WHERE \"series\"='British Formula Three' AND \"team_name\"='Fortec 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\" text,\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\" text,\n \"position\" text\n);\n\nQuestion: how many races were in 2009 with 0 wins?" }, { "role": "assistant", "content": "SELECT \"races\" FROM \"career_summary\" WHERE \"season\"='2009' AND \"wins\"=0;" } ]
[ { "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\" text,\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\" text,\n \"position\" text\n);\n\nQuestion: What years did art grand prix compete?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"career_summary\" WHERE \"team_name\"='ART Grand Prix';" } ]
[ { "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\" text,\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\" text,\n \"position\" text\n);\n\nQuestion: What year had a score of 9?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"career_summary\" WHERE \"points\"='9';" } ]
[ { "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\" text,\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\" text,\n \"position\" text\n);\n\nQuestion: what is the greatest number of wins by japanese formula three?" }, { "role": "assistant", "content": "SELECT MAX(\"wins\") FROM \"career_summary\" WHERE \"series\"='Japanese Formula Three';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"episodes\" (\n \"num\" real,\n \"air_date\" text,\n \"challenge\" text,\n \"winner\" text,\n \"test_taker\" text,\n \"passed\" text\n);\n\nQuestion: Who took test #4?" }, { "role": "assistant", "content": "SELECT \"test_taker\" FROM \"episodes\" WHERE \"num\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"episodes\" (\n \"num\" real,\n \"air_date\" text,\n \"challenge\" text,\n \"winner\" text,\n \"test_taker\" text,\n \"passed\" text\n);\n\nQuestion: What episode aired on 18 April 2007?" }, { "role": "assistant", "content": "SELECT MIN(\"num\") FROM \"episodes\" WHERE \"air_date\"='18 April 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"episodes\" (\n \"num\" real,\n \"air_date\" text,\n \"challenge\" text,\n \"winner\" text,\n \"test_taker\" text,\n \"passed\" text\n);\n\nQuestion: Who had the challenge of night driving?" }, { "role": "assistant", "content": "SELECT \"test_taker\" FROM \"episodes\" WHERE \"challenge\"='Night Driving';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10798928_1\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: How many directors were there for the film Course Completed?" }, { "role": "assistant", "content": "SELECT COUNT(\"director\") FROM \"table1_10798928_1\" WHERE \"film_title_used_in_nomination\"='Course Completed';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10798928_1\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Who directed El Nido?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_10798928_1\" WHERE \"original_title\"='El nido';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10798928_1\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Who directed Dulcinea?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"table1_10798928_1\" WHERE \"original_title\"='Dulcinea';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"village_german\" text,\n \"village_slovenian\" text,\n \"number_of_people_1991\" real,\n \"percent_of_slovenes_1991\" text,\n \"percent_of_slovenes_1951\" text\n);\n\nQuestion: What are the slovenian names of the villages that had 65.9% of slovenes in 1951?" }, { "role": "assistant", "content": "SELECT \"village_slovenian\" FROM \"references\" WHERE \"percent_of_slovenes_1951\"='65.9%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"village_german\" text,\n \"village_slovenian\" text,\n \"number_of_people_1991\" real,\n \"percent_of_slovenes_1991\" text,\n \"percent_of_slovenes_1951\" text\n);\n\nQuestion: What are the slovenian names of the villages that had 16.7% of slovenes in 1991?" }, { "role": "assistant", "content": "SELECT \"village_slovenian\" FROM \"references\" WHERE \"percent_of_slovenes_1991\"='16.7%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"village_german\" text,\n \"village_slovenian\" text,\n \"number_of_people_1991\" real,\n \"percent_of_slovenes_1991\" text,\n \"percent_of_slovenes_1951\" text\n);\n\nQuestion: How many villages had 21.7% of slovenes in 1991?" }, { "role": "assistant", "content": "SELECT COUNT(\"village_german\") FROM \"references\" WHERE \"percent_of_slovenes_1991\"='21.7%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"village_german\" text,\n \"village_slovenian\" text,\n \"number_of_people_1991\" real,\n \"percent_of_slovenes_1991\" text,\n \"percent_of_slovenes_1951\" text\n);\n\nQuestion: what percent of slovenes did the village called \u010dahor\u010de in slovenian have in 1991?" }, { "role": "assistant", "content": "SELECT \"percent_of_slovenes_1991\" FROM \"references\" WHERE \"village_slovenian\"='\u010cahor\u010de';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"references\" (\n \"village_german\" text,\n \"village_slovenian\" text,\n \"number_of_people_1991\" real,\n \"percent_of_slovenes_1991\" text,\n \"percent_of_slovenes_1951\" text\n);\n\nQuestion: What is the slovenian name for the village that in german is known as st.margarethen?" }, { "role": "assistant", "content": "SELECT \"village_slovenian\" FROM \"references\" WHERE \"village_german\"='St.Margarethen';" } ]
[ { "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: For games on December 20, how many points did the scoring leaders get?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"date\"='December 20';" } ]
[ { "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: Who was the scoring leader and how many points did he get in games on December 23?" }, { "role": "assistant", "content": "SELECT \"high_points\" FROM \"game_log\" WHERE \"date\"='December 23';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the pick # for the position de?" }, { "role": "assistant", "content": "SELECT \"pick_num\" FROM \"round_three\" WHERE \"position\"='DE';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which player went to college at Saint Mary's?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_three\" WHERE \"college\"='Saint Mary''s';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the position for the player with cfl team Winnipeg blue bombers?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_three\" WHERE \"cfl_team\"='Winnipeg Blue Bombers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which player went to college at Laval?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_three\" WHERE \"college\"='Laval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_three\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What was the college for the player with the cfl team of Edmonton Eskimos (via calgary)?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_three\" WHERE \"cfl_team\"='Edmonton Eskimos (via Calgary)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What's the team of the player from St. Francis Xavier College?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_five\" WHERE \"college\"='St. Francis Xavier';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What player is on the Montreal Alouettes CFl team?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_five\" WHERE \"cfl_team\"='Montreal Alouettes';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What's the pick number of the player from Toronto Argonauts?" }, { "role": "assistant", "content": "SELECT MIN(\"pick_num\") FROM \"round_five\" WHERE \"cfl_team\"='Toronto Argonauts';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What's the pick number of the player whose position is CB?" }, { "role": "assistant", "content": "SELECT \"pick_num\" FROM \"round_five\" WHERE \"position\"='CB';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What's the pick number of the player from New Mexico?" }, { "role": "assistant", "content": "SELECT MAX(\"pick_num\") FROM \"round_five\" WHERE \"college\"='New Mexico';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What player went to Ohio State College?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"round_five\" WHERE \"college\"='Ohio State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"br_railbuses\" (\n \"number_range\" text,\n \"builder\" text,\n \"introduced\" real,\n \"no_built\" real,\n \"region\" text,\n \"withdrawn\" real\n);\n\nQuestion: What is the minimum introduced value for the Departmental region?" }, { "role": "assistant", "content": "SELECT MIN(\"introduced\") FROM \"br_railbuses\" WHERE \"region\"='Departmental';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"br_railbuses\" (\n \"number_range\" text,\n \"builder\" text,\n \"introduced\" real,\n \"no_built\" real,\n \"region\" text,\n \"withdrawn\" real\n);\n\nQuestion: What is the smallest introduced value?" }, { "role": "assistant", "content": "SELECT MIN(\"introduced\") FROM \"br_railbuses\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which CFL Teams drafted an OL in 2006?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_four\" WHERE \"position\"='OL';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which college is aligned to the Saskatchewan Roughriders?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_four\" WHERE \"cfl_team\"='Saskatchewan Roughriders';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What Position did the Hamilton Tiger-Cats (via Ottawa) pick in the 2006 Draft." }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_four\" WHERE \"cfl_team\"='Hamilton Tiger-Cats (via Ottawa)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the earliest pick listed in the table." }, { "role": "assistant", "content": "SELECT MIN(\"pick_num\") FROM \"round_four\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10842344_1\" (\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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What episode number had production code e4423?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_season\") FROM \"table1_10842344_1\" WHERE \"production_code\"='E4423';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10842344_1\" (\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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What's the latest episode in a season where the U.S. viewers totaled 14.37 million?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_season\") FROM \"table1_10842344_1\" WHERE \"u_s_viewers_millions\"='14.37';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10842344_1\" (\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 \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who directed the episode \"Escape\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_10842344_1\" WHERE \"title\"='\\\"Escape\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10819266_8\" (\n \"season\" real,\n \"episodes\" real,\n \"time_slot_est\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"rank\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: How many seasons is the season finale on May 26, 2010?" }, { "role": "assistant", "content": "SELECT COUNT(\"season\") FROM \"table1_10819266_8\" WHERE \"season_finale\"='May 26, 2010';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10819266_8\" (\n \"season\" real,\n \"episodes\" real,\n \"time_slot_est\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"rank\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: What episodes are there where the season premier is September 23, 2009?" }, { "role": "assistant", "content": "SELECT \"episodes\" FROM \"table1_10819266_8\" WHERE \"season_premiere\"='September 23, 2009';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10819266_8\" (\n \"season\" real,\n \"episodes\" real,\n \"time_slot_est\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"rank\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: What is the season finale for season 4?" }, { "role": "assistant", "content": "SELECT \"season_finale\" FROM \"table1_10819266_8\" WHERE \"season\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10819266_8\" (\n \"season\" real,\n \"episodes\" real,\n \"time_slot_est\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"rank\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: How many season premiers have a rank of #21?" }, { "role": "assistant", "content": "SELECT \"season_premiere\" FROM \"table1_10819266_8\" WHERE \"rank\"='#21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10819266_8\" (\n \"season\" real,\n \"episodes\" real,\n \"time_slot_est\" text,\n \"season_premiere\" text,\n \"season_finale\" text,\n \"tv_season\" text,\n \"rank\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: What are the seasons where September 26, 2007 is the season premier?" }, { "role": "assistant", "content": "SELECT \"tv_season\" FROM \"table1_10819266_8\" WHERE \"season_premiere\"='September 26, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10818465_1\" (\n \"model\" text,\n \"ru\" real,\n \"max_processors\" text,\n \"processor_frequency\" text,\n \"max_memory\" text,\n \"max_disk_capacity\" text,\n \"ga_date\" text\n);\n\nQuestion: What max processor has a maximum memory of 256 gb?" }, { "role": "assistant", "content": "SELECT \"max_processors\" FROM \"table1_10818465_1\" WHERE \"max_memory\"='256 GB';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_10818465_1\" (\n \"model\" text,\n \"ru\" real,\n \"max_processors\" text,\n \"processor_frequency\" text,\n \"max_memory\" text,\n \"max_disk_capacity\" text,\n \"ga_date\" text\n);\n\nQuestion: What is the max memory of the t5120 model?" }, { "role": "assistant", "content": "SELECT \"max_memory\" FROM \"table1_10818465_1\" WHERE \"model\"='T5120';" } ]