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 \"singles_performance_timeline\" (\n \"tournament\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"career_wr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What is 2007, when 2000 is \"0 / 4\"?"
},
{
"role": "assistant",
"content": "SELECT \"2007\" FROM \"singles_performance_timeline\" WHERE \"2000\"='0 / 4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"career_wr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What is 2007, when 2003 is \"85\"?"
},
{
"role": "assistant",
"content": "SELECT \"2007\" FROM \"singles_performance_timeline\" WHERE \"2003\"='85';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"career_wr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What is 2004, when 2007 is \"A\", and when 1997 is \"A\"?"
},
{
"role": "assistant",
"content": "SELECT \"2004\" FROM \"singles_performance_timeline\" WHERE \"2007\"='a' AND \"1997\"='a';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"1993\" text,\n \"1994\" text,\n \"1995\" text,\n \"1996\" text,\n \"1997\" text,\n \"1998\" text,\n \"1999\" text,\n \"2000\" text,\n \"2001\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"career_wr\" text,\n \"career_win_loss\" text\n);\n\nQuestion: What is 2000, when 1996 is \"A\", when 1997 is \"A\", and when 2007 is \"A\"?"
},
{
"role": "assistant",
"content": "SELECT \"2000\" FROM \"singles_performance_timeline\" WHERE \"1996\"='a' AND \"1997\"='a' AND \"2007\"='a';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards\" (\n \"year\" real,\n \"award\" text,\n \"nominated_work\" text,\n \"category\" text,\n \"result\" text\n);\n\nQuestion: What is Award, when Category is Cabello Maluco?"
},
{
"role": "assistant",
"content": "SELECT \"award\" FROM \"awards\" WHERE \"category\"='cabello maluco';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards\" (\n \"year\" real,\n \"award\" text,\n \"nominated_work\" text,\n \"category\" text,\n \"result\" text\n);\n\nQuestion: What is the total number of years in which Eiza Gonz\u00e1lez had a nominated work in the category of solista favorito?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"year\") FROM \"awards\" WHERE \"nominated_work\"='eiza gonz\u00e1lez' AND \"category\"='solista favorito';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"awards\" (\n \"year\" real,\n \"award\" text,\n \"nominated_work\" text,\n \"category\" text,\n \"result\" text\n);\n\nQuestion: Before the year 2012, what award was given to the artist in the category of revelaci\u00f3n pop del a\u00f1o?"
},
{
"role": "assistant",
"content": "SELECT \"award\" FROM \"awards\" WHERE \"year\"<2012 AND \"category\"='revelaci\u00f3n pop del a\u00f1o';"
}
] |
[
{
"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\" text,\n \"location\" text\n);\n\nQuestion: what is the method when the record is 1-1?"
},
{
"role": "assistant",
"content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"record\"='1-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\" text,\n \"location\" text\n);\n\nQuestion: what is the event when the opponent is yuji hisamatsu?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='yuji hisamatsu';"
}
] |
[
{
"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 is the time of ufc 154?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='ufc 154';"
}
] |
[
{
"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 is the average round of the match with kevin manderson as the opponent?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"round\") FROM \"mixed_martial_arts_record\" WHERE \"opponent\"='kevin manderson';"
}
] |
[
{
"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 location attendance on January 19?"
},
{
"role": "assistant",
"content": "SELECT \"location_attendance\" FROM \"game_log\" WHERE \"date\"='january 19';"
}
] |
[
{
"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 number game was it that the Spurs were @ Miami?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"game\") FROM \"game_log\" WHERE \"team\"='@ miami';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"main_round\" (\n \"position\" real,\n \"name\" text,\n \"played\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points\" real\n);\n\nQuestion: What is the total number of losses of the player that has drawn 1 and played smaller than 12?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"lost\") FROM \"main_round\" WHERE \"drawn\"=1 AND \"played\"<12;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_19_13_titles_6_runners_up\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What type of surface did the tournament canada f9, markham have?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles_19_13_titles_6_runners_up\" WHERE \"tournament\"='canada f9, markham';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: What is Score, when Date is December 23?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"season_schedule\" WHERE \"date\"='december 23';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_schedule\" (\n \"game\" real,\n \"date\" text,\n \"team\" text,\n \"score\" text,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: What is Score when Team is @ Kansas City-Omaha Kings?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"season_schedule\" WHERE \"team\"='@ kansas city-omaha kings';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which position has an Overall smaller than 64, and a Round of 1?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"washington_redskins_draft_history\" WHERE \"overall\"<64 AND \"round\"=1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which average overall has a Pick smaller than 5?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"overall\") FROM \"washington_redskins_draft_history\" WHERE \"pick\"<5;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which highest overall has a College of idaho, and a Round smaller than 1?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"overall\") FROM \"washington_redskins_draft_history\" WHERE \"college\"='idaho' AND \"round\"<1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"washington_redskins_draft_history\" (\n \"round\" real,\n \"pick\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: How many rounds have a Pick smaller than 10, and a Name of larry hendershot?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"round\") FROM \"washington_redskins_draft_history\" WHERE \"pick\"<10 AND \"name\"='larry hendershot';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_germanic\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text\n);\n\nQuestion: What is Part 1, when Part 2 is \"fraus\"?"
},
{
"role": "assistant",
"content": "SELECT \"part_1\" FROM \"north_germanic\" WHERE \"part_2\"='fraus';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_germanic\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text\n);\n\nQuestion: What is Part 3, when Part 1 is \"frj\u00f3sa\"?"
},
{
"role": "assistant",
"content": "SELECT \"part_3\" FROM \"north_germanic\" WHERE \"part_1\"='frj\u00f3sa';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_germanic\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text\n);\n\nQuestion: What is Class, when Part 2 is \"bl\u00e9tu\"?"
},
{
"role": "assistant",
"content": "SELECT \"class\" FROM \"north_germanic\" WHERE \"part_3\"='bl\u00e9tu';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_germanic\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text\n);\n\nQuestion: What is Part 4, when Part 2 is \"hlj\u00f3p\"?"
},
{
"role": "assistant",
"content": "SELECT \"part_4\" FROM \"north_germanic\" WHERE \"part_2\"='hlj\u00f3p';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_germanic\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text\n);\n\nQuestion: What is Part 4, when Part 2 is \"batt\"?"
},
{
"role": "assistant",
"content": "SELECT \"part_4\" FROM \"north_germanic\" WHERE \"part_2\"='batt';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_germanic\" (\n \"class\" text,\n \"part_1\" text,\n \"part_2\" text,\n \"part_3\" text,\n \"part_4\" text\n);\n\nQuestion: What is Part 1, when Part 3 is \"heldu\"?"
},
{
"role": "assistant",
"content": "SELECT \"part_1\" FROM \"north_germanic\" WHERE \"part_3\"='heldu';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_16\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"crowd\" real,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What is the home team which plays at a venue called Win Entertainment Centre?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"round_16\" WHERE \"venue\"='win entertainment centre';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_16\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"crowd\" real,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: What away team had a 103-94 score?"
},
{
"role": "assistant",
"content": "SELECT \"away_team\" FROM \"round_16\" WHERE \"score\"='103-94';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_16\" (\n \"date\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"venue\" text,\n \"crowd\" real,\n \"box_score\" text,\n \"report\" text\n);\n\nQuestion: When the home team is Cairns Taipans, at which venue do they play?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"round_16\" WHERE \"home_team\"='cairns taipans';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_variations_across_different_version\" (\n \"gatchaman\" text,\n \"eagle_riders\" text,\n \"rank\" text,\n \"bird_uniform\" text,\n \"weapon\" text,\n \"mecha\" text,\n \"japanese_voice_actor\" text,\n \"voice_actor_eagle_riders\" text\n);\n\nQuestion: What is the bird uniform for Eagle Rider Mickey Dugan?"
},
{
"role": "assistant",
"content": "SELECT \"bird_uniform\" FROM \"team_variations_across_different_version\" WHERE \"eagle_riders\"='mickey dugan';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_variations_across_different_version\" (\n \"gatchaman\" text,\n \"eagle_riders\" text,\n \"rank\" text,\n \"bird_uniform\" text,\n \"weapon\" text,\n \"mecha\" text,\n \"japanese_voice_actor\" text,\n \"voice_actor_eagle_riders\" text\n);\n\nQuestion: Who is the Japanese voice actor of Eagle Rider Ollie Keeawani?"
},
{
"role": "assistant",
"content": "SELECT \"japanese_voice_actor\" FROM \"team_variations_across_different_version\" WHERE \"eagle_riders\"='ollie keeawani';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_variations_across_different_version\" (\n \"gatchaman\" text,\n \"eagle_riders\" text,\n \"rank\" text,\n \"bird_uniform\" text,\n \"weapon\" text,\n \"mecha\" text,\n \"japanese_voice_actor\" text,\n \"voice_actor_eagle_riders\" text\n);\n\nQuestion: What is the bird uniform for the voice actor Heidi Noelle Lenhart?"
},
{
"role": "assistant",
"content": "SELECT \"bird_uniform\" FROM \"team_variations_across_different_version\" WHERE \"voice_actor_eagle_riders\"='heidi noelle lenhart';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_variations_across_different_version\" (\n \"gatchaman\" text,\n \"eagle_riders\" text,\n \"rank\" text,\n \"bird_uniform\" text,\n \"weapon\" text,\n \"mecha\" text,\n \"japanese_voice_actor\" text,\n \"voice_actor_eagle_riders\" text\n);\n\nQuestion: What is the Mecha of the Japanese voice actor Shingo Kanemoto?"
},
{
"role": "assistant",
"content": "SELECT \"mecha\" FROM \"team_variations_across_different_version\" WHERE \"japanese_voice_actor\"='shingo kanemoto';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_variations_across_different_version\" (\n \"gatchaman\" text,\n \"eagle_riders\" text,\n \"rank\" text,\n \"bird_uniform\" text,\n \"weapon\" text,\n \"mecha\" text,\n \"japanese_voice_actor\" text,\n \"voice_actor_eagle_riders\" text\n);\n\nQuestion: What is the weapon for the mecha of motorcycle?"
},
{
"role": "assistant",
"content": "SELECT \"weapon\" FROM \"team_variations_across_different_version\" WHERE \"mecha\"='motorcycle';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"team_variations_across_different_version\" (\n \"gatchaman\" text,\n \"eagle_riders\" text,\n \"rank\" text,\n \"bird_uniform\" text,\n \"weapon\" text,\n \"mecha\" text,\n \"japanese_voice_actor\" text,\n \"voice_actor_eagle_riders\" text\n);\n\nQuestion: What is the bird uniform that is associated with the rank of G2?"
},
{
"role": "assistant",
"content": "SELECT \"bird_uniform\" FROM \"team_variations_across_different_version\" WHERE \"rank\"='g2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: Which team had a score of 103-96?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"playoffs\" WHERE \"score\"='103-96';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\n \"game\" real,\n \"team\" text,\n \"score\" text,\n \"location_attendance\" text,\n \"record\" text\n);\n\nQuestion: What is the smallest game had a location of Madison Square Garden with a score of 109-99?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"game\") FROM \"playoffs\" WHERE \"location_attendance\"='madison square garden' AND \"score\"='109-99';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"career_sr\" text,\n \"career_w_l\" text\n);\n\nQuestion: What is the 2007 value for the 2006 wta premier tournaments?"
},
{
"role": "assistant",
"content": "SELECT \"2007\" FROM \"singles_performance_timeline\" WHERE \"2006\"='wta premier tournaments';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"career_sr\" text,\n \"career_w_l\" text\n);\n\nQuestion: What is the 2007 value for the 2010 wta premier 5 tournaments?"
},
{
"role": "assistant",
"content": "SELECT \"2007\" FROM \"singles_performance_timeline\" WHERE \"2010\"='wta premier 5 tournaments';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"career_sr\" text,\n \"career_w_l\" text\n);\n\nQuestion: What is the 2004 value with A in 2005, A in 2008, and lq in 2009?"
},
{
"role": "assistant",
"content": "SELECT \"2004\" FROM \"singles_performance_timeline\" WHERE \"2005\"='a' AND \"2008\"='a' AND \"2009\"='lq';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_performance_timeline\" (\n \"tournament\" text,\n \"2002\" text,\n \"2003\" text,\n \"2004\" text,\n \"2005\" text,\n \"2006\" text,\n \"2007\" text,\n \"2008\" text,\n \"2009\" text,\n \"2010\" text,\n \"career_sr\" text,\n \"career_w_l\" text\n);\n\nQuestion: What is the career SR for the tournament of wimbledon?"
},
{
"role": "assistant",
"content": "SELECT \"career_sr\" FROM \"singles_performance_timeline\" WHERE \"tournament\"='wimbledon';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fourth_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 score for the Tie no. 12?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"fourth_round_proper\" WHERE \"tie_no\"='12';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fourth_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 home team against the away team Norwich City?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"fourth_round_proper\" WHERE \"away_team\"='norwich city';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"fourth_round_proper\" (\n \"tie_no\" text,\n \"home_team\" text,\n \"score\" text,\n \"away_team\" text,\n \"date\" text\n);\n\nQuestion: Who is the home team with a tie no. 12?"
},
{
"role": "assistant",
"content": "SELECT \"home_team\" FROM \"fourth_round_proper\" WHERE \"tie_no\"='12';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"college\" text\n);\n\nQuestion: WHAT IS THE PLAYER WITH A PICK OF 219?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"draft_picks\" WHERE \"pick\"=219;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"college\" text\n);\n\nQuestion: WHAT NATIONALITY HAS ROUND 3?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"draft_picks\" WHERE \"round\"=3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"draft_picks\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"nationality\" text,\n \"college\" text\n);\n\nQuestion: WHAT PLAYER HAS A PICK SMALLER THAN 110, AND DUKE AS COLLEGE?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"draft_picks\" WHERE \"pick\"<110 AND \"college\"='duke';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"j\" (\n \"player\" text,\n \"no_s\" real,\n \"height_in_ft\" text,\n \"position\" text,\n \"years_with_spurs\" text\n);\n\nQuestion: WHAT POSITION HAD SPURS IN 2009-2012?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"j\" WHERE \"years_with_spurs\"='2009-2012';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winner_and_score\" text,\n \"finalist\" text,\n \"semifinalists\" text\n);\n\nQuestion: Who won on the week of August 10?"
},
{
"role": "assistant",
"content": "SELECT \"winner_and_score\" FROM \"singles\" WHERE \"week\"='august 10';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winner_and_score\" text,\n \"finalist\" text,\n \"semifinalists\" text\n);\n\nQuestion: What surface was played on during the week of August 10?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles\" WHERE \"week\"='august 10';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winner_and_score\" text,\n \"finalist\" text,\n \"semifinalists\" text\n);\n\nQuestion: What tournament had Greg Rusedski as a finalist?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"singles\" WHERE \"finalist\"='greg rusedski';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles\" (\n \"tournament\" text,\n \"surface\" text,\n \"week\" text,\n \"winner_and_score\" text,\n \"finalist\" text,\n \"semifinalists\" text\n);\n\nQuestion: What was the surface that was played on during the week of March 16?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles\" WHERE \"week\"='march 16';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: what is the least laps when the driver is rubens barrichello and the grid is less than 12?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"laps\") FROM \"classification\" WHERE \"driver\"='rubens barrichello' AND \"grid\"<12;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification\" (\n \"driver\" text,\n \"constructor\" text,\n \"laps\" real,\n \"time_retired\" text,\n \"grid\" real\n);\n\nQuestion: what is the time/retired when the laps is 55?"
},
{
"role": "assistant",
"content": "SELECT \"time_retired\" FROM \"classification\" WHERE \"laps\"=55;"
}
] |
[
{
"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\" text,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Where was the event Kage Kombat 16?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='kage kombat 16';"
}
] |
[
{
"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\" text,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: Which event had the record of 18\u20135 (1)?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"mixed_martial_arts_record\" WHERE \"record\"='18\u20135 (1)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"driver\" text,\n \"entrant\" text,\n \"constructor\" text,\n \"time_retired\" text,\n \"grid\" text,\n \"heat_1_2\" text\n);\n\nQuestion: What was Menato Boffa's grid?"
},
{
"role": "assistant",
"content": "SELECT \"grid\" FROM \"results\" WHERE \"driver\"='menato boffa';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"driver\" text,\n \"entrant\" text,\n \"constructor\" text,\n \"time_retired\" text,\n \"grid\" text,\n \"heat_1_2\" text\n);\n\nQuestion: What is the Time/Retired value for Ludovico Scarfiotti?"
},
{
"role": "assistant",
"content": "SELECT \"time_retired\" FROM \"results\" WHERE \"driver\"='ludovico scarfiotti';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"driver\" text,\n \"entrant\" text,\n \"constructor\" text,\n \"time_retired\" text,\n \"grid\" text,\n \"heat_1_2\" text\n);\n\nQuestion: Who was Albino Buticchi's constructor?"
},
{
"role": "assistant",
"content": "SELECT \"constructor\" FROM \"results\" WHERE \"driver\"='albino buticchi';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"driver\" text,\n \"entrant\" text,\n \"constructor\" text,\n \"time_retired\" text,\n \"grid\" text,\n \"heat_1_2\" text\n);\n\nQuestion: Who was the driver for Rovero Campello?"
},
{
"role": "assistant",
"content": "SELECT \"driver\" FROM \"results\" WHERE \"entrant\"='rovero campello';"
}
] |
[
{
"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 score of player jay haas?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"final_round\" WHERE \"player\"='jay haas';"
}
] |
[
{
"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 to par of the player with more than $4,100 and a score of 69-67-72-70=278?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"final_round\" WHERE \"money\">'4,100' AND \"score\"='69-67-72-70=278';"
}
] |
[
{
"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: Who is the player with a +3 to par and a 72-68-71-72=283 score?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"final_round\" WHERE \"to_par\"='+3' AND \"score\"='72-68-71-72=283';"
}
] |
[
{
"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 country has a 74-72-71-67=284 score?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"final_round\" WHERE \"score\"='74-72-71-67=284';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"riders\" (\n \"position\" real,\n \"driver_passenger\" text,\n \"equipment\" text,\n \"bike_no\" real,\n \"points\" real\n);\n\nQuestion: What is the lowest Bike No, when Driver / Passenger is Joris Hendrickx / Kaspars Liepins, and when Position is less than 4?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"bike_no\") FROM \"riders\" WHERE \"driver_passenger\"='joris hendrickx / kaspars liepins' AND \"position\"<4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"riders\" (\n \"position\" real,\n \"driver_passenger\" text,\n \"equipment\" text,\n \"bike_no\" real,\n \"points\" real\n);\n\nQuestion: What is the average Position, when Bike No is greater than 8, and when Points is less than 240?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"position\") FROM \"riders\" WHERE \"bike_no\">8 AND \"points\"<240;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"riders\" (\n \"position\" real,\n \"driver_passenger\" text,\n \"equipment\" text,\n \"bike_no\" real,\n \"points\" real\n);\n\nQuestion: What is the lowest Postion, when Bike No is greater than 10, when Driver / Passenger is Nicky Pulinx / Ondrej Cermak, and when Points is greater than 244?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"position\") FROM \"riders\" WHERE \"bike_no\">10 AND \"driver_passenger\"='nicky pulinx / ondrej cermak' AND \"points\">244;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"riders\" (\n \"position\" real,\n \"driver_passenger\" text,\n \"equipment\" text,\n \"bike_no\" real,\n \"points\" real\n);\n\nQuestion: What is the highest Points, when Position is less than 4, when Equipment is Zabel - VMC, and when Bike No is less than 1?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"riders\" WHERE \"position\"<4 AND \"equipment\"='zabel - vmc' AND \"bike_no\"<1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"riders\" (\n \"position\" real,\n \"driver_passenger\" text,\n \"equipment\" text,\n \"bike_no\" real,\n \"points\" real\n);\n\nQuestion: What is the average Bike No, when Driver / Passenger is Joris Hendrickx / Kaspars Liepins, and when Position is greater than 4?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"bike_no\") FROM \"riders\" WHERE \"driver_passenger\"='joris hendrickx / kaspars liepins' AND \"position\">4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"video_game\" (\n \"publisher\" text,\n \"year\" real,\n \"platform\" text,\n \"type\" text,\n \"metacritic_score\" text\n);\n\nQuestion: What is the type of electronic with the Gamecube Platform?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"video_game\" WHERE \"platform\"='gamecube';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_7\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: On what type of surface did they play on 13 February 1994?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles_7\" WHERE \"date\"='13 february 1994';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_7\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: In which tournament was Silke Meier the opponent in the final?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"singles_7\" WHERE \"opponent_in_the_final\"='silke meier';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"goal\" real,\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: Which venue has a scoreof 2\u20130?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"international_goals\" WHERE \"score\"='2\u20130';"
}
] |
[
{
"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 IS THE SCORE WITH THE TEAM OF INDIANA?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"team\"='indiana';"
}
] |
[
{
"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 IS THE TEAM WITH ATTENDANCE AT TARGET CENTER 11,921?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"game_log\" WHERE \"location_attendance\"='target center 11,921';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"site\" text,\n \"result\" text,\n \"attendance\" text\n);\n\nQuestion: What was the attendance on 10/29/1932?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"date\"='10/29/1932';"
}
] |
[
{
"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: What was the Attendance on December 21, 1986 before Week 16?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"attendance\") FROM \"schedule\" WHERE \"date\"='december 21, 1986' AND \"week\"<16;"
}
] |
[
{
"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: In what Week was the Attendance 43,430?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"week\") FROM \"schedule\" WHERE \"attendance\"='43,430';"
}
] |
[
{
"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: What was the Result of the game on December 14, 1986 after Week 11?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"week\">11 AND \"date\"='december 14, 1986';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\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 \"series\" text\n);\n\nQuestion: What team did they play when the series was 1-1?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"playoffs\" WHERE \"series\"='1-1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\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 \"series\" text\n);\n\nQuestion: What were the high points on May 12?"
},
{
"role": "assistant",
"content": "SELECT \"high_points\" FROM \"playoffs\" WHERE \"date\"='may 12';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"playoffs\" (\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 \"series\" text\n);\n\nQuestion: What was the team they played when the series was 2-1?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"playoffs\" WHERE \"series\"='2-1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: who is the opponent on february 8, 1990?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"date\"='february 8, 1990';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"streak\" text\n);\n\nQuestion: who is the opponent when the streak is won 9 on april 13, 1990?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"schedule\" WHERE \"streak\"='won 9' AND \"date\"='april 13, 1990';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"councillors_election_results\" (\n \"election\" real,\n \"leader\" text,\n \"num_of_seats_won\" real,\n \"num_of_national_votes\" real,\n \"pct_of_national_vote\" text,\n \"num_of_prefectural_votes\" real,\n \"pct_of_prefectural_vote\" text\n);\n\nQuestion: What is the total number of # Of Prefectural Votes, when # Of Seats Won is greater than 69, and when Leader is Yasuhiro Nakasone?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"num_of_prefectural_votes\") FROM \"councillors_election_results\" WHERE \"num_of_seats_won\">69 AND \"leader\"='yasuhiro nakasone';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"councillors_election_results\" (\n \"election\" real,\n \"leader\" text,\n \"num_of_seats_won\" real,\n \"num_of_national_votes\" real,\n \"pct_of_national_vote\" text,\n \"num_of_prefectural_votes\" real,\n \"pct_of_prefectural_vote\" text\n);\n\nQuestion: What is the average # Of National Votes, when the Election is before 1992, when the % Of Prefectural Vote is 39.5%, when Leader is Takeo Fukuda, and when # Of Seats Won is greater than 63?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"num_of_national_votes\") FROM \"councillors_election_results\" WHERE \"election\"<1992 AND \"pct_of_prefectural_vote\"='39.5%' AND \"leader\"='takeo fukuda' AND \"num_of_seats_won\">63;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"councillors_election_results\" (\n \"election\" real,\n \"leader\" text,\n \"num_of_seats_won\" real,\n \"num_of_national_votes\" real,\n \"pct_of_national_vote\" text,\n \"num_of_prefectural_votes\" real,\n \"pct_of_prefectural_vote\" text\n);\n\nQuestion: What is the average Election, when % Of Prefectural Vote is 38.57%, and when # Of Prefectural Votes is greater than 21,114,727?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"election\") FROM \"councillors_election_results\" WHERE \"pct_of_prefectural_vote\"='38.57%' AND \"num_of_prefectural_votes\">'21,114,727';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"councillors_election_results\" (\n \"election\" real,\n \"leader\" text,\n \"num_of_seats_won\" real,\n \"num_of_national_votes\" real,\n \"pct_of_national_vote\" text,\n \"num_of_prefectural_votes\" real,\n \"pct_of_prefectural_vote\" text\n);\n\nQuestion: What is the average Election, when % Of Nation Vote is 45.23%, and when # Of Prefectural Votes is less than 14,961,199?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"election\") FROM \"councillors_election_results\" WHERE \"pct_of_national_vote\"='45.23%' AND \"num_of_prefectural_votes\"<'14,961,199';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"councillors_election_results\" (\n \"election\" real,\n \"leader\" text,\n \"num_of_seats_won\" real,\n \"num_of_national_votes\" real,\n \"pct_of_national_vote\" text,\n \"num_of_prefectural_votes\" real,\n \"pct_of_prefectural_vote\" text\n);\n\nQuestion: What is the total number of # Of Prefectural Votes, when % Of Prefectural Vote is 48.4%, and when # Of Seats Won is greater than 61?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"num_of_prefectural_votes\") FROM \"councillors_election_results\" WHERE \"pct_of_prefectural_vote\"='48.4%' AND \"num_of_seats_won\">61;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mma_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 was the resolution of the fight against steve schneider?"
},
{
"role": "assistant",
"content": "SELECT \"res\" FROM \"mma_record\" WHERE \"opponent\"='steve schneider';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mma_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 was the resolution of the fight when matt grice had a record of 2-0?"
},
{
"role": "assistant",
"content": "SELECT \"res\" FROM \"mma_record\" WHERE \"record\"='2-0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mma_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 was the record when matt grice fought dennis bermudez with a time of 5:00?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"mma_record\" WHERE \"time\"='5:00' AND \"opponent\"='dennis bermudez';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_5_2_titles_3_runners_up\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What was the outcome of the match against Juan Ignacio Chela?"
},
{
"role": "assistant",
"content": "SELECT \"outcome\" FROM \"singles_5_2_titles_3_runners_up\" WHERE \"opponent\"='juan ignacio chela';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_of_the_yugoslavian_motorcycle_gr\" (\n \"year\" real,\n \"track\" text,\n \"250_cc\" text,\n \"500_cc\" text,\n \"report\" text\n);\n\nQuestion: What is the 250 cc with a year bigger than 1984?"
},
{
"role": "assistant",
"content": "SELECT \"250_cc\" FROM \"winners_of_the_yugoslavian_motorcycle_gr\" WHERE \"year\">1984;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_of_the_yugoslavian_motorcycle_gr\" (\n \"year\" real,\n \"track\" text,\n \"250_cc\" text,\n \"500_cc\" text,\n \"report\" text\n);\n\nQuestion: What is the report for a 250 cc of sito pons, and a 500 cc of wayne gardner?"
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"winners_of_the_yugoslavian_motorcycle_gr\" WHERE \"250_cc\"='sito pons' AND \"500_cc\"='wayne gardner';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_of_the_yugoslavian_motorcycle_gr\" (\n \"year\" real,\n \"track\" text,\n \"250_cc\" text,\n \"500_cc\" text,\n \"report\" text\n);\n\nQuestion: What is the 500 cc with a 250 cc of freddie spencer?"
},
{
"role": "assistant",
"content": "SELECT \"500_cc\" FROM \"winners_of_the_yugoslavian_motorcycle_gr\" WHERE \"250_cc\"='freddie spencer';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners_of_the_yugoslavian_motorcycle_gr\" (\n \"year\" real,\n \"track\" text,\n \"250_cc\" text,\n \"500_cc\" text,\n \"report\" text\n);\n\nQuestion: What track has a 250 cc of sito pons?"
},
{
"role": "assistant",
"content": "SELECT \"track\" FROM \"winners_of_the_yugoslavian_motorcycle_gr\" WHERE \"250_cc\"='sito pons';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real\n);\n\nQuestion: How much did Jerry Barber score to come in at T9?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round\" WHERE \"place\"='t9' AND \"player\"='jerry barber';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real\n);\n\nQuestion: What place did Jerry Barber of the United States come in at?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"third_round\" WHERE \"country\"='united states' AND \"player\"='jerry barber';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.