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 \"calendar\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_drivers\" text,\n \"winning_team\" text\n);\n\nQuestion: On how many different dates was the race at the Silverstone circuit?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"calendar\" WHERE \"circuit\"='Silverstone';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"calendar\" (\n \"round\" real,\n \"circuit\" text,\n \"date\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_drivers\" text,\n \"winning_team\" text\n);\n\nQuestion: When was the circuit Donington Park?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"calendar\" WHERE \"circuit\"='Donington Park';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"home_team\" text\n);\n\nQuestion: What is the weight is the name is Stuart Craig?"
},
{
"role": "assistant",
"content": "SELECT \"weight\" FROM \"roster\" WHERE \"name\"='Stuart Craig';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"home_team\" text\n);\n\nQuestion: If the name is Timo Higgins, what is the total date of birth amount?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date_of_birth\") FROM \"roster\" WHERE \"name\"='Timo Higgins';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"home_team\" text\n);\n\nQuestion: If the height is 181cm, what was the position?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"roster\" WHERE \"height\"='181cm';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"home_team\" text\n);\n\nQuestion: If the home team is UMBC and the weight is 78kg, what the the name total number?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"name\") FROM \"roster\" WHERE \"weight\"='78kg' AND \"home_team\"='UMBC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"roster\" (\n \"name\" text,\n \"position\" text,\n \"height\" text,\n \"weight\" text,\n \"date_of_birth\" text,\n \"home_team\" text\n);\n\nQuestion: If the height is 185cm and the home team is Heaton Mersey, what is the date of birth?"
},
{
"role": "assistant",
"content": "SELECT \"date_of_birth\" FROM \"roster\" WHERE \"height\"='185cm' AND \"home_team\"='Heaton Mersey';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22347090_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many viewers tuned in for season 2?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_million\" FROM \"table1_22347090_4\" WHERE \"no_in_season\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22347090_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who directed the episode that has 3x6752 listed as the production code?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_22347090_4\" WHERE \"production_code\"='3X6752';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22347090_4\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Which series number had 1.98 million viewers?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no_in_series\") FROM \"table1_22347090_4\" WHERE \"u_s_viewers_million\"='1.98';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22347090_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Name the viewers for production code for 3x6704"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_million\" FROM \"table1_22347090_5\" WHERE \"production_code\"='3X6704';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22347090_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Name the viewers for production code being 3x6706"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_million\" FROM \"table1_22347090_5\" WHERE \"production_code\"='3X6706';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22347090_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Name the title that got 1.54 viewers"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_22347090_5\" WHERE \"u_s_viewers_million\"='1.54';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22347090_5\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Name the number of number in season for 26"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_in_season\") FROM \"table1_22347090_5\" WHERE \"no_in_series\"=26;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22347090_6\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who wrote the episode that has a production code 3x7557?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_22347090_6\" WHERE \"production_code\"='3X7557';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22347090_6\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many directors are there for the episode that had 1.59 million U.S. viewers?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"directed_by\") FROM \"table1_22347090_6\" WHERE \"u_s_viewers_million\"='1.59';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22347090_6\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the production code for the episode that had 1.32 million U.S. viewers?"
},
{
"role": "assistant",
"content": "SELECT \"production_code\" FROM \"table1_22347090_6\" WHERE \"u_s_viewers_million\"='1.32';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22347090_6\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What episode number in the series had a production code of 3x7554?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no_in_series\") FROM \"table1_22347090_6\" WHERE \"production_code\"='3X7554';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22347090_6\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the name of episode number 41 in the series?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_22347090_6\" WHERE \"no_in_series\"=41;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: Who has the minimum number of silver?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"silver\") FROM \"list_of_olympic_medalists_in_athletics_m\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: Who is the athlete who's rank is 8 and competed in the olympics during 1948\u20131952?"
},
{
"role": "assistant",
"content": "SELECT \"athlete\" FROM \"list_of_olympic_medalists_in_athletics_m\" WHERE \"rank\"=8 AND \"olympics\"='1948\u20131952';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: What is the nation who won 1 bronze in the Olympics during 1924\u20131928?"
},
{
"role": "assistant",
"content": "SELECT \"nation\" FROM \"list_of_olympic_medalists_in_athletics_m\" WHERE \"olympics\"='1924\u20131928' AND \"bronze\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: Who is the athlete from the nation of Ethiopia (eth) who had a rank bigger than 7.0?"
},
{
"role": "assistant",
"content": "SELECT \"athlete\" FROM \"list_of_olympic_medalists_in_athletics_m\" WHERE \"nation\"='Ethiopia (ETH)' AND \"rank\">7.0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: What is the maximum number of golds?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"gold\") FROM \"list_of_olympic_medalists_in_athletics_m\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: What is the smallest amount of silver?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"silver\") FROM \"list_of_olympic_medalists_in_athletics_m\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: Name the nation for abdon pamich category:articles with hcards"
},
{
"role": "assistant",
"content": "SELECT \"nation\" FROM \"list_of_olympic_medalists_in_athletics_m\" WHERE \"athlete\"='Abdon Pamich Category:Articles with hCards';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: Name the silver for ronald weigel category:articles with hcards"
},
{
"role": "assistant",
"content": "SELECT MAX(\"silver\") FROM \"list_of_olympic_medalists_in_athletics_m\" WHERE \"athlete\"='Ronald Weigel Category:Articles with hCards';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: What's the minimal rank of a athlete shown in the chart?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"list_of_olympic_medalists_in_athletics_m\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: which is the minimun amount of gold medals?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"gold\") FROM \"list_of_olympic_medalists_in_athletics_m\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: which is the minimun amount of silver medals?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"silver\") FROM \"list_of_olympic_medalists_in_athletics_m\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: What is the lowest overall number for total(min. 2 medals)?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total_min_2_medals\") FROM \"list_of_olympic_medalists_in_athletics_m\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: What is the maximum rank of the nation that won 4 gold medals?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"list_of_olympic_medalists_in_athletics_m\" WHERE \"gold\"=4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: Name the most rank"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank\") FROM \"list_of_olympic_medalists_in_athletics_m\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_olympic_medalists_in_athletics_m\" (\n \"rank\" real,\n \"athlete\" text,\n \"nation\" text,\n \"olympics\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total_min_2_medals\" real\n);\n\nQuestion: Name the most rank for 2 gold"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"list_of_olympic_medalists_in_athletics_m\" WHERE \"gold\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22360_3\" (\n \"discipline\" text,\n \"contested\" text,\n \"number_of_olympiads\" real,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Name the most total "
},
{
"role": "assistant",
"content": "SELECT MAX(\"total\") FROM \"table1_22360_3\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22360_3\" (\n \"discipline\" text,\n \"contested\" text,\n \"number_of_olympiads\" real,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Name the silver for baseball"
},
{
"role": "assistant",
"content": "SELECT MIN(\"silver\") FROM \"table1_22360_3\" WHERE \"discipline\"='Baseball';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22360_3\" (\n \"discipline\" text,\n \"contested\" text,\n \"number_of_olympiads\" real,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: Name the discipline for bronze being 0"
},
{
"role": "assistant",
"content": "SELECT \"discipline\" FROM \"table1_22360_3\" WHERE \"bronze\"=0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22368322_2\" (\n \"institution\" text,\n \"date_of_report\" text,\n \"s_risk_weighted_asset_million\" real,\n \"tier_1_capital_million\" real,\n \"tier_1_ratio\" text\n);\n\nQuestion: Name the most tier 1 capital for irish nationwide"
},
{
"role": "assistant",
"content": "SELECT MAX(\"tier_1_capital_million\") FROM \"table1_22368322_2\" WHERE \"institution\"='Irish Nationwide';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22368322_2\" (\n \"institution\" text,\n \"date_of_report\" text,\n \"s_risk_weighted_asset_million\" real,\n \"tier_1_capital_million\" real,\n \"tier_1_ratio\" text\n);\n\nQuestion: Name the institution for tier 1 capital 1394"
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"table1_22368322_2\" WHERE \"tier_1_capital_million\"=1394;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22368322_2\" (\n \"institution\" text,\n \"date_of_report\" text,\n \"s_risk_weighted_asset_million\" real,\n \"tier_1_capital_million\" real,\n \"tier_1_ratio\" text\n);\n\nQuestion: Name the tier 1 ratio for irish life and permanent"
},
{
"role": "assistant",
"content": "SELECT \"tier_1_ratio\" FROM \"table1_22368322_2\" WHERE \"institution\"='Irish Life and Permanent';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22368322_2\" (\n \"institution\" text,\n \"date_of_report\" text,\n \"s_risk_weighted_asset_million\" real,\n \"tier_1_capital_million\" real,\n \"tier_1_ratio\" text\n);\n\nQuestion: Name the total number of tier 1 capital for allied irish banks"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"tier_1_capital_million\") FROM \"table1_22368322_2\" WHERE \"institution\"='Allied Irish Banks';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22368322_2\" (\n \"institution\" text,\n \"date_of_report\" text,\n \"s_risk_weighted_asset_million\" real,\n \"tier_1_capital_million\" real,\n \"tier_1_ratio\" text\n);\n\nQuestion: Name the date of report for tier 1 ratio being 3.9%"
},
{
"role": "assistant",
"content": "SELECT \"date_of_report\" FROM \"table1_22368322_2\" WHERE \"tier_1_ratio\"='3.9%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"division_i\" (\n \"no\" real,\n \"season\" text,\n \"championship\" real,\n \"no_of_teams\" real,\n \"start_reg_season\" text,\n \"finish_incl_championship\" text,\n \"top_record\" text,\n \"national_champion\" text\n);\n\nQuestion: What season ended on April 18?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"division_i\" WHERE \"finish_incl_championship\"='April 18';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"division_i\" (\n \"no\" real,\n \"season\" text,\n \"championship\" real,\n \"no_of_teams\" real,\n \"start_reg_season\" text,\n \"finish_incl_championship\" text,\n \"top_record\" text,\n \"national_champion\" text\n);\n\nQuestion: When did the season start that ended with the top record of Lindenwood (20\u20130\u20130)?"
},
{
"role": "assistant",
"content": "SELECT \"start_reg_season\" FROM \"division_i\" WHERE \"top_record\"='Lindenwood (20\u20130\u20130)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"division_i\" (\n \"no\" real,\n \"season\" text,\n \"championship\" real,\n \"no_of_teams\" real,\n \"start_reg_season\" text,\n \"finish_incl_championship\" text,\n \"top_record\" text,\n \"national_champion\" text\n);\n\nQuestion: What is the year range of season 4?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"division_i\" WHERE \"no\"=4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"division_i\" (\n \"no\" real,\n \"season\" text,\n \"championship\" real,\n \"no_of_teams\" real,\n \"start_reg_season\" text,\n \"finish_incl_championship\" text,\n \"top_record\" text,\n \"national_champion\" text\n);\n\nQuestion: When is the finish of the season that started on September 25?"
},
{
"role": "assistant",
"content": "SELECT \"finish_incl_championship\" FROM \"division_i\" WHERE \"start_reg_season\"='September 25';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22380270_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: On what air date were there 2.15 million u.s. viewers?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_22380270_1\" WHERE \"u_s_viewers_millions\"='2.15';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22380270_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many u.s. views were there for the epidosde titled, \"now you lift your eyes to the sun\"?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_millions\" FROM \"table1_22380270_1\" WHERE \"title\"='\\\"Now You Lift Your Eyes to the Sun\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22380270_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who was the writer for the episode with 2.15 million u.s.viewers?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_22380270_1\" WHERE \"u_s_viewers_millions\"='2.15';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22385461_1\" (\n \"num\" text,\n \"spacecraft\" text,\n \"spacewalkers\" text,\n \"start_utc\" text,\n \"end_utc\" text,\n \"duration\" text\n);\n\nQuestion: Who walked in space from STS-101 Eva 1?"
},
{
"role": "assistant",
"content": "SELECT \"spacewalkers\" FROM \"table1_22385461_1\" WHERE \"spacecraft\"='STS-101 EVA 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22385461_8\" (\n \"num\" text,\n \"spacecraft\" text,\n \"spacewalkers\" text,\n \"start_utc\" text,\n \"end_utc\" text,\n \"duration\" text\n);\n\nQuestion: What is the end (UTC) if the duration is 6 hours, 55 minutes?"
},
{
"role": "assistant",
"content": "SELECT \"end_utc\" FROM \"table1_22385461_8\" WHERE \"duration\"='6 hours, 55 minutes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22385461_8\" (\n \"num\" text,\n \"spacecraft\" text,\n \"spacewalkers\" text,\n \"start_utc\" text,\n \"end_utc\" text,\n \"duration\" text\n);\n\nQuestion: If the end (UTC) is January 31, 2007 23:09, what is the name of the spacewalkers?"
},
{
"role": "assistant",
"content": "SELECT \"spacewalkers\" FROM \"table1_22385461_8\" WHERE \"end_utc\"='January 31, 2007 23:09';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22385461_8\" (\n \"num\" text,\n \"spacecraft\" text,\n \"spacewalkers\" text,\n \"start_utc\" text,\n \"end_utc\" text,\n \"duration\" text\n);\n\nQuestion: What are the names of the spacewalkers for end (UTC) October 30, 2007 15:53?"
},
{
"role": "assistant",
"content": "SELECT \"spacewalkers\" FROM \"table1_22385461_8\" WHERE \"end_utc\"='October 30, 2007 15:53';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which position is player bernie doan?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"draft_picks\" WHERE \"player\"='Bernie Doan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How many pick # are there for the goaltender position?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"pick_num\") FROM \"draft_picks\" WHERE \"position\"='Goaltender';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: How many college/junior/clubteams have John garrett as the player?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"college_junior_club_team\") FROM \"draft_picks\" WHERE \"player\"='John Garrett';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Who is the player with the pick# 80?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"draft_picks\" WHERE \"pick_num\"=80;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"pick_num\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"nhl_team\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which nationality is player John Garrett?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"draft_picks\" WHERE \"player\"='John Garrett';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jersey_progress\" (\n \"stage_winner\" text,\n \"general_classification\" text,\n \"sprints_classification\" text,\n \"mountains_classification\" text,\n \"youth_classification\" text,\n \"team_classification\" text,\n \"combativity_prize\" text\n);\n\nQuestion: what team had ricardo serrano for combativity prize?"
},
{
"role": "assistant",
"content": "SELECT \"team_classification\" FROM \"jersey_progress\" WHERE \"combativity_prize\"='Ricardo Serrano';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_board_members\" (\n \"year\" text,\n \"chairman\" text,\n \"artistic_director\" text,\n \"performance_liaison\" text,\n \"secretary\" text,\n \"business_manager\" text,\n \"production_stagemanager\" text,\n \"dramaturge\" text,\n \"public_relations\" text,\n \"first_second_year_rep\" text,\n \"male_rep\" text\n);\n\nQuestion: How many production stage managers worked with Gabriel di Chiara as the Male Rep?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"production_stagemanager\") FROM \"past_board_members\" WHERE \"male_rep\"='Gabriel Di Chiara';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_board_members\" (\n \"year\" text,\n \"chairman\" text,\n \"artistic_director\" text,\n \"performance_liaison\" text,\n \"secretary\" text,\n \"business_manager\" text,\n \"production_stagemanager\" text,\n \"dramaturge\" text,\n \"public_relations\" text,\n \"first_second_year_rep\" text,\n \"male_rep\" text\n);\n\nQuestion: How many production stage managers worked with secretary Rachel Hartmann?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"production_stagemanager\") FROM \"past_board_members\" WHERE \"secretary\"='Rachel Hartmann';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_board_members\" (\n \"year\" text,\n \"chairman\" text,\n \"artistic_director\" text,\n \"performance_liaison\" text,\n \"secretary\" text,\n \"business_manager\" text,\n \"production_stagemanager\" text,\n \"dramaturge\" text,\n \"public_relations\" text,\n \"first_second_year_rep\" text,\n \"male_rep\" text\n);\n\nQuestion: Who were the performance liaisons for the dramaturge Chrisena Ricci?"
},
{
"role": "assistant",
"content": "SELECT \"performance_liaison\" FROM \"past_board_members\" WHERE \"dramaturge\"='Chrisena Ricci';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_board_members\" (\n \"year\" text,\n \"chairman\" text,\n \"artistic_director\" text,\n \"performance_liaison\" text,\n \"secretary\" text,\n \"business_manager\" text,\n \"production_stagemanager\" text,\n \"dramaturge\" text,\n \"public_relations\" text,\n \"first_second_year_rep\" text,\n \"male_rep\" text\n);\n\nQuestion: Who was the first/second year rep. when the performance liaison was Kira Josephson?"
},
{
"role": "assistant",
"content": "SELECT \"first_second_year_rep\" FROM \"past_board_members\" WHERE \"performance_liaison\"='Kira Josephson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_board_members\" (\n \"year\" text,\n \"chairman\" text,\n \"artistic_director\" text,\n \"performance_liaison\" text,\n \"secretary\" text,\n \"business_manager\" text,\n \"production_stagemanager\" text,\n \"dramaturge\" text,\n \"public_relations\" text,\n \"first_second_year_rep\" text,\n \"male_rep\" text\n);\n\nQuestion: What year were the first/second year reps Katie Pautler and Devery North?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"past_board_members\" WHERE \"first_second_year_rep\"='Katie Pautler and Devery North';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_board_members\" (\n \"year\" text,\n \"chairman\" text,\n \"artistic_director\" text,\n \"performance_liaison\" text,\n \"secretary\" text,\n \"business_manager\" text,\n \"production_stagemanager\" text,\n \"dramaturge\" text,\n \"public_relations\" text,\n \"first_second_year_rep\" text,\n \"male_rep\" text\n);\n\nQuestion: Who was the male rep. when Caroline Rhoads was the artistic director?"
},
{
"role": "assistant",
"content": "SELECT \"male_rep\" FROM \"past_board_members\" WHERE \"artistic_director\"='Caroline Rhoads';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2241101_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: How many different drivers were there for the team when the manufacturer was Toyota?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"driver\") FROM \"table1_2241101_1\" WHERE \"manufacturer\"='Toyota';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2241101_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: In how many different years did the race happen on February 27?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year\") FROM \"table1_2241101_1\" WHERE \"date\"='February 27';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2241101_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: What team had average speed of 107.063 mph?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"table1_2241101_1\" WHERE \"average_speed_mph\"='107.063';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2241101_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: What was the report for 2010?"
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"table1_2241101_1\" WHERE \"year\"=2010;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2241259_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: Name the total number of race time for kevin harvick"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"race_time\") FROM \"table1_2241259_1\" WHERE \"driver\"='Kevin Harvick';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2241841_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: What manufacturer made the car that won in 2004?"
},
{
"role": "assistant",
"content": "SELECT \"manufacturer\" FROM \"table1_2241841_1\" WHERE \"year\"='2004';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2241841_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: How many wins are with Dodge vehicles?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"miles_km\") FROM \"table1_2241841_1\" WHERE \"manufacturer\"='Dodge';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2241841_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: Who made the car that won the race on May 21?"
},
{
"role": "assistant",
"content": "SELECT \"manufacturer\" FROM \"table1_2241841_1\" WHERE \"date\"='May 21';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2241841_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: In the race with a winning time of 4:17:18, how many laps were run?"
},
{
"role": "assistant",
"content": "SELECT \"laps\" FROM \"table1_2241841_1\" WHERE \"race_time\"='4:17:18';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2241841_1\" (\n \"year\" text,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: What team set a 3:15:43 winning time?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"table1_2241841_1\" WHERE \"race_time\"='3:15:43';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: How many different cities are represented by contestants whose height stands at 1.80?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"hometown\") FROM \"delegates\" WHERE \"height\"='1.80';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: How tall is contestant Alexandra D\u00edaz Bello?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"delegates\" WHERE \"contestant\"='Alexandra D\u00edaz Bello';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: Which contestant hails from Dajab\u00f3n?"
},
{
"role": "assistant",
"content": "SELECT \"contestant\" FROM \"delegates\" WHERE \"province_community\"='Dajab\u00f3n';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: Which province is Villa Bison\u00f3 in?"
},
{
"role": "assistant",
"content": "SELECT \"province_community\" FROM \"delegates\" WHERE \"hometown\"='Villa Bison\u00f3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"delegates\" (\n \"province_community\" text,\n \"contestant\" text,\n \"age\" real,\n \"height\" text,\n \"hometown\" text,\n \"geographical_regions\" text\n);\n\nQuestion: How old is contestant Valerie Chardonnens Vargas?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"age\") FROM \"delegates\" WHERE \"contestant\"='Valerie Chardonnens Vargas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"principal_roles_and_cast_members\" (\n \"character\" text,\n \"original_manchester_performer\" text,\n \"original_west_end_performer\" text,\n \"original_broadway_performer\" text,\n \"original_uk_tour_performer\" text,\n \"original_non_equity_us_tour_performer\" text,\n \"original_italian_tour_performer\" text,\n \"original_south_korean_performer\" text\n);\n\nQuestion: Who was the origianal south korean performer when Adebayo Bolaji performed in Manchester?"
},
{
"role": "assistant",
"content": "SELECT \"original_south_korean_performer\" FROM \"principal_roles_and_cast_members\" WHERE \"original_manchester_performer\"='Adebayo Bolaji';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"principal_roles_and_cast_members\" (\n \"character\" text,\n \"original_manchester_performer\" text,\n \"original_west_end_performer\" text,\n \"original_broadway_performer\" text,\n \"original_uk_tour_performer\" text,\n \"original_non_equity_us_tour_performer\" text,\n \"original_italian_tour_performer\" text,\n \"original_south_korean_performer\" text\n);\n\nQuestion: What character did Lisa Davina Phillip portray?"
},
{
"role": "assistant",
"content": "SELECT \"character\" FROM \"principal_roles_and_cast_members\" WHERE \"original_manchester_performer\"='Lisa Davina Phillip';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"principal_roles_and_cast_members\" (\n \"character\" text,\n \"original_manchester_performer\" text,\n \"original_west_end_performer\" text,\n \"original_broadway_performer\" text,\n \"original_uk_tour_performer\" text,\n \"original_non_equity_us_tour_performer\" text,\n \"original_italian_tour_performer\" text,\n \"original_south_korean_performer\" text\n);\n\nQuestion: Who was the Broadway equivalent of Sharon D. Clarke's character?"
},
{
"role": "assistant",
"content": "SELECT \"original_broadway_performer\" FROM \"principal_roles_and_cast_members\" WHERE \"original_west_end_performer\"='Sharon D. Clarke';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"principal_roles_and_cast_members\" (\n \"character\" text,\n \"original_manchester_performer\" text,\n \"original_west_end_performer\" text,\n \"original_broadway_performer\" text,\n \"original_uk_tour_performer\" text,\n \"original_non_equity_us_tour_performer\" text,\n \"original_italian_tour_performer\" text,\n \"original_south_korean_performer\" text\n);\n\nQuestion: What character did Moya Angela portray?"
},
{
"role": "assistant",
"content": "SELECT \"character\" FROM \"principal_roles_and_cast_members\" WHERE \"original_broadway_performer\"='Moya Angela';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"principal_roles_and_cast_members\" (\n \"character\" text,\n \"original_manchester_performer\" text,\n \"original_west_end_performer\" text,\n \"original_broadway_performer\" text,\n \"original_uk_tour_performer\" text,\n \"original_non_equity_us_tour_performer\" text,\n \"original_italian_tour_performer\" text,\n \"original_south_korean_performer\" text\n);\n\nQuestion: What character did Richard Fleeshman portray?"
},
{
"role": "assistant",
"content": "SELECT \"character\" FROM \"principal_roles_and_cast_members\" WHERE \"original_west_end_performer\"='Richard Fleeshman';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"principal_roles_and_cast_members\" (\n \"character\" text,\n \"original_manchester_performer\" text,\n \"original_west_end_performer\" text,\n \"original_broadway_performer\" text,\n \"original_uk_tour_performer\" text,\n \"original_non_equity_us_tour_performer\" text,\n \"original_italian_tour_performer\" text,\n \"original_south_korean_performer\" text\n);\n\nQuestion: Who was the Manchester performer of Lisa Davina Phillip's character?"
},
{
"role": "assistant",
"content": "SELECT \"original_manchester_performer\" FROM \"principal_roles_and_cast_members\" WHERE \"original_west_end_performer\"='Lisa Davina Phillip';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"guitar_hero_on_tour_setlist\" (\n \"year\" real,\n \"song_title\" text,\n \"artist\" text,\n \"master_recording\" text,\n \"na_uk_aus_jpn_nl_tier\" text,\n \"european_tier\" text\n);\n\nQuestion: Name the european tier for rick springfield"
},
{
"role": "assistant",
"content": "SELECT \"european_tier\" FROM \"guitar_hero_on_tour_setlist\" WHERE \"artist\"='Rick Springfield';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"guitar_hero_on_tour_setlist\" (\n \"year\" real,\n \"song_title\" text,\n \"artist\" text,\n \"master_recording\" text,\n \"na_uk_aus_jpn_nl_tier\" text,\n \"european_tier\" text\n);\n\nQuestion: Name the song title for europe"
},
{
"role": "assistant",
"content": "SELECT \"song_title\" FROM \"guitar_hero_on_tour_setlist\" WHERE \"artist\"='Europe';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"guitar_hero_on_tour_setlist\" (\n \"year\" real,\n \"song_title\" text,\n \"artist\" text,\n \"master_recording\" text,\n \"na_uk_aus_jpn_nl_tier\" text,\n \"european_tier\" text\n);\n\nQuestion: Name the number of master recording for doobie brothers the doobie brothers"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"master_recording\") FROM \"guitar_hero_on_tour_setlist\" WHERE \"artist\"='Doobie Brothers The Doobie Brothers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"guitar_hero_on_tour_setlist\" (\n \"year\" real,\n \"song_title\" text,\n \"artist\" text,\n \"master_recording\" text,\n \"na_uk_aus_jpn_nl_tier\" text,\n \"european_tier\" text\n);\n\nQuestion: Name the master recording for europe"
},
{
"role": "assistant",
"content": "SELECT \"master_recording\" FROM \"guitar_hero_on_tour_setlist\" WHERE \"artist\"='Europe';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22464685_1\" (\n \"english_name\" text,\n \"georgian_name\" text,\n \"transliteration\" text,\n \"date\" text,\n \"author\" text,\n \"period_covered\" text\n);\n\nQuestion: what is the date for when the georgian name is \u10ea\u10ee\u10dd\u10d5\u10e0\u10d4\u10d1\u10d0 \u10d3\u10d0 \u10e3\u10ec\u10e7\u10d4\u10d1\u10d0 \u10d1\u10d0\u10d2\u10e0\u10d0\u10e2\u10dd\u10dc\u10d8\u10d0\u10dc\u10d7\u10d0?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"table1_22464685_1\" WHERE \"georgian_name\"='\u10ea\u10ee\u10dd\u10d5\u10e0\u10d4\u10d1\u10d0 \u10d3\u10d0 \u10e3\u10ec\u10e7\u10d4\u10d1\u10d0 \u10d1\u10d0\u10d2\u10e0\u10d0\u10e2\u10dd\u10dc\u10d8\u10d0\u10dc\u10d7\u10d0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22464685_1\" (\n \"english_name\" text,\n \"georgian_name\" text,\n \"transliteration\" text,\n \"date\" text,\n \"author\" text,\n \"period_covered\" text\n);\n\nQuestion: what is the transliteration during the period covered is 1125-1223?"
},
{
"role": "assistant",
"content": "SELECT \"transliteration\" FROM \"table1_22464685_1\" WHERE \"period_covered\"='1125-1223';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22464685_1\" (\n \"english_name\" text,\n \"georgian_name\" text,\n \"transliteration\" text,\n \"date\" text,\n \"author\" text,\n \"period_covered\" text\n);\n\nQuestion: Who is the auther when the english name was histories and eulogies of the sovereigns?"
},
{
"role": "assistant",
"content": "SELECT \"author\" FROM \"table1_22464685_1\" WHERE \"english_name\"='Histories and Eulogies of the Sovereigns';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22464685_1\" (\n \"english_name\" text,\n \"georgian_name\" text,\n \"transliteration\" text,\n \"date\" text,\n \"author\" text,\n \"period_covered\" text\n);\n\nQuestion: who is the auther when the transliteration is lasha-giorgis droindeli matiane?"
},
{
"role": "assistant",
"content": "SELECT \"author\" FROM \"table1_22464685_1\" WHERE \"transliteration\"='lasha-giorgis droindeli matiane';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_22464685_1\" (\n \"english_name\" text,\n \"georgian_name\" text,\n \"transliteration\" text,\n \"date\" text,\n \"author\" text,\n \"period_covered\" text\n);\n\nQuestion: what is the transliteration where the period covered is 1125-1223?"
},
{
"role": "assistant",
"content": "SELECT \"transliteration\" FROM \"table1_22464685_1\" WHERE \"period_covered\"='1125-1223';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_224840_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: in which state where John Laurance (f) as a vacator?"
},
{
"role": "assistant",
"content": "SELECT \"state_class\" FROM \"table1_224840_3\" WHERE \"vacator\"='John Laurance (F)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_224840_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: when the vacator was Henry Latimer (f), what were the causes for modification?"
},
{
"role": "assistant",
"content": "SELECT \"reason_for_change\" FROM \"table1_224840_3\" WHERE \"vacator\"='Henry Latimer (F)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_224840_3\" (\n \"state_class\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_of_successors_formal_installation\" text\n);\n\nQuestion: how many times has Aaron Ogden (f), been a successor and has had a formal installation? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date_of_successors_formal_installation\") FROM \"table1_224840_3\" WHERE \"successor\"='Aaron Ogden (F)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_fina_diving_world_series\" (\n \"year\" real,\n \"1st_venue\" text,\n \"2nd_venue\" text,\n \"3rd_venue\" text,\n \"4th_venue\" text,\n \"5th_venue\" text\n);\n\nQuestion: How many 5th venue cities were there when Doha was the 1st venue city?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"5th_venue\") FROM \"list_of_fina_diving_world_series\" WHERE \"1st_venue\"='Doha';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_fina_diving_world_series\" (\n \"year\" real,\n \"1st_venue\" text,\n \"2nd_venue\" text,\n \"3rd_venue\" text,\n \"4th_venue\" text,\n \"5th_venue\" text\n);\n\nQuestion: When Qingdao was the 1st venue city, how many 2nd venue cities were there? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"2nd_venue\") FROM \"list_of_fina_diving_world_series\" WHERE \"1st_venue\"='Qingdao';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.