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 \"race_calendar\" (\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What is Winner, when City / State is \"Mallala , South Australia\", and when Team is \"Elfin Sports Cars\"?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"race_calendar\" WHERE \"city_state\"='mallala , south australia' AND \"team\"='elfin sports cars';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What is Circuit, when Team is \"R.J.MacArthur Onslow\", and when City / State is \"Sydney , New South Wales\"?"
},
{
"role": "assistant",
"content": "SELECT \"circuit\" FROM \"race_calendar\" WHERE \"team\"='r.j.macarthur onslow' AND \"city_state\"='sydney , new south wales';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What is Winner, when Team is \"R.J.MacArthur Onslow\", and when Circuit is \"Oran Park Raceway\"?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"race_calendar\" WHERE \"team\"='r.j.macarthur onslow' AND \"circuit\"='oran park raceway';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What is Date, when City / State is \"Mallala , South Australia\", and when Team is \"R.J.MacArthur Onslow\"?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"race_calendar\" WHERE \"city_state\"='mallala , south australia' AND \"team\"='r.j.macarthur onslow';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"circuit\" text,\n \"city_state\" text,\n \"date\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What is Winner, when Date is \"20 August\"?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"race_calendar\" WHERE \"date\"='20 august';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"2006_07_pts\" text,\n \"2007_08_pts\" text,\n \"2008_09_pts\" real,\n \"total_pts\" real,\n \"total_pld\" real\n);\n\nQuestion: What is the total number of points with less than 49 points in 2008-09, and 46 points in 2006-07?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total_pts\") FROM \"relegation\" WHERE \"2008_09_pts\"<49 AND \"2006_07_pts\"='46';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"2006_07_pts\" text,\n \"2007_08_pts\" text,\n \"2008_09_pts\" real,\n \"total_pts\" real,\n \"total_pld\" real\n);\n\nQuestion: What is the total pld that has 36 points in 2007-08, and less than 55 points in 2008-09?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"total_pld\") FROM \"relegation\" WHERE \"2007_08_pts\"='36' AND \"2008_09_pts\"<55;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"relegation\" (\n \"team\" text,\n \"2006_07_pts\" text,\n \"2007_08_pts\" text,\n \"2008_09_pts\" real,\n \"total_pts\" real,\n \"total_pld\" real\n);\n\nQuestion: What is the lowest total pld with 57 points in 2006-07, and more than 39 points in 2008-09"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total_pld\") FROM \"relegation\" WHERE \"2006_07_pts\"='57' AND \"2008_09_pts\">39;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"for_actors_in_woody_allen_films\" (\n \"year\" real,\n \"film\" text,\n \"result\" text,\n \"category\" text,\n \"actor\" text\n);\n\nQuestion: What actor was nominated for best actress?"
},
{
"role": "assistant",
"content": "SELECT \"actor\" FROM \"for_actors_in_woody_allen_films\" WHERE \"result\"='nominated' AND \"category\"='best actress';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"for_actors_in_woody_allen_films\" (\n \"year\" real,\n \"film\" text,\n \"result\" text,\n \"category\" text,\n \"actor\" text\n);\n\nQuestion: What year was Jennifer Tilly's Film of Bullets Over Broadway up in the best supporting actress category?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"for_actors_in_woody_allen_films\" WHERE \"film\"='bullets over broadway' AND \"category\"='best supporting actress' AND \"actor\"='jennifer tilly';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"for_actors_in_woody_allen_films\" (\n \"year\" real,\n \"film\" text,\n \"result\" text,\n \"category\" text,\n \"actor\" text\n);\n\nQuestion: What is the result of Samantha Morton being up for best supporting actress in a year later than 1989?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"for_actors_in_woody_allen_films\" WHERE \"year\">1989 AND \"category\"='best supporting actress' AND \"actor\"='samantha morton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"for_actors_in_woody_allen_films\" (\n \"year\" real,\n \"film\" text,\n \"result\" text,\n \"category\" text,\n \"actor\" text\n);\n\nQuestion: What film was Dianne Wiest in?"
},
{
"role": "assistant",
"content": "SELECT \"film\" FROM \"for_actors_in_woody_allen_films\" WHERE \"actor\"='dianne wiest';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tank_locomotives\" (\n \"class\" text,\n \"number_s\" text,\n \"quantity\" real,\n \"year_s_of_manufacture\" text,\n \"type\" text\n);\n\nQuestion: Which class has fewer than 10 and number(s) names?"
},
{
"role": "assistant",
"content": "SELECT \"class\" FROM \"tank_locomotives\" WHERE \"quantity\"<10 AND \"number_s\"='names';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tank_locomotives\" (\n \"class\" text,\n \"number_s\" text,\n \"quantity\" real,\n \"year_s_of_manufacture\" text,\n \"type\" text\n);\n\nQuestion: What is the type with a quantity of fewer than 6 and number(s) 5201?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"tank_locomotives\" WHERE \"quantity\"<6 AND \"number_s\"='5201';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1969_as_three_leagues_come_together\" (\n \"glenelg_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: How many byes were then when there were less than 737 against?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"byes\") FROM \"1969_as_three_leagues_come_together\" WHERE \"against\"<737;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1969_as_three_leagues_come_together\" (\n \"glenelg_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: How many wins were there when the byes were more than 3?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"wins\") FROM \"1969_as_three_leagues_come_together\" WHERE \"byes\">3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1969_as_three_leagues_come_together\" (\n \"glenelg_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: How many wins were there when draws were more than 0?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"wins\") FROM \"1969_as_three_leagues_come_together\" WHERE \"draws\">0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1969_as_three_leagues_come_together\" (\n \"glenelg_fl\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: How many wins did Glenelg FL of bahgallah have when there were more than 3 byes?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"wins\") FROM \"1969_as_three_leagues_come_together\" WHERE \"glenelg_fl\"='bahgallah' AND \"byes\">3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wins_15\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: What is Date, when Opponent in Final is \"Guy Forget\"?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"wins_15\" WHERE \"opponent_in_final\"='guy forget';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wins_15\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: What is Opponent in Final, when Date is \"13 January 1992\"?"
},
{
"role": "assistant",
"content": "SELECT \"opponent_in_final\" FROM \"wins_15\" WHERE \"date\"='13 january 1992';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wins_15\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_final\" text,\n \"score_in_final\" text\n);\n\nQuestion: What is Opponent in Final, when Surface is \"Hard\", and when Date is \"13 January 1992\"?"
},
{
"role": "assistant",
"content": "SELECT \"opponent_in_final\" FROM \"wins_15\" WHERE \"surface\"='hard' AND \"date\"='13 january 1992';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"australia\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is the Height of the Player with a Date of Birth of 1979-06-12?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"australia\" WHERE \"date_of_birth\"='1979-06-12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"australia\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is the Height of the Player with a Date of Birth of 1982-07-05?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"australia\" WHERE \"date_of_birth\"='1982-07-05';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"australia\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is the Height of the Player with a Date of Birth of 1982-07-05?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"australia\" WHERE \"date_of_birth\"='1982-07-05';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"australia\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is the Weight of the Player with a Date of Birth of 1979-09-26?"
},
{
"role": "assistant",
"content": "SELECT \"weight\" FROM \"australia\" WHERE \"date_of_birth\"='1979-09-26';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"australia\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is Elise Norwood's Pos.?"
},
{
"role": "assistant",
"content": "SELECT \"pos\" FROM \"australia\" WHERE \"name\"='elise norwood';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"australia\" (\n \"name\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"club\" text\n);\n\nQuestion: What is the Club of the Player with a Date of Birth of 1977-02-03?"
},
{
"role": "assistant",
"content": "SELECT \"club\" FROM \"australia\" WHERE \"date_of_birth\"='1977-02-03';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tsv_1860_munich_versus_sp_vgg_unterhachi\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What home has 1-5 as the away?"
},
{
"role": "assistant",
"content": "SELECT \"home\" FROM \"tsv_1860_munich_versus_sp_vgg_unterhachi\" WHERE \"away\"='1-5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tsv_1860_munich_versus_sp_vgg_unterhachi\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What league has 2-3 as the away?"
},
{
"role": "assistant",
"content": "SELECT \"league\" FROM \"tsv_1860_munich_versus_sp_vgg_unterhachi\" WHERE \"away\"='2-3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tsv_1860_munich_versus_sp_vgg_unterhachi\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What away has 1-4 as the home?"
},
{
"role": "assistant",
"content": "SELECT \"away\" FROM \"tsv_1860_munich_versus_sp_vgg_unterhachi\" WHERE \"home\"='1-4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tsv_1860_munich_versus_sp_vgg_unterhachi\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What teams has 1-5 as the away?"
},
{
"role": "assistant",
"content": "SELECT \"teams\" FROM \"tsv_1860_munich_versus_sp_vgg_unterhachi\" WHERE \"away\"='1-5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"date\" text,\n \"series\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: What Date had a Series of ATCC Round 6?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"race_calendar\" WHERE \"series\"='atcc round 6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race_calendar\" (\n \"date\" text,\n \"series\" text,\n \"circuit\" text,\n \"city_state\" text,\n \"winner\" text,\n \"team\" text\n);\n\nQuestion: Who was the Winner in the AMC Round 4 at Lakeside International Raceway?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"race_calendar\" WHERE \"circuit\"='lakeside international raceway' AND \"series\"='amc round 4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bcs_standings\" (\n \"week_9_oct_29\" text,\n \"week_10_nov_5\" text,\n \"week_11_nov_12\" text,\n \"week_12_nov_19\" text,\n \"week_13_nov_26\" text,\n \"week_14_dec_3\" text,\n \"week_15_final_dec_9\" text\n);\n\nQuestion: What is the week 15 result for the team that had a week 9 result of Washington (6-1)?"
},
{
"role": "assistant",
"content": "SELECT \"week_15_final_dec_9\" FROM \"bcs_standings\" WHERE \"week_9_oct_29\"='washington (6-1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bcs_standings\" (\n \"week_9_oct_29\" text,\n \"week_10_nov_5\" text,\n \"week_11_nov_12\" text,\n \"week_12_nov_19\" text,\n \"week_13_nov_26\" text,\n \"week_14_dec_3\" text,\n \"week_15_final_dec_9\" text\n);\n\nQuestion: What is the week 10 result for the tean when the week 15 result is Illinois (10-1)?"
},
{
"role": "assistant",
"content": "SELECT \"week_10_nov_5\" FROM \"bcs_standings\" WHERE \"week_15_final_dec_9\"='illinois (10-1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bcs_standings\" (\n \"week_9_oct_29\" text,\n \"week_10_nov_5\" text,\n \"week_11_nov_12\" text,\n \"week_12_nov_19\" text,\n \"week_13_nov_26\" text,\n \"week_14_dec_3\" text,\n \"week_15_final_dec_9\" text\n);\n\nQuestion: What is the week 10 result where the week 9 result was Dropped: Maryland South Carolina?"
},
{
"role": "assistant",
"content": "SELECT \"week_10_nov_5\" FROM \"bcs_standings\" WHERE \"week_9_oct_29\"='dropped: maryland south carolina';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bcs_standings\" (\n \"week_9_oct_29\" text,\n \"week_10_nov_5\" text,\n \"week_11_nov_12\" text,\n \"week_12_nov_19\" text,\n \"week_13_nov_26\" text,\n \"week_14_dec_3\" text,\n \"week_15_final_dec_9\" text\n);\n\nQuestion: What is the week 13 result where the week 14 resulted in Maryland (10-1)?"
},
{
"role": "assistant",
"content": "SELECT \"week_13_nov_26\" FROM \"bcs_standings\" WHERE \"week_14_dec_3\"='maryland (10-1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bcs_standings\" (\n \"week_9_oct_29\" text,\n \"week_10_nov_5\" text,\n \"week_11_nov_12\" text,\n \"week_12_nov_19\" text,\n \"week_13_nov_26\" text,\n \"week_14_dec_3\" text,\n \"week_15_final_dec_9\" text\n);\n\nQuestion: What happened in week 14 when week 11's result was Michigan (7-2)?"
},
{
"role": "assistant",
"content": "SELECT \"week_14_dec_3\" FROM \"bcs_standings\" WHERE \"week_11_nov_12\"='michigan (7-2)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bcs_standings\" (\n \"week_9_oct_29\" text,\n \"week_10_nov_5\" text,\n \"week_11_nov_12\" text,\n \"week_12_nov_19\" text,\n \"week_13_nov_26\" text,\n \"week_14_dec_3\" text,\n \"week_15_final_dec_9\" text\n);\n\nQuestion: What happened in week 12 when week 13 resulted in Tennessee (9-1)?"
},
{
"role": "assistant",
"content": "SELECT \"week_12_nov_19\" FROM \"bcs_standings\" WHERE \"week_13_nov_26\"='tennessee (9-1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the fewest bronze medals when the total medals is less than 10, and the gold medals less than 0?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"bronze\") FROM \"medal_table\" WHERE \"total\"<10 AND \"gold\"<0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: With 8 as the rank, and a total of more than 2 medals what is the average bronze medals?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"bronze\") FROM \"medal_table\" WHERE \"rank\"='8' AND \"total\">2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the maximum total medals when the rank is 8?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"total\") FROM \"medal_table\" WHERE \"rank\"='8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the largest number of gold medals when the bronze medals is less than 49, and there is 22 silver medals, and the total is less than 60?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"gold\") FROM \"medal_table\" WHERE \"bronze\"<49 AND \"silver\"=22 AND \"total\"<60;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: When the number of gold medals is greater than 59, and the rank is total, what is the average bronze medals?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"bronze\") FROM \"medal_table\" WHERE \"rank\"='total' AND \"gold\">59;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances_by_nation\" (\n \"rank\" real,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the smallest number of medals a country with more than 14 silver has?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total\") FROM \"performances_by_nation\" WHERE \"silver\">14;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances_by_nation\" (\n \"rank\" real,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the rank of a country with more than 2 gold, less than 5 silver, and less than 31 total medals?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"rank\") FROM \"performances_by_nation\" WHERE \"gold\">2 AND \"total\"<31 AND \"silver\"<5;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: WHat was the score for Phil Mickelson when he placed t3?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"second_round\" WHERE \"place\"='t3' AND \"player\"='phil mickelson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What place did the golfer take whose country is South Africa?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"second_round\" WHERE \"country\"='south africa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the result of the game played at Jeppesen Stadium?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"regular_season\" WHERE \"game_site\"='jeppesen stadium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What week was the game played on November 12, 1961, with an attendance of 7,859 played?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"week\") FROM \"regular_season\" WHERE \"date\"='november 12, 1961' AND \"attendance\"<'7,859';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"song_title\" text,\n \"artist\" text,\n \"decade\" text,\n \"genre\" text,\n \"exportable\" text\n);\n\nQuestion: What decade is the artist the replacements?"
},
{
"role": "assistant",
"content": "SELECT \"decade\" FROM \"track_listing\" WHERE \"artist\"='the replacements';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"new_york_counties_ranked_by_per_capita_i\" (\n \"county\" text,\n \"per_capita_income\" text,\n \"median_household_income\" text,\n \"median_family_income\" text,\n \"population\" real,\n \"number_of_households\" real\n);\n\nQuestion: What is the number of households in the county with median income of $65,240 and population greater than 744,344?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"number_of_households\") FROM \"new_york_counties_ranked_by_per_capita_i\" WHERE \"median_family_income\"='$65,240' AND \"population\">'744,344';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"new_york_counties_ranked_by_per_capita_i\" (\n \"county\" text,\n \"per_capita_income\" text,\n \"median_household_income\" text,\n \"median_family_income\" text,\n \"population\" real,\n \"number_of_households\" real\n);\n\nQuestion: What is the population of Tioga county?"
},
{
"role": "assistant",
"content": "SELECT \"population\" FROM \"new_york_counties_ranked_by_per_capita_i\" WHERE \"county\"='tioga';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"race\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: Which Constructor has Laps larger than 9, and a Grid smaller than 2?"
},
{
"role": "assistant",
"content": "SELECT \"constructor\" FROM \"race\" WHERE \"laps\">9 AND \"grid\"<2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fiba_world_olympic_qualifying_tournament\" (\n \"player\" text,\n \"height\" real,\n \"position\" text,\n \"year_born_age\" text,\n \"current_club\" text\n);\n\nQuestion: What's filiberto rivera's height?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"height\") FROM \"fiba_world_olympic_qualifying_tournament\" WHERE \"player\"='filiberto rivera';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fiba_world_olympic_qualifying_tournament\" (\n \"player\" text,\n \"height\" real,\n \"position\" text,\n \"year_born_age\" text,\n \"current_club\" text\n);\n\nQuestion: Who has a position of sg?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"fiba_world_olympic_qualifying_tournament\" WHERE \"position\"='sg';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fiba_world_olympic_qualifying_tournament\" (\n \"player\" text,\n \"height\" real,\n \"position\" text,\n \"year_born_age\" text,\n \"current_club\" text\n);\n\nQuestion: Who has a height of 2.16?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"fiba_world_olympic_qualifying_tournament\" WHERE \"height\"=2.16;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fiba_world_olympic_qualifying_tournament\" (\n \"player\" text,\n \"height\" real,\n \"position\" text,\n \"year_born_age\" text,\n \"current_club\" text\n);\n\nQuestion: What's the tallest height for c position in current club unicaja malaga?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"height\") FROM \"fiba_world_olympic_qualifying_tournament\" WHERE \"position\"='c' AND \"current_club\"='unicaja malaga';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What was the attendance when the Southend United was the home team?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"first_round_proper\" WHERE \"home_team\"='southend united';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: Who was the away team that played Northampton Town at home with a tie number of replay?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"first_round_proper\" WHERE \"tie_no\"='replay' AND \"home_team\"='northampton town';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_titles_2\" (\n \"outcome\" text,\n \"date\" real,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: Which Outcome has an Opponent in the final of simone colombo?"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"singles_titles_2\" WHERE \"opponent_in_the_final\"='simone colombo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"evolution_of_symbols\" (\n \"binary\" real,\n \"octal\" real,\n \"decimal\" real,\n \"hexadecimal\" real,\n \"glyph\" real\n);\n\nQuestion: What is the sum of the glyph with a binary less than 111001, an octal less than 65, and a hexadecimal less than 30?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"glyph\") FROM \"evolution_of_symbols\" WHERE \"binary\"<111001 AND \"octal\"<65 AND \"hexadecimal\"<30;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"evolution_of_symbols\" (\n \"binary\" real,\n \"octal\" real,\n \"decimal\" real,\n \"hexadecimal\" real,\n \"glyph\" real\n);\n\nQuestion: What is the average hexadecimal with a decimal less than 53, an octal less than 61, and a glyph greater than 0?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"hexadecimal\") FROM \"evolution_of_symbols\" WHERE \"decimal\"<53 AND \"octal\"<61 AND \"glyph\">0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"evolution_of_symbols\" (\n \"binary\" real,\n \"octal\" real,\n \"decimal\" real,\n \"hexadecimal\" real,\n \"glyph\" real\n);\n\nQuestion: What is the lowest octal with a 30 hexadecimal and less than 0 glyphs?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"octal\") FROM \"evolution_of_symbols\" WHERE \"hexadecimal\"=30 AND \"glyph\"<0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"evolution_of_symbols\" (\n \"binary\" real,\n \"octal\" real,\n \"decimal\" real,\n \"hexadecimal\" real,\n \"glyph\" real\n);\n\nQuestion: What is the average hexadecimal with a decimal greater than 57?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"hexadecimal\") FROM \"evolution_of_symbols\" WHERE \"decimal\">57;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"evolution_of_symbols\" (\n \"binary\" real,\n \"octal\" real,\n \"decimal\" real,\n \"hexadecimal\" real,\n \"glyph\" real\n);\n\nQuestion: What is the average decimal with a 110010 binary and a glyph greater than 2?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"decimal\") FROM \"evolution_of_symbols\" WHERE \"binary\"=110010 AND \"glyph\">2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"evolution_of_symbols\" (\n \"binary\" real,\n \"octal\" real,\n \"decimal\" real,\n \"hexadecimal\" real,\n \"glyph\" real\n);\n\nQuestion: What is the sum of the glyph with a 38 hexadecimal and a binary less than 111000?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"glyph\") FROM \"evolution_of_symbols\" WHERE \"hexadecimal\"=38 AND \"binary\"<111000;"
}
]
|
[
{
"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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the record in the game where the opponent wasd the atlanta falcons?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule\" WHERE \"opponent\"='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 \"game_site\" text,\n \"record\" text,\n \"attendance\" real\n);\n\nQuestion: What was the highest attendance at a game that was played in tulane stadium?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"schedule\" WHERE \"game_site\"='tulane stadium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"appearances_in_the_tour_de_france\" (\n \"year\" real,\n \"stage\" real,\n \"category\" real,\n \"start\" text,\n \"finish\" text,\n \"leader_at_the_summit\" text\n);\n\nQuestion: What is the category for the year when Brioude started and the stage is less than 7?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"category\") FROM \"appearances_in_the_tour_de_france\" WHERE \"start\"='brioude' AND \"stage\"<7;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"appearances_in_the_tour_de_france\" (\n \"year\" real,\n \"stage\" real,\n \"category\" real,\n \"start\" text,\n \"finish\" text,\n \"leader_at_the_summit\" text\n);\n\nQuestion: What is the stage number when the category is less than 1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"stage\") FROM \"appearances_in_the_tour_de_france\" WHERE \"category\"<1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fc_bayern_munich_versus_tsv_1860_munich\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: For the 1948-49 season, what was the At Home record?"
},
{
"role": "assistant",
"content": "SELECT \"home\" FROM \"fc_bayern_munich_versus_tsv_1860_munich\" WHERE \"season\"='1948-49';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fc_bayern_munich_versus_tsv_1860_munich\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: In which season was the Away record 2-2 and At Home record 1-0?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"fc_bayern_munich_versus_tsv_1860_munich\" WHERE \"away\"='2-2' AND \"home\"='1-0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fc_bayern_munich_versus_tsv_1860_munich\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: In the 1958-59 season, what league did the team play in?"
},
{
"role": "assistant",
"content": "SELECT \"league\" FROM \"fc_bayern_munich_versus_tsv_1860_munich\" WHERE \"season\"='1958-59';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fc_bayern_munich_versus_tsv_1860_munich\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What team played in the Bundesliga league with an Away record of 2-1?"
},
{
"role": "assistant",
"content": "SELECT \"teams\" FROM \"fc_bayern_munich_versus_tsv_1860_munich\" WHERE \"league\"='bundesliga' AND \"away\"='2-1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fc_bayern_munich_versus_tsv_1860_munich\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: What team(s) played in the 1995-96 season?"
},
{
"role": "assistant",
"content": "SELECT \"teams\" FROM \"fc_bayern_munich_versus_tsv_1860_munich\" WHERE \"season\"='1995-96';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fc_bayern_munich_versus_tsv_1860_munich\" (\n \"season\" text,\n \"league\" text,\n \"teams\" text,\n \"home\" text,\n \"away\" text\n);\n\nQuestion: Playing in the Bundesliga league, what was the Away record for the team with an At Home record of 1-2?"
},
{
"role": "assistant",
"content": "SELECT \"away\" FROM \"fc_bayern_munich_versus_tsv_1860_munich\" WHERE \"home\"='1-2' AND \"league\"='bundesliga';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"week_5_august_6_and_7_2008\" (\n \"main_contestant\" text,\n \"co_contestant_yaar_vs_pyaar\" text,\n \"date_performed\" text,\n \"scores_by_each_individual_judge\" text,\n \"total_score_week\" text,\n \"position\" text,\n \"status\" text\n);\n\nQuestion: Which Date performed has a Main contestant of karanvir bohra?"
},
{
"role": "assistant",
"content": "SELECT \"date_performed\" FROM \"week_5_august_6_and_7_2008\" WHERE \"main_contestant\"='karanvir bohra';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"week_5_august_6_and_7_2008\" (\n \"main_contestant\" text,\n \"co_contestant_yaar_vs_pyaar\" text,\n \"date_performed\" text,\n \"scores_by_each_individual_judge\" text,\n \"total_score_week\" text,\n \"position\" text,\n \"status\" text\n);\n\nQuestion: Which Date performed has a Position of bottom 3, and Scores by each individual judge of 5 + 5 + 4 = 14?"
},
{
"role": "assistant",
"content": "SELECT \"date_performed\" FROM \"week_5_august_6_and_7_2008\" WHERE \"position\"='bottom 3' AND \"scores_by_each_individual_judge\"='5 + 5 + 4 = 14';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"week_5_august_6_and_7_2008\" (\n \"main_contestant\" text,\n \"co_contestant_yaar_vs_pyaar\" text,\n \"date_performed\" text,\n \"scores_by_each_individual_judge\" text,\n \"total_score_week\" text,\n \"position\" text,\n \"status\" text\n);\n\nQuestion: Which Status has a Co-contestant (Yaar vs. Pyaar) of tina sachdev?"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"week_5_august_6_and_7_2008\" WHERE \"co_contestant_yaar_vs_pyaar\"='tina sachdev';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"week_5_august_6_and_7_2008\" (\n \"main_contestant\" text,\n \"co_contestant_yaar_vs_pyaar\" text,\n \"date_performed\" text,\n \"scores_by_each_individual_judge\" text,\n \"total_score_week\" text,\n \"position\" text,\n \"status\" text\n);\n\nQuestion: Which Status has a Co-contestant (Yaar vs. Pyaar) of tina parekh?"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"week_5_august_6_and_7_2008\" WHERE \"co_contestant_yaar_vs_pyaar\"='tina parekh';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"week_5_august_6_and_7_2008\" (\n \"main_contestant\" text,\n \"co_contestant_yaar_vs_pyaar\" text,\n \"date_performed\" text,\n \"scores_by_each_individual_judge\" text,\n \"total_score_week\" text,\n \"position\" text,\n \"status\" text\n);\n\nQuestion: Which Total score/week has a Status of eliminated, and Scores by each individual judge of 5 + 5 + 4 = 14?"
},
{
"role": "assistant",
"content": "SELECT \"total_score_week\" FROM \"week_5_august_6_and_7_2008\" WHERE \"status\"='eliminated' AND \"scores_by_each_individual_judge\"='5 + 5 + 4 = 14';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"week_5_august_6_and_7_2008\" (\n \"main_contestant\" text,\n \"co_contestant_yaar_vs_pyaar\" text,\n \"date_performed\" text,\n \"scores_by_each_individual_judge\" text,\n \"total_score_week\" text,\n \"position\" text,\n \"status\" text\n);\n\nQuestion: Which Scores by each individual judge has a Date performed of august 7, and a Main contestant of karanvir bohra?"
},
{
"role": "assistant",
"content": "SELECT \"scores_by_each_individual_judge\" FROM \"week_5_august_6_and_7_2008\" WHERE \"date_performed\"='august 7' AND \"main_contestant\"='karanvir bohra';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"out\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text\n);\n\nQuestion: Who is moving to Triestina?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"out\" WHERE \"moving_to\"='triestina';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"out\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text\n);\n\nQuestion: What is the transfer window of the player moving to Panionios?"
},
{
"role": "assistant",
"content": "SELECT \"transfer_window\" FROM \"out\" WHERE \"moving_to\"='panionios';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"out\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text\n);\n\nQuestion: What is the type for the Panionios moving to?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"out\" WHERE \"moving_to\"='panionios';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"out\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text\n);\n\nQuestion: Where is the nationality of Arg Esp moving to?"
},
{
"role": "assistant",
"content": "SELECT \"moving_to\" FROM \"out\" WHERE \"nat\"='arg esp';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"out\" (\n \"nat\" text,\n \"name\" text,\n \"moving_to\" text,\n \"type\" text,\n \"transfer_window\" text\n);\n\nQuestion: Who is moving to Chelsea on loan?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"out\" WHERE \"type\"='loan' AND \"moving_to\"='chelsea';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"closed_and_aborted_television_providers\" (\n \"provider\" text,\n \"years\" text,\n \"free_or_pay\" text,\n \"no_of_channels\" text,\n \"colour\" text,\n \"digital\" text,\n \"transmission\" text\n);\n\nQuestion: What is the digital of Virgin [analogue]?"
},
{
"role": "assistant",
"content": "SELECT \"digital\" FROM \"closed_and_aborted_television_providers\" WHERE \"provider\"='virgin [analogue]';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"closed_and_aborted_television_providers\" (\n \"provider\" text,\n \"years\" text,\n \"free_or_pay\" text,\n \"no_of_channels\" text,\n \"colour\" text,\n \"digital\" text,\n \"transmission\" text\n);\n\nQuestion: Which provider is pay with analogue cable?"
},
{
"role": "assistant",
"content": "SELECT \"provider\" FROM \"closed_and_aborted_television_providers\" WHERE \"free_or_pay\"='pay' AND \"transmission\"='analogue cable';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"closed_and_aborted_television_providers\" (\n \"provider\" text,\n \"years\" text,\n \"free_or_pay\" text,\n \"no_of_channels\" text,\n \"colour\" text,\n \"digital\" text,\n \"transmission\" text\n);\n\nQuestion: How many analogue satellite channels does Sky [Analogue] have?"
},
{
"role": "assistant",
"content": "SELECT \"no_of_channels\" FROM \"closed_and_aborted_television_providers\" WHERE \"transmission\"='analogue satellite' AND \"provider\"='sky [analogue]';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"closed_and_aborted_television_providers\" (\n \"provider\" text,\n \"years\" text,\n \"free_or_pay\" text,\n \"no_of_channels\" text,\n \"colour\" text,\n \"digital\" text,\n \"transmission\" text\n);\n\nQuestion: What years are listed for analogue cable with 35 channels?"
},
{
"role": "assistant",
"content": "SELECT \"years\" FROM \"closed_and_aborted_television_providers\" WHERE \"transmission\"='analogue cable' AND \"no_of_channels\"='35';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bcs_standings\" (\n \"week_9_oct_23\" text,\n \"week_10_oct_30\" text,\n \"week_11_nov_6\" text,\n \"week_12_nov_13\" text,\n \"week_13_nov_20\" text,\n \"week_14_nov_27\" text,\n \"week_15_final_dec_3\" text\n);\n\nQuestion: What was Week 14 when Week 13 was Nebraska (8-2)?"
},
{
"role": "assistant",
"content": "SELECT \"week_14_nov_27\" FROM \"bcs_standings\" WHERE \"week_13_nov_20\"='nebraska (8-2)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bcs_standings\" (\n \"week_9_oct_23\" text,\n \"week_10_oct_30\" text,\n \"week_11_nov_6\" text,\n \"week_12_nov_13\" text,\n \"week_13_nov_20\" text,\n \"week_14_nov_27\" text,\n \"week_15_final_dec_3\" text\n);\n\nQuestion: What was Week 15 when Week 12 was Notre Dame (7-2)?"
},
{
"role": "assistant",
"content": "SELECT \"week_15_final_dec_3\" FROM \"bcs_standings\" WHERE \"week_12_nov_13\"='notre dame (7-2)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bcs_standings\" (\n \"week_9_oct_23\" text,\n \"week_10_oct_30\" text,\n \"week_11_nov_6\" text,\n \"week_12_nov_13\" text,\n \"week_13_nov_20\" text,\n \"week_14_nov_27\" text,\n \"week_15_final_dec_3\" text\n);\n\nQuestion: What was Week 11 when Week 10 had Nebraska (7-1)?"
},
{
"role": "assistant",
"content": "SELECT \"week_11_nov_6\" FROM \"bcs_standings\" WHERE \"week_10_oct_30\"='nebraska (7-1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bcs_standings\" (\n \"week_9_oct_23\" text,\n \"week_10_oct_30\" text,\n \"week_11_nov_6\" text,\n \"week_12_nov_13\" text,\n \"week_13_nov_20\" text,\n \"week_14_nov_27\" text,\n \"week_15_final_dec_3\" text\n);\n\nQuestion: What was Week 15 when Week 12 was Washington (9-1)?"
},
{
"role": "assistant",
"content": "SELECT \"week_15_final_dec_3\" FROM \"bcs_standings\" WHERE \"week_12_nov_13\"='washington (9-1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_5_3_2\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What Surface has a Date of 15 february 1988?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles_5_3_2\" WHERE \"date\"='15 february 1988';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_5_3_2\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What Date has a Score in the final of 3\u20136, 2\u20136, 4\u20136?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"singles_5_3_2\" WHERE \"score_in_the_final\"='3\u20136, 2\u20136, 4\u20136';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_5_3_2\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What Opponent in the final has a Date of 19 september 1988?"
},
{
"role": "assistant",
"content": "SELECT \"opponent_in_the_final\" FROM \"singles_5_3_2\" WHERE \"date\"='19 september 1988';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_5_3_2\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What Championship has a Date of 26 may 1986?"
},
{
"role": "assistant",
"content": "SELECT \"championship\" FROM \"singles_5_3_2\" WHERE \"date\"='26 may 1986';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.