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 \"episodes\" (\n \"episode_num\" real,\n \"series_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: What date did \"getting even\" originally air?" }, { "role": "assistant", "content": "SELECT \"original_airdate\" FROM \"episodes\" WHERE \"title\"='\\\"Getting Even\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"episodes\" (\n \"episode_num\" real,\n \"series_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: Who wrote episode 26 in the series?" }, { "role": "assistant", "content": "SELECT \"writer\" FROM \"episodes\" WHERE \"episode_num\"=26;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"characteristics_of_telephone_cable_as_a_\" (\n \"frequency_hz\" text,\n \"r_km\" text,\n \"l_m_h_km\" text,\n \"g_s_km\" text,\n \"c_n_f_km\" text\n);\n\nQuestion: What is the g (\u03bcs/km)when the frequency (hz) is 100k?" }, { "role": "assistant", "content": "SELECT \"g_s_km\" FROM \"characteristics_of_telephone_cable_as_a_\" WHERE \"frequency_hz\"='100k';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"characteristics_of_telephone_cable_as_a_\" (\n \"frequency_hz\" text,\n \"r_km\" text,\n \"l_m_h_km\" text,\n \"g_s_km\" text,\n \"c_n_f_km\" text\n);\n\nQuestion: What is the r (\u03c9/km) when the frequency is 10k?" }, { "role": "assistant", "content": "SELECT \"r_km\" FROM \"characteristics_of_telephone_cable_as_a_\" WHERE \"frequency_hz\"='10k';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"characteristics_of_telephone_cable_as_a_\" (\n \"frequency_hz\" text,\n \"r_km\" text,\n \"l_m_h_km\" text,\n \"g_s_km\" text,\n \"c_n_f_km\" text\n);\n\nQuestion: What is the c (nf/km) when the r (\u03c9/km) is 463.59?" }, { "role": "assistant", "content": "SELECT \"c_n_f_km\" FROM \"characteristics_of_telephone_cable_as_a_\" WHERE \"r_km\"='463.59';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"characteristics_of_telephone_cable_as_a_\" (\n \"frequency_hz\" text,\n \"r_km\" text,\n \"l_m_h_km\" text,\n \"g_s_km\" text,\n \"c_n_f_km\" text\n);\n\nQuestion: what is the c (nf/km) when the l (mh/km) is 0.6099?" }, { "role": "assistant", "content": "SELECT \"c_n_f_km\" FROM \"characteristics_of_telephone_cable_as_a_\" WHERE \"l_m_h_km\"='0.6099';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"characteristics_of_telephone_cable_as_a_\" (\n \"frequency_hz\" text,\n \"r_km\" text,\n \"l_m_h_km\" text,\n \"g_s_km\" text,\n \"c_n_f_km\" text\n);\n\nQuestion: what is the frequency (hz) when the g (\u03bcs/km) is 53.205?" }, { "role": "assistant", "content": "SELECT \"frequency_hz\" FROM \"characteristics_of_telephone_cable_as_a_\" WHERE \"g_s_km\"='53.205';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"country\" text,\n \"exports\" text,\n \"imports\" text,\n \"total_trade\" text,\n \"trade_balance\" text\n);\n\nQuestion: In the country United Arab Emirates, what is the number of imports?" }, { "role": "assistant", "content": "SELECT \"imports\" FROM \"see_also\" WHERE \"country\"='United Arab Emirates';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"country\" text,\n \"exports\" text,\n \"imports\" text,\n \"total_trade\" text,\n \"trade_balance\" text\n);\n\nQuestion: Where the number of exports are 6,099.06, what is the total trade?" }, { "role": "assistant", "content": "SELECT \"total_trade\" FROM \"see_also\" WHERE \"exports\"='6,099.06';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"country\" text,\n \"exports\" text,\n \"imports\" text,\n \"total_trade\" text,\n \"trade_balance\" text\n);\n\nQuestion: In which country are there 1,278.13 exports?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"see_also\" WHERE \"exports\"='1,278.13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"country\" text,\n \"exports\" text,\n \"imports\" text,\n \"total_trade\" text,\n \"trade_balance\" text\n);\n\nQuestion: Where the total trade is 14,954.86, what are the exports?" }, { "role": "assistant", "content": "SELECT \"exports\" FROM \"see_also\" WHERE \"total_trade\"='14,954.86';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"country\" text,\n \"exports\" text,\n \"imports\" text,\n \"total_trade\" text,\n \"trade_balance\" text\n);\n\nQuestion: In the country Switzerland, what is the total trade?" }, { "role": "assistant", "content": "SELECT \"total_trade\" FROM \"see_also\" WHERE \"country\"='Switzerland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"country\" text,\n \"exports\" text,\n \"imports\" text,\n \"total_trade\" text,\n \"trade_balance\" text\n);\n\nQuestion: Where the exports is 13,608.65, what is the total trade?" }, { "role": "assistant", "content": "SELECT \"total_trade\" FROM \"see_also\" WHERE \"exports\"='13,608.65';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"dates\" text,\n \"tournament\" text,\n \"location\" text,\n \"prize_fund\" real,\n \"winner\" text,\n \"owgr_pts\" real\n);\n\nQuestion: What is the location for tournament on Jul 8-11?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"tournament_results\" WHERE \"dates\"='Jul 8-11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"dates\" text,\n \"tournament\" text,\n \"location\" text,\n \"prize_fund\" real,\n \"winner\" text,\n \"owgr_pts\" real\n);\n\nQuestion: What is the date of the tournament at Hokkaid\u014d with prize of \uffe5150000000?" }, { "role": "assistant", "content": "SELECT \"dates\" FROM \"tournament_results\" WHERE \"location\"='Hokkaid\u014d' AND \"prize_fund\"=150000000;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"dates\" text,\n \"tournament\" text,\n \"location\" text,\n \"prize_fund\" real,\n \"winner\" text,\n \"owgr_pts\" real\n);\n\nQuestion: What is the prize for the tournament at Ibaraki?" }, { "role": "assistant", "content": "SELECT \"prize_fund\" FROM \"tournament_results\" WHERE \"location\"='Ibaraki';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26150013_1\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"animation_directors\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many titles are there for the original air date April 3, 2012?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"table1_26150013_1\" WHERE \"original_air_date\"='April 3, 2012';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"silver_label\" (\n \"road_race\" text,\n \"distance\" text,\n \"location\" text,\n \"country\" text,\n \"month_held\" text\n);\n\nQuestion: What are all of the area where distance is marathon and month held is february" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"silver_label\" WHERE \"distance\"='Marathon' AND \"month_held\"='February';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"silver_label\" (\n \"road_race\" text,\n \"distance\" text,\n \"location\" text,\n \"country\" text,\n \"month_held\" text\n);\n\nQuestion: What's the whole range of united states where road race is ottawa marathon" }, { "role": "assistant", "content": "SELECT COUNT(\"country\") FROM \"silver_label\" WHERE \"road_race\"='Ottawa Marathon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bronze_label\" (\n \"road_race\" text,\n \"distance\" text,\n \"location\" text,\n \"country\" text,\n \"month_held\" text\n);\n\nQuestion: What race is held in Germany in the month of May? " }, { "role": "assistant", "content": "SELECT \"road_race\" FROM \"bronze_label\" WHERE \"country\"='Germany' AND \"month_held\"='May';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bronze_label\" (\n \"road_race\" text,\n \"distance\" text,\n \"location\" text,\n \"country\" text,\n \"month_held\" text\n);\n\nQuestion: How many times a year is the Brighton Marathon held?" }, { "role": "assistant", "content": "SELECT COUNT(\"month_held\") FROM \"bronze_label\" WHERE \"distance\"='Marathon' AND \"location\"='Brighton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bronze_label\" (\n \"road_race\" text,\n \"distance\" text,\n \"location\" text,\n \"country\" text,\n \"month_held\" text\n);\n\nQuestion: What month is the Paris 20k Road Race held?" }, { "role": "assistant", "content": "SELECT \"month_held\" FROM \"bronze_label\" WHERE \"location\"='Paris';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bronze_label\" (\n \"road_race\" text,\n \"distance\" text,\n \"location\" text,\n \"country\" text,\n \"month_held\" text\n);\n\nQuestion: How many times a year is the Paris 20k road race held?" }, { "role": "assistant", "content": "SELECT COUNT(\"month_held\") FROM \"bronze_label\" WHERE \"road_race\"='Paris 20K';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"bronze_label\" (\n \"road_race\" text,\n \"distance\" text,\n \"location\" text,\n \"country\" text,\n \"month_held\" text\n);\n\nQuestion: What is the name of the road race held in Omsk, Russia?" }, { "role": "assistant", "content": "SELECT \"road_race\" FROM \"bronze_label\" WHERE \"location\"='Omsk';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gold_label\" (\n \"road_race\" text,\n \"distance\" text,\n \"location\" text,\n \"country\" text,\n \"month_held\" text\n);\n\nQuestion: Where was the istanbul marathon?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"gold_label\" WHERE \"road_race\"='Istanbul Marathon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gold_label\" (\n \"road_race\" text,\n \"distance\" text,\n \"location\" text,\n \"country\" text,\n \"month_held\" text\n);\n\nQuestion: How long was the great manchester run?" }, { "role": "assistant", "content": "SELECT \"distance\" FROM \"gold_label\" WHERE \"road_race\"='Great Manchester Run';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gold_label\" (\n \"road_race\" text,\n \"distance\" text,\n \"location\" text,\n \"country\" text,\n \"month_held\" text\n);\n\nQuestion: In which country was the xiamen international marathon?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"gold_label\" WHERE \"road_race\"='Xiamen International Marathon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gold_label\" (\n \"road_race\" text,\n \"distance\" text,\n \"location\" text,\n \"country\" text,\n \"month_held\" text\n);\n\nQuestion: In which city was the berlin marathon?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"gold_label\" WHERE \"road_race\"='Berlin Marathon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"gold_label\" (\n \"road_race\" text,\n \"distance\" text,\n \"location\" text,\n \"country\" text,\n \"month_held\" text\n);\n\nQuestion: How many races were in fukuoka, japan?" }, { "role": "assistant", "content": "SELECT COUNT(\"road_race\") FROM \"gold_label\" WHERE \"country\"='Japan' AND \"location\"='Fukuoka';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26168687_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"vessel_type\" text,\n \"vessel_operator\" text,\n \"narrated_by\" text,\n \"original_air_date\" real\n);\n\nQuestion: How many times is the vessel operator canadian coast guard?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_series\") FROM \"table1_26168687_3\" WHERE \"vessel_operator\"='Canadian Coast Guard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26168687_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"vessel_type\" text,\n \"vessel_operator\" text,\n \"narrated_by\" text,\n \"original_air_date\" real\n);\n\nQuestion: What is the vessel type for vessel operator Jumbo shipping?" }, { "role": "assistant", "content": "SELECT \"vessel_type\" FROM \"table1_26168687_3\" WHERE \"vessel_operator\"='Jumbo Shipping';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26168687_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"vessel_type\" text,\n \"vessel_operator\" text,\n \"narrated_by\" text,\n \"original_air_date\" real\n);\n\nQuestion: Who narrated when the vessel operator is de beers?" }, { "role": "assistant", "content": "SELECT \"narrated_by\" FROM \"table1_26168687_3\" WHERE \"vessel_operator\"='De Beers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618061_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: How many episodes had the production code 66210?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_series\") FROM \"table1_2618061_1\" WHERE \"production_code\"=66210;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618061_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What was the original air date of \"kiss the girls and make them die\"?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_2618061_1\" WHERE \"title\"='\\\"Kiss the Girls and Make Them Die\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618061_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: How many episodes were directed by james quinn?" }, { "role": "assistant", "content": "SELECT COUNT(\"written_by\") FROM \"table1_2618061_1\" WHERE \"directed_by\"='James Quinn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618061_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: What is the title of the episode written by daniel sackheim?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_2618061_1\" WHERE \"directed_by\"='Daniel Sackheim';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26176081_29\" (\n \"name\" text,\n \"gp\" real,\n \"solo\" real,\n \"ast\" real,\n \"total\" real,\n \"tfl_yds\" text,\n \"no_yds\" text,\n \"br_up\" real,\n \"no_yds\" text,\n \"avg\" text,\n \"td\" real,\n \"long\" real,\n \"rcv_yds\" text,\n \"ff\" real,\n \"blkd_kick\" real\n);\n\nQuestion: What is the lowest brup when long is 94?" }, { "role": "assistant", "content": "SELECT MIN(\"br_up\") FROM \"table1_26176081_29\" WHERE \"long\"=94;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26176081_29\" (\n \"name\" text,\n \"gp\" real,\n \"solo\" real,\n \"ast\" real,\n \"total\" real,\n \"tfl_yds\" text,\n \"no_yds\" text,\n \"br_up\" real,\n \"no_yds\" text,\n \"avg\" text,\n \"td\" real,\n \"long\" real,\n \"rcv_yds\" text,\n \"ff\" real,\n \"blkd_kick\" real\n);\n\nQuestion: What is the lowest gp?" }, { "role": "assistant", "content": "SELECT MIN(\"gp\") FROM \"table1_26176081_29\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26176081_29\" (\n \"name\" text,\n \"gp\" real,\n \"solo\" real,\n \"ast\" real,\n \"total\" real,\n \"tfl_yds\" text,\n \"no_yds\" text,\n \"br_up\" real,\n \"no_yds\" text,\n \"avg\" text,\n \"td\" real,\n \"long\" real,\n \"rcv_yds\" text,\n \"ff\" real,\n \"blkd_kick\" real\n);\n\nQuestion: What is the highest ff when solo is 56?" }, { "role": "assistant", "content": "SELECT MAX(\"ff\") FROM \"table1_26176081_29\" WHERE \"solo\"=56;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26176081_29\" (\n \"name\" text,\n \"gp\" real,\n \"solo\" real,\n \"ast\" real,\n \"total\" real,\n \"tfl_yds\" text,\n \"no_yds\" text,\n \"br_up\" real,\n \"no_yds\" text,\n \"avg\" text,\n \"td\" real,\n \"long\" real,\n \"rcv_yds\" text,\n \"ff\" real,\n \"blkd_kick\" real\n);\n\nQuestion: What is the name when tfl-yds is 2-2?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"table1_26176081_29\" WHERE \"tfl_yds\"='2-2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26176081_29\" (\n \"name\" text,\n \"gp\" real,\n \"solo\" real,\n \"ast\" real,\n \"total\" real,\n \"tfl_yds\" text,\n \"no_yds\" text,\n \"br_up\" real,\n \"no_yds\" text,\n \"avg\" text,\n \"td\" real,\n \"long\" real,\n \"rcv_yds\" text,\n \"ff\" real,\n \"blkd_kick\" real\n);\n\nQuestion: What is no-yds when no.-yds is 1-13?" }, { "role": "assistant", "content": "SELECT \"no_yds\" FROM \"table1_26176081_29\" WHERE \"no_yds\"='1-13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: what are the maximum f/laps?" }, { "role": "assistant", "content": "SELECT MAX(\"f_laps\") 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\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: how many wins had series formula renault 2.0 nec and the position is 18th?" }, { "role": "assistant", "content": "SELECT \"wins\" FROM \"career_summary\" WHERE \"series\"='Formula Renault 2.0 NEC' AND \"position\"='18th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: what are the minimum 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 \"table1_2618072_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\" real\n);\n\nQuestion: When was the original air date written by michael s. chernuchin & joe morgenstern?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_2618072_1\" WHERE \"written_by\"='Michael S. Chernuchin & Joe Morgenstern';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618072_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\" real\n);\n\nQuestion: Who is the written by when the title is \"his hour upon the stage\"?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_2618072_1\" WHERE \"title\"='\\\"His Hour Upon the Stage\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618072_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\" real\n);\n\nQuestion: Who is the directed by when the production code is 67425?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_2618072_1\" WHERE \"production_code\"=67425;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618119_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);\n\nQuestion: Who are all writers with original air date of October 23, 1996?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_2618119_1\" WHERE \"original_air_date\"='October 23, 1996';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618119_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);\n\nQuestion: How many titles have directors of matthew Penn and number in series of 143?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"table1_2618119_1\" WHERE \"directed_by\"='Matthew Penn' AND \"no_in_series\"=143;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618119_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);\n\nQuestion: How many numbers in series were for the number in season of 8?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_series\") FROM \"table1_2618119_1\" WHERE \"no_in_season\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618113_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);\n\nQuestion: Who directed k0122?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_2618113_1\" WHERE \"production_code\"='K0122';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618113_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);\n\nQuestion: Which season had k0104?" }, { "role": "assistant", "content": "SELECT MAX(\"no_in_season\") FROM \"table1_2618113_1\" WHERE \"production_code\"='K0104';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618113_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);\n\nQuestion: Which season had \"angel\"?" }, { "role": "assistant", "content": "SELECT \"no_in_season\" FROM \"table1_2618113_1\" WHERE \"title\"='\\\"Angel\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618113_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);\n\nQuestion: What was the airdate of k0120?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_2618113_1\" WHERE \"production_code\"='K0120';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618251_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\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What are the original air date(s) for \"gunplay\"?" }, { "role": "assistant", "content": "SELECT \"original_air_date\" FROM \"table1_2618251_1\" WHERE \"title\"='\\\"Gunplay\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2618251_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\" real,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who directed the episode \"dining out\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_2618251_1\" WHERE \"title\"='\\\"Dining Out\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" text,\n \"primary_conference\" text,\n \"colors\" text\n);\n\nQuestion: What is the institution with the nickname seahawks?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"current_members\" WHERE \"nickname\"='Seahawks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" text,\n \"primary_conference\" text,\n \"colors\" text\n);\n\nQuestion: What is the colors for the nickname engineers?" }, { "role": "assistant", "content": "SELECT \"colors\" FROM \"current_members\" WHERE \"nickname\"='Engineers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" text,\n \"primary_conference\" text,\n \"colors\" text\n);\n\nQuestion: How many have the colors blue & gold?" }, { "role": "assistant", "content": "SELECT COUNT(\"institution\") FROM \"current_members\" WHERE \"colors\"='Blue & Gold';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" text,\n \"primary_conference\" text,\n \"colors\" text\n);\n\nQuestion: What is the institution with the nickname engineers?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"current_members\" WHERE \"nickname\"='Engineers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" text,\n \"primary_conference\" text,\n \"colors\" text\n);\n\nQuestion: What is the enrollment for the colors green & black?" }, { "role": "assistant", "content": "SELECT \"enrollment\" FROM \"current_members\" WHERE \"colors\"='Green & Black';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"freedom_conference\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined_mac\" real\n);\n\nQuestion: What institution(s) are located in wilkes-barre, pennsylvania?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"freedom_conference\" WHERE \"location\"='Wilkes-Barre, Pennsylvania';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"freedom_conference\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined_mac\" real\n);\n\nQuestion: What is the highest enrollment schools that joined the mac in 1997?" }, { "role": "assistant", "content": "SELECT MAX(\"enrollment\") FROM \"freedom_conference\" WHERE \"joined_mac\"=1997;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"freedom_conference\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined_mac\" real\n);\n\nQuestion: What is the enrollment at delaware valley college?" }, { "role": "assistant", "content": "SELECT MAX(\"joined_mac\") FROM \"freedom_conference\" WHERE \"institution\"='Delaware Valley College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"freedom_conference\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined_mac\" real\n);\n\nQuestion: What year did the the school with the nickname eagles join the mac?" }, { "role": "assistant", "content": "SELECT MIN(\"joined_mac\") FROM \"freedom_conference\" WHERE \"nickname\"='Eagles';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"founding_religious_affiliation\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: Which institution's nickname is the Bobcats? " }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"current_members\" WHERE \"nickname\"='Bobcats';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"founding_religious_affiliation\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: What is the enrollment at the institution in New London, Connecticut? " }, { "role": "assistant", "content": "SELECT \"enrollment\" FROM \"current_members\" WHERE \"location\"='New London, Connecticut';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"founding_religious_affiliation\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: When did the institution located in Lewiston, Maine join the conference? " }, { "role": "assistant", "content": "SELECT \"joined\" FROM \"current_members\" WHERE \"location\"='Lewiston, Maine';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"founding_religious_affiliation\" text,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: Which institution's nickname is the Polar Bears?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"current_members\" WHERE \"nickname\"='Polar Bears';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: What is the nickname of Linfield College?" }, { "role": "assistant", "content": "SELECT \"nickname\" FROM \"current_members\" WHERE \"institution\"='Linfield College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: When was the private/baptist school founded?" }, { "role": "assistant", "content": "SELECT \"founded\" FROM \"current_members\" WHERE \"type\"='Private/Baptist';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: How many different items appear in the enrollment column that joined in 1931, 1949 1?" }, { "role": "assistant", "content": "SELECT COUNT(\"enrollment\") FROM \"current_members\" WHERE \"joined\"='1931, 1949 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: What is the location of the University that joined in 1926, 1996 2?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"current_members\" WHERE \"joined\"='1926, 1996 2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text\n);\n\nQuestion: When was the earliest founded university?" }, { "role": "assistant", "content": "SELECT MIN(\"founded\") FROM \"current_members\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"season\" text,\n \"games\" real,\n \"won\" real,\n \"lost\" real,\n \"tied\" real,\n \"points\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"standing\" text\n);\n\nQuestion: What was the team standing if the won 130 goals against another team?" }, { "role": "assistant", "content": "SELECT \"standing\" FROM \"regular_season\" WHERE \"goals_against\"=130;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"football\" text,\n \"joined\" real\n);\n\nQuestion: What is every type for the location of Roanoke, Virginia?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"current_members\" WHERE \"location\"='Roanoke, Virginia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"football\" text,\n \"joined\" real\n);\n\nQuestion: How many values for joined occur at Guilford College?" }, { "role": "assistant", "content": "SELECT COUNT(\"joined\") FROM \"current_members\" WHERE \"institution\"='Guilford College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"football\" text,\n \"joined\" real\n);\n\nQuestion: What is every institution with the nickname of Quakers?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"current_members\" WHERE \"nickname\"='Quakers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"football\" text,\n \"joined\" real\n);\n\nQuestion: What is every entry for football when enrollment is 998?" }, { "role": "assistant", "content": "SELECT \"football\" FROM \"current_members\" WHERE \"enrollment\"=998;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"football\" text,\n \"joined\" real\n);\n\nQuestion: What is the least value of joined?" }, { "role": "assistant", "content": "SELECT MIN(\"joined\") FROM \"current_members\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"football\" text,\n \"joined\" real\n);\n\nQuestion: What is every institution with the nickname of Wildcats?" }, { "role": "assistant", "content": "SELECT \"institution\" FROM \"current_members\" WHERE \"nickname\"='WildCats';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26199130_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"rank_week\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is the title of the episode with production code 2alf03?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_26199130_1\" WHERE \"production_code\"='2ALF03';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26199130_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"rank_week\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What was the rank (week) for episode number 34?" }, { "role": "assistant", "content": "SELECT \"rank_week\" FROM \"table1_26199130_1\" WHERE \"no\"=34;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26199130_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"rank_week\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What numbered episode had 11.96 million US viewers?" }, { "role": "assistant", "content": "SELECT MAX(\"no\") FROM \"table1_26199130_1\" WHERE \"u_s_viewers_million\"='11.96';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26200084_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"rank_week\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: How many episode numbers were directed by Steven DePaul and titled \"Sudden Flight\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"num\") FROM \"table1_26200084_1\" WHERE \"directed_by\"='Steven DePaul' AND \"title\"='\\\"Sudden Flight\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26200084_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"rank_week\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What was the ranking of episode #19?" }, { "role": "assistant", "content": "SELECT \"rank_week\" FROM \"table1_26200084_1\" WHERE \"num\"=19;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26200084_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"rank_week\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What was the production code of the episode ranked 28?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_26200084_1\" WHERE \"rank_week\"='28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26200084_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"rank_week\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What was the title of the episode directed by David Mamet?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_26200084_1\" WHERE \"directed_by\"='David Mamet';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26198709_1\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"rank_week\" real,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is the production code for the episode that had 18.07 million viewers? " }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_26198709_1\" WHERE \"u_s_viewers_million\"='18.07';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26198709_1\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"rank_week\" real,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is the weeks rank for the episode with the production code 1alf05? " }, { "role": "assistant", "content": "SELECT MAX(\"rank_week\") FROM \"table1_26198709_1\" WHERE \"production_code\"='1ALF05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26198709_1\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"rank_week\" real,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: How many air dates does the episode with 15.50 million viewers have? " }, { "role": "assistant", "content": "SELECT COUNT(\"original_air_date\") FROM \"table1_26198709_1\" WHERE \"u_s_viewers_million\"='15.50';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_26198709_1\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"u_s_viewers_million\" text,\n \"rank_week\" real,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who wrote the episode with 18.07 million viewers? " }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_26198709_1\" WHERE \"u_s_viewers_million\"='18.07';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"club\" text,\n \"wins\" real,\n \"losses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" text,\n \"points\" real\n);\n\nQuestion: How many points were scored against the Toronto Rebels?" }, { "role": "assistant", "content": "SELECT MAX(\"points_against\") FROM \"standings\" WHERE \"club\"='Toronto Rebels';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"club\" text,\n \"wins\" real,\n \"losses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" text,\n \"points\" real\n);\n\nQuestion: How many points did the Toronto Downtown Dingos score?" }, { "role": "assistant", "content": "SELECT MIN(\"points_for\") FROM \"standings\" WHERE \"club\"='Toronto Downtown Dingos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"club\" text,\n \"wins\" real,\n \"losses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" text,\n \"points\" real\n);\n\nQuestion: How many losses does Toronto Downtown Dingos have?" }, { "role": "assistant", "content": "SELECT \"losses\" FROM \"standings\" WHERE \"club\"='Toronto Downtown Dingos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"club\" text,\n \"wins\" real,\n \"losses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" text,\n \"points\" real\n);\n\nQuestion: What is the percentage listed for the team who scored 63 points?" }, { "role": "assistant", "content": "SELECT \"percentage\" FROM \"standings\" WHERE \"points_for\"=63;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"club\" text,\n \"wins\" real,\n \"losses\" real,\n \"points_for\" real,\n \"points_against\" real,\n \"percentage\" text,\n \"points\" real\n);\n\nQuestion: How many losses does Central Blues have?" }, { "role": "assistant", "content": "SELECT MAX(\"losses\") FROM \"standings\" WHERE \"club\"='Central Blues';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"specimen_weight_size\" text,\n \"calculated_activity_bq\" real,\n \"calculated_activity_ci\" text,\n \"estimated_activity_gr_api\" text,\n \"estimated_exposure_m_rem_hr\" text\n);\n\nQuestion: if the estimated exposure ( mrem )/hr* is 0.28, what is the specimen weight/size?" }, { "role": "assistant", "content": "SELECT COUNT(\"specimen_weight_size\") FROM \"notes\" WHERE \"estimated_exposure_m_rem_hr\"='0.28';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"specimen_weight_size\" text,\n \"calculated_activity_bq\" real,\n \"calculated_activity_ci\" text,\n \"estimated_activity_gr_api\" text,\n \"estimated_exposure_m_rem_hr\" text\n);\n\nQuestion: If the specimen weight /size is 1000 g / 8.79 cm, what is the estimated exposure ( mrem )/hr*?" }, { "role": "assistant", "content": "SELECT \"estimated_exposure_m_rem_hr\" FROM \"notes\" WHERE \"specimen_weight_size\"='1000 g / 8.79 cm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"notes\" (\n \"specimen_weight_size\" text,\n \"calculated_activity_bq\" real,\n \"calculated_activity_ci\" text,\n \"estimated_activity_gr_api\" text,\n \"estimated_exposure_m_rem_hr\" text\n);\n\nQuestion: If the calculated activity (CI) is 4.96\u00d710 \u221211, what is the specimen weight/size?" }, { "role": "assistant", "content": "SELECT \"specimen_weight_size\" FROM \"notes\" WHERE \"calculated_activity_ci\"='4.96\u00d710 \u221211';" } ]