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 \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text,\n \"aafc_team\" text\n);\n\nQuestion: Which Round has a College of tulsa, and a Pick larger than 61?" }, { "role": "assistant", "content": "SELECT AVG(\"round\") FROM \"washington_redskins_draft_history\" WHERE \"college\"='tulsa' AND \"pick\">61;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text,\n \"aafc_team\" text\n);\n\nQuestion: Which Position has a Round smaller than 5, and a Pick of 5?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"washington_redskins_draft_history\" WHERE \"round\"<5 AND \"pick\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text,\n \"aafc_team\" text\n);\n\nQuestion: Which College has a Name of hardy brown?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"washington_redskins_draft_history\" WHERE \"name\"='hardy brown';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"date\" text,\n \"series\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: Who was the winner for Peter Jackson Racing at Mallala Motor Sport Park?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"race_calendar\" WHERE \"team\"='peter jackson racing' AND \"circuit\"='mallala motor sport park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"date\" text,\n \"series\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What city had a series of atcc round 1?" }, { "role": "assistant", "content": "SELECT \"city_state\" FROM \"race_calendar\" WHERE \"series\"='atcc round 1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"date\" text,\n \"series\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: Who was the winner for ASTC round 8?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"race_calendar\" WHERE \"series\"='astc round 8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Which Nationality has a College/Junior/Club Team (League) of swift current broncos (wchl)?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"draft_picks\" WHERE \"college_junior_club_team_league\"='swift current broncos (wchl)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Which Round has a College/Junior/Club Team (League) of hamilton red wings (oha), and a Position of rw?" }, { "role": "assistant", "content": "SELECT AVG(\"round\") FROM \"draft_picks\" WHERE \"college_junior_club_team_league\"='hamilton red wings (oha)' AND \"position\"='rw';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Which Round has a Position of lw, and a College/Junior/Club Team (League) of swift current broncos (wchl)?" }, { "role": "assistant", "content": "SELECT AVG(\"round\") FROM \"draft_picks\" WHERE \"position\"='lw' AND \"college_junior_club_team_league\"='swift current broncos (wchl)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: What is round 10's nationality?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"draft_picks\" WHERE \"round\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"teams_and_drivers\" (\n \"team\" text,\n \"driver\" text,\n \"class\" text,\n \"chassis\" text,\n \"rounds\" text\n);\n\nQuestion: Which driver was in 8 rounds with a chassis of dallara f306?" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"teams_and_drivers\" WHERE \"chassis\"='dallara f306' AND \"rounds\"='8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"teams_and_drivers\" (\n \"team\" text,\n \"driver\" text,\n \"class\" text,\n \"chassis\" text,\n \"rounds\" text\n);\n\nQuestion: How many rounds did Nil Montserrat drive in?" }, { "role": "assistant", "content": "SELECT \"rounds\" FROM \"teams_and_drivers\" WHERE \"driver\"='nil montserrat';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"teams_and_drivers\" (\n \"team\" text,\n \"driver\" text,\n \"class\" text,\n \"chassis\" text,\n \"rounds\" text\n);\n\nQuestion: How many rounds did germ\u00e1n s\u00e1nchez drive in where the chassis was dallara f308?" }, { "role": "assistant", "content": "SELECT \"rounds\" FROM \"teams_and_drivers\" WHERE \"chassis\"='dallara f308' AND \"driver\"='germ\u00e1n s\u00e1nchez';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"teams_and_drivers\" (\n \"team\" text,\n \"driver\" text,\n \"class\" text,\n \"chassis\" text,\n \"rounds\" text\n);\n\nQuestion: What is the chassis for Augusto Scalbi on Team RP Motorsport?" }, { "role": "assistant", "content": "SELECT \"chassis\" FROM \"teams_and_drivers\" WHERE \"team\"='rp motorsport' AND \"driver\"='augusto scalbi';" } ]
[ { "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 \"attendance\" real\n);\n\nQuestion: In what Week was the Result W 24-17?" }, { "role": "assistant", "content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"result\"='w 24-17';" } ]
[ { "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 \"attendance\" real\n);\n\nQuestion: What was the Week number on November 20, 1977?" }, { "role": "assistant", "content": "SELECT SUM(\"week\") FROM \"schedule\" WHERE \"date\"='november 20, 1977';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_16\" (\n \"date\" text,\n \"home\" text,\n \"score\" text,\n \"away\" text,\n \"attendance\" real\n);\n\nQuestion: Who played hte home team when the score was 2:1?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"round_16\" WHERE \"score\"='2:1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_16\" (\n \"date\" text,\n \"home\" text,\n \"score\" text,\n \"away\" text,\n \"attendance\" real\n);\n\nQuestion: Who was the home team when real juventud was the away team when there were more than 1189 in attendance?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"round_16\" WHERE \"attendance\">1189 AND \"away\"='real juventud';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_16\" (\n \"date\" text,\n \"home\" text,\n \"score\" text,\n \"away\" text,\n \"attendance\" real\n);\n\nQuestion: What was the average attendance when marathon was the away team?" }, { "role": "assistant", "content": "SELECT AVG(\"attendance\") FROM \"round_16\" WHERE \"away\"='marathon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_16\" (\n \"date\" text,\n \"home\" text,\n \"score\" text,\n \"away\" text,\n \"attendance\" real\n);\n\nQuestion: Who was the home team when the score was 0:1?" }, { "role": "assistant", "content": "SELECT \"home\" FROM \"round_16\" WHERE \"score\"='0:1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" real,\n \"profits_billion\" real,\n \"assets_billion\" real,\n \"market_value_billion\" real\n);\n\nQuestion: How much are General Electric's profits who have assets (billion $) under 2,355.83 and a market value (billion $) larger than 169.65?" }, { "role": "assistant", "content": "SELECT AVG(\"profits_billion\") FROM \"2010_list\" WHERE \"assets_billion\"<'2,355.83' AND \"company\"='general electric' AND \"market_value_billion\">169.65;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" real,\n \"profits_billion\" real,\n \"assets_billion\" real,\n \"market_value_billion\" real\n);\n\nQuestion: Which company in the oil and gas industry has assets (billion $) under 235.45, sales (billion $) larger than 159.29 and brings in profits (billion $) of 19.28?" }, { "role": "assistant", "content": "SELECT \"company\" FROM \"2010_list\" WHERE \"assets_billion\"<235.45 AND \"sales_billion\">159.29 AND \"industry\"='oil and gas' AND \"profits_billion\"=19.28;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2010_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" real,\n \"profits_billion\" real,\n \"assets_billion\" real,\n \"market_value_billion\" real\n);\n\nQuestion: How many profits is the company that is headquartered in the USA, in the banking industry, and has sales (billion $) less than 98.64 bringing in?" }, { "role": "assistant", "content": "SELECT SUM(\"profits_billion\") FROM \"2010_list\" WHERE \"headquarters\"='usa' AND \"industry\"='banking' AND \"sales_billion\"<98.64;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_tests\" (\n \"test\" text,\n \"subject\" text,\n \"mean_score\" text,\n \"standard_deviation\" text,\n \"number_of_students\" text\n);\n\nQuestion: What test had 49,608 students?" }, { "role": "assistant", "content": "SELECT \"test\" FROM \"current_tests\" WHERE \"number_of_students\"='49,608';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"quarterfinals\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What was the Tie no when the Home team was Ramsgate?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"quarterfinals\" WHERE \"home_team\"='ramsgate';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"quarterfinals\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What was the Tie no when the Home team was carshalton athletic?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"quarterfinals\" WHERE \"home_team\"='carshalton athletic';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"quarterfinals\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: Who was the away team when the home team was Ramsgate?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"quarterfinals\" WHERE \"home_team\"='ramsgate';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"quarterfinals\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What was the home team when the Tie no was 60?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"quarterfinals\" WHERE \"tie_no\"='60';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"quarterfinals\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What was the Tie no when the Home team was wealdstone?" }, { "role": "assistant", "content": "SELECT \"tie_no\" FROM \"quarterfinals\" WHERE \"home_team\"='wealdstone';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: Which format has january 21, 2002 as the date?" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"release_history\" WHERE \"date\"='january 21, 2002';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What format has France as the region, with Universal Licensing Music (ulm) as the label?" }, { "role": "assistant", "content": "SELECT \"format\" FROM \"release_history\" WHERE \"region\"='france' AND \"label\"='universal licensing music (ulm)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What label has the netherlands as the region, and magik muzik 802-1 as the catalog?" }, { "role": "assistant", "content": "SELECT \"label\" FROM \"release_history\" WHERE \"region\"='netherlands' AND \"catalog\"='magik muzik 802-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"women_s_indoor_tournament\" (\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"spike\" text,\n \"2008_club\" text\n);\n\nQuestion: What name has a 2008 club of Venelle?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"women_s_indoor_tournament\" WHERE \"2008_club\"='venelle';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"women_s_indoor_tournament\" (\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"spike\" text,\n \"2008_club\" text\n);\n\nQuestion: What is the name of the person with a 2008 club of Nc Bejaia?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"women_s_indoor_tournament\" WHERE \"2008_club\"='nc bejaia';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text\n);\n\nQuestion: What is the record at 3:00?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='3:00';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text\n);\n\nQuestion: What opponent used the Ko method, and a 6-0 record?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='ko' AND \"record\"='6-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What is the home team with an 8.7 (55) away team score?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_of_16\" WHERE \"away_team_score\"='8.7 (55)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What is the average crowd of the 13.9 (87) Home Team Score?" }, { "role": "assistant", "content": "SELECT AVG(\"crowd\") FROM \"round_of_16\" WHERE \"home_team_score\"='13.9 (87)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What is the ground of the game where the home team was Adelaide?" }, { "role": "assistant", "content": "SELECT \"ground\" FROM \"round_of_16\" WHERE \"home_team\"='adelaide';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What is Home team of the game with an 9.8 (62) away team score?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_of_16\" WHERE \"away_team_score\"='9.8 (62)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"class_c_4_4_0\" (\n \"class\" text,\n \"wheel_arrangement\" text,\n \"manufacturer\" text,\n \"year_made\" text,\n \"quantity_made\" text,\n \"quantity_preserved\" text\n);\n\nQuestion: What is Manufacturer, when Quantity Made is 2, and when Year Made is 1884?" }, { "role": "assistant", "content": "SELECT \"manufacturer\" FROM \"class_c_4_4_0\" WHERE \"quantity_made\"='2' AND \"year_made\"='1884';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"class_c_4_4_0\" (\n \"class\" text,\n \"wheel_arrangement\" text,\n \"manufacturer\" text,\n \"year_made\" text,\n \"quantity_made\" text,\n \"quantity_preserved\" text\n);\n\nQuestion: What is Quantity Made, when Manufacturer is \"Baldwin\"?" }, { "role": "assistant", "content": "SELECT \"quantity_made\" FROM \"class_c_4_4_0\" WHERE \"manufacturer\"='baldwin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"class_c_4_4_0\" (\n \"class\" text,\n \"wheel_arrangement\" text,\n \"manufacturer\" text,\n \"year_made\" text,\n \"quantity_made\" text,\n \"quantity_preserved\" text\n);\n\nQuestion: What is Wheel Arrangement, when Manufacturer is \"Baldwin\", and when Quantity Made is 12?" }, { "role": "assistant", "content": "SELECT \"wheel_arrangement\" FROM \"class_c_4_4_0\" WHERE \"manufacturer\"='baldwin' AND \"quantity_made\"='12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"class_c_4_4_0\" (\n \"class\" text,\n \"wheel_arrangement\" text,\n \"manufacturer\" text,\n \"year_made\" text,\n \"quantity_made\" text,\n \"quantity_preserved\" text\n);\n\nQuestion: What is Quantity Made, when Year Made is \"4-4-0 \u2014 oooo \u2014 american\"?" }, { "role": "assistant", "content": "SELECT \"quantity_made\" FROM \"class_c_4_4_0\" WHERE \"year_made\"='4-4-0 \u2014 oooo \u2014 american';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"class_c_4_4_0\" (\n \"class\" text,\n \"wheel_arrangement\" text,\n \"manufacturer\" text,\n \"year_made\" text,\n \"quantity_made\" text,\n \"quantity_preserved\" text\n);\n\nQuestion: What is Wheel Arrangement, when Quantity Made is 44?" }, { "role": "assistant", "content": "SELECT \"wheel_arrangement\" FROM \"class_c_4_4_0\" WHERE \"quantity_made\"='44';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"class_c_4_4_0\" (\n \"class\" text,\n \"wheel_arrangement\" text,\n \"manufacturer\" text,\n \"year_made\" text,\n \"quantity_made\" text,\n \"quantity_preserved\" text\n);\n\nQuestion: What is Quantitiy Made, when Quantity Preserved is \"4-4-0 \u2014 oooo \u2014 american\"?" }, { "role": "assistant", "content": "SELECT \"quantity_made\" FROM \"class_c_4_4_0\" WHERE \"quantity_preserved\"='4-4-0 \u2014 oooo \u2014 american';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What's the highest game found when the record is 2-1?" }, { "role": "assistant", "content": "SELECT MAX(\"game\") FROM \"regular_season\" WHERE \"record\"='2-1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the game date when the opponent was Houston?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"regular_season\" WHERE \"opponent\"='houston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"season\" real,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text\n);\n\nQuestion: Can you tell me the highest Season that has the Home Team of chonburi, and the Away Team of melbourne victory?" }, { "role": "assistant", "content": "SELECT MAX(\"season\") FROM \"results\" WHERE \"home_team\"='chonburi' AND \"away_team\"='melbourne victory';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"results\" (\n \"season\" real,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text\n);\n\nQuestion: Can you tell me the Season that has the Score of 1-0?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"results\" WHERE \"score\"='1-0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_proof_coins\" (\n \"year\" real,\n \"10_1_10_oz\" text,\n \"25_1_4_oz\" real,\n \"50_1_2_oz\" real,\n \"100_1_oz\" text\n);\n\nQuestion: WHAT IS THE LOWEST $50-1/2 OZ COIN WITH A 1997 YEAR AND $25-1/4 OZ LARGER THAN $27,100?" }, { "role": "assistant", "content": "SELECT MIN(\"50_1_2_oz\") FROM \"non_proof_coins\" WHERE \"year\"=1997 AND \"25_1_4_oz\">'27,100';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"non_proof_coins\" (\n \"year\" real,\n \"10_1_10_oz\" text,\n \"25_1_4_oz\" real,\n \"50_1_2_oz\" real,\n \"100_1_oz\" text\n);\n\nQuestion: WHAT IS THE LOWEST $25-1/4 OZ COIN WITH A $10-1/10 OZ OF $70,250?" }, { "role": "assistant", "content": "SELECT MIN(\"25_1_4_oz\") FROM \"non_proof_coins\" WHERE \"10_1_10_oz\"='70,250';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"gpu_frequency\" text,\n \"l2_cache\" text,\n \"i_o_bus\" text,\n \"memory\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the model number for the GPU and 320 mhz?" }, { "role": "assistant", "content": "SELECT \"model_number\" FROM \"45_nm\" WHERE \"gpu_frequency\"='320 mhz';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"gpu_frequency\" text,\n \"l2_cache\" text,\n \"i_o_bus\" text,\n \"memory\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the socket of the model atom e680t?" }, { "role": "assistant", "content": "SELECT \"socket\" FROM \"45_nm\" WHERE \"model_number\"='atom e680t';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"45_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"gpu_frequency\" text,\n \"l2_cache\" text,\n \"i_o_bus\" text,\n \"memory\" text,\n \"voltage\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the memory for ct80618005844ab?" }, { "role": "assistant", "content": "SELECT \"memory\" FROM \"45_nm\" WHERE \"part_number_s\"='ct80618005844ab';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_stats\" (\n \"season\" text,\n \"games\" real,\n \"yellow_cards\" real,\n \"red_cards\" real,\n \"average_cards_a_game\" real\n);\n\nQuestion: Which Average Cards a game has a Season of 1997/1998, and a Games larger than 38?" }, { "role": "assistant", "content": "SELECT MAX(\"average_cards_a_game\") FROM \"career_stats\" WHERE \"season\"='1997/1998' AND \"games\">38;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_stats\" (\n \"season\" text,\n \"games\" real,\n \"yellow_cards\" real,\n \"red_cards\" real,\n \"average_cards_a_game\" real\n);\n\nQuestion: Which Red Cards has a Season of 1998/1999, and a Games larger than 41?" }, { "role": "assistant", "content": "SELECT MIN(\"red_cards\") FROM \"career_stats\" WHERE \"season\"='1998/1999' AND \"games\">41;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_stats\" (\n \"season\" text,\n \"games\" real,\n \"yellow_cards\" real,\n \"red_cards\" real,\n \"average_cards_a_game\" real\n);\n\nQuestion: Which Games has a Season of 2003/2004, and a Red Cards smaller than 5?" }, { "role": "assistant", "content": "SELECT AVG(\"games\") FROM \"career_stats\" WHERE \"season\"='2003/2004' AND \"red_cards\"<5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_stats\" (\n \"season\" text,\n \"games\" real,\n \"yellow_cards\" real,\n \"red_cards\" real,\n \"average_cards_a_game\" real\n);\n\nQuestion: Which Average Cards a game has a Season of 2004/2005, and a Red Cards larger than 3?" }, { "role": "assistant", "content": "SELECT MIN(\"average_cards_a_game\") FROM \"career_stats\" WHERE \"season\"='2004/2005' AND \"red_cards\">3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_stats\" (\n \"season\" text,\n \"games\" real,\n \"yellow_cards\" real,\n \"red_cards\" real,\n \"average_cards_a_game\" real\n);\n\nQuestion: Which Yellow Cards has a Season of 1999/2000?" }, { "role": "assistant", "content": "SELECT AVG(\"yellow_cards\") FROM \"career_stats\" WHERE \"season\"='1999/2000';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"squad_information\" (\n \"nat\" text,\n \"name\" text,\n \"since\" real,\n \"goals\" real,\n \"ends\" text,\n \"transfer_fee\" text\n);\n\nQuestion: Which Goals have Ends of 30 june 2010, and Since larger than 2007?" }, { "role": "assistant", "content": "SELECT \"goals\" FROM \"squad_information\" WHERE \"ends\"='30 june 2010' AND \"since\">2007;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"squad_information\" (\n \"nat\" text,\n \"name\" text,\n \"since\" real,\n \"goals\" real,\n \"ends\" text,\n \"transfer_fee\" text\n);\n\nQuestion: Which Name has Ends of 30 june 2010, and a Nation of eng, and Since larger than 2007?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"squad_information\" WHERE \"ends\"='30 june 2010' AND \"nat\"='eng' AND \"since\">2007;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"60_metres_hurdles\" (\n \"lane\" real,\n \"name\" text,\n \"country\" text,\n \"mark\" text,\n \"react\" real\n);\n\nQuestion: What was Bryan Clay's react time?" }, { "role": "assistant", "content": "SELECT MIN(\"react\") FROM \"60_metres_hurdles\" WHERE \"name\"='bryan clay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"60_metres_hurdles\" (\n \"lane\" real,\n \"name\" text,\n \"country\" text,\n \"mark\" text,\n \"react\" real\n);\n\nQuestion: What country did Dmitriy Karpov represent?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"60_metres_hurdles\" WHERE \"name\"='dmitriy karpov';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personal_pronouns_possessive_case\" (\n \"subject\" real,\n \"proximity\" text,\n \"honor\" text,\n \"singular\" text,\n \"plural\" text\n);\n\nQuestion: What is Plural, when Singular is tor (your)?" }, { "role": "assistant", "content": "SELECT \"plural\" FROM \"personal_pronouns_possessive_case\" WHERE \"singular\"='tor (your)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personal_pronouns_possessive_case\" (\n \"subject\" real,\n \"proximity\" text,\n \"honor\" text,\n \"singular\" text,\n \"plural\" text\n);\n\nQuestion: What is Proximity, when Honor is P, and when Singular is \u1ebdr (his/her/its)?" }, { "role": "assistant", "content": "SELECT \"proximity\" FROM \"personal_pronouns_possessive_case\" WHERE \"honor\"='p' AND \"singular\"='\u1ebdr (his/her/its)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personal_pronouns_possessive_case\" (\n \"subject\" real,\n \"proximity\" text,\n \"honor\" text,\n \"singular\" text,\n \"plural\" text\n);\n\nQuestion: What is the lowest Subject, when Plural is t\u00e3der (their)?" }, { "role": "assistant", "content": "SELECT MIN(\"subject\") FROM \"personal_pronouns_possessive_case\" WHERE \"plural\"='t\u00e3der (their)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personal_pronouns_possessive_case\" (\n \"subject\" real,\n \"proximity\" text,\n \"honor\" text,\n \"singular\" text,\n \"plural\" text\n);\n\nQuestion: What is Proximity, when Plural is amader (our)?" }, { "role": "assistant", "content": "SELECT \"proximity\" FROM \"personal_pronouns_possessive_case\" WHERE \"plural\"='amader (our)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"personal_pronouns_possessive_case\" (\n \"subject\" real,\n \"proximity\" text,\n \"honor\" text,\n \"singular\" text,\n \"plural\" text\n);\n\nQuestion: What is Honor, when Singular is \u1ebdr (his/her/its)?" }, { "role": "assistant", "content": "SELECT \"honor\" FROM \"personal_pronouns_possessive_case\" WHERE \"singular\"='\u1ebdr (his/her/its)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"pos\" text\n);\n\nQuestion: what is the f/laps when the season is 2011 and races is 18?" }, { "role": "assistant", "content": "SELECT \"f_laps\" FROM \"career_summary\" WHERE \"season\"='2011' AND \"races\"='18';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"pos\" text\n);\n\nQuestion: what is the wins when the f/laps is test driver and team is lotus racing?" }, { "role": "assistant", "content": "SELECT \"wins\" FROM \"career_summary\" WHERE \"f_laps\"='test driver' AND \"team\"='lotus racing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" text,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"f_laps\" text,\n \"podiums\" text,\n \"points\" text,\n \"pos\" text\n);\n\nQuestion: what is the poles when the wins is 0 and points is 0?" }, { "role": "assistant", "content": "SELECT \"poles\" FROM \"career_summary\" WHERE \"wins\"='0' AND \"points\"='0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What score won $36,090?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"final_round\" WHERE \"money\"='36,090';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" text\n);\n\nQuestion: What was Larry Nelson's final score?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"final_round\" WHERE \"player\"='larry nelson';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"game\" text,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"falcons_points\" real,\n \"opponents\" real,\n \"attendance\" real\n);\n\nQuestion: What is the average attendance of the game with 38 opponent and less than 14 Falcons points?" }, { "role": "assistant", "content": "SELECT AVG(\"attendance\") FROM \"schedule\" WHERE \"opponents\"=38 AND \"falcons_points\"<14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"school\" text,\n \"conference\" text,\n \"games\" real,\n \"wins\" real,\n \"losses\" real,\n \"winning_pct\" real\n);\n\nQuestion: What is the total number of losses of the team with games less than 14, wins less than 3, in the Maac Conference at Fairfield School?" }, { "role": "assistant", "content": "SELECT COUNT(\"losses\") FROM \"see_also\" WHERE \"games\"<14 AND \"wins\"<3 AND \"conference\"='maac' AND \"school\"='fairfield';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"daughters\" (\n \"number\" real,\n \"title\" text,\n \"born\" text,\n \"died\" text,\n \"date_married\" text,\n \"issue\" text,\n \"mother\" text\n);\n\nQuestion: What is number 4's title?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"daughters\" WHERE \"number\"=4;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"daughters\" (\n \"number\" real,\n \"title\" text,\n \"born\" text,\n \"died\" text,\n \"date_married\" text,\n \"issue\" text,\n \"mother\" text\n);\n\nQuestion: How many people were born in 1368?" }, { "role": "assistant", "content": "SELECT COUNT(\"number\") FROM \"daughters\" WHERE \"born\"='1368';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"daughters\" (\n \"number\" real,\n \"title\" text,\n \"born\" text,\n \"died\" text,\n \"date_married\" text,\n \"issue\" text,\n \"mother\" text\n);\n\nQuestion: Who was number 12's mother?" }, { "role": "assistant", "content": "SELECT \"mother\" FROM \"daughters\" WHERE \"number\"=12;" } ]
[ { "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 \"record\" text,\n \"streak\" text,\n \"attendance\" real\n);\n\nQuestion: What was the week number when they played on Dec. 19?" }, { "role": "assistant", "content": "SELECT COUNT(\"week\") FROM \"schedule\" WHERE \"date\"='dec. 19';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_teams\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text\n);\n\nQuestion: What is the average number of students in East Lansing, MI?" }, { "role": "assistant", "content": "SELECT AVG(\"founded\") FROM \"current_teams\" WHERE \"location\"='east lansing, mi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_teams\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"nickname\" text\n);\n\nQuestion: What is the lowest number of students at the community college?" }, { "role": "assistant", "content": "SELECT MIN(\"founded\") FROM \"current_teams\" WHERE \"affiliation\"='community college';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"champion\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text,\n \"tournament_location\" text\n);\n\nQuestion: What is Joanne Carner's average score in Canadian Women's Open games that she has won?" }, { "role": "assistant", "content": "SELECT AVG(\"score\") FROM \"winners\" WHERE \"champion\"='joanne carner';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"champion\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text,\n \"tournament_location\" text\n);\n\nQuestion: What country does jocelyne bourassa play for?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"winners\" WHERE \"champion\"='jocelyne bourassa';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"filter_classes\" (\n \"usage\" text,\n \"class\" text,\n \"performance\" text,\n \"performance_test\" text,\n \"particulate_size_approaching_100pct_retention\" text,\n \"test_standard\" text\n);\n\nQuestion: Which Performance has a Test Standard of bs en779, and a Particulate size approaching 100% retention of >2\u00b5m, and a Class of f6?" }, { "role": "assistant", "content": "SELECT \"performance\" FROM \"filter_classes\" WHERE \"test_standard\"='bs en779' AND \"particulate_size_approaching_100pct_retention\"='>2\u00b5m' AND \"class\"='f6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"filter_classes\" (\n \"usage\" text,\n \"class\" text,\n \"performance\" text,\n \"performance_test\" text,\n \"particulate_size_approaching_100pct_retention\" text,\n \"test_standard\" text\n);\n\nQuestion: Which Performance has a Usage of hepa and a Class of h14?" }, { "role": "assistant", "content": "SELECT \"performance\" FROM \"filter_classes\" WHERE \"usage\"='hepa' AND \"class\"='h14';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"filter_classes\" (\n \"usage\" text,\n \"class\" text,\n \"performance\" text,\n \"performance_test\" text,\n \"particulate_size_approaching_100pct_retention\" text,\n \"test_standard\" text\n);\n\nQuestion: Which Particulate size approaching 100% retention has a Usage of semi hepa and a Class of h12?" }, { "role": "assistant", "content": "SELECT \"particulate_size_approaching_100pct_retention\" FROM \"filter_classes\" WHERE \"usage\"='semi hepa' AND \"class\"='h12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"filter_classes\" (\n \"usage\" text,\n \"class\" text,\n \"performance\" text,\n \"performance_test\" text,\n \"particulate_size_approaching_100pct_retention\" text,\n \"test_standard\" text\n);\n\nQuestion: Which Test Standard has a Usage of secondary filters, and a Class of f5? Question 4" }, { "role": "assistant", "content": "SELECT \"test_standard\" FROM \"filter_classes\" WHERE \"usage\"='secondary filters' AND \"class\"='f5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"filter_classes\" (\n \"usage\" text,\n \"class\" text,\n \"performance\" text,\n \"performance_test\" text,\n \"particulate_size_approaching_100pct_retention\" text,\n \"test_standard\" text\n);\n\nQuestion: Which Performance has a Performance test of average value, and a Class of f6?" }, { "role": "assistant", "content": "SELECT \"performance\" FROM \"filter_classes\" WHERE \"performance_test\"='average value' AND \"class\"='f6';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"filter_classes\" (\n \"usage\" text,\n \"class\" text,\n \"performance\" text,\n \"performance_test\" text,\n \"particulate_size_approaching_100pct_retention\" text,\n \"test_standard\" text\n);\n\nQuestion: Which Class has a Performance test of minimum value, and a Usage of semi hepa, and a Performance of 99.5%?" }, { "role": "assistant", "content": "SELECT \"class\" FROM \"filter_classes\" WHERE \"performance_test\"='minimum value' AND \"usage\"='semi hepa' AND \"performance\"='99.5%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which Score has a To par of \u20131, and a Player of mick soli?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"first_round\" WHERE \"to_par\"='\u20131' AND \"player\"='mick soli';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which Score has a Place of t1, and a Player of hubert green?" }, { "role": "assistant", "content": "SELECT AVG(\"score\") FROM \"first_round\" WHERE \"place\"='t1' AND \"player\"='hubert green';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which Country has a Score of 69, and a Player of mick soli?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"first_round\" WHERE \"score\"=69 AND \"player\"='mick soli';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which Country has a Place of t1?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"first_round\" WHERE \"place\"='t1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"squad_changes\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: Where is the moving from location with a transfer window of summer and the source kerkida.net?" }, { "role": "assistant", "content": "SELECT \"moving_from\" FROM \"squad_changes\" WHERE \"transfer_window\"='summer' AND \"source\"='kerkida.net';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"squad_changes\" (\n \"nat\" text,\n \"name\" text,\n \"moving_from\" text,\n \"type\" text,\n \"transfer_window\" text,\n \"ends\" real,\n \"transfer_fee\" text,\n \"source\" text\n);\n\nQuestion: Which name has the source apoelfc.com.cy and a type of transfer?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"squad_changes\" WHERE \"source\"='apoelfc.com.cy' AND \"type\"='transfer';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ships_attacked\" (\n \"date\" text,\n \"name\" text,\n \"nationality\" text,\n \"tonnage_grt\" real,\n \"fate\" text\n);\n\nQuestion: What is the Fate of the San Pablo ship?" }, { "role": "assistant", "content": "SELECT \"fate\" FROM \"ships_attacked\" WHERE \"name\"='san pablo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ships_attacked\" (\n \"date\" text,\n \"name\" text,\n \"nationality\" text,\n \"tonnage_grt\" real,\n \"fate\" text\n);\n\nQuestion: What is the date of attack of the Circe Shell Ship?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"ships_attacked\" WHERE \"name\"='circe shell';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model\" text,\n \"years\" text,\n \"engine\" text,\n \"displacement\" text,\n \"power\" text,\n \"fuel_system\" text\n);\n\nQuestion: What fuel system was used in 1960-62?" }, { "role": "assistant", "content": "SELECT \"fuel_system\" FROM \"engines\" WHERE \"years\"='1960-62';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"model\" text,\n \"years\" text,\n \"engine\" text,\n \"displacement\" text,\n \"power\" text,\n \"fuel_system\" text\n);\n\nQuestion: How much power does the 1500 model have with a displacement of 1490cc?" }, { "role": "assistant", "content": "SELECT \"power\" FROM \"engines\" WHERE \"model\"='1500' AND \"displacement\"='1490cc';" } ]