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 \"table1_20967430_4\" (\n \"ep\" real,\n \"season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: What was the name of the episode that aired originally on March 11, 1988?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_20967430_4\" WHERE \"original_air_date\"='March 11, 1988';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20967430_4\" (\n \"ep\" real,\n \"season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: What is the production code of the episode written by Jack Carrerrow?" }, { "role": "assistant", "content": "SELECT \"prod_code\" FROM \"table1_20967430_4\" WHERE \"written_by\"='Jack Carrerrow';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20967430_4\" (\n \"ep\" real,\n \"season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: How many episodes had a production code of 5m13?" }, { "role": "assistant", "content": "SELECT COUNT(\"ep\") FROM \"table1_20967430_4\" WHERE \"prod_code\"='5M13';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20967430_2\" (\n \"ep\" real,\n \"season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: Name the title that aired for november 08, 1985" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_20967430_2\" WHERE \"original_air_date\"='November 08, 1985';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20967430_2\" (\n \"ep\" real,\n \"season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: Name the production code for november 08, 1985" }, { "role": "assistant", "content": "SELECT \"prod_code\" FROM \"table1_20967430_2\" WHERE \"original_air_date\"='November 08, 1985';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20967430_2\" (\n \"ep\" real,\n \"season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: Name the written by for production code 4g07" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_20967430_2\" WHERE \"prod_code\"='4G07';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20967430_2\" (\n \"ep\" real,\n \"season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: Name the least episode for november 29, 1985" }, { "role": "assistant", "content": "SELECT MIN(\"ep\") FROM \"table1_20967430_2\" WHERE \"original_air_date\"='November 29, 1985';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"series_year\" real,\n \"series_ending_tournament\" text,\n \"location\" text,\n \"surface\" text,\n \"champion\" text,\n \"runner_up\" text,\n \"score_in_final\" text\n);\n\nQuestion: What was the final score when tracy austin was runner up?" }, { "role": "assistant", "content": "SELECT \"score_in_final\" FROM \"singles\" WHERE \"runner_up\"='Tracy Austin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20967430_3\" (\n \"ep\" real,\n \"season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: When \"jobless\" is the title who are the writers?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_20967430_3\" WHERE \"title\"='\\\"Jobless\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20967430_3\" (\n \"ep\" real,\n \"season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: When 5a06 is the production code what is the highest episode?" }, { "role": "assistant", "content": "SELECT MAX(\"ep\") FROM \"table1_20967430_3\" WHERE \"prod_code\"='5A06';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_20967430_3\" (\n \"ep\" real,\n \"season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: When it is season 10 who are the writers?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_20967430_3\" WHERE \"season\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"tour\" text,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: when womens singles is wang yihan and tour is french super series, what were the men's singles?" }, { "role": "assistant", "content": "SELECT \"mens_singles\" FROM \"winners\" WHERE \"womens_singles\"='Wang Yihan' AND \"tour\"='French Super Series';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"tour\" text,\n \"mens_singles\" text,\n \"womens_singles\" text,\n \"mens_doubles\" text,\n \"womens_doubles\" text,\n \"mixed_doubles\" text\n);\n\nQuestion: when mixed doubles is zheng bo ma jin and womens singles is wang yihan, what was the tour?" }, { "role": "assistant", "content": "SELECT \"tour\" FROM \"winners\" WHERE \"mixed_doubles\"='Zheng Bo Ma Jin' AND \"womens_singles\"='Wang Yihan';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3\" (\n \"episode_num\" real,\n \"episode\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text,\n \"u_s_airdate\" text\n);\n\nQuestion: How many titles were directed by Alex Chapple?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"season_3\" WHERE \"director\"='Alex Chapple';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3\" (\n \"episode_num\" real,\n \"episode\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text,\n \"u_s_airdate\" text\n);\n\nQuestion: Who is the director of the \"Adam's Family\"?" }, { "role": "assistant", "content": "SELECT \"director\" FROM \"season_3\" WHERE \"title\"='\\\"Adam''s Family\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3\" (\n \"episode_num\" real,\n \"episode\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text,\n \"u_s_airdate\" text\n);\n\nQuestion: What was the us airdate for \"Bear Breasts\"?" }, { "role": "assistant", "content": "SELECT \"u_s_airdate\" FROM \"season_3\" WHERE \"title\"='\\\"Bear Breasts\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3\" (\n \"episode_num\" real,\n \"episode\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text,\n \"u_s_airdate\" text\n);\n\nQuestion: What was the USA airdate for \"Jenny From the Block\"?" }, { "role": "assistant", "content": "SELECT \"u_s_airdate\" FROM \"season_3\" WHERE \"title\"='\\\"Jenny from the Block\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_2\" (\n \"num\" real,\n \"episode\" text,\n \"air_date_canada_yyyy_mm_dd\" text,\n \"viewers_canada\" real,\n \"air_date_netherlands_yyyy_mm_dd\" text,\n \"viewers_netherlands\" real\n);\n\nQuestion: Name the most number for air date 2009/12/29" }, { "role": "assistant", "content": "SELECT MAX(\"num\") FROM \"season_2\" WHERE \"air_date_netherlands_yyyy_mm_dd\"='2009/12/29';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2101431_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: How many millions viewers watched the episode that ran 23:25?" }, { "role": "assistant", "content": "SELECT \"viewers_in_millions\" FROM \"table1_2101431_1\" WHERE \"run_time\"='23:25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2101431_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: What is the broadcast date of the episode on 16mm t/r that ran 23:25?" }, { "role": "assistant", "content": "SELECT \"broadcast_date\" FROM \"table1_2101431_1\" WHERE \"archive\"='16mm t/r' AND \"run_time\"='23:25';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2101431_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: Which episode was watched by 7.2 million viewers?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"table1_2101431_1\" WHERE \"viewers_in_millions\"='7.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2101431_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: What episode had a run time of 24:18?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"table1_2101431_1\" WHERE \"run_time\"='24:18';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"displacement\" text,\n \"bore\" text,\n \"stroke\" text,\n \"cylinders\" text,\n \"valves\" real,\n \"power\" text,\n \"torque\" text,\n \"applications\" text\n);\n\nQuestion: What is the greatest number of valves?" }, { "role": "assistant", "content": "SELECT MIN(\"valves\") FROM \"technical_specifications\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"displacement\" text,\n \"bore\" text,\n \"stroke\" text,\n \"cylinders\" text,\n \"valves\" real,\n \"power\" text,\n \"torque\" text,\n \"applications\" text\n);\n\nQuestion: For the 1999 w210 e-class , 2000 w203 c-class, what is the stroke?" }, { "role": "assistant", "content": "SELECT \"stroke\" FROM \"technical_specifications\" WHERE \"applications\"='1999 W210 E-Class , 2000 W203 C-Class';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"displacement\" text,\n \"bore\" text,\n \"stroke\" text,\n \"cylinders\" text,\n \"valves\" real,\n \"power\" text,\n \"torque\" text,\n \"applications\" text\n);\n\nQuestion: What is the displacement for torque of n\u00b7m (lb\u00b7ft) @1500 rpm?" }, { "role": "assistant", "content": "SELECT \"displacement\" FROM \"technical_specifications\" WHERE \"torque\"='N\u00b7m (lb\u00b7ft) @1500 rpm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"displacement\" text,\n \"bore\" text,\n \"stroke\" text,\n \"cylinders\" text,\n \"valves\" real,\n \"power\" text,\n \"torque\" text,\n \"applications\" text\n);\n\nQuestion: If torque is n\u00b7m (lb\u00b7ft) @1600\u20132400 rpm and applications is 2000 w90x sprinter, what is the power?" }, { "role": "assistant", "content": "SELECT \"power\" FROM \"technical_specifications\" WHERE \"torque\"='N\u00b7m (lb\u00b7ft) @1600\u20132400 rpm' AND \"applications\"='2000 W90x Sprinter';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"technical_specifications\" (\n \"displacement\" text,\n \"bore\" text,\n \"stroke\" text,\n \"cylinders\" text,\n \"valves\" real,\n \"power\" text,\n \"torque\" text,\n \"applications\" text\n);\n\nQuestion: List the torque possible when the stroke is 88.4mm?" }, { "role": "assistant", "content": "SELECT \"torque\" FROM \"technical_specifications\" WHERE \"stroke\"='88.4mm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"sun_devils_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the opponent for 7-1-0" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"record\"='7-1-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102782_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: Name the episode for run time 25:05" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"table1_2102782_1\" WHERE \"run_time\"='25:05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102782_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: Name the broadcast date for run timke of 25:04" }, { "role": "assistant", "content": "SELECT \"broadcast_date\" FROM \"table1_2102782_1\" WHERE \"run_time\"='25:04';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102782_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: Name the archive for run time of 23:55" }, { "role": "assistant", "content": "SELECT \"archive\" FROM \"table1_2102782_1\" WHERE \"run_time\"='23:55';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102782_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: Name the broadcast date for 7.4 viewers" }, { "role": "assistant", "content": "SELECT \"broadcast_date\" FROM \"table1_2102782_1\" WHERE \"viewers_in_millions\"='7.4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102782_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: Name the broadcast date for 6.0 viewers" }, { "role": "assistant", "content": "SELECT \"broadcast_date\" FROM \"table1_2102782_1\" WHERE \"viewers_in_millions\"='6.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_21025437_2\" (\n \"episode_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"viewers_millions\" text,\n \"original_airdate\" text\n);\n\nQuestion: What was the episode number for \"Going Bodmin\"?" }, { "role": "assistant", "content": "SELECT MAX(\"episode_no\") FROM \"table1_21025437_2\" WHERE \"title\"='\\\"Going Bodmin\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_21025437_2\" (\n \"episode_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"viewers_millions\" text,\n \"original_airdate\" text\n);\n\nQuestion: When did \"Going Bodmin\" originally air?" }, { "role": "assistant", "content": "SELECT \"original_airdate\" FROM \"table1_21025437_2\" WHERE \"title\"='\\\"Going Bodmin\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_21025437_2\" (\n \"episode_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"viewers_millions\" text,\n \"original_airdate\" text\n);\n\nQuestion: How many episodes were written by Kirstie Falkous & John Regier?" }, { "role": "assistant", "content": "SELECT COUNT(\"episode_no\") FROM \"table1_21025437_2\" WHERE \"written_by\"='Kirstie Falkous & John Regier';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_21025437_2\" (\n \"episode_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"viewers_millions\" text,\n \"original_airdate\" text\n);\n\nQuestion: How many episodes were titled \"Going Bodmin\"?" }, { "role": "assistant", "content": "SELECT \"episode_no\" FROM \"table1_21025437_2\" WHERE \"title\"='\\\"Going Bodmin\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102714_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: What episode had 9.7 million viewers?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"table1_2102714_1\" WHERE \"viewers_in_millions\"='9.7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102714_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: What date was an episode broadcasted on that had a run time of 24:40?" }, { "role": "assistant", "content": "SELECT \"broadcast_date\" FROM \"table1_2102714_1\" WHERE \"run_time\"='24:40';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102714_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: What episode had a run time of 24:53?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"table1_2102714_1\" WHERE \"run_time\"='24:53';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102714_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: What was the archive for the episode with a run time of 25:24?" }, { "role": "assistant", "content": "SELECT \"archive\" FROM \"table1_2102714_1\" WHERE \"run_time\"='25:24';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102714_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: What is he archive for the episode with a run time of 24:05?" }, { "role": "assistant", "content": "SELECT \"archive\" FROM \"table1_2102714_1\" WHERE \"run_time\"='24:05';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_21025437_6\" (\n \"episode_no\" real,\n \"series_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"viewers_millions\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who directed the episode \"the departed\"?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_21025437_6\" WHERE \"title\"='\\\"The Departed\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_21025437_6\" (\n \"episode_no\" real,\n \"series_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"viewers_millions\" text,\n \"original_airdate\" text\n);\n\nQuestion: Who directed episode number 23?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_21025437_6\" WHERE \"episode_no\"=23;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"sun_devils_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What was the numer of the game when the record was 4-0?" }, { "role": "assistant", "content": "SELECT MAX(\"game\") FROM \"schedule\" WHERE \"record\"='4-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"sun_devils_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many opponents led to an exactly 7-0 record?" }, { "role": "assistant", "content": "SELECT COUNT(\"opponent\") FROM \"schedule\" WHERE \"record\"='7-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"sun_devils_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What number was the game against Kansas State?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"schedule\" WHERE \"opponent\"='Kansas State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102898_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: How many episodes ran 24:33?" }, { "role": "assistant", "content": "SELECT COUNT(\"episode\") FROM \"table1_2102898_1\" WHERE \"run_time\"='24:33';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102898_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: On broadcast date is 25april1970, how many people tuned in?" }, { "role": "assistant", "content": "SELECT \"viewers_in_millions\" FROM \"table1_2102898_1\" WHERE \"broadcast_date\"='25April1970';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102898_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: On broadcast date is 28march1970, how many people tuned in?" }, { "role": "assistant", "content": "SELECT \"viewers_in_millions\" FROM \"table1_2102898_1\" WHERE \"broadcast_date\"='28March1970';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102898_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: On broadcast date is 21march1970, how many people tuned in?" }, { "role": "assistant", "content": "SELECT COUNT(\"viewers_in_millions\") FROM \"table1_2102898_1\" WHERE \"broadcast_date\"='21March1970';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2102898_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: What is the archive of the show that aired on 18april1970?" }, { "role": "assistant", "content": "SELECT \"archive\" FROM \"table1_2102898_1\" WHERE \"broadcast_date\"='18April1970';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"golden_bears_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What was the least amount of points scored by the golden bears when the opponent scored 15 points?" }, { "role": "assistant", "content": "SELECT MIN(\"golden_bears_points\") FROM \"schedule\" WHERE \"opponents\"=15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"golden_bears_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What is the total number of opponents played against the bears in game 4?" }, { "role": "assistant", "content": "SELECT COUNT(\"opponents\") FROM \"schedule\" WHERE \"game\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"golden_bears_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What opponent was playing against the Golden Bears when they scored 3 points?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"golden_bears_points\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2104176_1\" (\n \"medal_of_honor\" text,\n \"coast_guard_cross\" text,\n \"navy_cross\" text,\n \"distinguished_service_cross\" text,\n \"air_force_cross\" text,\n \"homeland_security_distinguished_service_medal\" text\n);\n\nQuestion: What is the Medal of Honor with Army Distinguished Service Medal?" }, { "role": "assistant", "content": "SELECT \"medal_of_honor\" FROM \"table1_2104176_1\" WHERE \"air_force_cross\"='Army Distinguished Service Medal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2104176_1\" (\n \"medal_of_honor\" text,\n \"coast_guard_cross\" text,\n \"navy_cross\" text,\n \"distinguished_service_cross\" text,\n \"air_force_cross\" text,\n \"homeland_security_distinguished_service_medal\" text\n);\n\nQuestion: WHat is the Homeland security distinguished service medal when the medal of honor is Coast guard Medal?" }, { "role": "assistant", "content": "SELECT \"homeland_security_distinguished_service_medal\" FROM \"table1_2104176_1\" WHERE \"medal_of_honor\"='Coast Guard Medal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2104176_1\" (\n \"medal_of_honor\" text,\n \"coast_guard_cross\" text,\n \"navy_cross\" text,\n \"distinguished_service_cross\" text,\n \"air_force_cross\" text,\n \"homeland_security_distinguished_service_medal\" text\n);\n\nQuestion: What is the distinguished service cross when the navy cross is Coast Guard commendation medal?" }, { "role": "assistant", "content": "SELECT \"distinguished_service_cross\" FROM \"table1_2104176_1\" WHERE \"navy_cross\"='Coast Guard Commendation Medal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2104176_1\" (\n \"medal_of_honor\" text,\n \"coast_guard_cross\" text,\n \"navy_cross\" text,\n \"distinguished_service_cross\" text,\n \"air_force_cross\" text,\n \"homeland_security_distinguished_service_medal\" text\n);\n\nQuestion: What is the air force cross when you recieve the Aerial achievement medal?" }, { "role": "assistant", "content": "SELECT \"air_force_cross\" FROM \"table1_2104176_1\" WHERE \"homeland_security_distinguished_service_medal\"='Aerial Achievement Medal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2104176_1\" (\n \"medal_of_honor\" text,\n \"coast_guard_cross\" text,\n \"navy_cross\" text,\n \"distinguished_service_cross\" text,\n \"air_force_cross\" text,\n \"homeland_security_distinguished_service_medal\" text\n);\n\nQuestion: What is the coast guard cross when you recieve the navy distinguished service medal?" }, { "role": "assistant", "content": "SELECT \"coast_guard_cross\" FROM \"table1_2104176_1\" WHERE \"distinguished_service_cross\"='Navy Distinguished Service Medal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"county_results\" (\n \"county\" text,\n \"won_by\" text,\n \"walker_pct\" real,\n \"walker_votes\" real,\n \"barrett_pct\" real,\n \"barrett_votes\" real\n);\n\nQuestion: How many figures are given for Walker's percentage in Kenosha county?" }, { "role": "assistant", "content": "SELECT COUNT(\"walker_pct\") FROM \"county_results\" WHERE \"county\"='Kenosha';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"county_results\" (\n \"county\" text,\n \"won_by\" text,\n \"walker_pct\" real,\n \"walker_votes\" real,\n \"barrett_pct\" real,\n \"barrett_votes\" real\n);\n\nQuestion: What percentage did Walker win in Calumet county?" }, { "role": "assistant", "content": "SELECT \"walker_pct\" FROM \"county_results\" WHERE \"county\"='Calumet';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"county_results\" (\n \"county\" text,\n \"won_by\" text,\n \"walker_pct\" real,\n \"walker_votes\" real,\n \"barrett_pct\" real,\n \"barrett_votes\" real\n);\n\nQuestion: How many total figures are given for Milwaukee county?" }, { "role": "assistant", "content": "SELECT COUNT(\"won_by\") FROM \"county_results\" WHERE \"county\"='Milwaukee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What did they do in the game when their record was 3-2-1?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"record\"='3-2-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What did they do against Villanova?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponent\"='Villanova';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What did they do against Memphis?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponent\"='Memphis';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many games did they play when their record 0-2-0?" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"schedule\" WHERE \"record\"='0-2-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_21055055_2\" (\n \"num\" real,\n \"episode\" text,\n \"au_air_date\" text,\n \"timeslot\" text,\n \"viewers_m\" text,\n \"nightly_rank_num\" real,\n \"weekly_rank_num\" real\n);\n\nQuestion: When did the episode seen by is 2.267 million people get aired?" }, { "role": "assistant", "content": "SELECT \"au_air_date\" FROM \"table1_21055055_2\" WHERE \"viewers_m\"='2.267';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2105721_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: Name the episode for run time in 24:44" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"table1_2105721_1\" WHERE \"run_time\"='24:44';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2105721_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: Name the total episode for runtime of 24:11" }, { "role": "assistant", "content": "SELECT COUNT(\"episode\") FROM \"table1_2105721_1\" WHERE \"run_time\"='24:11';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Who did the team play against when a record of 3-1, #16 was achieved?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"record\"='3-1, #16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What was the result of the game against Mississippi State?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponent\"='Mississippi State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Who did the team play against in the game that resulted with a loss?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"result\"='Loss';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"bruins_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What game did the Bruins play Santa Clara?" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"schedule\" WHERE \"opponent\"='Santa Clara';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"bruins_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Santa Clara was played how many times?" }, { "role": "assistant", "content": "SELECT \"opponents\" FROM \"schedule\" WHERE \"opponent\"='Santa Clara';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"bruins_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: The game the Bruins scored 26 ,what was the result?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponents\"=26;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"bruins_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What was the record for game 9?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"game\"=9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Who were the opponents of the Wildcats in game 4?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"game\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Who were the the opponents of the Wildcats for game 8 of the season?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"game\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: What was the record of the Wildcats after playing Florida?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"schedule\" WHERE \"opponent\"='Florida';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"wildcats_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many times did the Wildcats play a game 11 regardless of points scored?" }, { "role": "assistant", "content": "SELECT COUNT(\"wildcats_points\") FROM \"schedule\" WHERE \"game\"=11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the number of black knights points for 3 game" }, { "role": "assistant", "content": "SELECT COUNT(\"black_knights_points\") FROM \"schedule\" WHERE \"game\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the opponents for game 5" }, { "role": "assistant", "content": "SELECT \"opponents\" FROM \"schedule\" WHERE \"game\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the result for 19 black knights points" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"schedule\" WHERE \"black_knights_points\"=19;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the opponent for black knights points 27" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"black_knights_points\"=27;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the date for game 8" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"game\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the number of date for 1-0 record" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"schedule\" WHERE \"record\"='1-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the game for record 1-0" }, { "role": "assistant", "content": "SELECT \"game\" FROM \"schedule\" WHERE \"record\"='1-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the most game" }, { "role": "assistant", "content": "SELECT MAX(\"game\") FROM \"schedule\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many games have a record of 3-4-0?" }, { "role": "assistant", "content": "SELECT MAX(\"game\") FROM \"schedule\" WHERE \"record\"='3-4-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many dates have boston college as the opponent?" }, { "role": "assistant", "content": "SELECT COUNT(\"date\") FROM \"schedule\" WHERE \"opponent\"='Boston College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many games have Air Force as the opponent?" }, { "role": "assistant", "content": "SELECT MAX(\"game\") FROM \"schedule\" WHERE \"opponent\"='Air Force';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many records have black knights points as 17?" }, { "role": "assistant", "content": "SELECT COUNT(\"record\") FROM \"schedule\" WHERE \"black_knights_points\"=17;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"orangemen_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Which opponent has a record of 6-2?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"record\"='6-2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"orangemen_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: How many results have a game of 5?" }, { "role": "assistant", "content": "SELECT COUNT(\"result\") FROM \"schedule\" WHERE \"game\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2108684_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: What is the run time for the episode with 7.9 million viewers?" }, { "role": "assistant", "content": "SELECT \"run_time\" FROM \"table1_2108684_1\" WHERE \"viewers_in_millions\"='7.9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2108684_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: What episode had a run time of 23:38?" }, { "role": "assistant", "content": "SELECT \"episode\" FROM \"table1_2108684_1\" WHERE \"run_time\"='23:38';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_2108684_1\" (\n \"episode\" text,\n \"broadcast_date\" text,\n \"run_time\" text,\n \"viewers_in_millions\" text,\n \"archive\" text\n);\n\nQuestion: How many million viewers watched the episode with a run time of 25:22?" }, { "role": "assistant", "content": "SELECT \"viewers_in_millions\" FROM \"table1_2108684_1\" WHERE \"run_time\"='25:22';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the date for result loss for duke" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"result\"='Loss' AND \"opponent\"='Duke';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"black_knights_points\" real,\n \"opponents\" real,\n \"record\" text\n);\n\nQuestion: Name the opponents for record of 2-1" }, { "role": "assistant", "content": "SELECT \"opponents\" FROM \"schedule\" WHERE \"record\"='2-1';" } ]