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 \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Who was the Class AAAA champion in 2006-07?"
},
{
"role": "assistant",
"content": "SELECT \"class_aaaa\" FROM \"team\" WHERE \"school_year\"='2006-07';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: How many times was there a class A winner when Gregory-Portland was the class AAAA?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"class_a\") FROM \"team\" WHERE \"class_aaaa\"='Gregory-Portland';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: How many Class AAAA winners where in 2002-03?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"class_aaaa\") FROM \"team\" WHERE \"school_year\"='2002-03';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Who was the class AAAAA in 2008-09?"
},
{
"role": "assistant",
"content": "SELECT \"class_aaaaa\" FROM \"team\" WHERE \"school_year\"='2008-09';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Who was the Class AA winner when Plains was Class A winner and Lubbock was Class AAAAA winner?"
},
{
"role": "assistant",
"content": "SELECT \"class_aa\" FROM \"team\" WHERE \"class_a\"='Plains' AND \"class_aaaaa\"='Lubbock';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Who was the Class A winner in 2006-07?"
},
{
"role": "assistant",
"content": "SELECT \"class_a\" FROM \"team\" WHERE \"school_year\"='2006-07';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"individual_overall\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: If class a is canadian and class aaa is wimberley, which possible school years could this fall on? "
},
{
"role": "assistant",
"content": "SELECT \"school_year\" FROM \"individual_overall\" WHERE \"class_aaa\"='Wimberley' AND \"class_a\"='Canadian';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"individual_overall\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: For franklin of class aa, which school years does this occur? "
},
{
"role": "assistant",
"content": "SELECT \"school_year\" FROM \"individual_overall\" WHERE \"class_aa\"='Franklin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"individual_overall\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Which school years have a class a being lindsay and a class aaa being cuero? "
},
{
"role": "assistant",
"content": "SELECT \"school_year\" FROM \"individual_overall\" WHERE \"class_a\"='Lindsay' AND \"class_aaa\"='Cuero';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14609295_4\" (\n \"season\" text,\n \"coach\" text,\n \"overall\" text,\n \"conference\" text,\n \"standing\" text,\n \"postseason\" text\n);\n\nQuestion: What season was the overall record 29-7?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"table1_14609295_4\" WHERE \"overall\"='29-7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14609295_4\" (\n \"season\" text,\n \"coach\" text,\n \"overall\" text,\n \"conference\" text,\n \"standing\" text,\n \"postseason\" text\n);\n\nQuestion: How far into the postseason did the Rams go when their record was 29-7?"
},
{
"role": "assistant",
"content": "SELECT \"postseason\" FROM \"table1_14609295_4\" WHERE \"overall\"='29-7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14609295_4\" (\n \"season\" text,\n \"coach\" text,\n \"overall\" text,\n \"conference\" text,\n \"standing\" text,\n \"postseason\" text\n);\n\nQuestion: What was the Ram's conference record when they were the CBI champions?"
},
{
"role": "assistant",
"content": "SELECT \"conference\" FROM \"table1_14609295_4\" WHERE \"postseason\"='CBI Champions';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14609295_4\" (\n \"season\" text,\n \"coach\" text,\n \"overall\" text,\n \"conference\" text,\n \"standing\" text,\n \"postseason\" text\n);\n\nQuestion: What season was the overall record 24-10?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"table1_14609295_4\" WHERE \"overall\"='24-10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14609295_4\" (\n \"season\" text,\n \"coach\" text,\n \"overall\" text,\n \"conference\" text,\n \"standing\" text,\n \"postseason\" text\n);\n\nQuestion: In what season was the overall record 29-7?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"table1_14609295_4\" WHERE \"overall\"='29-7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: What are the school years where class \"AAA\" is argyle?"
},
{
"role": "assistant",
"content": "SELECT \"school_year\" FROM \"team\" WHERE \"class_aaa\"='Argyle';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: What are all the AAA classes in the school years of 2005-06?"
},
{
"role": "assistant",
"content": "SELECT \"class_aaa\" FROM \"team\" WHERE \"school_year\"='2005-06';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: What are all the AAAA classes in the schools years 2004-05?"
},
{
"role": "assistant",
"content": "SELECT \"class_aaaa\" FROM \"team\" WHERE \"school_year\"='2004-05';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: What are all the school years where class AAAA is in Gregory-Portland? "
},
{
"role": "assistant",
"content": "SELECT \"school_year\" FROM \"team\" WHERE \"class_aaaa\"='Gregory-Portland';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: What are all the AAA classes in the school years of 2004-05?"
},
{
"role": "assistant",
"content": "SELECT \"class_aaa\" FROM \"team\" WHERE \"school_year\"='2004-05';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"norfolk_state\" (\n \"position\" text,\n \"number\" real,\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"class\" text,\n \"hometown\" text,\n \"games\" real\n);\n\nQuestion: What are all classes for the position SLB?"
},
{
"role": "assistant",
"content": "SELECT \"class\" FROM \"norfolk_state\" WHERE \"position\"='SLB';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"norfolk_state\" (\n \"position\" text,\n \"number\" real,\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"class\" text,\n \"hometown\" text,\n \"games\" real\n);\n\nQuestion: What are all weights for the number 27?"
},
{
"role": "assistant",
"content": "SELECT \"weight\" FROM \"norfolk_state\" WHERE \"number\"=27;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"norfolk_state\" (\n \"position\" text,\n \"number\" real,\n \"name\" text,\n \"height\" text,\n \"weight\" text,\n \"class\" text,\n \"hometown\" text,\n \"games\" real\n);\n\nQuestion: What are all names for the position FS?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"norfolk_state\" WHERE \"position\"='FS';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14623167_1\" (\n \"virtual\" real,\n \"physical\" real,\n \"call_sign\" text,\n \"branding\" text,\n \"network\" text,\n \"owner\" text\n);\n\nQuestion: Name the call sign for the 17 physical"
},
{
"role": "assistant",
"content": "SELECT \"call_sign\" FROM \"table1_14623167_1\" WHERE \"physical\"=17;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14623167_1\" (\n \"virtual\" real,\n \"physical\" real,\n \"call_sign\" text,\n \"branding\" text,\n \"network\" text,\n \"owner\" text\n);\n\nQuestion: Name the branding for forum communications"
},
{
"role": "assistant",
"content": "SELECT \"branding\" FROM \"table1_14623167_1\" WHERE \"owner\"='Forum Communications';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14623167_1\" (\n \"virtual\" real,\n \"physical\" real,\n \"call_sign\" text,\n \"branding\" text,\n \"network\" text,\n \"owner\" text\n);\n\nQuestion: Name the number of branding for 31 physical"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"branding\") FROM \"table1_14623167_1\" WHERE \"physical\"=31;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14623167_1\" (\n \"virtual\" real,\n \"physical\" real,\n \"call_sign\" text,\n \"branding\" text,\n \"network\" text,\n \"owner\" text\n);\n\nQuestion: Name the number of virtual for NBC"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"virtual\") FROM \"table1_14623167_1\" WHERE \"network\"='NBC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14623167_1\" (\n \"virtual\" real,\n \"physical\" real,\n \"call_sign\" text,\n \"branding\" text,\n \"network\" text,\n \"owner\" text\n);\n\nQuestion: Name the virtual for Fox"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"virtual\") FROM \"table1_14623167_1\" WHERE \"network\"='Fox';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14623167_1\" (\n \"virtual\" real,\n \"physical\" real,\n \"call_sign\" text,\n \"branding\" text,\n \"network\" text,\n \"owner\" text\n);\n\nQuestion: Name the owners for prairie public"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"owner\") FROM \"table1_14623167_1\" WHERE \"branding\"='Prairie Public';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"individual\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Name the total number of class aaa for 2006-07"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"class_aaa\") FROM \"individual\" WHERE \"school_year\"='2006-07';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"individual\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Name the class aaaa for menard"
},
{
"role": "assistant",
"content": "SELECT \"class_aaaa\" FROM \"individual\" WHERE \"class_a\"='Menard';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"individual\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Name the school year for class aaaa for wichita falls"
},
{
"role": "assistant",
"content": "SELECT \"school_year\" FROM \"individual\" WHERE \"class_aaaa\"='Wichita Falls';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"individual\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Name the class a for carthage"
},
{
"role": "assistant",
"content": "SELECT \"class_a\" FROM \"individual\" WHERE \"class_aaaa\"='Carthage';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14631909_1\" (\n \"year\" real,\n \"category\" text,\n \"english_title\" text,\n \"original_title\" text,\n \"author\" text,\n \"nationality\" text\n);\n\nQuestion: What is the original title of europe for dummies?"
},
{
"role": "assistant",
"content": "SELECT \"original_title\" FROM \"table1_14631909_1\" WHERE \"english_title\"='Europe for Dummies';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14631909_1\" (\n \"year\" real,\n \"category\" text,\n \"english_title\" text,\n \"original_title\" text,\n \"author\" text,\n \"nationality\" text\n);\n\nQuestion: What is the English version of Mariusz Szczygie\u0142 book?"
},
{
"role": "assistant",
"content": "SELECT \"english_title\" FROM \"table1_14631909_1\" WHERE \"author\"='Mariusz Szczygie\u0142';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: who is the the\u00a0pole position\u00a0with\u00a0date\u00a0being august 10"
},
{
"role": "assistant",
"content": "SELECT \"pole_position\" FROM \"races\" WHERE \"date\"='August 10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: how many\u00a0winning team\u00a0with\u00a0circuit\u00a0being road america"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"winning_team\") FROM \"races\" WHERE \"circuit\"='Road America';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: who is the the\u00a0winning driver\u00a0with\u00a0pole position\u00a0being paul tracy and\u00a0race name\u00a0being miller genuine draft 200"
},
{
"role": "assistant",
"content": "SELECT \"winning_driver\" FROM \"races\" WHERE \"pole_position\"='Paul Tracy' AND \"race_name\"='Miller Genuine Draft 200';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: who is the the\u00a0pole position\u00a0with\u00a0rnd\u00a0being 16"
},
{
"role": "assistant",
"content": "SELECT \"pole_position\" FROM \"races\" WHERE \"rnd\"=16;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: what's the\u00a0race name\u00a0with\u00a0date\u00a0being september 7"
},
{
"role": "assistant",
"content": "SELECT \"race_name\" FROM \"races\" WHERE \"date\"='September 7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"races\" (\n \"rnd\" real,\n \"race_name\" text,\n \"circuit\" text,\n \"city_location\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_team\" text,\n \"report\" text\n);\n\nQuestion: what's the\u00a0circuit\u00a0with\u00a0rnd\u00a0being 5"
},
{
"role": "assistant",
"content": "SELECT \"circuit\" FROM \"races\" WHERE \"rnd\"=5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_by_club\" (\n \"team\" text,\n \"num_appearances\" real,\n \"years_won_in_bold\" text,\n \"num_wins\" real,\n \"num_runner_up\" real,\n \"most_recent_final\" text\n);\n\nQuestion: What is the number of appearances where the most recent final result is 1999, beat Genk 3-1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"num_appearances\") FROM \"performance_by_club\" WHERE \"most_recent_final\"='1999, beat Genk 3-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_by_club\" (\n \"team\" text,\n \"num_appearances\" real,\n \"years_won_in_bold\" text,\n \"num_wins\" real,\n \"num_runner_up\" real,\n \"most_recent_final\" text\n);\n\nQuestion: What is the number of runner-up results for the years (won in bold) 1984, 2010?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"num_runner_up\") FROM \"performance_by_club\" WHERE \"years_won_in_bold\"='1984, 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performance_by_club\" (\n \"team\" text,\n \"num_appearances\" real,\n \"years_won_in_bold\" text,\n \"num_wins\" real,\n \"num_runner_up\" real,\n \"most_recent_final\" text\n);\n\nQuestion: What is the most recent final result for the years (won in bold) 1979?"
},
{
"role": "assistant",
"content": "SELECT \"most_recent_final\" FROM \"performance_by_club\" WHERE \"years_won_in_bold\"='1979';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14637853_3\" (\n \"no_in_series\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text,\n \"tv_broadcast\" text\n);\n\nQuestion: what's the\u00a0title\u00a0with\u00a0original air date\u00a0being september23,1995"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_14637853_3\" WHERE \"original_air_date\"='September23,1995';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14637853_3\" (\n \"no_in_series\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text,\n \"tv_broadcast\" text\n);\n\nQuestion: who wrote with\u00a0original air date\u00a0being september23,1995"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_14637853_3\" WHERE \"original_air_date\"='September23,1995';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14637853_3\" (\n \"no_in_series\" real,\n \"title\" text,\n \"written_by\" text,\n \"directed_by\" text,\n \"original_air_date\" text,\n \"tv_broadcast\" text\n);\n\nQuestion: who directed with\u00a0original air date\u00a0being november18,1995"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_14637853_3\" WHERE \"original_air_date\"='November18,1995';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"116_seats_needed_for_a_majority\" (\n \"date_released\" text,\n \"polling_institute\" text,\n \"socialist\" text,\n \"social_democratic\" text,\n \"peoples_party\" text,\n \"green_communist\" text,\n \"left_bloc\" text,\n \"lead\" text\n);\n\nQuestion: What percentages of social democratic correspond to a 5.5% left bloc?"
},
{
"role": "assistant",
"content": "SELECT \"social_democratic\" FROM \"116_seats_needed_for_a_majority\" WHERE \"left_bloc\"='5.5%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"116_seats_needed_for_a_majority\" (\n \"date_released\" text,\n \"polling_institute\" text,\n \"socialist\" text,\n \"social_democratic\" text,\n \"peoples_party\" text,\n \"green_communist\" text,\n \"left_bloc\" text,\n \"lead\" text\n);\n\nQuestion: When was there 8.9% Green-Communist?"
},
{
"role": "assistant",
"content": "SELECT \"date_released\" FROM \"116_seats_needed_for_a_majority\" WHERE \"green_communist\"='8.9%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"116_seats_needed_for_a_majority\" (\n \"date_released\" text,\n \"polling_institute\" text,\n \"socialist\" text,\n \"social_democratic\" text,\n \"peoples_party\" text,\n \"green_communist\" text,\n \"left_bloc\" text,\n \"lead\" text\n);\n\nQuestion: How many socialists correspond to a 7.5% People's Party?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"socialist\") FROM \"116_seats_needed_for_a_majority\" WHERE \"peoples_party\"='7.5%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"116_seats_needed_for_a_majority\" (\n \"date_released\" text,\n \"polling_institute\" text,\n \"socialist\" text,\n \"social_democratic\" text,\n \"peoples_party\" text,\n \"green_communist\" text,\n \"left_bloc\" text,\n \"lead\" text\n);\n\nQuestion: What are all percentages of Left Block when there is a 28.7% Social Democratic?"
},
{
"role": "assistant",
"content": "SELECT \"left_bloc\" FROM \"116_seats_needed_for_a_majority\" WHERE \"social_democratic\"='28.7%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"116_seats_needed_for_a_majority\" (\n \"date_released\" text,\n \"polling_institute\" text,\n \"socialist\" text,\n \"social_democratic\" text,\n \"peoples_party\" text,\n \"green_communist\" text,\n \"left_bloc\" text,\n \"lead\" text\n);\n\nQuestion: If Socialist is at 46.1%, what are all percentages for social democratic?"
},
{
"role": "assistant",
"content": "SELECT \"social_democratic\" FROM \"116_seats_needed_for_a_majority\" WHERE \"socialist\"='46.1%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"116_seats_needed_for_a_majority\" (\n \"date_released\" text,\n \"polling_institute\" text,\n \"socialist\" text,\n \"social_democratic\" text,\n \"peoples_party\" text,\n \"green_communist\" text,\n \"left_bloc\" text,\n \"lead\" text\n);\n\nQuestion: How many percentages of Left Bloc correspond to a 32.1% Social Democratic?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"left_bloc\") FROM \"116_seats_needed_for_a_majority\" WHERE \"social_democratic\"='32.1%';"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the NFL team of the player whose college is Minnesota?"
},
{
"role": "assistant",
"content": "SELECT \"nfl_team\" FROM \"nfl_draft\" WHERE \"college\"='Minnesota';"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What college did the defensive back attend?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"nfl_draft\" WHERE \"position\"='Defensive Back';"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the pick number of the player whose college is Florida State?"
},
{
"role": "assistant",
"content": "SELECT \"pick_num\" 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 \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many colleges did pick number 269 attend?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"college\") FROM \"nfl_draft\" WHERE \"pick_num\"=269;"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many picks played Tight end?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pick_num\") FROM \"nfl_draft\" WHERE \"position\"='Tight End';"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the position of the player whose college is Western Kentucky?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"nfl_draft\" WHERE \"college\"='Western Kentucky';"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position does Robert Brooks play?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"position\") FROM \"nfl_draft\" WHERE \"player\"='Robert Brooks';"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which team does Robert Brooks play with?"
},
{
"role": "assistant",
"content": "SELECT \"nfl_team\" FROM \"nfl_draft\" WHERE \"player\"='Robert Brooks';"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which team picked from South Carolina college?"
},
{
"role": "assistant",
"content": "SELECT \"nfl_team\" FROM \"nfl_draft\" WHERE \"college\"='South Carolina';"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which college was the wide receiver whose pick was less than 130.0 picked from?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"nfl_draft\" WHERE \"position\"='Wide Receiver' AND \"pick_num\"<130.0;"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position(s) does the player drafted #34 play?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"nfl_draft\" WHERE \"pick_num\"=34;"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the highest pick number?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"pick_num\") FROM \"nfl_draft\";"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What number picked were players from arizona state picked?"
},
{
"role": "assistant",
"content": "SELECT \"pick_num\" FROM \"nfl_draft\" WHERE \"college\"='Arizona 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 \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What NFL team does player keith woodside play for?"
},
{
"role": "assistant",
"content": "SELECT \"nfl_team\" FROM \"nfl_draft\" WHERE \"player\"='Keith Woodside';"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what's the\u00a0player\u00a0with\u00a0college\u00a0being penn state"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"nfl_draft\" WHERE \"college\"='Penn 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 \"pick_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what's the\u00a0position\u00a0with\u00a0college\u00a0being usc"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"nfl_draft\" WHERE \"college\"='USC';"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: how many\u00a0college\u00a0with\u00a0player\u00a0being rich voltzke"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"college\") FROM \"nfl_draft\" WHERE \"player\"='Rich Voltzke';"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: what's the\u00a0college\u00a0with\u00a0position\u00a0being placekicker"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"nfl_draft\" WHERE \"position\"='Placekicker';"
}
]
|
[
{
"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_num\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: who is the the\u00a0player\u00a0where\u00a0pick #\u00a0is 64"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"nfl_draft\" WHERE \"pick_num\"=64;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14655917_1\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What day were the Denver Broncos the opponent?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"table1_14655917_1\" WHERE \"opponent\"='Denver Broncos';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14655917_1\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What day was the oppenent the detroit lions?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"table1_14655917_1\" WHERE \"opponent\"='Detroit Lions';"
}
]
|
[
{
"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 \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: List the record of 0-1 from the table?"
},
{
"role": "assistant",
"content": "SELECT \"week\" FROM \"schedule\" WHERE \"record\"='0-1';"
}
]
|
[
{
"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 \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: Type the record details if any result has L 3-6 in it?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"result\"='L 3-6';"
}
]
|
[
{
"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 \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: Find the least value of attendance?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"attendance\") FROM \"schedule\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"opponent\" text,\n \"result\" text,\n \"stadium\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: type the attendance for playing with tampa bay buccaneers?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"opponent\"='Tampa Bay Buccaneers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_federal_taxation_and_spending_b\" (\n \"rank\" real,\n \"state\" text,\n \"revenue_millions\" text,\n \"population\" real,\n \"revenue_per_capita\" text,\n \"spending_millions\" text,\n \"spending_per_capita\" text,\n \"net_contribution_per_capita\" text,\n \"presidential_majority_2000_2004\" text,\n \"presidential_majority_2008\" text,\n \"presidential_majority_2012\" text,\n \"obamacare_fed_state_partnership\" text\n);\n\nQuestion: How many times was obamacare: fed/ state/ partnership recorded for Louisiana?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"obamacare_fed_state_partnership\") FROM \"table_of_federal_taxation_and_spending_b\" WHERE \"state\"='Louisiana';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_federal_taxation_and_spending_b\" (\n \"rank\" real,\n \"state\" text,\n \"revenue_millions\" text,\n \"population\" real,\n \"revenue_per_capita\" text,\n \"spending_millions\" text,\n \"spending_per_capita\" text,\n \"net_contribution_per_capita\" text,\n \"presidential_majority_2000_2004\" text,\n \"presidential_majority_2008\" text,\n \"presidential_majority_2012\" text,\n \"obamacare_fed_state_partnership\" text\n);\n\nQuestion: How many numbers were recorded under revenue when revenue per capita was $6,126?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"revenue_millions\") FROM \"table_of_federal_taxation_and_spending_b\" WHERE \"revenue_per_capita\"='$6,126';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_federal_taxation_and_spending_b\" (\n \"rank\" real,\n \"state\" text,\n \"revenue_millions\" text,\n \"population\" real,\n \"revenue_per_capita\" text,\n \"spending_millions\" text,\n \"spending_per_capita\" text,\n \"net_contribution_per_capita\" text,\n \"presidential_majority_2000_2004\" text,\n \"presidential_majority_2008\" text,\n \"presidential_majority_2012\" text,\n \"obamacare_fed_state_partnership\" text\n);\n\nQuestion: How many times was presidential majority 2000/2004 recorded when obamacare: fed/ state/ partnership was Utah shop?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"presidential_majority_2000_2004\") FROM \"table_of_federal_taxation_and_spending_b\" WHERE \"obamacare_fed_state_partnership\"='Utah shop';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_federal_taxation_and_spending_b\" (\n \"rank\" real,\n \"state\" text,\n \"revenue_millions\" text,\n \"population\" real,\n \"revenue_per_capita\" text,\n \"spending_millions\" text,\n \"spending_per_capita\" text,\n \"net_contribution_per_capita\" text,\n \"presidential_majority_2000_2004\" text,\n \"presidential_majority_2008\" text,\n \"presidential_majority_2012\" text,\n \"obamacare_fed_state_partnership\" text\n);\n\nQuestion: What was the spending per capita when the revenue per capita was $7,755?"
},
{
"role": "assistant",
"content": "SELECT \"spending_per_capita\" FROM \"table_of_federal_taxation_and_spending_b\" WHERE \"revenue_per_capita\"='$7,755';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_federal_taxation_and_spending_b\" (\n \"rank\" real,\n \"state\" text,\n \"revenue_millions\" text,\n \"population\" real,\n \"revenue_per_capita\" text,\n \"spending_millions\" text,\n \"spending_per_capita\" text,\n \"net_contribution_per_capita\" text,\n \"presidential_majority_2000_2004\" text,\n \"presidential_majority_2008\" text,\n \"presidential_majority_2012\" text,\n \"obamacare_fed_state_partnership\" text\n);\n\nQuestion: What was the recorded result under presidential majority 2000/2004 when the presiditial majority in 2012 was non-voting?"
},
{
"role": "assistant",
"content": "SELECT \"presidential_majority_2000_2004\" FROM \"table_of_federal_taxation_and_spending_b\" WHERE \"presidential_majority_2012\"='Non-voting';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_federal_taxation_and_spending_b\" (\n \"rank\" real,\n \"state\" text,\n \"revenue_millions\" text,\n \"population\" real,\n \"revenue_per_capita\" text,\n \"spending_millions\" text,\n \"spending_per_capita\" text,\n \"net_contribution_per_capita\" text,\n \"presidential_majority_2000_2004\" text,\n \"presidential_majority_2008\" text,\n \"presidential_majority_2012\" text,\n \"obamacare_fed_state_partnership\" text\n);\n\nQuestion: How many times was revenue in millions recorded when the spending per capita was $6,736?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"revenue_millions\") FROM \"table_of_federal_taxation_and_spending_b\" WHERE \"spending_per_capita\"='$6,736';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1467951_4\" (\n \"dvd_name\" text,\n \"ep_no\" real,\n \"dvd_no\" real,\n \"release_date\" real,\n \"additional_information\" text\n);\n\nQuestion: What is the largest number of DVDs?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"dvd_no\") FROM \"table1_1467951_4\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1467951_4\" (\n \"dvd_name\" text,\n \"ep_no\" real,\n \"dvd_no\" real,\n \"release_date\" real,\n \"additional_information\" text\n);\n\nQuestion: What is the highest number of episodes?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"ep_no\") FROM \"table1_1467951_4\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1467951_4\" (\n \"dvd_name\" text,\n \"ep_no\" real,\n \"dvd_no\" real,\n \"release_date\" real,\n \"additional_information\" text\n);\n\nQuestion: What is the most recent release date?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"release_date\") FROM \"table1_1467951_4\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1467951_4\" (\n \"dvd_name\" text,\n \"ep_no\" real,\n \"dvd_no\" real,\n \"release_date\" real,\n \"additional_information\" text\n);\n\nQuestion: How many release dates does volume 4 DVD have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"release_date\") FROM \"table1_1467951_4\" WHERE \"dvd_name\"='Volume 4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"running_timetables\" (\n \"no\" real,\n \"station_code\" text,\n \"station\" text,\n \"arrival\" text,\n \"departure\" text,\n \"kilometers\" real,\n \"day\" real\n);\n\nQuestion: what is the arrival time for no. 14?"
},
{
"role": "assistant",
"content": "SELECT \"arrival\" FROM \"running_timetables\" WHERE \"no\"=14;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"running_timetables\" (\n \"no\" real,\n \"station_code\" text,\n \"station\" text,\n \"arrival\" text,\n \"departure\" text,\n \"kilometers\" real,\n \"day\" real\n);\n\nQuestion: what is the arrival time where the station code is awy?"
},
{
"role": "assistant",
"content": "SELECT \"arrival\" FROM \"running_timetables\" WHERE \"station_code\"='AWY';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"running_timetables\" (\n \"no\" real,\n \"station_code\" text,\n \"station\" text,\n \"arrival\" text,\n \"departure\" text,\n \"kilometers\" real,\n \"day\" real\n);\n\nQuestion: what amount of stations have station code is awy?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"station\") FROM \"running_timetables\" WHERE \"station_code\"='AWY';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"running_timetables\" (\n \"no\" real,\n \"station_code\" text,\n \"station\" text,\n \"arrival\" text,\n \"departure\" text,\n \"kilometers\" real,\n \"day\" real\n);\n\nQuestion: what is the arrival time where station code is pnvl?"
},
{
"role": "assistant",
"content": "SELECT \"arrival\" FROM \"running_timetables\" WHERE \"station_code\"='PNVL';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1470706_1\" (\n \"station_name\" text,\n \"2002_03\" real,\n \"2004_05\" real,\n \"2005_06\" real,\n \"2006_07\" real,\n \"2007_08\" real,\n \"2008_09\" real,\n \"2009_10\" real,\n \"2010_11\" real,\n \"2011_12\" real\n);\n\nQuestion: Which stations had volume of 5088 in 2004-05?"
},
{
"role": "assistant",
"content": "SELECT \"station_name\" FROM \"table1_1470706_1\" WHERE \"2004_05\"=5088;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1470706_1\" (\n \"station_name\" text,\n \"2002_03\" real,\n \"2004_05\" real,\n \"2005_06\" real,\n \"2006_07\" real,\n \"2007_08\" real,\n \"2008_09\" real,\n \"2009_10\" real,\n \"2010_11\" real,\n \"2011_12\" real\n);\n\nQuestion: How many stations in 2011-12 had volume of 11580 in 2008-09?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"2011_12\") FROM \"table1_1470706_1\" WHERE \"2008_09\"=11580;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1470706_1\" (\n \"station_name\" text,\n \"2002_03\" real,\n \"2004_05\" real,\n \"2005_06\" real,\n \"2006_07\" real,\n \"2007_08\" real,\n \"2008_09\" real,\n \"2009_10\" real,\n \"2010_11\" real,\n \"2011_12\" real\n);\n\nQuestion: What was the least volume recorded in 2011-12 when 2008-09 had 21652?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"2011_12\") FROM \"table1_1470706_1\" WHERE \"2008_09\"=21652;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_official_appearances\" (\n \"ranking\" real,\n \"nationality\" text,\n \"name\" text,\n \"position\" text,\n \"years\" text,\n \"league\" real,\n \"cup\" real,\n \"europe\" real,\n \"others\" real,\n \"total\" real\n);\n\nQuestion: How many years was the total 402?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"years\") FROM \"most_official_appearances\" WHERE \"total\"=402;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text\n);\n\nQuestion: Who won the young rider classification in Stage 9 where the mountain classification was Emanuele Sella?"
},
{
"role": "assistant",
"content": "SELECT \"young_rider_classification\" FROM \"classification_leadership\" WHERE \"mountains_classification\"='Emanuele Sella' AND \"stage\"=9;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text\n);\n\nQuestion: Who is the general classification leader for stage 3?"
},
{
"role": "assistant",
"content": "SELECT \"general_classification\" FROM \"classification_leadership\" WHERE \"stage\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text\n);\n\nQuestion: Who won the points classifications in the stage where Matteo Priamo was the winner?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points_classification\") FROM \"classification_leadership\" WHERE \"winner\"='Matteo Priamo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text\n);\n\nQuestion: Who was awarded the young ride classification leader when the winner was Marzio Bruseghin?"
},
{
"role": "assistant",
"content": "SELECT \"young_rider_classification\" FROM \"classification_leadership\" WHERE \"winner\"='Marzio Bruseghin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_14724369_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Which title did Neil Affleck direct?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_14724369_1\" WHERE \"directed_by\"='Neil Affleck';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.