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 \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"save\" text,\n \"record\" text\n);\n\nQuestion: What was the loss on September 2?"
},
{
"role": "assistant",
"content": "SELECT \"loss\" FROM \"game_log\" WHERE \"date\"='september 2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_ladder\" (\n \"ntfa_div_1\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the total number of byes that are associated with 1 draw, 5 wins, and fewer than 12 losses?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"byes\") FROM \"2010_ladder\" WHERE \"draws\"=1 AND \"wins\"=5 AND \"losses\"<12;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_ladder\" (\n \"ntfa_div_1\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the total number of byes associated with fewer than 8 wins and fewer than 1 draw?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"byes\") FROM \"2010_ladder\" WHERE \"draws\"<1 AND \"wins\"<8;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_ladder\" (\n \"ntfa_div_1\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the NTFA Div 1 team that has 15 wins and less than 1 draw?"
},
{
"role": "assistant",
"content": "SELECT \"ntfa_div_1\" FROM \"2010_ladder\" WHERE \"draws\"<1 AND \"wins\"=15;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_ladder\" (\n \"ntfa_div_1\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the average number of losses for teams with 0 draws and 0 byes?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"losses\") FROM \"2010_ladder\" WHERE \"draws\"=0 AND \"byes\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_ladder\" (\n \"ntfa_div_1\" text,\n \"wins\" real,\n \"byes\" real,\n \"losses\" real,\n \"draws\" real,\n \"against\" real\n);\n\nQuestion: What is the most number of losses for teams with 5 wins and an against value under 1607?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"losses\") FROM \"2010_ladder\" WHERE \"wins\"=5 AND \"against\"<1607;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" text,\n \"race\" real,\n \"podium\" real,\n \"pole\" real,\n \"f_lap\" real\n);\n\nQuestion: Race that has a Podium larger than 1, and a Season of 1982, and a flap smaller than 1 had how many number of races?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"race\") FROM \"by_season\" WHERE \"podium\">1 AND \"season\"='1982' AND \"f_lap\"<1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" text,\n \"race\" real,\n \"podium\" real,\n \"pole\" real,\n \"f_lap\" real\n);\n\nQuestion: Pole smaller than 0 had what lowest podium?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"podium\") FROM \"by_season\" WHERE \"pole\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_season\" (\n \"season\" text,\n \"race\" real,\n \"podium\" real,\n \"pole\" real,\n \"f_lap\" real\n);\n\nQuestion: Flap of 0, and a Race smaller than 2, and a Season of 1989, and a Pole smaller than 0 had what average podium?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"podium\") FROM \"by_season\" WHERE \"f_lap\"=0 AND \"race\"<2 AND \"season\"='1989' AND \"pole\"<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 \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"stadium\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What was the record on august 24?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='august 24';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"colorado_highway_summits_not_on_a_pass\" (\n \"rank\" real,\n \"highway\" text,\n \"elevation\" text,\n \"surface\" text,\n \"route\" real\n);\n\nQuestion: Elevation of 11,158 feet 3401 m had what route?"
},
{
"role": "assistant",
"content": "SELECT \"route\" FROM \"colorado_highway_summits_not_on_a_pass\" WHERE \"elevation\"='11,158 feet 3401 m';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"colorado_highway_summits_not_on_a_pass\" (\n \"rank\" real,\n \"highway\" text,\n \"elevation\" text,\n \"surface\" text,\n \"route\" real\n);\n\nQuestion: Route larger than 24, and a Highway of trail ridge road had what elevation?"
},
{
"role": "assistant",
"content": "SELECT \"elevation\" FROM \"colorado_highway_summits_not_on_a_pass\" WHERE \"route\">24 AND \"highway\"='trail ridge road';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"colorado_highway_summits_not_on_a_pass\" (\n \"rank\" real,\n \"highway\" text,\n \"elevation\" text,\n \"surface\" text,\n \"route\" real\n);\n\nQuestion: Elevation of 12,183 feet 3713 m is what average route?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"route\") FROM \"colorado_highway_summits_not_on_a_pass\" WHERE \"elevation\"='12,183 feet 3713 m';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1982\" (\n \"date\" text,\n \"city\" text,\n \"opponent\" text,\n \"results\" text,\n \"type_of_game\" text\n);\n\nQuestion: What Opponent has a Results\u00b9 of 1:3?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"1982\" WHERE \"results\"='1:3';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1982\" (\n \"date\" text,\n \"city\" text,\n \"opponent\" text,\n \"results\" text,\n \"type_of_game\" text\n);\n\nQuestion: On what Date was the Results\u00b9 1:2?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"1982\" WHERE \"results\"='1:2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1982\" (\n \"date\" text,\n \"city\" text,\n \"opponent\" text,\n \"results\" text,\n \"type_of_game\" text\n);\n\nQuestion: What City had Results\u00b9 of 1:2?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"1982\" WHERE \"results\"='1:2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1982\" (\n \"date\" text,\n \"city\" text,\n \"opponent\" text,\n \"results\" text,\n \"type_of_game\" text\n);\n\nQuestion: On what Date was Wales the Opponent?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"1982\" WHERE \"opponent\"='wales';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1982\" (\n \"date\" text,\n \"city\" text,\n \"opponent\" text,\n \"results\" text,\n \"type_of_game\" text\n);\n\nQuestion: In what City was Bulgaria the Opponent with Results\u00b9 of 1:0?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"1982\" WHERE \"results\"='1:0' AND \"opponent\"='bulgaria';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regular_season\" (\n \"game\" real,\n \"november\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What Vancouver canucks game was on a date closest to November 4?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"game\") FROM \"regular_season\" WHERE \"opponent\"='vancouver canucks' AND \"november\"<4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1990s\" (\n \"year\" text,\n \"flagship_station\" text,\n \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"studio_host\" text\n);\n\nQuestion: Name the year for jerry sichting"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"1990s\" WHERE \"color_commentator_s\"='jerry sichting';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1990s\" (\n \"year\" text,\n \"flagship_station\" text,\n \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"studio_host\" text\n);\n\nQuestion: Name the studio host for glenn ordway and jerry sichting with year of 1993-94"
},
{
"role": "assistant",
"content": "SELECT \"studio_host\" FROM \"1990s\" WHERE \"play_by_play\"='glenn ordway' AND \"color_commentator_s\"='jerry sichting' AND \"year\"='1993-94';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1990s\" (\n \"year\" text,\n \"flagship_station\" text,\n \"play_by_play\" text,\n \"color_commentator_s\" text,\n \"studio_host\" text\n);\n\nQuestion: Name the flagship station for cedric maxwell and year of 1995-96"
},
{
"role": "assistant",
"content": "SELECT \"flagship_station\" FROM \"1990s\" WHERE \"color_commentator_s\"='cedric maxwell' AND \"year\"='1995-96';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"manitoba\" (\n \"building\" text,\n \"height_m\" real,\n \"floors\" real,\n \"built\" real,\n \"city\" text,\n \"architect\" text\n);\n\nQuestion: Who was the architect of the 10 floor building with a height of 42 M?"
},
{
"role": "assistant",
"content": "SELECT \"architect\" FROM \"manitoba\" WHERE \"height_m\"=42 AND \"floors\"=10;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"manitoba\" (\n \"building\" text,\n \"height_m\" real,\n \"floors\" real,\n \"built\" real,\n \"city\" text,\n \"architect\" text\n);\n\nQuestion: What is the height of the building built by architects Ross and Macfarlane?"
},
{
"role": "assistant",
"content": "SELECT \"height_m\" FROM \"manitoba\" WHERE \"architect\"='ross and macfarlane';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"manitoba\" (\n \"building\" text,\n \"height_m\" real,\n \"floors\" real,\n \"built\" real,\n \"city\" text,\n \"architect\" text\n);\n\nQuestion: Who was the architect that built the Electric Railway Chambers before 1915?"
},
{
"role": "assistant",
"content": "SELECT \"architect\" FROM \"manitoba\" WHERE \"built\"<1915 AND \"building\"='electric railway chambers';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"time\" text,\n \"att\" real,\n \"record\" text\n);\n\nQuestion: What is the Time on july 18 that has a Loss of lilly (3-3)?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"game_log\" WHERE \"date\"='july 18' AND \"loss\"='lilly (3-3)';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"time\" text,\n \"att\" real,\n \"record\" text\n);\n\nQuestion: Which Opponent has a Record of 43-56?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"record\"='43-56';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"time\" text,\n \"att\" real,\n \"record\" text\n);\n\nQuestion: What is the Score on July 18 that has Record of 41-51?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='july 18' AND \"record\"='41-51';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"time\" text,\n \"att\" real,\n \"record\" text\n);\n\nQuestion: Which Record is on july 31?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"game_log\" WHERE \"date\"='july 31';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"time\" text,\n \"att\" real,\n \"record\" text\n);\n\nQuestion: Which Opponent has a Loss of weaver (9-9)?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"loss\"='weaver (9-9)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_percentage_of_pole_positions_in_\" (\n \"driver\" text,\n \"season\" real,\n \"races\" real,\n \"poles\" real,\n \"percentage\" text\n);\n\nQuestion: Which Season was the Poles greater than 14?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"highest_percentage_of_pole_positions_in_\" WHERE \"poles\">14;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_percentage_of_pole_positions_in_\" (\n \"driver\" text,\n \"season\" real,\n \"races\" real,\n \"poles\" real,\n \"percentage\" text\n);\n\nQuestion: Which is the highest Season with a Percentage of 67% and Alberto Ascari as a Driver?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"season\") FROM \"highest_percentage_of_pole_positions_in_\" WHERE \"percentage\"='67%' AND \"driver\"='alberto ascari';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_percentage_of_pole_positions_in_\" (\n \"driver\" text,\n \"season\" real,\n \"races\" real,\n \"poles\" real,\n \"percentage\" text\n);\n\nQuestion: Name the Driver that has Races greater than 16?"
},
{
"role": "assistant",
"content": "SELECT \"driver\" FROM \"highest_percentage_of_pole_positions_in_\" WHERE \"races\">16;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rushing\" (\n \"name\" text,\n \"gp_gs\" real,\n \"gain\" real,\n \"loss\" real,\n \"long\" real,\n \"avg_g\" real\n);\n\nQuestion: What is the average Long that has a GP-GS less than 14, a AVg/G less than 0.8 and a Gain less than 3 and a Loss greater than 8?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"long\") FROM \"rushing\" WHERE \"gp_gs\"<14 AND \"avg_g\"<0.8 AND \"gain\"<3 AND \"loss\">8;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rushing\" (\n \"name\" text,\n \"gp_gs\" real,\n \"gain\" real,\n \"loss\" real,\n \"long\" real,\n \"avg_g\" real\n);\n\nQuestion: What is the lowest Avg/G with a Long less than 0?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"avg_g\") FROM \"rushing\" WHERE \"long\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rushing\" (\n \"name\" text,\n \"gp_gs\" real,\n \"gain\" real,\n \"loss\" real,\n \"long\" real,\n \"avg_g\" real\n);\n\nQuestion: What is the amount of Avg/G with a Name of blaine gabbert and a Long greater than 30?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"avg_g\") FROM \"rushing\" WHERE \"name\"='blaine gabbert' AND \"long\">30;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rushing\" (\n \"name\" text,\n \"gp_gs\" real,\n \"gain\" real,\n \"loss\" real,\n \"long\" real,\n \"avg_g\" real\n);\n\nQuestion: What is the total number of Long with a Av/g of 124.9 but Loss greater than 0?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"long\") FROM \"rushing\" WHERE \"loss\">0 AND \"avg_g\"=124.9;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"country\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" text\n);\n\nQuestion: What date has parlophone as the label, and lp as a format?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"release_history\" WHERE \"label\"='parlophone' AND \"format\"='lp';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"school\" text,\n \"team\" text,\n \"city\" text,\n \"state\" text,\n \"conference\" text\n);\n\nQuestion: What school has oregon as the state, and ashland as the city?"
},
{
"role": "assistant",
"content": "SELECT \"school\" FROM \"see_also\" WHERE \"state\"='oregon' AND \"city\"='ashland';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"school\" text,\n \"team\" text,\n \"city\" text,\n \"state\" text,\n \"conference\" text\n);\n\nQuestion: What conference has mayville state as the school?"
},
{
"role": "assistant",
"content": "SELECT \"conference\" FROM \"see_also\" WHERE \"school\"='mayville state';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"school\" text,\n \"team\" text,\n \"city\" text,\n \"state\" text,\n \"conference\" text\n);\n\nQuestion: What school has belleville as the city?"
},
{
"role": "assistant",
"content": "SELECT \"school\" FROM \"see_also\" WHERE \"city\"='belleville';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"school\" text,\n \"team\" text,\n \"city\" text,\n \"state\" text,\n \"conference\" text\n);\n\nQuestion: What city has trojans as the team, and taylor as the school?"
},
{
"role": "assistant",
"content": "SELECT \"city\" FROM \"see_also\" WHERE \"team\"='trojans' AND \"school\"='taylor';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"school\" text,\n \"team\" text,\n \"city\" text,\n \"state\" text,\n \"conference\" text\n);\n\nQuestion: What team has great plains as the conference, and concordia (ne) as the school?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"see_also\" WHERE \"conference\"='great plains' AND \"school\"='concordia (ne)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"school\" text,\n \"team\" text,\n \"city\" text,\n \"state\" text,\n \"conference\" text\n);\n\nQuestion: What school is in hillsboro city?"
},
{
"role": "assistant",
"content": "SELECT \"school\" FROM \"see_also\" WHERE \"city\"='hillsboro';"
}
] |
[
{
"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 \"february\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: How many games have a February larger than 11, and a Record of 23-7-8?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"game\") FROM \"schedule_and_results\" WHERE \"february\">11 AND \"record\"='23-7-8';"
}
] |
[
{
"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 \"february\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: How much February has a Game larger than 37, and an Opponent of chicago black hawks?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"february\") FROM \"schedule_and_results\" WHERE \"game\">37 AND \"opponent\"='chicago black hawks';"
}
] |
[
{
"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 \"february\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: Which February has a Game of 40?"
},
{
"role": "assistant",
"content": "SELECT \"february\" FROM \"schedule_and_results\" WHERE \"game\"=40;"
}
] |
[
{
"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 \"february\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: Which Record has a February smaller than 8, and an Opponent of montreal canadiens?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"schedule_and_results\" WHERE \"february\"<8 AND \"opponent\"='montreal canadiens';"
}
] |
[
{
"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 \"february\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text\n);\n\nQuestion: Which Score has a Game larger than 40, and a Record of 25-10-8?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"schedule_and_results\" WHERE \"game\">40 AND \"record\"='25-10-8';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_defensive_players_of_the_year\" (\n \"year\" real,\n \"nfl_team\" text,\n \"position\" text,\n \"team_defense_rank\" real,\n \"team_performance\" text\n);\n\nQuestion: What was the team performance in 1977?"
},
{
"role": "assistant",
"content": "SELECT \"team_performance\" FROM \"nfl_defensive_players_of_the_year\" WHERE \"year\"=1977;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_defensive_players_of_the_year\" (\n \"year\" real,\n \"nfl_team\" text,\n \"position\" text,\n \"team_defense_rank\" real,\n \"team_performance\" text\n);\n\nQuestion: What was the position of the player whose team lost super bowl xxv before 1992, with a team defense rank larger than 3?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"nfl_defensive_players_of_the_year\" WHERE \"team_defense_rank\">3 AND \"year\"<1992 AND \"team_performance\"='lost super bowl xxv';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school\" text\n);\n\nQuestion: What round was Joe Patton selected with a pick over 68?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"nfl_draft\" WHERE \"pick\">68 AND \"player\"='joe patton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"handicap_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" real,\n \"skipper\" text,\n \"corrected_time_d_hh_mm_ss\" text\n);\n\nQuestion: Which Sail number has a Position smaller than 2?"
},
{
"role": "assistant",
"content": "SELECT \"sail_number\" FROM \"handicap_results_top_10\" WHERE \"position\"<2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"handicap_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" real,\n \"skipper\" text,\n \"corrected_time_d_hh_mm_ss\" text\n);\n\nQuestion: WHICH Corrected time d:hh:mm:ss has a Position smaller than 7, and a Yacht type of cookson 50"
},
{
"role": "assistant",
"content": "SELECT \"corrected_time_d_hh_mm_ss\" FROM \"handicap_results_top_10\" WHERE \"position\"<7 AND \"yacht_type\"='cookson 50';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"handicap_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" real,\n \"skipper\" text,\n \"corrected_time_d_hh_mm_ss\" text\n);\n\nQuestion: WHICH State/country that has ray roberts?"
},
{
"role": "assistant",
"content": "SELECT \"state_country\" FROM \"handicap_results_top_10\" WHERE \"skipper\"='ray roberts';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"handicap_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" real,\n \"skipper\" text,\n \"corrected_time_d_hh_mm_ss\" text\n);\n\nQuestion: WHICH Yacht type has a Corrected time 2:13:04:48?"
},
{
"role": "assistant",
"content": "SELECT \"yacht_type\" FROM \"handicap_results_top_10\" WHERE \"corrected_time_d_hh_mm_ss\"='2:13:04:48';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"handicap_results_top_10\" (\n \"position\" real,\n \"sail_number\" text,\n \"yacht\" text,\n \"state_country\" text,\n \"yacht_type\" text,\n \"loa_metres\" real,\n \"skipper\" text,\n \"corrected_time_d_hh_mm_ss\" text\n);\n\nQuestion: WHICH LOA (Metres) has a Corrected time d:hh:mm:ss of 3:12:07:43?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"loa_metres\") FROM \"handicap_results_top_10\" WHERE \"corrected_time_d_hh_mm_ss\"='3:12:07:43';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_titles_10\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What surface did Smeets play on during the Kuwait tournament?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"singles_titles_10\" WHERE \"tournament\"='kuwait';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_titles_10\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: What tournament did Smeets play against Mark nielsen?"
},
{
"role": "assistant",
"content": "SELECT \"tournament\" FROM \"singles_titles_10\" WHERE \"opponent_in_the_final\"='mark nielsen';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_titles_10\" (\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score\" text\n);\n\nQuestion: Who was the opponent during the tournament in Kuwait?"
},
{
"role": "assistant",
"content": "SELECT \"opponent_in_the_final\" FROM \"singles_titles_10\" WHERE \"tournament\"='kuwait';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_tournament\" (\n \"name_v_t_e\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"club\" text\n);\n\nQuestion: What is the weight of the player from the vk primorac kotor club?"
},
{
"role": "assistant",
"content": "SELECT \"weight\" FROM \"men_s_tournament\" WHERE \"club\"='vk primorac kotor';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_tournament\" (\n \"name_v_t_e\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"club\" text\n);\n\nQuestion: What is the weight of the player from pvk jadran club?"
},
{
"role": "assistant",
"content": "SELECT \"weight\" FROM \"men_s_tournament\" WHERE \"club\"='pvk jadran';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_tournament\" (\n \"name_v_t_e\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"club\" text\n);\n\nQuestion: What is the name of the player from club pro recco?"
},
{
"role": "assistant",
"content": "SELECT \"name_v_t_e\" FROM \"men_s_tournament\" WHERE \"club\"='pro recco';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_tournament\" (\n \"name_v_t_e\" text,\n \"pos\" text,\n \"height\" text,\n \"weight\" text,\n \"club\" text\n);\n\nQuestion: What is the height of the player from club vk primorac kotor who plays gk?"
},
{
"role": "assistant",
"content": "SELECT \"height\" FROM \"men_s_tournament\" WHERE \"pos\"='gk' AND \"club\"='vk primorac kotor';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_1_16_finals\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is Team 1 where Team 2 is gombe united f.c.?"
},
{
"role": "assistant",
"content": "SELECT \"team_1\" FROM \"first_round_1_16_finals\" WHERE \"team_2\"='gombe united f.c.';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_1_16_finals\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is Team 1 where Team 2 is al tahrir?"
},
{
"role": "assistant",
"content": "SELECT \"team_1\" FROM \"first_round_1_16_finals\" WHERE \"team_2\"='al tahrir';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_1_16_finals\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is the 2nd leg where Team 2 is fc 105 libreville?"
},
{
"role": "assistant",
"content": "SELECT \"2nd_leg\" FROM \"first_round_1_16_finals\" WHERE \"team_2\"='fc 105 libreville';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"future_sites\" (\n \"year\" real,\n \"edition\" text,\n \"course\" text,\n \"location\" text,\n \"dates\" text\n);\n\nQuestion: What was the course called that had an Edition of 117th?"
},
{
"role": "assistant",
"content": "SELECT \"course\" FROM \"future_sites\" WHERE \"edition\"='117th';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"future_sites\" (\n \"year\" real,\n \"edition\" text,\n \"course\" text,\n \"location\" text,\n \"dates\" text\n);\n\nQuestion: What was the earliest year that had a location of Brookline, Massachusetts?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"future_sites\" WHERE \"location\"='brookline, massachusetts';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"future_sites\" (\n \"year\" real,\n \"edition\" text,\n \"course\" text,\n \"location\" text,\n \"dates\" text\n);\n\nQuestion: What year had an edition of 115th?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"year\") FROM \"future_sites\" WHERE \"edition\"='115th';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_prix_motorcycle_racing_results\" (\n \"year\" real,\n \"class\" text,\n \"team\" text,\n \"points\" real,\n \"rank\" text,\n \"wins\" real\n);\n\nQuestion: How many points did ginger have when she was ranked 5th on a 350cc class bike?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points\") FROM \"grand_prix_motorcycle_racing_results\" WHERE \"class\"='350cc' AND \"rank\"='5th';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_prix_motorcycle_racing_results\" (\n \"year\" real,\n \"class\" text,\n \"team\" text,\n \"points\" real,\n \"rank\" text,\n \"wins\" real\n);\n\nQuestion: What year was she ranked 16th with over 12 points?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"year\") FROM \"grand_prix_motorcycle_racing_results\" WHERE \"rank\"='16th' AND \"points\">12;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_prix_motorcycle_racing_results\" (\n \"year\" real,\n \"class\" text,\n \"team\" text,\n \"points\" real,\n \"rank\" text,\n \"wins\" real\n);\n\nQuestion: What year was she on a 350cc class bike, ranked 16th, with over 0 wins?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"year\") FROM \"grand_prix_motorcycle_racing_results\" WHERE \"class\"='350cc' AND \"rank\"='16th' AND \"wins\">0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grand_prix_motorcycle_racing_results\" (\n \"year\" real,\n \"class\" text,\n \"team\" text,\n \"points\" real,\n \"rank\" text,\n \"wins\" real\n);\n\nQuestion: How many points did she have with team bultaco, ranked 6th?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"points\") FROM \"grand_prix_motorcycle_racing_results\" WHERE \"team\"='bultaco' AND \"rank\"='6th';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"days_of_the_week\" (\n \"arabic\" text,\n \"english\" text,\n \"maltese\" text,\n \"turkish\" text,\n \"somali\" text,\n \"persian\" text,\n \"urdu\" text,\n \"hindi\" text,\n \"punjabi_india\" text,\n \"punjabi_pakistan\" text,\n \"malayalam\" text,\n \"bangla\" text,\n \"hebrew\" text,\n \"indonesian\" text,\n \"malay\" text,\n \"filipino\" text,\n \"pashto\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kashmiri\" text,\n \"hausa\" text,\n \"yor_b\" text,\n \"kurdish\" text\n);\n\nQuestion: What is the Kashmiri word for the Indonesian word senin?"
},
{
"role": "assistant",
"content": "SELECT \"kashmiri\" FROM \"days_of_the_week\" WHERE \"indonesian\"='senin';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"days_of_the_week\" (\n \"arabic\" text,\n \"english\" text,\n \"maltese\" text,\n \"turkish\" text,\n \"somali\" text,\n \"persian\" text,\n \"urdu\" text,\n \"hindi\" text,\n \"punjabi_india\" text,\n \"punjabi_pakistan\" text,\n \"malayalam\" text,\n \"bangla\" text,\n \"hebrew\" text,\n \"indonesian\" text,\n \"malay\" text,\n \"filipino\" text,\n \"pashto\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kashmiri\" text,\n \"hausa\" text,\n \"yor_b\" text,\n \"kurdish\" text\n);\n\nQuestion: What is the Turkish word for the Bangla word shombar \u09b8\u09cb\u09ae\u09ac\u09be\u09b0?"
},
{
"role": "assistant",
"content": "SELECT \"turkish\" FROM \"days_of_the_week\" WHERE \"bangla\"='shombar \u09b8\u09cb\u09ae\u09ac\u09be\u09b0';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"days_of_the_week\" (\n \"arabic\" text,\n \"english\" text,\n \"maltese\" text,\n \"turkish\" text,\n \"somali\" text,\n \"persian\" text,\n \"urdu\" text,\n \"hindi\" text,\n \"punjabi_india\" text,\n \"punjabi_pakistan\" text,\n \"malayalam\" text,\n \"bangla\" text,\n \"hebrew\" text,\n \"indonesian\" text,\n \"malay\" text,\n \"filipino\" text,\n \"pashto\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kashmiri\" text,\n \"hausa\" text,\n \"yor_b\" text,\n \"kurdish\" text\n);\n\nQuestion: What is the Pashto word for the Somali word talaado?"
},
{
"role": "assistant",
"content": "SELECT \"pashto\" FROM \"days_of_the_week\" WHERE \"somali\"='talaado';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"days_of_the_week\" (\n \"arabic\" text,\n \"english\" text,\n \"maltese\" text,\n \"turkish\" text,\n \"somali\" text,\n \"persian\" text,\n \"urdu\" text,\n \"hindi\" text,\n \"punjabi_india\" text,\n \"punjabi_pakistan\" text,\n \"malayalam\" text,\n \"bangla\" text,\n \"hebrew\" text,\n \"indonesian\" text,\n \"malay\" text,\n \"filipino\" text,\n \"pashto\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kashmiri\" text,\n \"hausa\" text,\n \"yor_b\" text,\n \"kurdish\" text\n);\n\nQuestion: What is the Punjabi (Pakistan) word for the Kurdish word \u06cc\u0640\u0640\u0640\u06d5\u06a9 \u0634\u0640\u06d5\u0645\u0640\u0645\u0640\u06d5 yak sham?"
},
{
"role": "assistant",
"content": "SELECT \"punjabi_pakistan\" FROM \"days_of_the_week\" WHERE \"kurdish\"='\u06cc\u0640\u0640\u0640\u06d5\u06a9 \u0634\u0640\u06d5\u0645\u0640\u0645\u0640\u06d5 yak sham';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"days_of_the_week\" (\n \"arabic\" text,\n \"english\" text,\n \"maltese\" text,\n \"turkish\" text,\n \"somali\" text,\n \"persian\" text,\n \"urdu\" text,\n \"hindi\" text,\n \"punjabi_india\" text,\n \"punjabi_pakistan\" text,\n \"malayalam\" text,\n \"bangla\" text,\n \"hebrew\" text,\n \"indonesian\" text,\n \"malay\" text,\n \"filipino\" text,\n \"pashto\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kashmiri\" text,\n \"hausa\" text,\n \"yor_b\" text,\n \"kurdish\" text\n);\n\nQuestion: What is the Maltese word for the Malay word rabu?"
},
{
"role": "assistant",
"content": "SELECT \"maltese\" FROM \"days_of_the_week\" WHERE \"malay\"='rabu';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"days_of_the_week\" (\n \"arabic\" text,\n \"english\" text,\n \"maltese\" text,\n \"turkish\" text,\n \"somali\" text,\n \"persian\" text,\n \"urdu\" text,\n \"hindi\" text,\n \"punjabi_india\" text,\n \"punjabi_pakistan\" text,\n \"malayalam\" text,\n \"bangla\" text,\n \"hebrew\" text,\n \"indonesian\" text,\n \"malay\" text,\n \"filipino\" text,\n \"pashto\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kashmiri\" text,\n \"hausa\" text,\n \"yor_b\" text,\n \"kurdish\" text\n);\n\nQuestion: What is the Pashto word for the Malayalam word \u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02 vyazham?"
},
{
"role": "assistant",
"content": "SELECT \"pashto\" FROM \"days_of_the_week\" WHERE \"malayalam\"='\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02 vyazham';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Which Score has a Date of june 22?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='june 22';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: How much Attendance has an Opponent of rockies, and a Record of 32-30?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"attendance\") FROM \"game_log\" WHERE \"opponent\"='rockies' AND \"record\"='32-30';"
}
] |
[
{
"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: Who was the opponent in which the bout ended in round 2?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"mixed_martial_arts_record\" WHERE \"round\"=2;"
}
] |
[
{
"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 was the method of the bout lasting 4:15?"
},
{
"role": "assistant",
"content": "SELECT \"method\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='4:15';"
}
] |
[
{
"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 was the record after the bout lasting 4:15?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"time\"='4:15';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many Pick has a Round smaller than 13, and a Position of fullback?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"pick\") FROM \"nfl_draft\" WHERE \"round\"<13 AND \"position\"='fullback';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: WHo has a Position of end and a School/Club Team of oregon state?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"nfl_draft\" WHERE \"position\"='end' AND \"school_club_team\"='oregon state';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nfl_draft\" (\n \"round\" real,\n \"pick\" real,\n \"player\" text,\n \"position\" text,\n \"school_club_team\" text\n);\n\nQuestion: Which Round has a Player of brunel christensen and a Pick smaller than 293?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"round\") FROM \"nfl_draft\" WHERE \"player\"='brunel christensen' AND \"pick\"<293;"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: What score was on July 25?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"date\"='july 25';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Who is the opponent on July 2 with more than 39,290 attendance?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"attendance\">'39,290' AND \"date\"='july 2';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"partial_kickboxing_record\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" text,\n \"round\" text,\n \"time\" text,\n \"location\" text,\n \"rules\" text\n);\n\nQuestion: Which rule has The Event of n/a, The Result of loss, and The Location of winsford england?"
},
{
"role": "assistant",
"content": "SELECT \"rules\" FROM \"partial_kickboxing_record\" WHERE \"event\"='n/a' AND \"result\"='loss' AND \"location\"='winsford england';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"partial_kickboxing_record\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" text,\n \"round\" text,\n \"time\" text,\n \"location\" text,\n \"rules\" text\n);\n\nQuestion: Which Opponent has a Round of 4, and a Rules of thai boxing?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"partial_kickboxing_record\" WHERE \"round\"='4' AND \"rules\"='thai boxing';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"partial_kickboxing_record\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" text,\n \"round\" text,\n \"time\" text,\n \"location\" text,\n \"rules\" text\n);\n\nQuestion: Which Opponent has a Round of 3, a Time of n/a, and a Rules of n/a?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"partial_kickboxing_record\" WHERE \"round\"='3' AND \"time\"='n/a' AND \"rules\"='n/a';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"partial_kickboxing_record\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" text,\n \"round\" text,\n \"time\" text,\n \"location\" text,\n \"rules\" text\n);\n\nQuestion: Where has a Rules of thai boxing, and a Round of n/a, and an Opponent of everton crawford?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"partial_kickboxing_record\" WHERE \"rules\"='thai boxing' AND \"round\"='n/a' AND \"opponent\"='everton crawford';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"partial_kickboxing_record\" (\n \"result\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"date\" text,\n \"round\" text,\n \"time\" text,\n \"location\" text,\n \"rules\" text\n);\n\nQuestion: WHich Rules has a Method of ko (punch)?"
},
{
"role": "assistant",
"content": "SELECT \"rules\" FROM \"partial_kickboxing_record\" WHERE \"method\"='ko (punch)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"name\" text,\n \"capacity\" text,\n \"type\" text,\n \"power\" text,\n \"torque\" text\n);\n\nQuestion: What torque does a 1905 cc capacity have?"
},
{
"role": "assistant",
"content": "SELECT \"torque\" FROM \"engines\" WHERE \"capacity\"='1905 cc';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"name\" text,\n \"capacity\" text,\n \"type\" text,\n \"power\" text,\n \"torque\" text\n);\n\nQuestion: What torque does 1.9 diesel with 1905 cc have?"
},
{
"role": "assistant",
"content": "SELECT \"torque\" FROM \"engines\" WHERE \"name\"='1.9 diesel' AND \"capacity\"='1905 cc';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"name\" text,\n \"capacity\" text,\n \"type\" text,\n \"power\" text,\n \"torque\" text\n);\n\nQuestion: What torque does daewoo have?"
},
{
"role": "assistant",
"content": "SELECT \"torque\" FROM \"engines\" WHERE \"type\"='daewoo';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Score of 3\u20134, and a Attendance larger than 34,609 happened on what date?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"score\"='3\u20134' AND \"attendance\">'34,609';"
}
] |
[
{
"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 \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Record of 12\u201315 happened on what date?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"game_log\" WHERE \"record\"='12\u201315';"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.