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 \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: How many days did Hawthorn play as a home team?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"round_of_16\" WHERE \"home_team\"='Hawthorn';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What time was it when the home team's score was 10.7 (67)?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"round_of_16\" WHERE \"home_team_score\"='10.7 (67)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What time was it when the away team's score was 5.4 (34)?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"round_of_16\" WHERE \"away_team_score\"='5.4 (34)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: How many days was the away team's score 11.8 (74)?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"date\") FROM \"round_of_16\" WHERE \"away_team_score\"='11.8 (74)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: The away team of Richmond played on what grounds?"
},
{
"role": "assistant",
"content": "SELECT \"ground\" FROM \"round_of_16\" WHERE \"away_team\"='Richmond';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_14\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: At what venues did the away team score 16.10 (106)?"
},
{
"role": "assistant",
"content": "SELECT \"ground\" FROM \"round_of_14\" WHERE \"away_team_score\"='16.10 (106)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_14\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What was the away team's score at the venue football park?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_of_14\" WHERE \"ground\"='Football Park';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_14\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: On what date did the home team score 14.12 (96)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_of_14\" WHERE \"home_team_score\"='14.12 (96)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_14\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What are the scores for games where the home team is Adelaide?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_of_14\" WHERE \"home_team\"='Adelaide';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_14\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: On what dates where games played at Football Park?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_of_14\" WHERE \"ground\"='Football Park';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1st_round\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the home team score against Collingwood?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"1st_round\" WHERE \"away_team\"='Collingwood';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1st_round\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the away team playing at Carlton?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"1st_round\" WHERE \"home_team\"='Carlton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1st_round\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What did the home team score against Richmond?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"1st_round\" WHERE \"away_team\"='Richmond';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1st_round\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the maximum crowd size against St Kilda?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"1st_round\" WHERE \"away_team\"='St Kilda';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1st_round\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What to Footscray score at home?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"1st_round\" WHERE \"home_team\"='Footscray';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: How many crowd sizes were recorded at the game when the home team scored 7.8 (50)?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"crowd\") FROM \"round_of_16\" WHERE \"home_team_score\"='7.8 (50)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: When the home team scored 7.8 (50), how many away team scores were recorded?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"away_team_score\") FROM \"round_of_16\" WHERE \"home_team_score\"='7.8 (50)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text,\n \"time\" text\n);\n\nQuestion: What did the home team score when the away team scored 18.12 (120)?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_of_16\" WHERE \"away_team_score\"='18.12 (120)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"crowd\" real\n);\n\nQuestion: Name the date for bundaberg rum stadium"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"group_3\" WHERE \"ground\"='Bundaberg Rum Stadium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"crowd\" real\n);\n\nQuestion: Name the home team score for brisbane lions"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"group_3\" WHERE \"home_team\"='Brisbane Lions';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"crowd\" real\n);\n\nQuestion: Name the home team for football park"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"group_3\" WHERE \"ground\"='Football Park';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"crowd\" real\n);\n\nQuestion: Name the away team score for carlton"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"group_3\" WHERE \"home_team\"='Carlton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"crowd\" real\n);\n\nQuestion: Name the date for adelaide for westpac stadium"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"group_3\" WHERE \"home_team\"='Adelaide' AND \"ground\"='Westpac Stadium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"crowd\" real\n);\n\nQuestion: Name the total number of ground for essendon"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"ground\") FROM \"group_1\" WHERE \"home_team\"='Essendon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"crowd\" real\n);\n\nQuestion: Name the most crowd for essendon"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"group_1\" WHERE \"away_team\"='Essendon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"crowd\" real\n);\n\nQuestion: When ground is manuka oval what is the home team score?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"home_team_score\") FROM \"group_2\" WHERE \"ground\"='Manuka Oval';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_2\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"date\" text,\n \"crowd\" real\n);\n\nQuestion: When the crowd was 8642 what was the away team's score?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"group_2\" WHERE \"crowd\"=8642;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Which location had an attendance of 22537?"
},
{
"role": "assistant",
"content": "SELECT \"ground\" FROM \"round_1\" WHERE \"crowd\"=22537;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the away team's score was 0.12.5 (77), what was the home team's score?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_1\" WHERE \"away_team_score\"='0.12.5 (77)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the away team's score was 2.10.7 (85), what was the home team's score?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_1\" WHERE \"away_team_score\"='2.10.7 (85)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the away team's score of at the game of telstra stadium?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_1\" WHERE \"ground\"='Telstra Stadium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: When the away team was Carlton, who was the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_1\" WHERE \"away_team\"='Carlton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_competition_scores\" (\n \"country\" text,\n \"preliminary\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"average\" text\n);\n\nQuestion: What was the average for contestants with a swimsuit score of 8.266?"
},
{
"role": "assistant",
"content": "SELECT \"average\" FROM \"final_competition_scores\" WHERE \"swimsuit\"='8.266';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_competition_scores\" (\n \"country\" text,\n \"preliminary\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"average\" text\n);\n\nQuestion: What are the interview scores for contestants whose average is 9.090?"
},
{
"role": "assistant",
"content": "SELECT \"interview\" FROM \"final_competition_scores\" WHERE \"average\"='9.090';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_competition_scores\" (\n \"country\" text,\n \"preliminary\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"average\" text\n);\n\nQuestion: What are the average scores of contestants whose home state is Pennsylvania?"
},
{
"role": "assistant",
"content": "SELECT \"average\" FROM \"final_competition_scores\" WHERE \"country\"='Pennsylvania';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_competition_scores\" (\n \"country\" text,\n \"preliminary\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"average\" text\n);\n\nQuestion: What are the evening gown scores of contestants whose average is 9.266?"
},
{
"role": "assistant",
"content": "SELECT \"evening_gown\" FROM \"final_competition_scores\" WHERE \"average\"='9.266';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_competition_scores\" (\n \"country\" text,\n \"preliminary\" text,\n \"interview\" text,\n \"swimsuit\" text,\n \"evening_gown\" text,\n \"average\" text\n);\n\nQuestion: What are the average scores of contestants whose interview score is 8.011?"
},
{
"role": "assistant",
"content": "SELECT \"average\" FROM \"final_competition_scores\" WHERE \"interview\"='8.011';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"week_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What are the home team scores when richmond is the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"week_1\" WHERE \"home_team\"='Richmond';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"week_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What are the home team scores when fremantle is the away team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"week_1\" WHERE \"away_team\"='Fremantle';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"week_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the largest crowd when essendon is the home team?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"crowd\") FROM \"week_1\" WHERE \"home_team\"='Essendon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"week_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who are the away teams when subiaco oval was the grounds?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"week_1\" WHERE \"ground\"='Subiaco Oval';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"week_1\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who were the away teams when the home team scored 1.8.0.5 (62)?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"week_1\" WHERE \"home_team_score\"='1.8.0.5 (62)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: Who was the home team when the away team is Carlton?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_3\" WHERE \"away_team\"='Carlton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What is the home team score where the home team is Fremantle?"
},
{
"role": "assistant",
"content": "SELECT \"home_team_score\" FROM \"round_3\" WHERE \"home_team\"='Fremantle';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What was the away team score for the game with a crowd of 5391?"
},
{
"role": "assistant",
"content": "SELECT \"away_team_score\" FROM \"round_3\" WHERE \"crowd\"=5391;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_3\" (\n \"home_team\" text,\n \"home_team_score\" text,\n \"away_team\" text,\n \"away_team_score\" text,\n \"ground\" text,\n \"crowd\" real,\n \"date\" text\n);\n\nQuestion: What date was Adelaide the home team?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_3\" WHERE \"home_team\"='Adelaide';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"member_teams\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text,\n \"home_rink\" text\n);\n\nQuestion: How many locations does Elon University have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location\") FROM \"member_teams\" WHERE \"institution\"='Elon University';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"member_teams\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text,\n \"home_rink\" text\n);\n\nQuestion: Private/Catholic school's minimum enrollment is?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"enrollment\") FROM \"member_teams\" WHERE \"affiliation\"='Private/Catholic';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"member_teams\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"enrollment\" real,\n \"team_nickname\" text,\n \"primary_conference\" text,\n \"home_rink\" text\n);\n\nQuestion: Which school has the mascot of the Colonials?"
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"member_teams\" WHERE \"team_nickname\"='Colonials';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the socket location for sSPEC number sl3f7(kc0)sl3fj(kc0)?"
},
{
"role": "assistant",
"content": "SELECT \"socket\" FROM \"250_nm\" WHERE \"s_spec_number\"='SL3F7(kC0)SL3FJ(kC0)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the release date of part 80525py500512bx80525u500512bx80525u500512e?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"250_nm\" WHERE \"part_number_s\"='80525PY500512BX80525U500512BX80525U500512E';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: How many release prices are there for the Pentium iii 550?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"release_price_usd\") FROM \"250_nm\" WHERE \"model_number\"='Pentium III 550';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the model number with a release price of $496?"
},
{
"role": "assistant",
"content": "SELECT \"model_number\" FROM \"250_nm\" WHERE \"release_price_usd\"='$496';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"250_nm\" (\n \"model_number\" text,\n \"s_spec_number\" text,\n \"frequency\" text,\n \"l2_cache\" text,\n \"fsb\" text,\n \"mult\" text,\n \"voltage\" text,\n \"tdp\" text,\n \"socket\" text,\n \"release_date\" text,\n \"part_number_s\" text,\n \"release_price_usd\" text\n);\n\nQuestion: What is the l2 cache for the model with a release price of $669?"
},
{
"role": "assistant",
"content": "SELECT \"l2_cache\" FROM \"250_nm\" WHERE \"release_price_usd\"='$669';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1639689_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What day(s) did they play on week 2?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"table1_1639689_2\" WHERE \"week\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1639689_2\" (\n \"week\" real,\n \"date\" text,\n \"kickoff\" text,\n \"opponent\" text,\n \"final_score\" text,\n \"team_record\" text,\n \"game_site\" text,\n \"attendance\" real\n);\n\nQuestion: What was the kickoff time on monday, may 13?"
},
{
"role": "assistant",
"content": "SELECT \"kickoff\" FROM \"table1_1639689_2\" WHERE \"date\"='Monday, May 13';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16390576_3\" (\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);\n\nQuestion: what is the latest episode in season 2 directed by jamie babbit?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no_in_season\") FROM \"table1_16390576_3\" WHERE \"directed_by\"='Jamie Babbit';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16390576_3\" (\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);\n\nQuestion: what is the number of the episode titled \"magic jordan\"?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"no_in_series\") FROM \"table1_16390576_3\" WHERE \"title\"='\\\"Magic Jordan\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16390576_3\" (\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);\n\nQuestion: what are the air dates for episodes with the production code 08-02-214"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_16390576_3\" WHERE \"production_code\"='08-02-214';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16390576_3\" (\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);\n\nQuestion: what is the title of episode 28"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_16390576_3\" WHERE \"no_in_series\"=28;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"typical_duplex_scanners\" (\n \"product\" text,\n \"dimensions_mm\" text,\n \"dpi\" real,\n \"pages_per_minute_color\" real,\n \"max_page_size\" text,\n \"interface\" text\n);\n\nQuestion: What is the dpi of a scanner with the mm dimensions 280 x 95 x 40?"
},
{
"role": "assistant",
"content": "SELECT \"dpi\" FROM \"typical_duplex_scanners\" WHERE \"dimensions_mm\"='280 x 95 x 40';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"typical_duplex_scanners\" (\n \"product\" text,\n \"dimensions_mm\" text,\n \"dpi\" real,\n \"pages_per_minute_color\" real,\n \"max_page_size\" text,\n \"interface\" text\n);\n\nQuestion: What is the maximum pages per minute for the Xerox Travel Scanner 100?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"pages_per_minute_color\") FROM \"typical_duplex_scanners\" WHERE \"product\"='Xerox Travel Scanner 100';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"typical_duplex_scanners\" (\n \"product\" text,\n \"dimensions_mm\" text,\n \"dpi\" real,\n \"pages_per_minute_color\" real,\n \"max_page_size\" text,\n \"interface\" text\n);\n\nQuestion: What interface is used on the scanner that has a 36 pages per minute?"
},
{
"role": "assistant",
"content": "SELECT \"interface\" FROM \"typical_duplex_scanners\" WHERE \"pages_per_minute_color\"=36;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"typical_duplex_scanners\" (\n \"product\" text,\n \"dimensions_mm\" text,\n \"dpi\" real,\n \"pages_per_minute_color\" real,\n \"max_page_size\" text,\n \"interface\" text\n);\n\nQuestion: What are the mm dimensions of the Plustek Mobileoffice D28 Corporate?"
},
{
"role": "assistant",
"content": "SELECT \"dimensions_mm\" FROM \"typical_duplex_scanners\" WHERE \"product\"='Plustek MobileOffice D28 Corporate';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"typical_duplex_scanners\" (\n \"product\" text,\n \"dimensions_mm\" text,\n \"dpi\" real,\n \"pages_per_minute_color\" real,\n \"max_page_size\" text,\n \"interface\" text\n);\n\nQuestion: What are the mm dimensions for the Fujitsu fi-6130 a4 Series Scanner?"
},
{
"role": "assistant",
"content": "SELECT \"dimensions_mm\" FROM \"typical_duplex_scanners\" WHERE \"product\"='Fujitsu fi-6130 A4 Series Scanner';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"typical_duplex_scanners\" (\n \"product\" text,\n \"dimensions_mm\" text,\n \"dpi\" real,\n \"pages_per_minute_color\" real,\n \"max_page_size\" text,\n \"interface\" text\n);\n\nQuestion: What is the dpi for the scanner with a max page size of 216mm x 355mm?"
},
{
"role": "assistant",
"content": "SELECT \"dpi\" FROM \"typical_duplex_scanners\" WHERE \"max_page_size\"='216mm x 355mm';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"girls_league_championships\" (\n \"school_year\" text,\n \"volleyball\" text,\n \"cross_country\" text,\n \"soccer\" text,\n \"tennis\" text,\n \"golf\" text,\n \"basketball\" text,\n \"swimming\" text,\n \"softball\" text,\n \"track_field\" text\n);\n\nQuestion: which country won swimming track & field when lexington won swimming and madison won volleyball"
},
{
"role": "assistant",
"content": "SELECT \"track_field\" FROM \"girls_league_championships\" WHERE \"swimming\"='Lexington' AND \"volleyball\"='Madison';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"girls_league_championships\" (\n \"school_year\" text,\n \"volleyball\" text,\n \"cross_country\" text,\n \"soccer\" text,\n \"tennis\" text,\n \"golf\" text,\n \"basketball\" text,\n \"swimming\" text,\n \"softball\" text,\n \"track_field\" text\n);\n\nQuestion: how many teams won at golf when wooster won soccer"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"golf\") FROM \"girls_league_championships\" WHERE \"soccer\"='Wooster';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"girls_league_championships\" (\n \"school_year\" text,\n \"volleyball\" text,\n \"cross_country\" text,\n \"soccer\" text,\n \"tennis\" text,\n \"golf\" text,\n \"basketball\" text,\n \"swimming\" text,\n \"softball\" text,\n \"track_field\" text\n);\n\nQuestion: Who won soccer when madison won volleyball, lexington won cross country and orrville won softball "
},
{
"role": "assistant",
"content": "SELECT \"soccer\" FROM \"girls_league_championships\" WHERE \"volleyball\"='Madison' AND \"cross_country\"='Lexington' AND \"softball\"='Orrville';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"girls_league_championships\" (\n \"school_year\" text,\n \"volleyball\" text,\n \"cross_country\" text,\n \"soccer\" text,\n \"tennis\" text,\n \"golf\" text,\n \"basketball\" text,\n \"swimming\" text,\n \"softball\" text,\n \"track_field\" text\n);\n\nQuestion: Who won volleyball when west holmes won basketball and wooster won swimming in 2011-12"
},
{
"role": "assistant",
"content": "SELECT \"volleyball\" FROM \"girls_league_championships\" WHERE \"basketball\"='West Holmes' AND \"swimming\"='Wooster' AND \"school_year\"='2011-12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"girls_league_championships\" (\n \"school_year\" text,\n \"volleyball\" text,\n \"cross_country\" text,\n \"soccer\" text,\n \"tennis\" text,\n \"golf\" text,\n \"basketball\" text,\n \"swimming\" text,\n \"softball\" text,\n \"track_field\" text\n);\n\nQuestion: who won tennis when ashland won softball and wooster won volleybal"
},
{
"role": "assistant",
"content": "SELECT \"tennis\" FROM \"girls_league_championships\" WHERE \"softball\"='Ashland' AND \"volleyball\"='Wooster';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"girls_league_championships\" (\n \"school_year\" text,\n \"volleyball\" text,\n \"cross_country\" text,\n \"soccer\" text,\n \"tennis\" text,\n \"golf\" text,\n \"basketball\" text,\n \"swimming\" text,\n \"softball\" text,\n \"track_field\" text\n);\n\nQuestion: who won basketball when ashland won track & field and cross country"
},
{
"role": "assistant",
"content": "SELECT \"basketball\" FROM \"girls_league_championships\" WHERE \"track_field\"='Ashland' AND \"cross_country\"='Ashland';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"american_division\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" real,\n \"established\" real\n);\n\nQuestion: What is the location of the school established in 1923"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"american_division\" WHERE \"established\"=1923;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"american_division\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" real,\n \"established\" real\n);\n\nQuestion: Total enrollment at the school with the nickname Blue Hens"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"enrollment\") FROM \"american_division\" WHERE \"nickname\"='Blue Hens';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"american_division\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" real,\n \"established\" real\n);\n\nQuestion: Nickname of the school established in 1773"
},
{
"role": "assistant",
"content": "SELECT \"nickname\" FROM \"american_division\" WHERE \"established\"=1773;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"american_division\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" real,\n \"established\" real\n);\n\nQuestion: What is the year Rowan University was established"
},
{
"role": "assistant",
"content": "SELECT \"established\" FROM \"american_division\" WHERE \"institution\"='Rowan University';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"american_division\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" real,\n \"established\" real\n);\n\nQuestion: How many nicknames does the school in Newark, DE have"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"nickname\") FROM \"american_division\" WHERE \"location\"='Newark, DE';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"american_division\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"enrollment\" real,\n \"established\" real\n);\n\nQuestion: Location of the school with the nickname Mountaineers"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"american_division\" WHERE \"nickname\"='Mountaineers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16432167_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);\n\nQuestion: What was the original air date of the episode titled \"Beaver's Pigeons\""
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_16432167_1\" WHERE \"title\"='\\\"Beaver''s Pigeons\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16432167_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);\n\nQuestion: Who wrote the episode with the production code of 942A?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_16432167_1\" WHERE \"production_code\"='942A';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16432167_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);\n\nQuestion: What numbered episode of the season was titled \"Beaver says Good-Bye\"?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_season\" FROM \"table1_16432167_1\" WHERE \"title\"='\\\"Beaver Says Good-bye\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16432167_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);\n\nQuestion: What number episode in the series was titled \"Wally's Pug Nose\"?"
},
{
"role": "assistant",
"content": "SELECT \"no_in_series\" FROM \"table1_16432167_1\" WHERE \"title\"='\\\"Wally''s Pug Nose\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16432167_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);\n\nQuestion: What was the production code of the episode written by Joe Connelly and Bob Mosher titled \"Beaver Gets Adopted\"?"
},
{
"role": "assistant",
"content": "SELECT \"production_code\" FROM \"table1_16432167_1\" WHERE \"written_by\"='Joe Connelly and Bob Mosher' AND \"title\"='\\\"Beaver Gets Adopted\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16425614_3\" (\n \"official_num\" real,\n \"tf1_num\" real,\n \"french_title\" text,\n \"english_title\" text,\n \"air_date_france\" text,\n \"original_beechwood_bunny_tale_source_material\" text\n);\n\nQuestion: Who was responsible for original beechwood bunny tale / source material for the episode title \"Papa Bramble's Secret\"?"
},
{
"role": "assistant",
"content": "SELECT \"original_beechwood_bunny_tale_source_material\" FROM \"table1_16425614_3\" WHERE \"english_title\"='\\\"Papa Bramble''s Secret\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16425614_3\" (\n \"official_num\" real,\n \"tf1_num\" real,\n \"french_title\" text,\n \"english_title\" text,\n \"air_date_france\" text,\n \"original_beechwood_bunny_tale_source_material\" text\n);\n\nQuestion: What is the French title for \"Papa Bramble's Secret\"?"
},
{
"role": "assistant",
"content": "SELECT \"french_title\" FROM \"table1_16425614_3\" WHERE \"english_title\"='\\\"Papa Bramble''s Secret\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16425614_3\" (\n \"official_num\" real,\n \"tf1_num\" real,\n \"french_title\" text,\n \"english_title\" text,\n \"air_date_france\" text,\n \"original_beechwood_bunny_tale_source_material\" text\n);\n\nQuestion: Who was responsible for original beechwood bunny tale / source material for the episode title \"The Monster of Blueberry Lake\"?"
},
{
"role": "assistant",
"content": "SELECT \"original_beechwood_bunny_tale_source_material\" FROM \"table1_16425614_3\" WHERE \"english_title\"='\\\"The Monster of Blueberry Lake\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16425614_3\" (\n \"official_num\" real,\n \"tf1_num\" real,\n \"french_title\" text,\n \"english_title\" text,\n \"air_date_france\" text,\n \"original_beechwood_bunny_tale_source_material\" text\n);\n\nQuestion: What is the English title for the official number 22 episode?"
},
{
"role": "assistant",
"content": "SELECT \"english_title\" FROM \"table1_16425614_3\" WHERE \"official_num\"=22;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which CFL team did the player from British Columbia get drafted to"
},
{
"role": "assistant",
"content": "SELECT \"cfl_team\" FROM \"round_five\" WHERE \"college\"='British Columbia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which positions had players from Laval college"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"round_five\" WHERE \"college\"='Laval';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position did Gene Stahl play"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"round_five\" WHERE \"player\"='Gene Stahl';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which player played DB"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"round_five\" WHERE \"position\"='DB';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Who was the lowest picked LB"
},
{
"role": "assistant",
"content": "SELECT MIN(\"pick_num\") FROM \"round_five\" WHERE \"position\"='LB';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_five\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many players named Jeff Brown were drafted"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"position\") FROM \"round_five\" WHERE \"player\"='Jeff Brown';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16439764_1\" (\n \"gun\" text,\n \"m_v_ft_s\" real,\n \"shell_lb\" text,\n \"time_to_ft_m_at_25_seconds\" text,\n \"time_to_ft_m_at_40_seconds\" text,\n \"time_to_ft_m_at_55_seconds\" text,\n \"max_height_ft\" real\n);\n\nQuestion: How many feet per second does a shell move where the height range is 23500?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"m_v_ft_s\") FROM \"table1_16439764_1\" WHERE \"max_height_ft\"=23500;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16439764_1\" (\n \"gun\" text,\n \"m_v_ft_s\" real,\n \"shell_lb\" text,\n \"time_to_ft_m_at_25_seconds\" text,\n \"time_to_ft_m_at_40_seconds\" text,\n \"time_to_ft_m_at_55_seconds\" text,\n \"max_height_ft\" real\n);\n\nQuestion: If the gun used is the qf 12 pdr 12 cwt, what is the shell weight?"
},
{
"role": "assistant",
"content": "SELECT \"shell_lb\" FROM \"table1_16439764_1\" WHERE \"gun\"='QF 12 pdr 12 cwt';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16439764_1\" (\n \"gun\" text,\n \"m_v_ft_s\" real,\n \"shell_lb\" text,\n \"time_to_ft_m_at_25_seconds\" text,\n \"time_to_ft_m_at_40_seconds\" text,\n \"time_to_ft_m_at_55_seconds\" text,\n \"max_height_ft\" real\n);\n\nQuestion: Where the height range is higher than 20000.0 and the shell weight is 12.5, what is the time to feet ratio at 25 degrees?"
},
{
"role": "assistant",
"content": "SELECT \"time_to_ft_m_at_25_seconds\" FROM \"table1_16439764_1\" WHERE \"shell_lb\"='12.5' AND \"max_height_ft\">20000.0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16439764_1\" (\n \"gun\" text,\n \"m_v_ft_s\" real,\n \"shell_lb\" text,\n \"time_to_ft_m_at_25_seconds\" text,\n \"time_to_ft_m_at_40_seconds\" text,\n \"time_to_ft_m_at_55_seconds\" text,\n \"max_height_ft\" real\n);\n\nQuestion: What gun has a time to feet ratio of 18.8 at 55 degrees?"
},
{
"role": "assistant",
"content": "SELECT \"gun\" FROM \"table1_16439764_1\" WHERE \"time_to_ft_m_at_55_seconds\"='18.8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16439764_1\" (\n \"gun\" text,\n \"m_v_ft_s\" real,\n \"shell_lb\" text,\n \"time_to_ft_m_at_25_seconds\" text,\n \"time_to_ft_m_at_40_seconds\" text,\n \"time_to_ft_m_at_55_seconds\" text,\n \"max_height_ft\" real\n);\n\nQuestion: What is the maximum foot per second speed where time to feet ratio is 22.1 at 55 degrees?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"m_v_ft_s\") FROM \"table1_16439764_1\" WHERE \"time_to_ft_m_at_55_seconds\"='22.1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_16439764_1\" (\n \"gun\" text,\n \"m_v_ft_s\" real,\n \"shell_lb\" text,\n \"time_to_ft_m_at_25_seconds\" text,\n \"time_to_ft_m_at_40_seconds\" text,\n \"time_to_ft_m_at_55_seconds\" text,\n \"max_height_ft\" real\n);\n\nQuestion: What is the foot per second speed where time to feet ratio is 9.2 at 25 degrees?"
},
{
"role": "assistant",
"content": "SELECT \"m_v_ft_s\" FROM \"table1_16439764_1\" WHERE \"time_to_ft_m_at_25_seconds\"='9.2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"country\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: Who was skip for the country whose points for (PF) was 73?"
},
{
"role": "assistant",
"content": "SELECT \"skip\" FROM \"round_robin\" WHERE \"pf\"=73;"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.