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 \"list_of_princesses_royal\" (\n \"order\" real,\n \"name_dates\" text,\n \"princess_royal_from_date_to_date\" text,\n \"parent\" text,\n \"date_married\" text,\n \"husband_dates\" text\n);\n\nQuestion: Who was the husband date that was married in 1858?"
},
{
"role": "assistant",
"content": "SELECT \"husband_dates\" FROM \"list_of_princesses_royal\" WHERE \"date_married\"='1858';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"result\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Can you tell me the Record that has the Opponent of vs. hamilton tiger cats?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"season_schedule\" WHERE \"opponent\"='vs. hamilton tiger cats';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"result\" text,\n \"attendance\" text,\n \"record\" text\n);\n\nQuestion: Can you tell me the Opponent that has the Date of sun, sept 9?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"season_schedule\" WHERE \"date\"='sun, sept 9';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: Which country is Scott Hoch from?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"sunday\" WHERE \"player\"='scott hoch';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sunday\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the place of the player from Spain?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"sunday\" WHERE \"country\"='spain';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"h_a_n\" text,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is Score, when Record is 12-57?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"february\" WHERE \"record\"='12-57';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"h_a_n\" text,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is Date, when Record is 12-58?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"february\" WHERE \"record\"='12-58';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"h_a_n\" text,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is Score, when Date is February 5?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"february\" WHERE \"date\"='february 5';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"h_a_n\" text,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is H/A/N, when Score is 104-109?"
},
{
"role": "assistant",
"content": "SELECT \"h_a_n\" FROM \"february\" WHERE \"score\"='104-109';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"h_a_n\" text,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is Score, when Opponent is Portland Trail Blazers, and when Record is 12-58?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"february\" WHERE \"opponent\"='portland trail blazers' AND \"record\"='12-58';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"february\" (\n \"date\" text,\n \"h_a_n\" text,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is H/A/N when Date is February 24?"
},
{
"role": "assistant",
"content": "SELECT \"h_a_n\" FROM \"february\" WHERE \"date\"='february 24';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule_and_results\" (\n \"game\" real,\n \"october\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: What is the last game of the season that has the record 0-1-0?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"game\") FROM \"schedule_and_results\" WHERE \"record\"='0-1-0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" real,\n \"opponent\" text,\n \"score\" text,\n \"decision\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the decision goal when the date was 1?"
},
{
"role": "assistant",
"content": "SELECT \"decision\" FROM \"game_log\" WHERE \"date\"=1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" real,\n \"opponent\" text,\n \"score\" text,\n \"decision\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the decision goal when the record was 7-7-2?"
},
{
"role": "assistant",
"content": "SELECT \"decision\" FROM \"game_log\" WHERE \"record\"='7-7-2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" real,\n \"opponent\" text,\n \"score\" text,\n \"decision\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the first game in which Weekes scored the decision goal and the record was 7-4-2?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"game\") FROM \"game_log\" WHERE \"decision\"='weekes' AND \"record\"='7-4-2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_points_scored_by_a_team\" (\n \"points\" real,\n \"score\" text,\n \"premiers\" text,\n \"runners_up\" text,\n \"details\" text\n);\n\nQuestion: What's the total number of points scored during the 1951 NSWRFL Grand Final?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points\") FROM \"most_points_scored_by_a_team\" WHERE \"details\"='1951 nswrfl grand final';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_points_scored_by_a_team\" (\n \"points\" real,\n \"score\" text,\n \"premiers\" text,\n \"runners_up\" text,\n \"details\" text\n);\n\nQuestion: Which premier team played the 1951 NSWRFL Grand Final?"
},
{
"role": "assistant",
"content": "SELECT \"premiers\" FROM \"most_points_scored_by_a_team\" WHERE \"details\"='1951 nswrfl grand final';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_points_scored_by_a_team\" (\n \"points\" real,\n \"score\" text,\n \"premiers\" text,\n \"runners_up\" text,\n \"details\" text\n);\n\nQuestion: During which competition were a total of 36 points scored?"
},
{
"role": "assistant",
"content": "SELECT \"details\" FROM \"most_points_scored_by_a_team\" WHERE \"points\"=36;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_points_scored_by_a_team\" (\n \"points\" real,\n \"score\" text,\n \"premiers\" text,\n \"runners_up\" text,\n \"details\" text\n);\n\nQuestion: What's the total sum of points scored by the Brisbane Broncos?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"points\") FROM \"most_points_scored_by_a_team\" WHERE \"premiers\"='brisbane broncos';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_points_scored_by_a_team\" (\n \"points\" real,\n \"score\" text,\n \"premiers\" text,\n \"runners_up\" text,\n \"details\" text\n);\n\nQuestion: What is the premier team that has 38 points and won with a score of 38-0?"
},
{
"role": "assistant",
"content": "SELECT \"premiers\" FROM \"most_points_scored_by_a_team\" WHERE \"points\"=38 AND \"score\"='38-0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What was the tie no when the away team was northwich victoria?"
},
{
"role": "assistant",
"content": "SELECT \"tie_no\" FROM \"first_round_proper\" WHERE \"away_team\"='northwich victoria';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"attendance\" text\n);\n\nQuestion: What was the attendance for the match where cambridge united was the home team?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"first_round_proper\" WHERE \"home_team\"='cambridge united';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"award\" text,\n \"year\" real,\n \"category\" text,\n \"work\" text,\n \"result\" text\n);\n\nQuestion: How many times was the award inte awards?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year\") FROM \"awards_and_nominations\" WHERE \"award\"='inte awards';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"award\" text,\n \"year\" real,\n \"category\" text,\n \"work\" text,\n \"result\" text\n);\n\nQuestion: what is the work when the result is won and the year is after 2002?"
},
{
"role": "assistant",
"content": "SELECT \"work\" FROM \"awards_and_nominations\" WHERE \"result\"='won' AND \"year\">2002;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards_and_nominations\" (\n \"award\" text,\n \"year\" real,\n \"category\" text,\n \"work\" text,\n \"result\" text\n);\n\nQuestion: what is the work when the result is won and the year is before 2003?"
},
{
"role": "assistant",
"content": "SELECT \"work\" FROM \"awards_and_nominations\" WHERE \"result\"='won' AND \"year\"<2003;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: Which venue had the opposing team Natal?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"matches\" WHERE \"opposing_team\"='natal';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"matches\" (\n \"opposing_team\" text,\n \"against\" real,\n \"date\" text,\n \"venue\" text,\n \"status\" text\n);\n\nQuestion: What day was the against 22 and the status tour match?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"matches\" WHERE \"status\"='tour match' AND \"against\"=22;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Which Attendance has a Week of 8?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"attendance\") FROM \"schedule\" WHERE \"week\"=8;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: Which Opponent that has a Week smaller than 7 on september 12, 1988?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"week\"<7 AND \"date\"='september 12, 1988';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"attendance\" real\n);\n\nQuestion: When has a Result of w 41-27?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"result\"='w 41-27';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"subnotebooks\" (\n \"model\" text,\n \"manufacturer\" text,\n \"weight_kg\" real,\n \"display_size_in\" real,\n \"processor_model\" text,\n \"storage_type\" text\n);\n\nQuestion: Which Weight (kg) has a Manufacturer of fujitsu, and a Model of lifebook p1610?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"weight_kg\") FROM \"subnotebooks\" WHERE \"manufacturer\"='fujitsu' AND \"model\"='lifebook p1610';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"subnotebooks\" (\n \"model\" text,\n \"manufacturer\" text,\n \"weight_kg\" real,\n \"display_size_in\" real,\n \"processor_model\" text,\n \"storage_type\" text\n);\n\nQuestion: Which Display size (in) has a Model of versapro vy10f/bh-l?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"display_size_in\") FROM \"subnotebooks\" WHERE \"model\"='versapro vy10f/bh-l';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"subnotebooks\" (\n \"model\" text,\n \"manufacturer\" text,\n \"weight_kg\" real,\n \"display_size_in\" real,\n \"processor_model\" text,\n \"storage_type\" text\n);\n\nQuestion: Which Display size (in) has a Model of vaio pcg-u3?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"display_size_in\") FROM \"subnotebooks\" WHERE \"model\"='vaio pcg-u3';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What method was used in the match that went to round 1, and had a 6-3-1 record?"
},
{
"role": "assistant",
"content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"round\"=1 AND \"record\"='6-3-1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: In the match against Marcus Aur\u00e9lio with a method of decision (unanimous), what was the results?"
},
{
"role": "assistant",
"content": "SELECT \"res\" FROM \"mixed_martial_arts_record\" WHERE \"method\"='decision (unanimous)' AND \"opponent\"='marcus aur\u00e9lio';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Where was the Deep - 30 Impact event held?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='deep - 30 impact';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fossae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" real,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: COunt the average Diameter (km) which has ketian (yenisey r.) main evil goddess.?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"diameter_km\") FROM \"fossae\" WHERE \"name_origin\"='ketian (yenisey r.) main evil goddess.';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fossae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" real,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: COunt the sum of Diameter (km) which has a Latitude of 62.7n?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"diameter_km\") FROM \"fossae\" WHERE \"latitude\"='62.7n';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fossae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" real,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: WHich Name origin has a Longitude of 332.5e?"
},
{
"role": "assistant",
"content": "SELECT \"name_origin\" FROM \"fossae\" WHERE \"longitude\"='332.5e';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: In which round was Dustin Hazelett the opponent?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='dustin hazelett';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: What is TV Time, when Opponent is At Cincinnati Bengals?"
},
{
"role": "assistant",
"content": "SELECT \"tv_time\" FROM \"schedule\" WHERE \"opponent\"='at cincinnati bengals';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: What is TV Time, when Date is December 22, 1996?"
},
{
"role": "assistant",
"content": "SELECT \"tv_time\" FROM \"schedule\" WHERE \"date\"='december 22, 1996';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"tv_time\" text,\n \"attendance\" text\n);\n\nQuestion: What is Result, when Opponent is Cincinnati Bengals?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"opponent\"='cincinnati bengals';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was their record bfore game 54?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"game\"=54;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Who had the most rebounds in the game against Chicago?"
},
{
"role": "assistant",
"content": "SELECT \"high_rebounds\" FROM \"game_log\" WHERE \"team\"='chicago';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"visitor\" text,\n \"score\" text,\n \"home\" text,\n \"decision\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the lowest attendance at the game against chicago when conklin made the decision?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"attendance\") FROM \"game_log\" WHERE \"decision\"='conklin' AND \"visitor\"='chicago';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: For Tie #2, who was the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"second_round_proper\" WHERE \"tie_no\"='2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What was the final score for the match where Hereford United was the home team?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"second_round_proper\" WHERE \"home_team\"='hereford united';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: In Tie #18, who was the away team?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"second_round_proper\" WHERE \"tie_no\"='18';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: In Tie #19, what was the name of the away team?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"second_round_proper\" WHERE \"tie_no\"='19';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: What is the Tie number for the match where Dartford was the hone team?"
},
{
"role": "assistant",
"content": "SELECT \"tie_no\" FROM \"second_round_proper\" WHERE \"home_team\"='dartford';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: In the match played against Telford United, who was the home team?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"second_round_proper\" WHERE \"away_team\"='telford united';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"season\" text,\n \"player\" text,\n \"school\" text,\n \"position\" text,\n \"class\" text\n);\n\nQuestion: What is Position, when Class is Sophomore, and when Player is Shaquille O'Neal Category:Articles With hCards?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"winners\" WHERE \"class\"='sophomore' AND \"player\"='shaquille o''neal 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 \"winners\" (\n \"season\" text,\n \"player\" text,\n \"school\" text,\n \"position\" text,\n \"class\" text\n);\n\nQuestion: What is Player, when Class is \"senior\", when Position is \"shooting guard\", and when School is \"Bradley\"?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"winners\" WHERE \"class\"='senior' AND \"position\"='shooting guard' AND \"school\"='bradley';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"season\" text,\n \"player\" text,\n \"school\" text,\n \"position\" text,\n \"class\" text\n);\n\nQuestion: What is Position, when Player is \"Kevin Durant category:articles with hCards\"?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"winners\" WHERE \"player\"='kevin durant 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 \"doubles_11_6_5\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What is the Score of the match on August 23, 2004?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"doubles_11_6_5\" WHERE \"date\"='august 23, 2004';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_11_6_5\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What was the Score of the Spain F32, Gran Canaria Tournament?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"doubles_11_6_5\" WHERE \"tournament\"='spain f32, gran canaria';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_11_6_5\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: On what Surface was the match with a Score of 6\u20134, 6\u20133 and Runner-up Outcome played?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"doubles_11_6_5\" WHERE \"outcome\"='runner-up' AND \"score\"='6\u20134, 6\u20133';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_11_6_5\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"partner\" text,\n \"opponents\" text,\n \"score\" text\n);\n\nQuestion: What is the Outcome of the match with Partner Andoni Vivanco?"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"doubles_11_6_5\" WHERE \"partner\"='andoni vivanco';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"leading_scorer\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who was the Leading Scorer in the Game with a Score of 96-87?"
},
{
"role": "assistant",
"content": "SELECT \"leading_scorer\" FROM \"season_schedule\" WHERE \"score\"='96-87';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"format\" text,\n \"country\" text,\n \"label\" text,\n \"catalogue_no\" text,\n \"date\" text\n);\n\nQuestion: What Country with a MC Format has a ATCO Records Label?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"release_history\" WHERE \"label\"='atco records' AND \"format\"='mc';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What team has a location and attendance at the Seattle Center Coliseum 12,591?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"location_attendance\"='seattle center coliseum 12,591';"
}
] |
[
{
"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 \"team_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is 1st Leg, when Team #2 is \"Emelec\"?"
},
{
"role": "assistant",
"content": "SELECT \"1st_leg\" FROM \"round_of_16\" WHERE \"team_num2\"='emelec';"
}
] |
[
{
"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 \"team_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is 1st Leg, when Team #1 is \"San Lorenzo\"?"
},
{
"role": "assistant",
"content": "SELECT \"1st_leg\" FROM \"round_of_16\" WHERE \"team_num1\"='san lorenzo';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"38_comparisons\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"max_pressure\" text\n);\n\nQuestion: What is the muzzle energy with grains (g) bullet weight and a max pressure of 35,000 psi?"
},
{
"role": "assistant",
"content": "SELECT \"muzzle_energy\" FROM \"38_comparisons\" WHERE \"bullet_weight\"='grains (g)' AND \"max_pressure\"='35,000 psi';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"38_comparisons\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"max_pressure\" text\n);\n\nQuestion: What is the bullet weight with a 12,000 cup max pressure?"
},
{
"role": "assistant",
"content": "SELECT \"bullet_weight\" FROM \"38_comparisons\" WHERE \"max_pressure\"='12,000 cup';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"38_comparisons\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"max_pressure\" text\n);\n\nQuestion: What is the max pressure for the 468ft\u2022lbf (634 j) muzzle energy?"
},
{
"role": "assistant",
"content": "SELECT \"max_pressure\" FROM \"38_comparisons\" WHERE \"muzzle_energy\"='468ft\u2022lbf (634 j)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"38_comparisons\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"max_pressure\" text\n);\n\nQuestion: What is the muzzle velocity for the muzzle energy 351ft\u2022lbf (476 j)?"
},
{
"role": "assistant",
"content": "SELECT \"muzzle_velocity\" FROM \"38_comparisons\" WHERE \"muzzle_energy\"='351ft\u2022lbf (476 j)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"38_comparisons\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"max_pressure\" text\n);\n\nQuestion: What is the muzzle velocity for the .38 long colt cartridge?"
},
{
"role": "assistant",
"content": "SELECT \"muzzle_velocity\" FROM \"38_comparisons\" WHERE \"cartridge\"='.38 long colt';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"38_comparisons\" (\n \"cartridge\" text,\n \"bullet_weight\" text,\n \"muzzle_velocity\" text,\n \"muzzle_energy\" text,\n \"max_pressure\" text\n);\n\nQuestion: What is the muzzle energy with 40,000 psi max pressure?"
},
{
"role": "assistant",
"content": "SELECT \"muzzle_energy\" FROM \"38_comparisons\" WHERE \"max_pressure\"='40,000 psi';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the home country of the player who placed t5 and had a score of 69-71=140?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"second_round\" WHERE \"place\"='t5' AND \"score\"='69-71=140';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was the place for the player whose final score was 71-69=140?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"second_round\" WHERE \"score\"='71-69=140';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was the To par for the player whose final score was 67-71=138?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"score\"='67-71=138';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"second_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What was Nolan Henke's To par when he placed in t3?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"second_round\" WHERE \"place\"='t3' AND \"player\"='nolan henke';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_radicals\" (\n \"radical_variants\" text,\n \"stroke_count\" real,\n \"p_ny_n\" text,\n \"hiragana_romaji\" text,\n \"meaning\" text,\n \"frequency\" real,\n \"examples\" text\n);\n\nQuestion: WHAT IS THE MEANING WITH P\u012bny\u012bn of ch\u0113?"
},
{
"role": "assistant",
"content": "SELECT \"meaning\" FROM \"table_of_radicals\" WHERE \"p_ny_n\"='ch\u0113';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_radicals\" (\n \"radical_variants\" text,\n \"stroke_count\" real,\n \"p_ny_n\" text,\n \"hiragana_romaji\" text,\n \"meaning\" text,\n \"frequency\" real,\n \"examples\" text\n);\n\nQuestion: WHAT IS THE RADICAL WITH g\u01d4, AND STROKE COUNT OF 7?"
},
{
"role": "assistant",
"content": "SELECT \"radical_variants\" FROM \"table_of_radicals\" WHERE \"p_ny_n\"='g\u01d4' AND \"stroke_count\"=7;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_radicals\" (\n \"radical_variants\" text,\n \"stroke_count\" real,\n \"p_ny_n\" text,\n \"hiragana_romaji\" text,\n \"meaning\" text,\n \"frequency\" real,\n \"examples\" text\n);\n\nQuestion: WHAT IS THE STROKE COUNT WITH RADICAL OF \u751f, FRQUENCY SMALLER THAN 22?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"stroke_count\") FROM \"table_of_radicals\" WHERE \"radical_variants\"='\u751f' AND \"frequency\"<22;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_radicals\" (\n \"radical_variants\" text,\n \"stroke_count\" real,\n \"p_ny_n\" text,\n \"hiragana_romaji\" text,\n \"meaning\" text,\n \"frequency\" real,\n \"examples\" text\n);\n\nQuestion: WHAT IS THE STROKE COUNT WITH RADICAL \u76bf FREQUENCY SMALLER THAN 129?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"stroke_count\") FROM \"table_of_radicals\" WHERE \"radical_variants\"='\u76bf' AND \"frequency\"<129;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"talk_shows\" (\n \"show\" text,\n \"host_s\" text,\n \"flagship\" text,\n \"market\" text,\n \"i_heart_radio\" text\n);\n\nQuestion: What is the Flagship of the Show Hosted by Rover (Shane French)?"
},
{
"role": "assistant",
"content": "SELECT \"flagship\" FROM \"talk_shows\" WHERE \"host_s\"='rover (shane french)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"talk_shows\" (\n \"show\" text,\n \"host_s\" text,\n \"flagship\" text,\n \"market\" text,\n \"i_heart_radio\" text\n);\n\nQuestion: What is the Host of the Show with a Market of New York?"
},
{
"role": "assistant",
"content": "SELECT \"host_s\" FROM \"talk_shows\" WHERE \"market\"='new york';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"talk_shows\" (\n \"show\" text,\n \"host_s\" text,\n \"flagship\" text,\n \"market\" text,\n \"i_heart_radio\" text\n);\n\nQuestion: What is the iHeartRadio of the Bronson and Christine Show?"
},
{
"role": "assistant",
"content": "SELECT \"i_heart_radio\" FROM \"talk_shows\" WHERE \"show\"='bronson and christine';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" text\n);\n\nQuestion: What is the to total number of par with laurie ayton?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"to_par\") FROM \"final_leaderboard\" WHERE \"player\"='laurie ayton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_leaderboard\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" text\n);\n\nQuestion: Where is bobby jones (a)?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"final_leaderboard\" WHERE \"player\"='bobby jones (a)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nascar_camping_world_truck_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" real,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: Can you tell me the total number of Top 5 that has the Year smaller than 2009, and the Wins larger than 0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"top_5\") FROM \"nascar_camping_world_truck_series\" WHERE \"year\"<2009 AND \"wins\">0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nascar_camping_world_truck_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" real,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: Can you tell me the Wins that has the Starts larger than 1, and the Top 5 of 3?"
},
{
"role": "assistant",
"content": "SELECT \"wins\" FROM \"nascar_camping_world_truck_series\" WHERE \"starts\">1 AND \"top_5\"=3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nascar_camping_world_truck_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" real,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: Can you tell me the sum of Starts that the Winnings of $139,774, and the Wins smaller than 0?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"starts\") FROM \"nascar_camping_world_truck_series\" WHERE \"winnings\"='$139,774' AND \"wins\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_conference\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"affiliation\" text,\n \"nickname\" text\n);\n\nQuestion: Who is affiliated with the nickname Ramblers?"
},
{
"role": "assistant",
"content": "SELECT \"affiliation\" FROM \"north_conference\" WHERE \"nickname\"='ramblers';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_14_6_8\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Who was the Opponent in the match with a Score of 6\u20133, 6\u20134?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"singles_14_6_8\" WHERE \"score\"='6\u20133, 6\u20134';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_14_6_8\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: On what Surface was the match against Malek Jaziri played?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles_14_6_8\" WHERE \"opponent\"='malek jaziri';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" real,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is the total number of Year(s) Won, when Player is Ed Furgol, and when To Par is greater than 12?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year_s_won\") FROM \"made_the_cut\" WHERE \"player\"='ed furgol' AND \"to_par\">12;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" real,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is Year(s) Won, when Player is Arnold Palmer?"
},
{
"role": "assistant",
"content": "SELECT \"year_s_won\" FROM \"made_the_cut\" WHERE \"player\"='arnold palmer';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" real,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is Highest Total, when Year(s) Won is before 1959?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"total\") FROM \"made_the_cut\" WHERE \"year_s_won\"<1959;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" real,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is Player, when Year(s) Won is before 1961, and when To Par is 6?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"made_the_cut\" WHERE \"year_s_won\"<1961 AND \"to_par\"=6;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" real,\n \"total\" real,\n \"to_par\" real,\n \"finish\" text\n);\n\nQuestion: What is Finish, when To Par is greater than 6, and when Year(s) Won is before 1961?"
},
{
"role": "assistant",
"content": "SELECT \"finish\" FROM \"made_the_cut\" WHERE \"to_par\">6 AND \"year_s_won\"<1961;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is Top Par, when Country is Sweden?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"country\"='sweden';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is the highest Money ($), when Top Par is E, and when Player is Ernie Els?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"money\") FROM \"final_round\" WHERE \"to_par\"='e' AND \"player\"='ernie els';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is the sum of Money ($), when Score is 70-71-70-69=280?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"money\") FROM \"final_round\" WHERE \"score\"='70-71-70-69=280';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the high assist when the high point was Eric Gordon (21)?"
},
{
"role": "assistant",
"content": "SELECT \"high_assists\" FROM \"game_log\" WHERE \"high_points\"='eric gordon (21)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What day was the high assist Mike Taylor (5)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"high_assists\"='mike taylor (5)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"high_points\" text,\n \"high_rebounds\" text,\n \"high_assists\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What was the record when the high rebound was Deandre Jordan (11)?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"high_rebounds\"='deandre jordan (11)';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.