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 \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Which competition had the score 1-0?" }, { "role": "assistant", "content": "SELECT \"competition\" FROM \"international_goals\" 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 \"under_construction\" (\n \"stadium\" text,\n \"capacity\" real,\n \"city\" text,\n \"country\" text,\n \"tenant\" text,\n \"opening\" real\n);\n\nQuestion: Timsah arena is in what country?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"under_construction\" WHERE \"stadium\"='timsah arena';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_classification\" (\n \"cyclist\" text,\n \"country\" text,\n \"team\" text,\n \"time\" text,\n \"uci_pro_tour_points\" text\n);\n\nQuestion: What country is Relax-Gam from?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"general_classification\" WHERE \"team\"='relax-gam';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_classification\" (\n \"cyclist\" text,\n \"country\" text,\n \"team\" text,\n \"time\" text,\n \"uci_pro_tour_points\" text\n);\n\nQuestion: Who is Gerolsteiner's cyclist?" }, { "role": "assistant", "content": "SELECT \"cyclist\" FROM \"general_classification\" WHERE \"team\"='gerolsteiner';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"general_classification\" (\n \"cyclist\" text,\n \"country\" text,\n \"team\" text,\n \"time\" text,\n \"uci_pro_tour_points\" text\n);\n\nQuestion: What is Davide Rebellin' UCI ProTour Points?" }, { "role": "assistant", "content": "SELECT \"uci_pro_tour_points\" FROM \"general_classification\" WHERE \"cyclist\"='davide rebellin';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_17\" (\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 North Melbourne's score when they were the home team?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_17\" WHERE \"home_team\"='north melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_17\" (\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 did Footscray play as the away team?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_17\" 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_17\" (\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 away team's score in the match at Lake Oval?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_17\" 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_17\" (\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 sum of the crowds that watched Fitzroy play as the away team?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_17\" WHERE \"away_team\"='fitzroy';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"goalscoring\" (\n \"rank\" real,\n \"name\" text,\n \"years\" text,\n \"goals\" real,\n \"apps\" real\n);\n\nQuestion: What is the sum of rank with years 1996\u20132012 and apps greater than 340?" }, { "role": "assistant", "content": "SELECT SUM(\"rank\") FROM \"goalscoring\" WHERE \"years\"='1996\u20132012' AND \"apps\">340;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"c\" (\n \"player\" text,\n \"nationality\" text,\n \"position\" text,\n \"from\" real,\n \"school_country\" text\n);\n\nQuestion: Which player held the position of guard prior to 1982?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"c\" WHERE \"from\"<1982 AND \"position\"='guard';" } ]
[ { "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 was the away team that faced Carlton?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_6\" WHERE \"home_team\"='carlton';" } ]
[ { "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 was the largest crowd to see the away team score 10.6 (66)?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_6\" WHERE \"away_team_score\"='10.6 (66)';" } ]
[ { "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 total crowd size that saw Geelong play as the away team?" }, { "role": "assistant", "content": "SELECT COUNT(\"crowd\") FROM \"round_6\" WHERE \"away_team\"='geelong';" } ]
[ { "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 away team saw their opponents score 4.5 (29)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_6\" WHERE \"home_team_score\"='4.5 (29)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"podiums\" text,\n \"points\" text,\n \"final_placing\" text\n);\n\nQuestion: How many wins did Hobbs had a 15th finish at poles 0?" }, { "role": "assistant", "content": "SELECT \"wins\" FROM \"career_summary\" WHERE \"poles\"='0' AND \"final_placing\"='15th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"podiums\" text,\n \"points\" text,\n \"final_placing\" text\n);\n\nQuestion: What are the points for the GP3 series with 2 podiums?" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"career_summary\" WHERE \"series\"='gp3 series' AND \"podiums\"='2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"podiums\" text,\n \"points\" text,\n \"final_placing\" text\n);\n\nQuestion: Which races have #2 podiums?" }, { "role": "assistant", "content": "SELECT \"races\" FROM \"career_summary\" WHERE \"podiums\"='2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"podiums\" text,\n \"points\" text,\n \"final_placing\" text\n);\n\nQuestion: What was the 2009 final placing?" }, { "role": "assistant", "content": "SELECT \"final_placing\" FROM \"career_summary\" WHERE \"season\"=2009;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" text,\n \"wins\" text,\n \"poles\" text,\n \"podiums\" text,\n \"points\" text,\n \"final_placing\" text\n);\n\nQuestion: What was the points with 7 races?" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"career_summary\" WHERE \"races\"='7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\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 had south melbourne as the home team?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_1\" 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_1\" (\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 had collingwood as the away team?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_1\" WHERE \"away_team\"='collingwood';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\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 home team score when south melbourne was the home team?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_1\" 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_1\" (\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 day was south melbourne the away squad?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_1\" 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 \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"notes\" text\n);\n\nQuestion: What position did he finish after 1998 and a note time of 2:31:40?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"achievements\" WHERE \"year\">1998 AND \"notes\"='2:31:40';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"notes\" text\n);\n\nQuestion: What venue featured a notes of 2:38:44?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"achievements\" WHERE \"notes\"='2:38:44';" } ]
[ { "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 date in a week later than 8 had an attendance of more than 57,893, and a Opponent of at atlanta falcons?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\">8 AND \"attendance\">'57,893' AND \"opponent\"='at atlanta falcons';" } ]
[ { "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: Who did they play against in a week after 6 and the result was l 30\u201324?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\">6 AND \"result\"='l 30\u201324';" } ]
[ { "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 opponent has a Result of w 31\u20130?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"result\"='w 31\u20130';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2005_new_england_patriots_draft_selectio\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: During which round was the final cornerback drafted for the New England Patriots in 2005?" }, { "role": "assistant", "content": "SELECT MAX(\"round\") FROM \"2005_new_england_patriots_draft_selectio\" WHERE \"position\"='cornerback';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"highest_and_lowest_scoring_performances\" (\n \"dance\" text,\n \"best_dancer\" text,\n \"best_score\" real,\n \"worst_dancer\" text,\n \"worst_score\" real\n);\n\nQuestion: What dance was Leeza Gibbons the worst dancer for, receiving a score lower than 15?" }, { "role": "assistant", "content": "SELECT MIN(\"best_score\") FROM \"highest_and_lowest_scoring_performances\" WHERE \"worst_dancer\"='leeza gibbons' AND \"worst_score\"<15;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"highest_and_lowest_scoring_performances\" (\n \"dance\" text,\n \"best_dancer\" text,\n \"best_score\" real,\n \"worst_dancer\" text,\n \"worst_score\" real\n);\n\nQuestion: What is the worst score for the dance that has Apolo Anton Ohno as the best dancer, and where his best score is larger than 30?" }, { "role": "assistant", "content": "SELECT SUM(\"worst_score\") FROM \"highest_and_lowest_scoring_performances\" WHERE \"best_dancer\"='apolo anton ohno' AND \"best_score\">30;" } ]
[ { "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 is the biggest crowd when carlton is the away squad?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_13\" 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_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 is the sum of crowd(s) when richmond is the away squad?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_13\" WHERE \"away_team\"='richmond';" } ]
[ { "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 is the home team's score in the game played at glenferrie oval?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" 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 \"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 \"location\" text\n);\n\nQuestion: What was the result of the event against Nate Mohr?" }, { "role": "assistant", "content": "SELECT \"res\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='nate mohr';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\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 VFL played Junction Oval what was the home team score?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_2\" WHERE \"venue\"='junction oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\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 away team Geelong's crowd numbers?" }, { "role": "assistant", "content": "SELECT \"crowd\" FROM \"round_2\" WHERE \"away_team\"='geelong';" } ]
[ { "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 date did the home team score 12.7 (79)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_6\" WHERE \"home_team_score\"='12.7 (79)';" } ]
[ { "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 they played against fitzroy?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_6\" WHERE \"away_team\"='fitzroy';" } ]
[ { "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 was the team they played when the home team scored 6.10 (46)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_6\" WHERE \"home_team_score\"='6.10 (46)';" } ]
[ { "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: How large was the crowd when they played at princes park?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_6\" 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_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 was the away team that scored 12.11 (83)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_6\" WHERE \"away_team_score\"='12.11 (83)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\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 day does the home team score 10.10 (70)?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_2\" WHERE \"home_team_score\"='10.10 (70)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\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 at junction oval?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_2\" WHERE \"venue\"='junction oval';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_2\" (\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's score at princes park?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_2\" 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 \"internet_availability\" (\n \"nation\" text,\n \"population_thousands\" real,\n \"internet_subscriptions_2000_thousands_of_users\" real,\n \"internet_subscriptions_2008_thousands_of_users\" real,\n \"pct_growth_2000_2008\" real,\n \"pct_internet_users\" real\n);\n\nQuestion: What was the highest percentage of internet users a nation with a 1622% growth in 2000-2008 had?" }, { "role": "assistant", "content": "SELECT MAX(\"pct_internet_users\") FROM \"internet_availability\" WHERE \"pct_growth_2000_2008\"=1622;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_16\" (\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 home team when Footscray was the away team?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_16\" 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_16\" (\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 when the home team scored 20.15 (135)?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_16\" WHERE \"home_team_score\"='20.15 (135)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_16\" (\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 home team when the away team scored 5.10 (40)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_16\" WHERE \"away_team_score\"='5.10 (40)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_16\" (\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 home team's score at the game played at Punt Road Oval with a crowd over 20,000?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_16\" WHERE \"crowd\">'20,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 \"exhibition_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: What day did the team play the buffalo bills?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"exhibition_schedule\" WHERE \"opponent\"='buffalo bills';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1958_1963\" (\n \"year\" real,\n \"bb_pop\" text,\n \"bb_cw\" text,\n \"bb_rb\" text,\n \"bb_el\" text,\n \"cb_cw\" text,\n \"riaa\" text\n);\n\nQuestion: What is the BB Pop for the song with RIAA of G that was in a year earlier than 1961?" }, { "role": "assistant", "content": "SELECT \"bb_pop\" FROM \"1958_1963\" WHERE \"riaa\"='g' AND \"year\"<1961;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"top_goalscorers\" (\n \"name\" text,\n \"years\" text,\n \"league_a\" text,\n \"fa_cup\" text,\n \"league_cup_b\" text,\n \"other\" text,\n \"total\" text\n);\n\nQuestion: Which player has an Other of 3 (15)?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"top_goalscorers\" WHERE \"other\"='3 (15)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"21st_century\" (\n \"date\" text,\n \"time\" text,\n \"epicenter\" text,\n \"magnitude\" text,\n \"fatalities\" text,\n \"name\" text\n);\n\nQuestion: What Name has a Time of 01:17:01?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"21st_century\" WHERE \"time\"='01:17:01';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"21st_century\" (\n \"date\" text,\n \"time\" text,\n \"epicenter\" text,\n \"magnitude\" text,\n \"fatalities\" text,\n \"name\" text\n);\n\nQuestion: What is the Magnitude on the Date May 28, 2004?" }, { "role": "assistant", "content": "SELECT \"magnitude\" FROM \"21st_century\" WHERE \"date\"='may 28, 2004';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"21st_century\" (\n \"date\" text,\n \"time\" text,\n \"epicenter\" text,\n \"magnitude\" text,\n \"fatalities\" text,\n \"name\" text\n);\n\nQuestion: What Name has a Time of 01:56:52?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"21st_century\" WHERE \"time\"='01:56:52';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"21st_century\" (\n \"date\" text,\n \"time\" text,\n \"epicenter\" text,\n \"magnitude\" text,\n \"fatalities\" text,\n \"name\" text\n);\n\nQuestion: What number of Fatalities did the Epicenter M\u0101zandar\u0101n have?" }, { "role": "assistant", "content": "SELECT \"fatalities\" FROM \"21st_century\" WHERE \"epicenter\"='m\u0101zandar\u0101n';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"21st_century\" (\n \"date\" text,\n \"time\" text,\n \"epicenter\" text,\n \"magnitude\" text,\n \"fatalities\" text,\n \"name\" text\n);\n\nQuestion: What number of Fatalties is associated with the Time of 12:38:46?" }, { "role": "assistant", "content": "SELECT \"fatalities\" FROM \"21st_century\" WHERE \"time\"='12:38:46';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"21st_century\" (\n \"date\" text,\n \"time\" text,\n \"epicenter\" text,\n \"magnitude\" text,\n \"fatalities\" text,\n \"name\" text\n);\n\nQuestion: What is the Time when the Epicenter was Bam?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"21st_century\" WHERE \"epicenter\"='bam';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"former_judges\" (\n \"state\" text,\n \"born_died\" text,\n \"active_service\" text,\n \"chief_judge\" text,\n \"senior_status\" text,\n \"appointed_by\" text,\n \"reason_for_termination\" text\n);\n\nQuestion: Who did Clinton appoint as a Chief Judge?" }, { "role": "assistant", "content": "SELECT \"chief_judge\" FROM \"former_judges\" WHERE \"appointed_by\"='clinton';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_17\" (\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 smallest crowd for a Carlton away game?" }, { "role": "assistant", "content": "SELECT MIN(\"crowd\") FROM \"round_17\" 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 \"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 \"location\" text\n);\n\nQuestion: What is the result when the time is 1:13?" }, { "role": "assistant", "content": "SELECT \"res\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='1:13';" } ]
[ { "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 \"location\" text\n);\n\nQuestion: Who was the opponent when the time was 1:47?" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='1:47';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_14\" (\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 South Melbourne play as the away team?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_14\" WHERE \"away_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_14\" (\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 home team's score at the match in front of 19,115 at Punt Road Oval?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_14\" WHERE \"crowd\">'19,115' 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 \"round_14\" (\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 away team's score in the match at Victoria Park?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_14\" WHERE \"venue\"='victoria park';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_14\" (\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 thome home team whose opponent scored 9.14 (68) in front of 19,115?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_14\" WHERE \"crowd\">'19,115' AND \"away_team_score\"='9.14 (68)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1999_new_england_patriots_draft_selectio\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which position has a Round of 7, and a College of kansas state?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"1999_new_england_patriots_draft_selectio\" WHERE \"round\"=7 AND \"college\"='kansas state';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1999_new_england_patriots_draft_selectio\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many rounds have an Overall larger than 17, and a Position of quarterback?" }, { "role": "assistant", "content": "SELECT COUNT(\"round\") FROM \"1999_new_england_patriots_draft_selectio\" WHERE \"overall\">17 AND \"position\"='quarterback';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1999_new_england_patriots_draft_selectio\" (\n \"round\" real,\n \"overall\" real,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which average overall has a Round of 1, and a Position of center?" }, { "role": "assistant", "content": "SELECT AVG(\"overall\") FROM \"1999_new_england_patriots_draft_selectio\" WHERE \"round\"=1 AND \"position\"='center';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\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 did North Melbourne play as the home team?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_10\" WHERE \"home_team\"='north melbourne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_10\" (\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 attendance when VFL played MCG?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_10\" 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_1\" (\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 home team score when the away team scored 10.10 (70)?" }, { "role": "assistant", "content": "SELECT \"home_team_score\" FROM \"round_1\" WHERE \"away_team_score\"='10.10 (70)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\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 were in the crowd when the away team scored 9.12 (66)?" }, { "role": "assistant", "content": "SELECT \"crowd\" FROM \"round_1\" WHERE \"away_team_score\"='9.12 (66)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\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 score of the away team when they played at Windy Hill?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_1\" WHERE \"venue\"='windy hill';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_1\" (\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 large was the crowd when the away team was melbourne?" }, { "role": "assistant", "content": "SELECT \"crowd\" FROM \"round_1\" 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_15\" (\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 watched a Glenferrie Oval?" }, { "role": "assistant", "content": "SELECT COUNT(\"crowd\") FROM \"round_15\" 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_15\" (\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 faced Geelong at home?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_15\" WHERE \"home_team\"='geelong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\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 watch Essendon as an away team?" }, { "role": "assistant", "content": "SELECT SUM(\"crowd\") FROM \"round_15\" WHERE \"away_team\"='essendon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\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 did South Melbourne go to play a team at home?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_15\" WHERE \"away_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_15\" (\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 did a home team score 9.9 (63)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_15\" WHERE \"home_team_score\"='9.9 (63)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\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 essendon's away team score?" }, { "role": "assistant", "content": "SELECT \"away_team_score\" FROM \"round_15\" WHERE \"away_team\"='essendon';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\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 has an away team score of 11.15 (81)?" }, { "role": "assistant", "content": "SELECT \"home_team\" FROM \"round_15\" WHERE \"away_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 \"round_15\" (\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 with geelong as Away team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_15\" WHERE \"away_team\"='geelong';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_15\" (\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 highest crowd at arden street oval?" }, { "role": "assistant", "content": "SELECT MAX(\"crowd\") FROM \"round_15\" 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_15\" (\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 geelong's aberage crowd as Away Team?" }, { "role": "assistant", "content": "SELECT AVG(\"crowd\") FROM \"round_15\" WHERE \"away_team\"='geelong';" } ]
[ { "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 was the date of the game when North Melbourne was the away team?" }, { "role": "assistant", "content": "SELECT \"date\" FROM \"round_6\" WHERE \"away_team\"='north 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: Where was the game held when the home team scored 8.18 (66)?" }, { "role": "assistant", "content": "SELECT \"venue\" FROM \"round_6\" WHERE \"home_team_score\"='8.18 (66)';" } ]
[ { "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: Who was the away team when the home team scored 16.16 (112)?" }, { "role": "assistant", "content": "SELECT \"away_team\" FROM \"round_6\" WHERE \"home_team_score\"='16.16 (112)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_1_results\" (\n \"name\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What is the team with grid 9?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"race_1_results\" WHERE \"grid\"=9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"race_1_results\" (\n \"name\" text,\n \"team\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: What team features garth tander?" }, { "role": "assistant", "content": "SELECT \"team\" FROM \"race_1_results\" WHERE \"name\"='garth tander';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"marlboro_tour\" (\n \"year\" text,\n \"name\" text,\n \"date\" text,\n \"stages\" text,\n \"distance\" text,\n \"winner\" text,\n \"time\" text\n);\n\nQuestion: How many stages are in a distance of 2,192 km?" }, { "role": "assistant", "content": "SELECT \"stages\" FROM \"marlboro_tour\" WHERE \"distance\"='2,192 km';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"marlboro_tour\" (\n \"year\" text,\n \"name\" text,\n \"date\" text,\n \"stages\" text,\n \"distance\" text,\n \"winner\" text,\n \"time\" text\n);\n\nQuestion: How long was the 16 staged event in 1997?" }, { "role": "assistant", "content": "SELECT \"distance\" FROM \"marlboro_tour\" WHERE \"stages\"='16' AND \"year\"='1997';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"marlboro_tour\" (\n \"year\" text,\n \"name\" text,\n \"date\" text,\n \"stages\" text,\n \"distance\" text,\n \"winner\" text,\n \"time\" text\n);\n\nQuestion: What was the winning time in 1984?" }, { "role": "assistant", "content": "SELECT \"time\" FROM \"marlboro_tour\" WHERE \"year\"='1984';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"marlboro_tour\" (\n \"year\" text,\n \"name\" text,\n \"date\" text,\n \"stages\" text,\n \"distance\" text,\n \"winner\" text,\n \"time\" text\n);\n\nQuestion: Who won the 17 staged event in 1987?" }, { "role": "assistant", "content": "SELECT \"winner\" FROM \"marlboro_tour\" WHERE \"stages\"='17' AND \"year\"='1987';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"marlboro_tour\" (\n \"year\" text,\n \"name\" text,\n \"date\" text,\n \"stages\" text,\n \"distance\" text,\n \"winner\" text,\n \"time\" text\n);\n\nQuestion: Which event happened in 1988?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"marlboro_tour\" WHERE \"year\"='1988';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: Where did Rick Mears win, after starting in Pole Position?" }, { "role": "assistant", "content": "SELECT \"city_location\" FROM \"races\" WHERE \"pole_position\"='rick mears' AND \"winning_driver\"='rick mears';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: Where is the budweiser/g. i. joe's 200?" }, { "role": "assistant", "content": "SELECT \"city_location\" FROM \"races\" WHERE \"race_name\"='budweiser/g. i. joe''s 200';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"races\" (\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: Where is Emerson Fittipaldi starting in Pole position?" }, { "role": "assistant", "content": "SELECT \"city_location\" FROM \"races\" WHERE \"pole_position\"='emerson fittipaldi';" } ]