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 \"championship_review\" (\n \"race\" text,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"constructor\" text,\n \"tyre\" text,\n \"report\" text\n);\n\nQuestion: Name the date for circuit of interlagos" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"championship_review\" WHERE \"circuit\"='interlagos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submission_grappling_record\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" real\n);\n\nQuestion: What was the event for vinny magalh\u00e3es?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"submission_grappling_record\" WHERE \"opponent\"='vinny magalh\u00e3es';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submission_grappling_record\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" real\n);\n\nQuestion: What was the date for renato ferreira?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"submission_grappling_record\" WHERE \"opponent\"='renato ferreira';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submission_grappling_record\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" real\n);\n\nQuestion: What was the event with leonardo chocolate in 2009?" }, { "role": "assistant", "content": "SELECT \"event\" FROM \"submission_grappling_record\" WHERE \"date\"=2009 AND \"opponent\"='leonardo chocolate';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"submission_grappling_record\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" real\n);\n\nQuestion: What was the result for the opponent being gerardi rinaldi in 2009?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"submission_grappling_record\" WHERE \"date\"=2009 AND \"opponent\"='gerardi rinaldi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the away team that has a score of 10.9 (69)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_5\" WHERE \"away_team_score\"='10.9 (69)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_5\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: The home team has a score of 12.9 (81) what is the score of the away team?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_5\" WHERE \"home_team_score\"='12.9 (81)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"division_races\" (\n \"week\" real,\n \"eastern_num1\" text,\n \"eastern_num2\" text,\n \"western_num1\" text,\n \"western_num2\" text\n);\n\nQuestion: Tell me the eastern #1 for week of 5" }, { "role": "assistant", "content": "SELECT \"eastern_num1\" FROM \"division_races\" WHERE \"week\"=5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"division_races\" (\n \"week\" real,\n \"eastern_num1\" text,\n \"eastern_num2\" text,\n \"western_num1\" text,\n \"western_num2\" text\n);\n\nQuestion: Tell me the eastern #2 for western #2 of oakland" }, { "role": "assistant", "content": "SELECT \"eastern_num2\" FROM \"division_races\" WHERE \"western_num2\"='oakland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"division_races\" (\n \"week\" real,\n \"eastern_num1\" text,\n \"eastern_num2\" text,\n \"western_num1\" text,\n \"western_num2\" text\n);\n\nQuestion: Tell me the wekk for eastern #2 of houston" }, { "role": "assistant", "content": "SELECT \"week\" FROM \"division_races\" WHERE \"eastern_num2\"='houston';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_8\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How many people attended the game when the away team scored 10.11 (71)?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_8\" WHERE \"away_team_score\"='10.11 (71)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_8\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which home team had a crowd larger than 20,822 at VFL Park?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_8\" WHERE \"crowd\">'20,822' AND \"venue\"='vfl park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_8\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which home team played against the away team Carlton?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_8\" WHERE \"away_team\"='carlton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_8\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Where was the game played where the home team was Collingwood?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_8\" WHERE \"home_team\"='collingwood';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_8\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home score with a crowd larger than 25,603?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_8\" WHERE \"crowd\">'25,603';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the date of the home team from South Melbourne?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_6\" WHERE \"home_team\"='south melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_6\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the score of the away team with the home team Fitzroy?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_6\" WHERE \"home_team\"='fitzroy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What venue did the away team footscray play at?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_13\" WHERE \"away_team\"='footscray';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the home team scored 8.8 (56), what team were they playing?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_13\" WHERE \"home_team_score\"='8.8 (56)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When melbourne was the away team, what was the lowest crowd turnout they had?" }, { "role": "assistant", "content": "SELECT MIN(\"crowd\") FROM \"round_13\" WHERE \"away_team\"='melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which away team plays at the venue glenferrie oval?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_13\" WHERE \"venue\"='glenferrie oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_13\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the home team scored 11.15 (81), what did the Away team score?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_13\" WHERE \"home_team_score\"='11.15 (81)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ranking_of_chinese_provinces_by_gdp_per_\" (\n \"year\" text,\n \"2010\" real,\n \"2009\" real,\n \"2008\" real,\n \"2005\" real,\n \"2000\" real\n);\n\nQuestion: Tell me the lowest 2005 for 2010 less than 21 for 2009 being 19" }, { "role": "assistant", "content": "SELECT MIN(\"2005\") FROM \"ranking_of_chinese_provinces_by_gdp_per_\" WHERE \"2009\"=19 AND \"2010\"<21;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ranking_of_chinese_provinces_by_gdp_per_\" (\n \"year\" text,\n \"2010\" real,\n \"2009\" real,\n \"2008\" real,\n \"2005\" real,\n \"2000\" real\n);\n\nQuestion: Name the total number of 2010 for when 2009 is less than 14, 2008 is less than 15 and 2005 is 3" }, { "role": "assistant", "content": "SELECT COUNT(\"2010\") FROM \"ranking_of_chinese_provinces_by_gdp_per_\" WHERE \"2009\"<14 AND \"2008\"<15 AND \"2005\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ranking_of_chinese_provinces_by_gdp_per_\" (\n \"year\" text,\n \"2010\" real,\n \"2009\" real,\n \"2008\" real,\n \"2005\" real,\n \"2000\" real\n);\n\nQuestion: Name the average 2008 for beijing and 2005 more than 2" }, { "role": "assistant", "content": "SELECT AVG(\"2008\") FROM \"ranking_of_chinese_provinces_by_gdp_per_\" WHERE \"year\"='beijing' AND \"2005\">2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ranking_of_chinese_provinces_by_gdp_per_\" (\n \"year\" text,\n \"2010\" real,\n \"2009\" real,\n \"2008\" real,\n \"2005\" real,\n \"2000\" real\n);\n\nQuestion: Name the lowest 2008 for guizhou when 2005 is less than 31" }, { "role": "assistant", "content": "SELECT MIN(\"2008\") FROM \"ranking_of_chinese_provinces_by_gdp_per_\" WHERE \"year\"='guizhou' AND \"2005\"<31;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ranking_of_chinese_provinces_by_gdp_per_\" (\n \"year\" text,\n \"2010\" real,\n \"2009\" real,\n \"2008\" real,\n \"2005\" real,\n \"2000\" real\n);\n\nQuestion: Name the sum of 2010 for 2000 of 17 and 2005 more than 16" }, { "role": "assistant", "content": "SELECT SUM(\"2010\") FROM \"ranking_of_chinese_provinces_by_gdp_per_\" WHERE \"2000\"=17 AND \"2005\">16;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the total of crowd at Venue of mcg?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_3\" WHERE \"venue\"='mcg';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the smallest crowd with a Home team score of 7.10 (52)?" }, { "role": "assistant", "content": "SELECT MIN(\"crowd\") FROM \"round_3\" WHERE \"home_team_score\"='7.10 (52)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which date has a Home team score of 6.12 (48)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_3\" WHERE \"home_team_score\"='6.12 (48)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which away team has a score of 11.17 (83)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_3\" WHERE \"away_team_score\"='11.17 (83)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_municipalities_in_quebec\" (\n \"code\" real,\n \"type\" text,\n \"name\" text,\n \"area_km_2\" real,\n \"population\" real,\n \"regional_county_municipality\" text,\n \"region\" real\n);\n\nQuestion: Tell me the number of regions with an area of 58.81" }, { "role": "assistant", "content": "SELECT COUNT(\"region\") FROM \"list_of_municipalities_in_quebec\" WHERE \"area_km_2\"=58.81;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: what is the rank when the bronze is less than 0?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"medal_table\" WHERE \"bronze\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: what is the highest rank when the bronze is less than 1 and the total is less than 1?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"medal_table\" WHERE \"bronze\"<1 AND \"total\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: what is the lowest amount of silver when the gold is less than 0?" }, { "role": "assistant", "content": "SELECT MIN(\"silver\") FROM \"medal_table\" WHERE \"gold\"<0;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: what is the average number of gold when the rank is more than 5?" }, { "role": "assistant", "content": "SELECT AVG(\"gold\") FROM \"medal_table\" WHERE \"rank\">5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: what is the highest amount of silver when gold is 0 for soviet union?" }, { "role": "assistant", "content": "SELECT MAX(\"silver\") FROM \"medal_table\" WHERE \"gold\"=0 AND \"nation\"='soviet union';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1990s\" (\n \"player\" text,\n \"position\" text,\n \"first_team_debut\" text,\n \"first_team_appearances\" real,\n \"first_team_goals\" real,\n \"current_club\" text\n);\n\nQuestion: What position does adam rachel play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"1990s\" WHERE \"player\"='adam rachel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1990s\" (\n \"player\" text,\n \"position\" text,\n \"first_team_debut\" text,\n \"first_team_appearances\" real,\n \"first_team_goals\" real,\n \"current_club\" text\n);\n\nQuestion: What player has over 1 first apperance and over 32 first team goals?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"1990s\" WHERE \"first_team_appearances\">1 AND \"first_team_goals\"=32;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ro_ro_passenger_ships\" (\n \"ship_name\" text,\n \"year\" real,\n \"length\" text,\n \"width\" text,\n \"passengers\" real,\n \"vessels\" real,\n \"speed\" real\n);\n\nQuestion: What is the average speed for ships before 1974 with over 1.73 passengers?" }, { "role": "assistant", "content": "SELECT AVG(\"speed\") FROM \"ro_ro_passenger_ships\" WHERE \"year\"<1974 AND \"passengers\">1.73;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ro_ro_passenger_ships\" (\n \"ship_name\" text,\n \"year\" real,\n \"length\" text,\n \"width\" text,\n \"passengers\" real,\n \"vessels\" real,\n \"speed\" real\n);\n\nQuestion: How many vessels are named aqua jewel?" }, { "role": "assistant", "content": "SELECT COUNT(\"vessels\") FROM \"ro_ro_passenger_ships\" WHERE \"ship_name\"='aqua jewel';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members_of_the_baltimore_city_de\" (\n \"district\" real,\n \"place_of_birth\" text,\n \"delegate\" text,\n \"party\" text,\n \"took_office\" real,\n \"committee\" text\n);\n\nQuestion: How many districts in Baltimore City does Cheryl Glenn dictate?" }, { "role": "assistant", "content": "SELECT COUNT(\"district\") FROM \"current_members_of_the_baltimore_city_de\" WHERE \"place_of_birth\"='baltimore city' AND \"delegate\"='cheryl glenn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members_of_the_baltimore_city_de\" (\n \"district\" real,\n \"place_of_birth\" text,\n \"delegate\" text,\n \"party\" text,\n \"took_office\" real,\n \"committee\" text\n);\n\nQuestion: Which party belongs to district 41, and is delegated by Jill P. Carter?" }, { "role": "assistant", "content": "SELECT \"party\" FROM \"current_members_of_the_baltimore_city_de\" WHERE \"district\"=41 AND \"delegate\"='jill p. carter';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members_of_the_baltimore_city_de\" (\n \"district\" real,\n \"place_of_birth\" text,\n \"delegate\" text,\n \"party\" text,\n \"took_office\" real,\n \"committee\" text\n);\n\nQuestion: Where was the place of birth for the delegate who took office after 1982, delegates a district smaller than 43 and belongs to a Health and Government operations committee?" }, { "role": "assistant", "content": "SELECT \"place_of_birth\" FROM \"current_members_of_the_baltimore_city_de\" WHERE \"took_office\">1982 AND \"district\"<43 AND \"committee\"='health and government operations';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members_of_the_baltimore_city_de\" (\n \"district\" real,\n \"place_of_birth\" text,\n \"delegate\" text,\n \"party\" text,\n \"took_office\" real,\n \"committee\" text\n);\n\nQuestion: Where was the delegate belonging to the Judiciary committee of district 43 born?" }, { "role": "assistant", "content": "SELECT \"place_of_birth\" FROM \"current_members_of_the_baltimore_city_de\" WHERE \"committee\"='judiciary' AND \"district\"=43;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"current_members_of_the_baltimore_city_de\" (\n \"district\" real,\n \"place_of_birth\" text,\n \"delegate\" text,\n \"party\" text,\n \"took_office\" real,\n \"committee\" text\n);\n\nQuestion: What is the largest district for delegate Cheryl Glenn, that she had taken after 2006?" }, { "role": "assistant", "content": "SELECT MAX(\"district\") FROM \"current_members_of_the_baltimore_city_de\" WHERE \"delegate\"='cheryl glenn' AND \"took_office\">2006;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"u_s_nielsen_weekly_ratings\" (\n \"episode\" text,\n \"rating\" real,\n \"share\" real,\n \"18_49_rating_share\" text,\n \"viewers_m\" real\n);\n\nQuestion: What is the average Viewers (m) for \"aka\", with a Rating larger than 3.3?" }, { "role": "assistant", "content": "SELECT AVG(\"viewers_m\") FROM \"u_s_nielsen_weekly_ratings\" WHERE \"episode\"='\\\"aka\\\"' AND \"rating\">3.3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"ice_dancing\" (\n \"rank\" real,\n \"name\" text,\n \"nation\" text,\n \"points\" real,\n \"placings\" real\n);\n\nQuestion: What is the highest placing for marie mcneil / robert mccall, with less than 168.58?" }, { "role": "assistant", "content": "SELECT MAX(\"placings\") FROM \"ice_dancing\" WHERE \"name\"='marie mcneil / robert mccall' AND \"points\"<168.58;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"december\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the date of the Mavericks home game?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"december\" WHERE \"home\"='mavericks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"first_generation_models\" (\n \"model\" text,\n \"power\" text,\n \"torque_rpm\" text,\n \"displacement_cc\" real,\n \"engine\" text\n);\n\nQuestion: What is the highest displacement value for the R Fwd Auto Phase1?" }, { "role": "assistant", "content": "SELECT MAX(\"displacement_cc\") FROM \"first_generation_models\" WHERE \"model\"='r fwd auto phase1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_11\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the top crowd when the team scored 12.15 (87) at home?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_11\" WHERE \"home_team_score\"='12.15 (87)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_11\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What team played at lake oval while away?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_11\" WHERE \"venue\"='lake oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_11\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the combined of Crowd that has a Home team which scored 12.15 (87)?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_11\" WHERE \"home_team_score\"='12.15 (87)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_11\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the combined of Crowd that has an away team which scored 19.15 (129)?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_11\" WHERE \"away_team_score\"='19.15 (129)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_athletes\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Name the number of silver when gold is less than 1 and bronze is 0 when total is less than 2" }, { "role": "assistant", "content": "SELECT COUNT(\"silver\") FROM \"top_athletes\" WHERE \"gold\"<1 AND \"bronze\"=0 AND \"total\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"streets\" (\n \"street\" text,\n \"west\" text,\n \"east\" text,\n \"num_of_lanes\" text,\n \"traffic_direction\" text\n);\n\nQuestion: What is the traffic direction of 70th street?" }, { "role": "assistant", "content": "SELECT \"traffic_direction\" FROM \"streets\" WHERE \"street\"='70th street';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"streets\" (\n \"street\" text,\n \"west\" text,\n \"east\" text,\n \"num_of_lanes\" text,\n \"traffic_direction\" text\n);\n\nQuestion: What is the traffic direction of 64th street with 2nd avenue to the west and 1 lane?" }, { "role": "assistant", "content": "SELECT \"traffic_direction\" FROM \"streets\" WHERE \"west\"='2nd avenue' AND \"num_of_lanes\"='1' AND \"street\"='64th street';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"streets\" (\n \"street\" text,\n \"west\" text,\n \"east\" text,\n \"num_of_lanes\" text,\n \"traffic_direction\" text\n);\n\nQuestion: What is the traffic direction of 97th street?" }, { "role": "assistant", "content": "SELECT \"traffic_direction\" FROM \"streets\" WHERE \"street\"='97th street';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"streets\" (\n \"street\" text,\n \"west\" text,\n \"east\" text,\n \"num_of_lanes\" text,\n \"traffic_direction\" text\n);\n\nQuestion: What is the # of lanes on 20th street?" }, { "role": "assistant", "content": "SELECT \"num_of_lanes\" FROM \"streets\" WHERE \"street\"='20th street';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"running_backs\" (\n \"place\" real,\n \"player_name\" text,\n \"yards\" text,\n \"td_s\" real,\n \"long\" real\n);\n\nQuestion: What is the long of the player with 16 yards and less than 1 TD?" }, { "role": "assistant", "content": "SELECT SUM(\"long\") FROM \"running_backs\" WHERE \"yards\"='16' AND \"td_s\"<1;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"running_backs\" (\n \"place\" real,\n \"player_name\" text,\n \"yards\" text,\n \"td_s\" real,\n \"long\" real\n);\n\nQuestion: What is the highest place a player with 4 long and less than 2 TDs has?" }, { "role": "assistant", "content": "SELECT MIN(\"place\") FROM \"running_backs\" WHERE \"long\"=4 AND \"td_s\"<2;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_and_constructors\" (\n \"entrant\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"tyre\" text,\n \"driver\" text,\n \"rounds\" text\n);\n\nQuestion: Who drove the Marlboro Mclaren Peugeot?" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"drivers_and_constructors\" WHERE \"entrant\"='marlboro mclaren peugeot';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_and_constructors\" (\n \"entrant\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"tyre\" text,\n \"driver\" text,\n \"rounds\" text\n);\n\nQuestion: What tyre did Mika Salo use for team Lotus?" }, { "role": "assistant", "content": "SELECT \"tyre\" FROM \"drivers_and_constructors\" WHERE \"entrant\"='team lotus' AND \"driver\"='mika salo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_and_constructors\" (\n \"entrant\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"tyre\" text,\n \"driver\" text,\n \"rounds\" text\n);\n\nQuestion: Which driver drove the Tourtel Larrousse F1?" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"drivers_and_constructors\" WHERE \"entrant\"='tourtel larrousse f1';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"drivers_and_constructors\" (\n \"entrant\" text,\n \"constructor\" text,\n \"chassis\" text,\n \"tyre\" text,\n \"driver\" text,\n \"rounds\" text\n);\n\nQuestion: Who constructed Gerhard Berger car that went all rounds?" }, { "role": "assistant", "content": "SELECT \"constructor\" FROM \"drivers_and_constructors\" WHERE \"rounds\"='all' AND \"driver\"='gerhard berger';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"october\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who visited phoenix with a Record of 2\u20135\u20130?" }, { "role": "assistant", "content": "SELECT \"visitor\" FROM \"october\" WHERE \"home\"='phoenix' AND \"record\"='2\u20135\u20130';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"october\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What decision had a Record of 3\u20135\u20130?" }, { "role": "assistant", "content": "SELECT \"decision\" FROM \"october\" WHERE \"record\"='3\u20135\u20130';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"october\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What is the low attendance was based in phoenix with a Record of 1\u20130\u20130?" }, { "role": "assistant", "content": "SELECT MIN(\"attendance\") FROM \"october\" WHERE \"home\"='phoenix' AND \"record\"='1\u20130\u20130';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"october\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the score did phoenix have with a Record of 3\u20136\u20130 at home?" }, { "role": "assistant", "content": "SELECT \"score\" FROM \"october\" WHERE \"home\"='phoenix' AND \"record\"='3\u20136\u20130';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"october\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the record while at home in Anaheim?" }, { "role": "assistant", "content": "SELECT \"record\" FROM \"october\" WHERE \"home\"='anaheim';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"roger_maris_61_home_runs\" (\n \"number\" real,\n \"game\" real,\n \"date\" text,\n \"pitcher\" text,\n \"team\" text,\n \"inning\" text\n);\n\nQuestion: Which inning were the Minnesota Twins in on 06-07-1961?" }, { "role": "assistant", "content": "SELECT \"inning\" FROM \"roger_maris_61_home_runs\" WHERE \"team\"='minnesota twins' AND \"date\"='06-07-1961';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: How many people attended the game where the home team scored 8.10 (58)?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_7\" WHERE \"home_team_score\"='8.10 (58)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_7\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the away team at the game held at Arden Street Oval?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_7\" WHERE \"venue\"='arden street oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the name of the venue that away team footscray played at?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_12\" WHERE \"away_team\"='footscray';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the name of the venue where the away team scored 10.11 (71)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_12\" WHERE \"away_team_score\"='10.11 (71)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What date was the game played at princes park?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_12\" WHERE \"venue\"='princes park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_12\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who is the away team that played at punt road oval where the crowd was larger than 17,000?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_12\" WHERE \"crowd\">'17,000' AND \"venue\"='punt road oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"track\" real,\n \"title\" text,\n \"translation\" text,\n \"composer\" text,\n \"recorded\" text\n);\n\nQuestion: How many tracks were Recorded 1964-01-08?" }, { "role": "assistant", "content": "SELECT COUNT(\"track\") FROM \"track_listing\" WHERE \"recorded\"='1964-01-08';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"track\" real,\n \"title\" text,\n \"translation\" text,\n \"composer\" text,\n \"recorded\" text\n);\n\nQuestion: WhatTranslation has a Composer of jacques brel, rod mckuen?" }, { "role": "assistant", "content": "SELECT \"translation\" FROM \"track_listing\" WHERE \"composer\"='jacques brel, rod mckuen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"track\" real,\n \"title\" text,\n \"translation\" text,\n \"composer\" text,\n \"recorded\" text\n);\n\nQuestion: Which recording has a Track larger than 2, and a Translation of the last meal?" }, { "role": "assistant", "content": "SELECT \"recorded\" FROM \"track_listing\" WHERE \"track\">2 AND \"translation\"='the last meal';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"track\" real,\n \"title\" text,\n \"translation\" text,\n \"composer\" text,\n \"recorded\" text\n);\n\nQuestion: Which title has a Track of 3?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"track_listing\" WHERE \"track\"=3;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"december\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"record\" text\n);\n\nQuestion: When was the home game when the New Jersey team's record became 7-23-7?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"december\" WHERE \"home\"='new jersey' AND \"record\"='7-23-7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player_drafted_or_traded_for\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What college has a pick of 11?" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"nfl_draft\" WHERE \"pick\"=11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player_drafted_or_traded_for\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the average pick of Florida State?" }, { "role": "assistant", "content": "SELECT AVG(\"pick\") FROM \"nfl_draft\" WHERE \"college\"='florida state';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player_drafted_or_traded_for\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the average pick of San Diego State?" }, { "role": "assistant", "content": "SELECT AVG(\"pick\") FROM \"nfl_draft\" WHERE \"college\"='san diego state';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"rank\" real,\n \"name\" text,\n \"nation\" text,\n \"sp_fs\" real,\n \"points\" real,\n \"placings\" real\n);\n\nQuestion: What is the lowest value for SP+FS for Miljan Begovic with a greater than 189 place?" }, { "role": "assistant", "content": "SELECT MIN(\"sp_fs\") FROM \"men\" WHERE \"name\"='miljan begovic' AND \"placings\">189;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"rank\" real,\n \"name\" text,\n \"nation\" text,\n \"sp_fs\" real,\n \"points\" real,\n \"placings\" real\n);\n\nQuestion: What is the average points value for a rank less than 12 for David Santee?" }, { "role": "assistant", "content": "SELECT AVG(\"points\") FROM \"men\" WHERE \"rank\"<12 AND \"name\"='david santee';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"rank\" real,\n \"name\" text,\n \"nation\" text,\n \"sp_fs\" real,\n \"points\" real,\n \"placings\" real\n);\n\nQuestion: What is the total number for Rank with 185.16 points and a SP+FS value greater than 5?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"men\" WHERE \"points\"=185.16 AND \"sp_fs\">5;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"men\" (\n \"rank\" real,\n \"name\" text,\n \"nation\" text,\n \"sp_fs\" real,\n \"points\" real,\n \"placings\" real\n);\n\nQuestion: What is the largest value for SP+FS with more than 164.56 points for Mitsuru Matsumura in a Rank greater than 1?" }, { "role": "assistant", "content": "SELECT MAX(\"sp_fs\") FROM \"men\" WHERE \"points\">164.56 AND \"rank\">1 AND \"name\"='mitsuru matsumura';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pronunciation_in_modern_hebrew\" (\n \"variant_with_niqqud\" text,\n \"without_niqqud\" text,\n \"phonemic_value\" text,\n \"phonetic_realisation\" text,\n \"english_example\" text\n);\n\nQuestion: When phonetic realisation is [[[|u]]], what is the variant with niqqud?" }, { "role": "assistant", "content": "SELECT \"variant_with_niqqud\" FROM \"pronunciation_in_modern_hebrew\" WHERE \"phonetic_realisation\"='[[[|u]]]';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pronunciation_in_modern_hebrew\" (\n \"variant_with_niqqud\" text,\n \"without_niqqud\" text,\n \"phonemic_value\" text,\n \"phonetic_realisation\" text,\n \"english_example\" text\n);\n\nQuestion: When a variant without niqqud is as middle letter: \u05d5\u05d5 with a phonemic value of /v/, what is the variant with niqqud?" }, { "role": "assistant", "content": "SELECT \"variant_with_niqqud\" FROM \"pronunciation_in_modern_hebrew\" WHERE \"phonemic_value\"='/v/' AND \"without_niqqud\"='as middle letter: \u05d5\u05d5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pronunciation_in_modern_hebrew\" (\n \"variant_with_niqqud\" text,\n \"without_niqqud\" text,\n \"phonemic_value\" text,\n \"phonetic_realisation\" text,\n \"english_example\" text\n);\n\nQuestion: What is the phonetic realisation if the phonemic value is /v/ and the without niqqud is as initial letter: \u05d5?" }, { "role": "assistant", "content": "SELECT \"phonetic_realisation\" FROM \"pronunciation_in_modern_hebrew\" WHERE \"phonemic_value\"='/v/' AND \"without_niqqud\"='as initial letter: \u05d5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pronunciation_in_modern_hebrew\" (\n \"variant_with_niqqud\" text,\n \"without_niqqud\" text,\n \"phonemic_value\" text,\n \"phonetic_realisation\" text,\n \"english_example\" text\n);\n\nQuestion: Give me an english example of a variant with niqqud of \u05d5\u05b9?" }, { "role": "assistant", "content": "SELECT \"english_example\" FROM \"pronunciation_in_modern_hebrew\" WHERE \"variant_with_niqqud\"='\u05d5\u05b9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pronunciation_in_modern_hebrew\" (\n \"variant_with_niqqud\" text,\n \"without_niqqud\" text,\n \"phonemic_value\" text,\n \"phonetic_realisation\" text,\n \"english_example\" text\n);\n\nQuestion: What is the variant with niqqud for a phonetic realisation of [[[|v]]]?" }, { "role": "assistant", "content": "SELECT \"variant_with_niqqud\" FROM \"pronunciation_in_modern_hebrew\" WHERE \"phonetic_realisation\"='[[[|v]]]';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pronunciation_in_modern_hebrew\" (\n \"variant_with_niqqud\" text,\n \"without_niqqud\" text,\n \"phonemic_value\" text,\n \"phonetic_realisation\" text,\n \"english_example\" text\n);\n\nQuestion: If a variant without niqqud is as final letter: \u05d5 or \u05d9\u05d5, what is the phonetic realisation?" }, { "role": "assistant", "content": "SELECT \"phonetic_realisation\" FROM \"pronunciation_in_modern_hebrew\" WHERE \"without_niqqud\"='as final letter: \u05d5 or \u05d9\u05d5';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"pick\" real,\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: What position does pick 113 play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"nfl_draft\" WHERE \"pick\"=113;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"pick\" real,\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: What is the school of Victor Jones, who was picked further than number 225?" }, { "role": "assistant", "content": "SELECT \"school\" FROM \"nfl_draft\" WHERE \"pick\">225 AND \"player\"='victor jones';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"pick\" real,\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: What is the total pick number of Virginia Tech?" }, { "role": "assistant", "content": "SELECT COUNT(\"pick\") FROM \"nfl_draft\" WHERE \"school\"='virginia tech';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"pick\" real,\n \"round\" text,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: What is the position of a player from North Carolina?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"nfl_draft\" WHERE \"school\"='north carolina';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_19\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"venue\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home team score of St Kilda?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_19\" WHERE \"home_team\"='st kilda';" } ]