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 \"tag_team_turmoil_match\" (\n \"eliminated\" text,\n \"tag_team\" text,\n \"entered\" real,\n \"eliminated_by\" text,\n \"time\" text\n);\n\nQuestion: Name the Tag Team with Entered of 6?" }, { "role": "assistant", "content": "SELECT \"tag_team\" FROM \"tag_team_turmoil_match\" WHERE \"entered\"=6;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tag_team_turmoil_match\" (\n \"eliminated\" text,\n \"tag_team\" text,\n \"entered\" real,\n \"eliminated_by\" text,\n \"time\" text\n);\n\nQuestion: Name Tag Team with a Eliminated of 5?" }, { "role": "assistant", "content": "SELECT \"tag_team\" FROM \"tag_team_turmoil_match\" WHERE \"eliminated\"='5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tag_team_turmoil_match\" (\n \"eliminated\" text,\n \"tag_team\" text,\n \"entered\" real,\n \"eliminated_by\" text,\n \"time\" text\n);\n\nQuestion: Name the Tag Team with a Time of 03:34?" }, { "role": "assistant", "content": "SELECT \"tag_team\" FROM \"tag_team_turmoil_match\" WHERE \"time\"='03:34';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tag_team_turmoil_match\" (\n \"eliminated\" text,\n \"tag_team\" text,\n \"entered\" real,\n \"eliminated_by\" text,\n \"time\" text\n);\n\nQuestion: Name the highest Entered of Eliminated by of rosey and the hurricane?" }, { "role": "assistant", "content": "SELECT MAX(\"entered\") FROM \"tag_team_turmoil_match\" WHERE \"eliminated_by\"='rosey and the hurricane';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2005_fall_season\" (\n \"japanese_title\" text,\n \"romaji_title\" text,\n \"tv_station\" text,\n \"episodes\" real,\n \"average_ratings\" text\n);\n\nQuestion: Which Episodes have a TV Station of ntv, and a Japanese Title of \u3042\u3044\u306e\u3046\u305f?" }, { "role": "assistant", "content": "SELECT AVG(\"episodes\") FROM \"2005_fall_season\" WHERE \"tv_station\"='ntv' AND \"japanese_title\"='\u3042\u3044\u306e\u3046\u305f';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2005_fall_season\" (\n \"japanese_title\" text,\n \"romaji_title\" text,\n \"tv_station\" text,\n \"episodes\" real,\n \"average_ratings\" text\n);\n\nQuestion: Which TV Station has Average Ratings of 16.89%?" }, { "role": "assistant", "content": "SELECT \"tv_station\" FROM \"2005_fall_season\" WHERE \"average_ratings\"='16.89%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2005_fall_season\" (\n \"japanese_title\" text,\n \"romaji_title\" text,\n \"tv_station\" text,\n \"episodes\" real,\n \"average_ratings\" text\n);\n\nQuestion: Which Episodes have a TV Station of tbs, and a Japanese Title of \u4eca\u591c\u3072\u3068\u308a\u306e\u30d9\u30c3\u30c9\u3067?" }, { "role": "assistant", "content": "SELECT MAX(\"episodes\") FROM \"2005_fall_season\" WHERE \"tv_station\"='tbs' AND \"japanese_title\"='\u4eca\u591c\u3072\u3068\u308a\u306e\u30d9\u30c3\u30c9\u3067';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2005_fall_season\" (\n \"japanese_title\" text,\n \"romaji_title\" text,\n \"tv_station\" text,\n \"episodes\" real,\n \"average_ratings\" text\n);\n\nQuestion: Which Japanese Title has a TV Station of tbs, and a Romaji Title of hana yori dango?" }, { "role": "assistant", "content": "SELECT \"japanese_title\" FROM \"2005_fall_season\" WHERE \"tv_station\"='tbs' AND \"romaji_title\"='hana yori dango';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Who was the away team with a tie number of 4?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"first_round_proper\" WHERE \"tie_no\"='4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What date was the tie number of 32?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"first_round_proper\" WHERE \"tie_no\"='32';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What was the score when the tie number was a replay and the home team was mansfield town?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"first_round_proper\" WHERE \"tie_no\"='replay' AND \"home_team\"='mansfield town';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: what is the to par when the score is 67-68-76=211?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"score\"='67-68-76=211';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: what is the score for tom watson?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"third_round\" WHERE \"player\"='tom watson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: who is the player when the place is t10 and the score is 67-72-72=211?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"third_round\" WHERE \"place\"='t10' AND \"score\"='67-72-72=211';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: what is the place for bryce molder?" }, { "role": "assistant", "content": "SELECT \"place\" FROM \"third_round\" WHERE \"player\"='bryce molder';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: what is the to par for mathew goggin?" }, { "role": "assistant", "content": "SELECT \"to_par\" FROM \"third_round\" WHERE \"player\"='mathew goggin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"passenger_and_express_train_locomotives\" (\n \"class\" text,\n \"railway_number_s\" text,\n \"drg_number_s\" text,\n \"quantity\" real,\n \"year_s_of_manufacture\" text,\n \"axle_arrangement\" text\n);\n\nQuestion: Which Quantity has an Axle arrangement of 2\u2032c h2?" }, { "role": "assistant", "content": "SELECT AVG(\"quantity\") FROM \"passenger_and_express_train_locomotives\" WHERE \"axle_arrangement\"='2\u2032c h2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"passenger_and_express_train_locomotives\" (\n \"class\" text,\n \"railway_number_s\" text,\n \"drg_number_s\" text,\n \"quantity\" real,\n \"year_s_of_manufacture\" text,\n \"axle_arrangement\" text\n);\n\nQuestion: Which Year(s) of manufacture has an Axle arrangement of 2\u2032b n2?" }, { "role": "assistant", "content": "SELECT \"year_s_of_manufacture\" FROM \"passenger_and_express_train_locomotives\" WHERE \"axle_arrangement\"='2\u2032b n2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_a_b_1\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: Which Rank has a Time of 5:56.73?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"semifinal_a_b_1\" WHERE \"time\"='5:56.73';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_a_b_1\" (\n \"rank\" real,\n \"athlete\" text,\n \"country\" text,\n \"time\" text,\n \"notes\" text\n);\n\nQuestion: Which Rank has Notes of fb, and a Time of 5:57.31?" }, { "role": "assistant", "content": "SELECT \"rank\" FROM \"semifinal_a_b_1\" WHERE \"notes\"='fb' AND \"time\"='5:57.31';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_markets_2000_2011\" (\n \"country_or_territory\" text,\n \"2000\" real,\n \"2001\" real,\n \"2002\" real,\n \"2003\" real,\n \"2004\" real,\n \"2005\" real,\n \"2006\" real,\n \"2007\" real,\n \"2008\" real,\n \"2009\" real,\n \"2010\" real,\n \"2011\" real\n);\n\nQuestion: How much 2000 has a 2005 smaller than 583,590, and a 2009 smaller than 156,761, and a 2002 larger than 1,393,020?" }, { "role": "assistant", "content": "SELECT SUM(\"2000\") FROM \"top_markets_2000_2011\" WHERE \"2005\"<'583,590' AND \"2009\"<'156,761' AND \"2002\">'1,393,020';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_markets_2000_2011\" (\n \"country_or_territory\" text,\n \"2000\" real,\n \"2001\" real,\n \"2002\" real,\n \"2003\" real,\n \"2004\" real,\n \"2005\" real,\n \"2006\" real,\n \"2007\" real,\n \"2008\" real,\n \"2009\" real,\n \"2010\" real,\n \"2011\" real\n);\n\nQuestion: Which 2011 has a 2004 smaller than 271,691, and a Country or territory of vietnam, and a 2009 larger than 265,414?" }, { "role": "assistant", "content": "SELECT AVG(\"2011\") FROM \"top_markets_2000_2011\" WHERE \"2004\"<'271,691' AND \"country_or_territory\"='vietnam' AND \"2009\">'265,414';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_markets_2000_2011\" (\n \"country_or_territory\" text,\n \"2000\" real,\n \"2001\" real,\n \"2002\" real,\n \"2003\" real,\n \"2004\" real,\n \"2005\" real,\n \"2006\" real,\n \"2007\" real,\n \"2008\" real,\n \"2009\" real,\n \"2010\" real,\n \"2011\" real\n);\n\nQuestion: Which 2007 has a Country or territory of china, and a 2002 smaller than 670,099?" }, { "role": "assistant", "content": "SELECT MIN(\"2007\") FROM \"top_markets_2000_2011\" WHERE \"country_or_territory\"='china' AND \"2002\"<'670,099';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"per_country\" (\n \"rank\" text,\n \"country\" text,\n \"jerseys\" real,\n \"giro_wins\" real,\n \"points\" real,\n \"young_rider\" real,\n \"most_recent_cyclist\" text,\n \"most_recent_date\" text,\n \"different_holders\" real\n);\n\nQuestion: what is the giro wins when jerseys is 2, country is portugal and young rider is more than 0?" }, { "role": "assistant", "content": "SELECT SUM(\"giro_wins\") FROM \"per_country\" WHERE \"jerseys\"=2 AND \"country\"='portugal' AND \"young_rider\">0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"per_country\" (\n \"rank\" text,\n \"country\" text,\n \"jerseys\" real,\n \"giro_wins\" real,\n \"points\" real,\n \"young_rider\" real,\n \"most_recent_cyclist\" text,\n \"most_recent_date\" text,\n \"different_holders\" real\n);\n\nQuestion: what is the highest jersey when points is 0, different holders is less than 3, giro wins is less than 1 and young rider is more than 1?" }, { "role": "assistant", "content": "SELECT MAX(\"jerseys\") FROM \"per_country\" WHERE \"points\"=0 AND \"different_holders\"<3 AND \"giro_wins\"<1 AND \"young_rider\">1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"per_country\" (\n \"rank\" text,\n \"country\" text,\n \"jerseys\" real,\n \"giro_wins\" real,\n \"points\" real,\n \"young_rider\" real,\n \"most_recent_cyclist\" text,\n \"most_recent_date\" text,\n \"different_holders\" real\n);\n\nQuestion: how many times is young rider more than 0, country is france and points less than 1?" }, { "role": "assistant", "content": "SELECT COUNT(\"jerseys\") FROM \"per_country\" WHERE \"young_rider\">0 AND \"country\"='france' AND \"points\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"per_country\" (\n \"rank\" text,\n \"country\" text,\n \"jerseys\" real,\n \"giro_wins\" real,\n \"points\" real,\n \"young_rider\" real,\n \"most_recent_cyclist\" text,\n \"most_recent_date\" text,\n \"different_holders\" real\n);\n\nQuestion: what is the least different holders when the country is ireland and giro wins is less than 1?" }, { "role": "assistant", "content": "SELECT MIN(\"different_holders\") FROM \"per_country\" WHERE \"country\"='ireland' AND \"giro_wins\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_6a_lightweight_manx_grand_prix\" (\n \"rank\" real,\n \"rider\" text,\n \"team\" text,\n \"speed\" text,\n \"time\" text\n);\n\nQuestion: What is Brian Mateer's Speed?" }, { "role": "assistant", "content": "SELECT \"speed\" FROM \"race_6a_lightweight_manx_grand_prix\" WHERE \"rider\"='brian mateer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_6a_lightweight_manx_grand_prix\" (\n \"rank\" real,\n \"rider\" text,\n \"team\" text,\n \"speed\" text,\n \"time\" text\n);\n\nQuestion: What is the Rank of the Rider with a Speed of 111.072mph in Team 250CC Honda?" }, { "role": "assistant", "content": "SELECT AVG(\"rank\") FROM \"race_6a_lightweight_manx_grand_prix\" WHERE \"team\"='250cc honda' AND \"speed\"='111.072mph';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is the Nationality of the swimmer with a Time of 1:08.80?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"heats\" WHERE \"time\"='1:08.80';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"heats\" (\n \"rank\" real,\n \"heat\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What is Anna Khlistunova's Nationality?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"heats\" WHERE \"name\"='anna khlistunova';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"penalty_summary\" (\n \"period\" text,\n \"team\" text,\n \"player\" text,\n \"penalty\" text,\n \"time\" text\n);\n\nQuestion: What is the penalty for the DET team player Andreas Lilja?" }, { "role": "assistant", "content": "SELECT \"penalty\" FROM \"penalty_summary\" WHERE \"team\"='det' AND \"player\"='andreas lilja';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"penalty_summary\" (\n \"period\" text,\n \"team\" text,\n \"player\" text,\n \"penalty\" text,\n \"time\" text\n);\n\nQuestion: What is the penalty for Jonathan Toews?" }, { "role": "assistant", "content": "SELECT \"penalty\" FROM \"penalty_summary\" WHERE \"player\"='jonathan toews';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"penalty_summary\" (\n \"period\" text,\n \"team\" text,\n \"player\" text,\n \"penalty\" text,\n \"time\" text\n);\n\nQuestion: What is the period for Ben Eager?" }, { "role": "assistant", "content": "SELECT \"period\" FROM \"penalty_summary\" WHERE \"player\"='ben eager';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"penalty_summary\" (\n \"period\" text,\n \"team\" text,\n \"player\" text,\n \"penalty\" text,\n \"time\" text\n);\n\nQuestion: What is the period for the DET Team with a time of 11:27?" }, { "role": "assistant", "content": "SELECT \"period\" FROM \"penalty_summary\" WHERE \"team\"='det' AND \"time\"='11:27';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"penalty_summary\" (\n \"period\" text,\n \"team\" text,\n \"player\" text,\n \"penalty\" text,\n \"time\" text\n);\n\nQuestion: What player has a penalty of holding on the DET team?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"penalty_summary\" WHERE \"penalty\"='holding' AND \"team\"='det';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"penalty_summary\" (\n \"period\" text,\n \"team\" text,\n \"player\" text,\n \"penalty\" text,\n \"time\" text\n);\n\nQuestion: What time does Dustin Byfuglien have in 1st period?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"penalty_summary\" WHERE \"period\"='1st' AND \"player\"='dustin byfuglien';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"location\" text,\n \"lineup\" text,\n \"assist_pass\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Which competition has a result of 2-0 in Ferreiras with an assist/pass by Casey Nogueira?" }, { "role": "assistant", "content": "SELECT \"competition\" FROM \"international_goals\" WHERE \"result\"='2-0' AND \"location\"='ferreiras' AND \"assist_pass\"='casey nogueira';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"location\" text,\n \"lineup\" text,\n \"assist_pass\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the score with the Lineup match reports?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"international_goals\" WHERE \"lineup\"='match reports';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"location\" text,\n \"lineup\" text,\n \"assist_pass\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: On what date is there an assist/pass by Shannon Boxx?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"international_goals\" WHERE \"assist_pass\"='shannon boxx';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"location\" text,\n \"lineup\" text,\n \"assist_pass\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Which assist/pass is in Ferreiras?" }, { "role": "assistant", "content": "SELECT \"assist_pass\" FROM \"international_goals\" WHERE \"location\"='ferreiras';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"transfers_out\" (\n \"nat\" text,\n \"name\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"transfer_fee\" text\n);\n\nQuestion: Willy Sagnol with a type as career end had what has the transfer fee?" }, { "role": "assistant", "content": "SELECT \"transfer_fee\" FROM \"transfers_out\" WHERE \"type\"='career end' AND \"name\"='willy sagnol';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"transfers_out\" (\n \"nat\" text,\n \"name\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"transfer_fee\" text\n);\n\nQuestion: Marcell Jansen with a transfer window of summer, and of transfer as type is from what nation?" }, { "role": "assistant", "content": "SELECT \"nat\" FROM \"transfers_out\" WHERE \"transfer_window\"='summer' AND \"type\"='transfer' AND \"name\"='marcell jansen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"transfers_out\" (\n \"nat\" text,\n \"name\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"transfer_fee\" text\n);\n\nQuestion: Marcell Jansen of the nation GER has what for the type?" }, { "role": "assistant", "content": "SELECT \"type\" FROM \"transfers_out\" WHERE \"nat\"='ger' AND \"name\"='marcell jansen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"transfers_out\" (\n \"nat\" text,\n \"name\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"transfer_fee\" text\n);\n\nQuestion: What player had a transfer window of winter, and free as the transfer fee?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"transfers_out\" WHERE \"transfer_window\"='winter' AND \"transfer_fee\"='free';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"transfers_out\" (\n \"nat\" text,\n \"name\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"transfer_fee\" text\n);\n\nQuestion: Which player from GER has a transfer window of summer, and a transfer fee of n/a?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"transfers_out\" WHERE \"transfer_window\"='summer' AND \"nat\"='ger' AND \"transfer_fee\"='n/a';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"county\" text,\n \"year_joined\" real,\n \"year_left\" real,\n \"conference_joined\" text\n);\n\nQuestion: What's the highest Year Left that's got a Conference Joined of Sagamore with a Year Joined larger than 1942?" }, { "role": "assistant", "content": "SELECT MAX(\"year_left\") FROM \"former_members\" WHERE \"conference_joined\"='sagamore' AND \"year_joined\">1942;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"school\" text,\n \"location\" text,\n \"mascot\" text,\n \"county\" text,\n \"year_joined\" real,\n \"year_left\" real,\n \"conference_joined\" text\n);\n\nQuestion: What's the highest Year Left for the School of Danville?" }, { "role": "assistant", "content": "SELECT MAX(\"year_left\") FROM \"former_members\" WHERE \"school\"='danville';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"semifinal_2\" (\n \"rank\" real,\n \"lane\" real,\n \"name\" text,\n \"nationality\" text,\n \"time\" text\n);\n\nQuestion: What was lane 4's time?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"semifinal_2\" WHERE \"lane\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sandy_bridge_dual_core_32_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"cores\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"gpu_model\" text,\n \"gpu_frequency\" text,\n \"socket\" text,\n \"i_o_bus\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What's the part number of the processor that has an 1.8 ghz frequency and 2 \u00d7 256 kb L@ Cache?" }, { "role": "assistant", "content": "SELECT \"part_number_s\" FROM \"sandy_bridge_dual_core_32_nm\" WHERE \"l2_cache\"='2 \u00d7 256 kb' AND \"frequency\"='1.8 ghz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sandy_bridge_dual_core_32_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"cores\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"gpu_model\" text,\n \"gpu_frequency\" text,\n \"socket\" text,\n \"i_o_bus\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What's the sSpec number of the processor having an ultra-low power I/O?" }, { "role": "assistant", "content": "SELECT \"s_spec_number\" FROM \"sandy_bridge_dual_core_32_nm\" WHERE \"i_o_bus\"='ultra-low power';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sandy_bridge_dual_core_32_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"cores\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"gpu_model\" text,\n \"gpu_frequency\" text,\n \"socket\" text,\n \"i_o_bus\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What the cores with a release date of February 2011 and a BGA-1023 socket?" }, { "role": "assistant", "content": "SELECT \"cores\" FROM \"sandy_bridge_dual_core_32_nm\" WHERE \"socket\"='bga-1023' AND \"release_date\"='february 2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sandy_bridge_dual_core_32_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"cores\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"gpu_model\" text,\n \"gpu_frequency\" text,\n \"socket\" text,\n \"i_o_bus\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What's the L3 Cache that has a standard power I/O?" }, { "role": "assistant", "content": "SELECT \"l3_cache\" FROM \"sandy_bridge_dual_core_32_nm\" WHERE \"i_o_bus\"='standard power';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sandy_bridge_dual_core_32_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"cores\" text,\n \"frequency\" text,\n \"turbo\" text,\n \"l2_cache\" text,\n \"l3_cache\" text,\n \"gpu_model\" text,\n \"gpu_frequency\" text,\n \"socket\" text,\n \"i_o_bus\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What's the release date of the processor with 2.8 ghz of frequency?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"sandy_bridge_dual_core_32_nm\" WHERE \"frequency\"='2.8 ghz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pharmacotherapy_for_cocaine_abuse\" (\n \"3_h_cft\" real,\n \"3_h_nisoxetine\" text,\n \"3_h_paroxetine\" text,\n \"n_d\" real,\n \"s_d\" real\n);\n\nQuestion: What is the total S \u00f7 D with a 3298 (1986) [3 H] nizoxetine and an N \u00f7 D greater than 37.01?" }, { "role": "assistant", "content": "SELECT COUNT(\"s_d\") FROM \"pharmacotherapy_for_cocaine_abuse\" WHERE \"3_h_nisoxetine\"='3298 (1986)' AND \"n_d\">37.01;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pharmacotherapy_for_cocaine_abuse\" (\n \"3_h_cft\" real,\n \"3_h_nisoxetine\" text,\n \"3_h_paroxetine\" text,\n \"n_d\" real,\n \"s_d\" real\n);\n\nQuestion: What is the [3 H] paroxetine with a [3 H] CFT less than 3.93, an S \u00f7 D greater than 1891, and a [3H] nizoxetine of 299 (180)?" }, { "role": "assistant", "content": "SELECT \"3_h_paroxetine\" FROM \"pharmacotherapy_for_cocaine_abuse\" WHERE \"3_h_cft\"<3.93 AND \"s_d\">1891 AND \"3_h_nisoxetine\"='299 (180)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pharmacotherapy_for_cocaine_abuse\" (\n \"3_h_cft\" real,\n \"3_h_nisoxetine\" text,\n \"3_h_paroxetine\" text,\n \"n_d\" real,\n \"s_d\" real\n);\n\nQuestion: What is the sum of the [3 H]CFT with an N \u00f7 D less than 393.8 and a [3H] paroxetine of 1045 (45)?" }, { "role": "assistant", "content": "SELECT SUM(\"3_h_cft\") FROM \"pharmacotherapy_for_cocaine_abuse\" WHERE \"n_d\"<393.8 AND \"3_h_paroxetine\"='1045 (45)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pharmacotherapy_for_cocaine_abuse\" (\n \"3_h_cft\" real,\n \"3_h_nisoxetine\" text,\n \"3_h_paroxetine\" text,\n \"n_d\" real,\n \"s_d\" real\n);\n\nQuestion: What is the highest S \u00f7 D with a 2420 (220) [3H] paroxetine and an N \u00f7 D less than 393.8?" }, { "role": "assistant", "content": "SELECT MAX(\"s_d\") FROM \"pharmacotherapy_for_cocaine_abuse\" WHERE \"3_h_paroxetine\"='2420 (220)' AND \"n_d\"<393.8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_attendances\" (\n \"attendance\" real,\n \"round\" text,\n \"date\" text,\n \"home\" text,\n \"score\" text,\n \"away\" text,\n \"venue\" text,\n \"weekday\" text,\n \"time_of_day\" text\n);\n\nQuestion: What round was the match at Westpac Stadium that had the Newcastle Jets as the away team?" }, { "role": "assistant", "content": "SELECT \"round\" FROM \"top_10_attendances\" WHERE \"venue\"='westpac stadium' AND \"away\"='newcastle jets';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_10_attendances\" (\n \"attendance\" real,\n \"round\" text,\n \"date\" text,\n \"home\" text,\n \"score\" text,\n \"away\" text,\n \"venue\" text,\n \"weekday\" text,\n \"time_of_day\" text\n);\n\nQuestion: On what weekday was the match that had Perth Glory as the away team?" }, { "role": "assistant", "content": "SELECT \"weekday\" FROM \"top_10_attendances\" WHERE \"away\"='perth glory';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"guernsey_records\" (\n \"fish\" text,\n \"guernsey_record\" text,\n \"year\" text,\n \"location\" text,\n \"british_record\" text\n);\n\nQuestion: What is the British record for the fish with a Guernsey record of 32-8-0?" }, { "role": "assistant", "content": "SELECT \"british_record\" FROM \"guernsey_records\" WHERE \"guernsey_record\"='32-8-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"guernsey_records\" (\n \"fish\" text,\n \"guernsey_record\" text,\n \"year\" text,\n \"location\" text,\n \"british_record\" text\n);\n\nQuestion: What year was the Guernsey record of 2-3-12 set?" }, { "role": "assistant", "content": "SELECT \"year\" FROM \"guernsey_records\" WHERE \"guernsey_record\"='2-3-12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"guernsey_records\" (\n \"fish\" text,\n \"guernsey_record\" text,\n \"year\" text,\n \"location\" text,\n \"british_record\" text\n);\n\nQuestion: What was the guernsey record set with a fish caught at Bordeaux Harbour?" }, { "role": "assistant", "content": "SELECT \"guernsey_record\" FROM \"guernsey_records\" WHERE \"location\"='bordeaux harbour';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1931\" (\n \"title\" text,\n \"series\" text,\n \"characters\" text,\n \"production_num\" real,\n \"release_date\" text\n);\n\nQuestion: When was the film released that a less than 5038 production number and was of the character Bosko?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"1931\" WHERE \"production_num\"<5038 AND \"characters\"='bosko';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1931\" (\n \"title\" text,\n \"series\" text,\n \"characters\" text,\n \"production_num\" real,\n \"release_date\" text\n);\n\nQuestion: With 4645 as the production number what was the title?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"1931\" WHERE \"production_num\"=4645;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1931\" (\n \"title\" text,\n \"series\" text,\n \"characters\" text,\n \"production_num\" real,\n \"release_date\" text\n);\n\nQuestion: The film titled Bosko's fox hunt had what as the smallest production number?" }, { "role": "assistant", "content": "SELECT MIN(\"production_num\") FROM \"1931\" WHERE \"title\"='bosko''s fox hunt';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1931\" (\n \"title\" text,\n \"series\" text,\n \"characters\" text,\n \"production_num\" real,\n \"release_date\" text\n);\n\nQuestion: What is the smallest production number for the LT series with the Dumb Patrol title?" }, { "role": "assistant", "content": "SELECT MIN(\"production_num\") FROM \"1931\" WHERE \"series\"='lt' AND \"title\"='dumb patrol';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"stadium\" text,\n \"capacity\" real,\n \"city\" text,\n \"province\" text,\n \"home_team_s\" text\n);\n\nQuestion: What was the average capacity for v\u00e9lez s\u00e1rsfield?" }, { "role": "assistant", "content": "SELECT AVG(\"capacity\") FROM \"list\" WHERE \"home_team_s\"='v\u00e9lez s\u00e1rsfield';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"stadium\" text,\n \"capacity\" real,\n \"city\" text,\n \"province\" text,\n \"home_team_s\" text\n);\n\nQuestion: What city was the home team Tigre?" }, { "role": "assistant", "content": "SELECT \"city\" FROM \"list\" WHERE \"home_team_s\"='tigre';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list\" (\n \"stadium\" text,\n \"capacity\" real,\n \"city\" text,\n \"province\" text,\n \"home_team_s\" text\n);\n\nQuestion: What province is in Mendoza with a stadium feliciano gambarte?" }, { "role": "assistant", "content": "SELECT \"province\" FROM \"list\" WHERE \"city\"='mendoza' AND \"stadium\"='feliciano gambarte';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: On what date was there a tv time of ABC 8:00pm and after week 9?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\">9 AND \"tv_time\"='abc 8:00pm';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_game_of_the_year_awards\" (\n \"year\" real,\n \"game\" text,\n \"genre\" text,\n \"platform_s\" text,\n \"developer_s\" text\n);\n\nQuestion: What is total number of years that has genre of first-person shooter?" }, { "role": "assistant", "content": "SELECT SUM(\"year\") FROM \"list_of_game_of_the_year_awards\" WHERE \"genre\"='first-person shooter';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_game_of_the_year_awards\" (\n \"year\" real,\n \"game\" text,\n \"genre\" text,\n \"platform_s\" text,\n \"developer_s\" text\n);\n\nQuestion: Which year is the lowest for genre of action-adventure?" }, { "role": "assistant", "content": "SELECT MIN(\"year\") FROM \"list_of_game_of_the_year_awards\" WHERE \"genre\"='action-adventure';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alphabet_and_transliteration\" (\n \"gothic_letter_or_digraph\" text,\n \"roman_equivalent\" text,\n \"normalised_transliteration\" text,\n \"sound\" text,\n \"normal_environment_of_occurrence_in_native_words\" text,\n \"proto_germanic_origin\" text\n);\n\nQuestion: What is the Roman translation with \"Normalised\" transliteration i" }, { "role": "assistant", "content": "SELECT \"roman_equivalent\" FROM \"alphabet_and_transliteration\" WHERE \"normalised_transliteration\"='i';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alphabet_and_transliteration\" (\n \"gothic_letter_or_digraph\" text,\n \"roman_equivalent\" text,\n \"normalised_transliteration\" text,\n \"sound\" text,\n \"normal_environment_of_occurrence_in_native_words\" text,\n \"proto_germanic_origin\" text\n);\n\nQuestion: what is the \"normalized\" transliteration for Roman i" }, { "role": "assistant", "content": "SELECT \"normalised_transliteration\" FROM \"alphabet_and_transliteration\" WHERE \"roman_equivalent\"='i';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"alphabet_and_transliteration\" (\n \"gothic_letter_or_digraph\" text,\n \"roman_equivalent\" text,\n \"normalised_transliteration\" text,\n \"sound\" text,\n \"normal_environment_of_occurrence_in_native_words\" text,\n \"proto_germanic_origin\" text\n);\n\nQuestion: what is the normal environment of occurrence that has a Proto-Germanic origin /ai/" }, { "role": "assistant", "content": "SELECT \"normal_environment_of_occurrence_in_native_words\" FROM \"alphabet_and_transliteration\" WHERE \"proto_germanic_origin\"='/ai/';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Which the lowest Against has a Status of tour match, and a Venue of ravenhill , belfast?" }, { "role": "assistant", "content": "SELECT MIN(\"against\") FROM \"matches\" WHERE \"status\"='tour match' AND \"venue\"='ravenhill , belfast';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Name the average Against that has a Venue of twickenham , london on 25 november 1978?" }, { "role": "assistant", "content": "SELECT AVG(\"against\") FROM \"matches\" WHERE \"venue\"='twickenham , london' AND \"date\"='25 november 1978';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Name the highest Against on 21 november 1978?" }, { "role": "assistant", "content": "SELECT MAX(\"against\") FROM \"matches\" WHERE \"date\"='21 november 1978';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Name the Against of Venue of brewery field , bridgend?" }, { "role": "assistant", "content": "SELECT \"against\" FROM \"matches\" WHERE \"venue\"='brewery field , bridgend';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Name the Status with an Against larger than 15?" }, { "role": "assistant", "content": "SELECT \"status\" FROM \"matches\" WHERE \"against\">15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"volleyball_at_the_2008_summer_olympics_m\" (\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"spike\" text,\n \"2008_club\" text\n);\n\nQuestion: what is the name when 2008 club is vc nova?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"volleyball_at_the_2008_summer_olympics_m\" WHERE \"2008_club\"='vc nova';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"volleyball_at_the_2008_summer_olympics_m\" (\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"spike\" text,\n \"2008_club\" text\n);\n\nQuestion: what is the name when 2008 club is patron patra?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"volleyball_at_the_2008_summer_olympics_m\" WHERE \"2008_club\"='patron patra';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"volleyball_at_the_2008_summer_olympics_m\" (\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"spike\" text,\n \"2008_club\" text\n);\n\nQuestion: what is spike when 2008 club is vc nova?" }, { "role": "assistant", "content": "SELECT \"spike\" FROM \"volleyball_at_the_2008_summer_olympics_m\" WHERE \"2008_club\"='vc nova';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: what is the score on 24 january 1976 with the tie no of 1?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"fourth_round_proper\" WHERE \"date\"='24 january 1976' AND \"tie_no\"='1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Who is the home team when the away team is newcastle united?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"fourth_round_proper\" WHERE \"away_team\"='newcastle united';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: who is the home team when the away team is wolverhampton wanderers?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"fourth_round_proper\" WHERE \"away_team\"='wolverhampton wanderers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: what is the date when the tie no is 9?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"fourth_round_proper\" WHERE \"tie_no\"='9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: who is the away team when the tie no is 7?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"fourth_round_proper\" WHERE \"tie_no\"='7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: what is the score when the home team is sunderland?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"fourth_round_proper\" WHERE \"home_team\"='sunderland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1942\" (\n \"title\" text,\n \"series\" text,\n \"director\" text,\n \"production_number\" text,\n \"release_date\" text,\n \"reissue\" text\n);\n\nQuestion: What is the name of the title that was directed by Friz Freleng and has a production number of 443?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"1942\" WHERE \"director\"='friz freleng' AND \"production_number\"='443';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1942\" (\n \"title\" text,\n \"series\" text,\n \"director\" text,\n \"production_number\" text,\n \"release_date\" text,\n \"reissue\" text\n);\n\nQuestion: Which title has a production number of 627?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"1942\" WHERE \"production_number\"='627';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"screen_actors_guild\" (\n \"year\" real,\n \"category\" text,\n \"film\" text,\n \"result\" text,\n \"lost_to\" text\n);\n\nQuestion: what is the film when the year is earlier than 2002 and the category is outstanding actress?" }, { "role": "assistant", "content": "SELECT \"film\" FROM \"screen_actors_guild\" WHERE \"year\"<2002 AND \"category\"='outstanding actress';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" real,\n \"water_sqmi\" real,\n \"latitude\" real,\n \"longitude\" real,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the total latitude of the greenland township with more than 34.846 sqmi of land, a geo id less than 3805529660, and an ANSI code greater than 1036405?" }, { "role": "assistant", "content": "SELECT COUNT(\"latitude\") FROM \"g\" WHERE \"land_sqmi\">34.846 AND \"geo_id\"<3805529660 AND \"township\"='greenland' AND \"ansi_code\">1036405;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" real,\n \"water_sqmi\" real,\n \"latitude\" real,\n \"longitude\" real,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the sum of the land in sq mi with an ansi code less than 1036538, a 2010 population less than 42, a longitude greater than -99.442872, and more than 0.882 sq mi of water?" }, { "role": "assistant", "content": "SELECT SUM(\"land_sqmi\") FROM \"g\" WHERE \"ansi_code\"<1036538 AND \"pop_2010\"<42 AND \"longitude\">-99.442872 AND \"water_sqmi\">0.882;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" real,\n \"water_sqmi\" real,\n \"latitude\" real,\n \"longitude\" real,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the highest water (sq mi) of the township glenila, which has more than 33.576 sq mi of land and a latitude greater than 48.832189?" }, { "role": "assistant", "content": "SELECT MAX(\"water_sqmi\") FROM \"g\" WHERE \"land_sqmi\">33.576 AND \"township\"='glenila' AND \"latitude\">48.832189;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" real,\n \"water_sqmi\" real,\n \"latitude\" real,\n \"longitude\" real,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the sum of the 2010 population with a latitude greater than 47.710905, a longitude of -101.79876, and less than 35.695 sq mi of land?" }, { "role": "assistant", "content": "SELECT SUM(\"pop_2010\") FROM \"g\" WHERE \"latitude\">47.710905 AND \"longitude\"=-101.79876 AND \"land_sqmi\"<35.695;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"g\" (\n \"township\" text,\n \"county\" text,\n \"pop_2010\" real,\n \"land_sqmi\" real,\n \"water_sqmi\" real,\n \"latitude\" real,\n \"longitude\" real,\n \"geo_id\" real,\n \"ansi_code\" real\n);\n\nQuestion: What is the lowest land in sq mi with a longitude of -99.172785 and less than 0.973 sq mi of water?" }, { "role": "assistant", "content": "SELECT MIN(\"land_sqmi\") FROM \"g\" WHERE \"longitude\"=-99.172785 AND \"water_sqmi\"<0.973;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaches_staff\" (\n \"position\" text,\n \"name\" text,\n \"year_at_cu\" text,\n \"experience\" real,\n \"alma_mater\" text\n);\n\nQuestion: Who was the head coach?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"coaches_staff\" WHERE \"position\"='head coach';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"coaches_staff\" (\n \"position\" text,\n \"name\" text,\n \"year_at_cu\" text,\n \"experience\" real,\n \"alma_mater\" text\n);\n\nQuestion: Who has the alma mater of Dayton ('07), and was in their 1st year at CU?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"coaches_staff\" WHERE \"year_at_cu\"='1st' AND \"alma_mater\"='dayton (''07)';" } ]