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 \"nfl_draft\" (\n \"round\" text,\n \"pick\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Which college's pick was 14?"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"nfl_draft\" WHERE \"pick\"='14';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_single_game_reception_yardage\" (\n \"player\" text,\n \"rec\" real,\n \"yards\" real,\n \"average\" real,\n \"s_touchdown\" real,\n \"year\" real,\n \"opponent\" text\n);\n\nQuestion: Which Rec has an Average smaller than 32, and a Touchdown smaller than 3, and an Opponent of oregon state?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"rec\") FROM \"michigan_single_game_reception_yardage\" WHERE \"average\"<32 AND \"s_touchdown\"<3 AND \"opponent\"='oregon state';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_single_game_reception_yardage\" (\n \"player\" text,\n \"rec\" real,\n \"yards\" real,\n \"average\" real,\n \"s_touchdown\" real,\n \"year\" real,\n \"opponent\" text\n);\n\nQuestion: Which rec has Yards of 192, and a Touchdown smaller than 1?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"rec\") FROM \"michigan_single_game_reception_yardage\" WHERE \"yards\"=192 AND \"s_touchdown\"<1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_single_game_reception_yardage\" (\n \"player\" text,\n \"rec\" real,\n \"yards\" real,\n \"average\" real,\n \"s_touchdown\" real,\n \"year\" real,\n \"opponent\" text\n);\n\nQuestion: Which Opponent has Yards smaller than 197, and an Average smaller than 32, and a Year of 1966?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"michigan_single_game_reception_yardage\" WHERE \"yards\"<197 AND \"average\"<32 AND \"year\"=1966;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"michigan_single_game_reception_yardage\" (\n \"player\" text,\n \"rec\" real,\n \"yards\" real,\n \"average\" real,\n \"s_touchdown\" real,\n \"year\" real,\n \"opponent\" text\n);\n\nQuestion: How many Touchdowns have a rec of 10, and an Opponent of oregon state, and an Average smaller than 19.7?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"s_touchdown\") FROM \"michigan_single_game_reception_yardage\" WHERE \"rec\"=10 AND \"opponent\"='oregon state' AND \"average\"<19.7;"
}
] |
[
{
"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 \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Points have an Opponent of @ atlanta thrashers, and a Game smaller than 28?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"points\") FROM \"regular_season\" WHERE \"opponent\"='@ atlanta thrashers' AND \"game\"<28;"
}
] |
[
{
"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 \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: How many Points have a Game smaller than 37, and a Score of 2\u20133, and a December of 13?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points\") FROM \"regular_season\" WHERE \"game\"<37 AND \"score\"='2\u20133' AND \"december\"=13;"
}
] |
[
{
"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 \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: Which Game is the highest one that has a Score of 3\u20132?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"game\") FROM \"regular_season\" WHERE \"score\"='3\u20132';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"county\" text,\n \"location\" text,\n \"built\" text,\n \"length_ft\" real,\n \"spans\" text\n);\n\nQuestion: What spans were built in 1896?"
},
{
"role": "assistant",
"content": "SELECT \"spans\" FROM \"references\" WHERE \"built\"='1896';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"county\" text,\n \"location\" text,\n \"built\" text,\n \"length_ft\" real,\n \"spans\" text\n);\n\nQuestion: Who has a length of 71 ft?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"references\" WHERE \"length_ft\"=71;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"references\" (\n \"name\" text,\n \"county\" text,\n \"location\" text,\n \"built\" text,\n \"length_ft\" real,\n \"spans\" text\n);\n\nQuestion: Where was the county of rockingham?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"references\" WHERE \"county\"='rockingham';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison\" (\n \"name\" text,\n \"year\" real,\n \"propulsion\" text,\n \"launched_by\" text,\n \"country\" text\n);\n\nQuestion: What is the propulsion for the RB 04 earlier than 1962?"
},
{
"role": "assistant",
"content": "SELECT \"propulsion\" FROM \"comparison\" WHERE \"year\"<1962 AND \"name\"='rb 04';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison\" (\n \"name\" text,\n \"year\" real,\n \"propulsion\" text,\n \"launched_by\" text,\n \"country\" text\n);\n\nQuestion: What is the name of the anti-ship missile that had a turbojet propulsion that was launched by a surface, sub after 1985?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"comparison\" WHERE \"propulsion\"='turbojet' AND \"year\">1985 AND \"launched_by\"='surface, sub';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"comparison\" (\n \"name\" text,\n \"year\" real,\n \"propulsion\" text,\n \"launched_by\" text,\n \"country\" text\n);\n\nQuestion: What country had an anti-ship missile that had a solid rocket propulsion?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"comparison\" WHERE \"propulsion\"='solid rocket';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_fleet\" (\n \"length_feet\" text,\n \"year\" text,\n \"make_and_model\" text,\n \"floor_type\" text,\n \"number_of_seats\" real,\n \"bicycle_capacity\" real,\n \"fuel_propulsion\" text,\n \"quantity\" real\n);\n\nQuestion: How many seats in 2001 with a quantity greater than 4?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"number_of_seats\") FROM \"current_fleet\" WHERE \"year\"='2001' AND \"quantity\">4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_fleet\" (\n \"length_feet\" text,\n \"year\" text,\n \"make_and_model\" text,\n \"floor_type\" text,\n \"number_of_seats\" real,\n \"bicycle_capacity\" real,\n \"fuel_propulsion\" text,\n \"quantity\" real\n);\n\nQuestion: What make and model of the diesel vehicle with a high floor type, bike capacity less than 3, and a quantity of 4?"
},
{
"role": "assistant",
"content": "SELECT \"make_and_model\" FROM \"current_fleet\" WHERE \"fuel_propulsion\"='diesel' AND \"floor_type\"='high' AND \"bicycle_capacity\"<3 AND \"quantity\"=4;"
}
] |
[
{
"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 \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What score has nashville predators as the opponent?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"regular_season\" WHERE \"opponent\"='nashville predators';"
}
] |
[
{
"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 \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What are the average points that have december 27?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"points\") FROM \"regular_season\" WHERE \"december\"=27;"
}
] |
[
{
"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 \"december\" real,\n \"opponent\" text,\n \"score\" text,\n \"record\" text,\n \"points\" real\n);\n\nQuestion: What record has points greater than 39, with 38 as the game?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"regular_season\" WHERE \"points\">39 AND \"game\"=38;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"writing\" (\n \"gzip\" text,\n \"bzip2\" text,\n \"lha_lzh\" text,\n \"stuff_it\" text,\n \"stuff_it_x\" text,\n \"iso_cd_image\" text\n);\n\nQuestion: What is the Stuffit ability that has a gzip of yes, ISO/CD images of no and LHA/LZH of no?"
},
{
"role": "assistant",
"content": "SELECT \"stuff_it\" FROM \"writing\" WHERE \"gzip\"='yes' AND \"iso_cd_image\"='no' AND \"lha_lzh\"='no';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"writing\" (\n \"gzip\" text,\n \"bzip2\" text,\n \"lha_lzh\" text,\n \"stuff_it\" text,\n \"stuff_it_x\" text,\n \"iso_cd_image\" text\n);\n\nQuestion: What is the gzip value associated with a stuffit of no, bzip2 of no, and LHA.LZH of no?"
},
{
"role": "assistant",
"content": "SELECT \"gzip\" FROM \"writing\" WHERE \"stuff_it\"='no' AND \"bzip2\"='no' AND \"lha_lzh\"='no';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"writing\" (\n \"gzip\" text,\n \"bzip2\" text,\n \"lha_lzh\" text,\n \"stuff_it\" text,\n \"stuff_it_x\" text,\n \"iso_cd_image\" text\n);\n\nQuestion: What is the bzip2 value associated with a gzip of yes, StuffitX of unknown, and ISO/CD image of unknown?"
},
{
"role": "assistant",
"content": "SELECT \"bzip2\" FROM \"writing\" WHERE \"gzip\"='yes' AND \"stuff_it_x\"='unknown' AND \"iso_cd_image\"='unknown';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"writing\" (\n \"gzip\" text,\n \"bzip2\" text,\n \"lha_lzh\" text,\n \"stuff_it\" text,\n \"stuff_it_x\" text,\n \"iso_cd_image\" text\n);\n\nQuestion: What is the StuffitX value that has a Stuffit of unknown, LHA/LZH of yes, and unknown ISO/CD image?"
},
{
"role": "assistant",
"content": "SELECT \"stuff_it_x\" FROM \"writing\" WHERE \"stuff_it\"='unknown' AND \"lha_lzh\"='yes' AND \"iso_cd_image\"='unknown';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"writing\" (\n \"gzip\" text,\n \"bzip2\" text,\n \"lha_lzh\" text,\n \"stuff_it\" text,\n \"stuff_it_x\" text,\n \"iso_cd_image\" text\n);\n\nQuestion: What is the stuffit that has bzip and LHA/LZH of no?"
},
{
"role": "assistant",
"content": "SELECT \"stuff_it\" FROM \"writing\" WHERE \"bzip2\"='no' AND \"lha_lzh\"='no';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"writing\" (\n \"gzip\" text,\n \"bzip2\" text,\n \"lha_lzh\" text,\n \"stuff_it\" text,\n \"stuff_it_x\" text,\n \"iso_cd_image\" text\n);\n\nQuestion: What is the ISO/CD image value associated with StuffitX of no, gzip of yes, and LHA/LZH of yes?"
},
{
"role": "assistant",
"content": "SELECT \"iso_cd_image\" FROM \"writing\" WHERE \"stuff_it_x\"='no' AND \"gzip\"='yes' AND \"lha_lzh\"='yes';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nhl_entry_draft\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which round was Robert Deciantis taken in?"
},
{
"role": "assistant",
"content": "SELECT \"round\" FROM \"nhl_entry_draft\" WHERE \"player\"='robert deciantis';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nhl_entry_draft\" (\n \"round\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team\" text\n);\n\nQuestion: Which round was Brian Elder taken in?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"round\") FROM \"nhl_entry_draft\" WHERE \"player\"='brian elder';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"singles_5_11\" (\n \"outcome\" text,\n \"date\" text,\n \"tournament\" text,\n \"surface\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: what is the date of the tournament in michalovce"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"singles_5_11\" WHERE \"tournament\"='michalovce';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pga_tour_wins_12\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: What was the winning score of the Valero Texas Open?"
},
{
"role": "assistant",
"content": "SELECT \"winning_score\" FROM \"pga_tour_wins_12\" WHERE \"tournament\"='valero texas open';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pga_tour_wins_12\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: When was the winning score \u201312 (69-66-72-65=272)?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"pga_tour_wins_12\" WHERE \"winning_score\"='\u201312 (69-66-72-65=272)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"pga_tour_wins_12\" (\n \"date\" text,\n \"tournament\" text,\n \"winning_score\" text,\n \"margin_of_victory\" text,\n \"runner_s_up\" text\n);\n\nQuestion: Who was the runner-up when the winning score was \u201328 (66-67-68-64-67=332)?"
},
{
"role": "assistant",
"content": "SELECT \"runner_s_up\" FROM \"pga_tour_wins_12\" WHERE \"winning_score\"='\u201328 (66-67-68-64-67=332)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"california\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text\n);\n\nQuestion: Which party had a Retired Democratic hold?"
},
{
"role": "assistant",
"content": "SELECT \"party\" FROM \"california\" WHERE \"result\"='retired democratic hold';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"california\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text\n);\n\nQuestion: What's the average year Charles N. Felton was re-elected?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"first_elected\") FROM \"california\" WHERE \"result\"='re-elected' AND \"incumbent\"='charles n. felton';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"california\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text\n);\n\nQuestion: What year was Barclay Henley first elected?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"first_elected\") FROM \"california\" WHERE \"incumbent\"='barclay henley';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"drivers_and_constructors\" (\n \"team\" text,\n \"chassis\" text,\n \"engine\" text,\n \"tires\" text,\n \"drivers\" text,\n \"sponsor\" text\n);\n\nQuestion: what is the sponsor of motorola"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"drivers_and_constructors\" WHERE \"sponsor\"='motorola';"
}
] |
[
{
"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: Which Opponent has the Event of Sengoku 1?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='sengoku 1';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mixed_martial_arts_record\" (\n \"res\" text,\n \"record\" text,\n \"opponent\" text,\n \"method\" text,\n \"event\" text,\n \"round\" real,\n \"time\" text,\n \"location\" text\n);\n\nQuestion: What Record has an Event of Pride Shockwave 2004?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"mixed_martial_arts_record\" WHERE \"event\"='pride shockwave 2004';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"percentage_starts_from_front_row\" (\n \"driver\" text,\n \"front_row_starts\" real,\n \"pole_positions\" real,\n \"entries\" real,\n \"percentage\" text\n);\n\nQuestion: What's the average pole position for the driver that has a percentage of 44.81%?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"pole_positions\") FROM \"percentage_starts_from_front_row\" WHERE \"percentage\"='44.81%';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"percentage_starts_from_front_row\" (\n \"driver\" text,\n \"front_row_starts\" real,\n \"pole_positions\" real,\n \"entries\" real,\n \"percentage\" text\n);\n\nQuestion: What's the average front row starts for drivers with less than 68 pole positions and entries lower than 52?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"front_row_starts\") FROM \"percentage_starts_from_front_row\" WHERE \"pole_positions\"<68 AND \"entries\"<52;"
}
] |
[
{
"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 \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: Attendance larger than 53,769, and a Opponent of at philadelphia eagles had what result?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"schedule\" WHERE \"attendance\">'53,769' AND \"opponent\"='at philadelphia eagles';"
}
] |
[
{
"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 \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: Attendance of 60,671 had what average week?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"week\") FROM \"schedule\" WHERE \"attendance\"='60,671';"
}
] |
[
{
"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 \"venue\" text,\n \"attendance\" real\n);\n\nQuestion: Week of 7 had what average attendance?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"attendance\") FROM \"schedule\" WHERE \"week\"=7;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_statistics\" (\n \"player\" text,\n \"played\" real,\n \"sets_won\" real,\n \"sets_lost\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" real\n);\n\nQuestion: How many legs were won when 6 legs were lost, the 180s was 0, and the 3-dart average was less than 69.72?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"legs_won\") FROM \"women_s_statistics\" WHERE \"legs_lost\"=6 AND \"180s\"=0 AND \"3_dart_average\"<69.72;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_statistics\" (\n \"player\" text,\n \"played\" real,\n \"sets_won\" real,\n \"sets_lost\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" real\n);\n\nQuestion: What is the sum of all played when less than 4 sets were won and 3-dart average was 53.19?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"played\") FROM \"women_s_statistics\" WHERE \"sets_won\"<4 AND \"3_dart_average\"=53.19;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_statistics\" (\n \"player\" text,\n \"played\" real,\n \"sets_won\" real,\n \"sets_lost\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" real\n);\n\nQuestion: How many values for 100+ for Trina Gulliver with a 3-dart Average smaller than 75.02?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"100\") FROM \"women_s_statistics\" WHERE \"player\"='trina gulliver' AND \"3_dart_average\"<75.02;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_statistics\" (\n \"player\" text,\n \"played\" real,\n \"sets_won\" real,\n \"sets_lost\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" real\n);\n\nQuestion: How many legs were lost for Trina Gulliver with more than 3 played?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"legs_lost\") FROM \"women_s_statistics\" WHERE \"player\"='trina gulliver' AND \"played\">3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_statistics\" (\n \"player\" text,\n \"played\" real,\n \"sets_won\" real,\n \"sets_lost\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" real\n);\n\nQuestion: What is the most sets won with less than 1 legs won?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"sets_won\") FROM \"women_s_statistics\" WHERE \"legs_won\"<1;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_statistics\" (\n \"player\" text,\n \"played\" real,\n \"sets_won\" real,\n \"sets_lost\" real,\n \"legs_won\" real,\n \"legs_lost\" real,\n \"100\" real,\n \"140\" real,\n \"180s\" real,\n \"high_checkout\" real,\n \"3_dart_average\" real\n);\n\nQuestion: What is the largest value for 100+ when less than 1 set was won and more than 2 legs were won?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"100\") FROM \"women_s_statistics\" WHERE \"sets_won\"<1 AND \"legs_won\">2;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_known_fair_catch_kick_attempts_i\" (\n \"date\" text,\n \"kicker\" text,\n \"kicking_team\" text,\n \"opponent\" text,\n \"yards\" real,\n \"result\" text,\n \"game_time\" text\n);\n\nQuestion: Yards of 45, and a Date of november 8, 1971 is what kicker?"
},
{
"role": "assistant",
"content": "SELECT \"kicker\" FROM \"list_of_known_fair_catch_kick_attempts_i\" WHERE \"yards\"=45 AND \"date\"='november 8, 1971';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_known_fair_catch_kick_attempts_i\" (\n \"date\" text,\n \"kicker\" text,\n \"kicking_team\" text,\n \"opponent\" text,\n \"yards\" real,\n \"result\" text,\n \"game_time\" text\n);\n\nQuestion: Game time of 2nd quarter (0:00), and a Date of november 8, 1971 has how many average yards?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"yards\") FROM \"list_of_known_fair_catch_kick_attempts_i\" WHERE \"game_time\"='2nd quarter (0:00)' AND \"date\"='november 8, 1971';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_known_fair_catch_kick_attempts_i\" (\n \"date\" text,\n \"kicker\" text,\n \"kicking_team\" text,\n \"opponent\" text,\n \"yards\" real,\n \"result\" text,\n \"game_time\" text\n);\n\nQuestion: Opponent of new york giants, and a Yards smaller than 68 is what kicker?"
},
{
"role": "assistant",
"content": "SELECT \"kicker\" FROM \"list_of_known_fair_catch_kick_attempts_i\" WHERE \"opponent\"='new york giants' AND \"yards\"<68;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_known_fair_catch_kick_attempts_i\" (\n \"date\" text,\n \"kicker\" text,\n \"kicking_team\" text,\n \"opponent\" text,\n \"yards\" real,\n \"result\" text,\n \"game_time\" text\n);\n\nQuestion: Yards larger than 52, and a Opponent of san francisco 49ers is what kicker?"
},
{
"role": "assistant",
"content": "SELECT \"kicker\" FROM \"list_of_known_fair_catch_kick_attempts_i\" WHERE \"yards\">52 AND \"opponent\"='san francisco 49ers';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_known_fair_catch_kick_attempts_i\" (\n \"date\" text,\n \"kicker\" text,\n \"kicking_team\" text,\n \"opponent\" text,\n \"yards\" real,\n \"result\" text,\n \"game_time\" text\n);\n\nQuestion: Result of missed*, and a Game time of 2nd quarter (0:00), and a Kicker of mason crosby involves what date?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"list_of_known_fair_catch_kick_attempts_i\" WHERE \"result\"='missed*' AND \"game_time\"='2nd quarter (0:00)' AND \"kicker\"='mason crosby';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_known_fair_catch_kick_attempts_i\" (\n \"date\" text,\n \"kicker\" text,\n \"kicking_team\" text,\n \"opponent\" text,\n \"yards\" real,\n \"result\" text,\n \"game_time\" text\n);\n\nQuestion: Opponent of houston texans had what result?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"list_of_known_fair_catch_kick_attempts_i\" WHERE \"opponent\"='houston texans';"
}
] |
[
{
"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 \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Which Nationality of the person has a Position on left wing?"
},
{
"role": "assistant",
"content": "SELECT \"nationality\" FROM \"draft_picks\" WHERE \"position\"='left wing';"
}
] |
[
{
"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 \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: Which College/Junior/Club Team (League) are from sweden?"
},
{
"role": "assistant",
"content": "SELECT \"college_junior_club_team_league\" FROM \"draft_picks\" WHERE \"nationality\"='sweden';"
}
] |
[
{
"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 \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"college_junior_club_team_league\" text\n);\n\nQuestion: WHich Position is from russia?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"draft_picks\" WHERE \"nationality\"='russia';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_outdoor\" (\n \"pos\" real,\n \"mark\" text,\n \"athlete\" text,\n \"nationality\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: Which venue is with Ukraine?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"women_outdoor\" WHERE \"nationality\"='ukraine';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_outdoor\" (\n \"pos\" real,\n \"mark\" text,\n \"athlete\" text,\n \"nationality\" text,\n \"venue\" text,\n \"date\" text\n);\n\nQuestion: Which venue had a nationality of Belgium?"
},
{
"role": "assistant",
"content": "SELECT \"venue\" FROM \"women_outdoor\" WHERE \"nationality\"='belgium';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"major_award_winners\" (\n \"year\" text,\n \"best_film\" text,\n \"best_director\" text,\n \"best_actor\" text,\n \"best_actress\" text,\n \"best_supporting_actress\" text\n);\n\nQuestion: Which Best Actor has a Best Film of mystery?"
},
{
"role": "assistant",
"content": "SELECT \"best_actor\" FROM \"major_award_winners\" WHERE \"best_film\"='mystery';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"major_award_winners\" (\n \"year\" text,\n \"best_film\" text,\n \"best_director\" text,\n \"best_actor\" text,\n \"best_actress\" text,\n \"best_supporting_actress\" text\n);\n\nQuestion: Which Year has a Best Film of mystery?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"major_award_winners\" WHERE \"best_film\"='mystery';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"major_award_winners\" (\n \"year\" text,\n \"best_film\" text,\n \"best_director\" text,\n \"best_actor\" text,\n \"best_actress\" text,\n \"best_supporting_actress\" text\n);\n\nQuestion: Which Best Actress has a Year of 2012 6th?"
},
{
"role": "assistant",
"content": "SELECT \"best_actress\" FROM \"major_award_winners\" WHERE \"year\"='2012 6th';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"major_award_winners\" (\n \"year\" text,\n \"best_film\" text,\n \"best_director\" text,\n \"best_actor\" text,\n \"best_actress\" text,\n \"best_supporting_actress\" text\n);\n\nQuestion: Which Best Actor has a Best Director of takeshi kitano for outrage beyond?"
},
{
"role": "assistant",
"content": "SELECT \"best_actor\" FROM \"major_award_winners\" WHERE \"best_director\"='takeshi kitano for outrage beyond';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"major_award_winners\" (\n \"year\" text,\n \"best_film\" text,\n \"best_director\" text,\n \"best_actor\" text,\n \"best_actress\" text,\n \"best_supporting_actress\" text\n);\n\nQuestion: Which Best Film has a Best Supporting Actress of shamaine buencamino for ni\u00f1o?"
},
{
"role": "assistant",
"content": "SELECT \"best_film\" FROM \"major_award_winners\" WHERE \"best_supporting_actress\"='shamaine buencamino for ni\u00f1o';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1960s\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"venue\" text,\n \"competition\" text\n);\n\nQuestion: Score of 0\u20130, and a Date of 02-jan-64 had what result?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"1960s\" WHERE \"score\"='0\u20130' AND \"date\"='02-jan-64';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1960s\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"venue\" text,\n \"competition\" text\n);\n\nQuestion: Result of l, and a Competition of 1966 asian games, and a Score of 0\u20131 had what date?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"1960s\" WHERE \"result\"='l' AND \"competition\"='1966 asian games' AND \"score\"='0\u20131';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1960s\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"venue\" text,\n \"competition\" text\n);\n\nQuestion: Competition of friendly, and a Date of 03-jun-62 had what score?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"1960s\" WHERE \"competition\"='friendly' AND \"date\"='03-jun-62';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1960s\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"venue\" text,\n \"competition\" text\n);\n\nQuestion: Result of w, and a Competition of 1968 asian cup happened on what date?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"1960s\" WHERE \"result\"='w' AND \"competition\"='1968 asian cup';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"1960s\" (\n \"date\" text,\n \"result\" text,\n \"score\" text,\n \"venue\" text,\n \"competition\" text\n);\n\nQuestion: Result of l, and a Date of 15-oct-64 had what score?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"1960s\" WHERE \"result\"='l' AND \"date\"='15-oct-64';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"california\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text\n);\n\nQuestion: What incumbent was re-elected in the district in california 3?"
},
{
"role": "assistant",
"content": "SELECT \"incumbent\" FROM \"california\" WHERE \"result\"='re-elected' AND \"district\"='california 3';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"california\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text\n);\n\nQuestion: What is the district of the incumbent Thomas Larkin Thompson?"
},
{
"role": "assistant",
"content": "SELECT \"district\" FROM \"california\" WHERE \"incumbent\"='thomas larkin thompson';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"california\" (\n \"district\" text,\n \"incumbent\" text,\n \"party\" text,\n \"first_elected\" real,\n \"result\" text\n);\n\nQuestion: What incumbent has a re-elected result and first elected larger than 1884?"
},
{
"role": "assistant",
"content": "SELECT \"incumbent\" FROM \"california\" WHERE \"result\"='re-elected' AND \"first_elected\">1884;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"names_in_modern_languages\" (\n \"sanskrit\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kannada\" text,\n \"malayalam\" text,\n \"mongolian\" text\n);\n\nQuestion: Which Telugu \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41 has a Kannada \u0c95\u0ca8\u0ccd\u0ca8\u0ca1 of chitra \u0c9a\u0cbf\u0ca4\u0ccd\u0ca4?"
},
{
"role": "assistant",
"content": "SELECT \"telugu\" FROM \"names_in_modern_languages\" WHERE \"kannada\"='chitra \u0c9a\u0cbf\u0ca4\u0ccd\u0ca4';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"names_in_modern_languages\" (\n \"sanskrit\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kannada\" text,\n \"malayalam\" text,\n \"mongolian\" text\n);\n\nQuestion: Which Telugu \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41 has a Tamil \u0ba4\u0bae\u0bbf\u0bb4\u0bcd of p\u016br\u0101\u1e6dam \u0baa\u0bc2\u0bb0\u0bbe\u0b9f\u0bae\u0bcd?"
},
{
"role": "assistant",
"content": "SELECT \"telugu\" FROM \"names_in_modern_languages\" WHERE \"tamil\"='p\u016br\u0101\u1e6dam \u0baa\u0bc2\u0bb0\u0bbe\u0b9f\u0bae\u0bcd';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"names_in_modern_languages\" (\n \"sanskrit\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kannada\" text,\n \"malayalam\" text,\n \"mongolian\" text\n);\n\nQuestion: Which Telugu \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41 has a Tamil \u0ba4\u0bae\u0bbf\u0bb4\u0bcd of p\u016bsam \u0baa\u0bc2\u0b9a\u0bae\u0bcd?"
},
{
"role": "assistant",
"content": "SELECT \"telugu\" FROM \"names_in_modern_languages\" WHERE \"tamil\"='p\u016bsam \u0baa\u0bc2\u0b9a\u0bae\u0bcd';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"names_in_modern_languages\" (\n \"sanskrit\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kannada\" text,\n \"malayalam\" text,\n \"mongolian\" text\n);\n\nQuestion: Which Mongolian has a Tamil \u0ba4\u0bae\u0bbf\u0bb4\u0bcd of p\u016br\u0101\u1e6dam \u0baa\u0bc2\u0bb0\u0bbe\u0b9f\u0bae\u0bcd?"
},
{
"role": "assistant",
"content": "SELECT \"mongolian\" FROM \"names_in_modern_languages\" WHERE \"tamil\"='p\u016br\u0101\u1e6dam \u0baa\u0bc2\u0bb0\u0bbe\u0b9f\u0bae\u0bcd';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"names_in_modern_languages\" (\n \"sanskrit\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kannada\" text,\n \"malayalam\" text,\n \"mongolian\" text\n);\n\nQuestion: What kind of Sanskrit \u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d has a Kannada \u0c95\u0ca8\u0ccd\u0ca8\u0ca1 of uttara \u0c89\u0ca4\u0ccd\u0ca4\u0cb0\u0cbe?"
},
{
"role": "assistant",
"content": "SELECT \"sanskrit\" FROM \"names_in_modern_languages\" WHERE \"kannada\"='uttara \u0c89\u0ca4\u0ccd\u0ca4\u0cb0\u0cbe';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"names_in_modern_languages\" (\n \"sanskrit\" text,\n \"tamil\" text,\n \"telugu\" text,\n \"kannada\" text,\n \"malayalam\" text,\n \"mongolian\" text\n);\n\nQuestion: What kind of Sanskrit \u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d has a Tamil \u0ba4\u0bae\u0bbf\u0bb4\u0bcd of r\u014dki\u1e47i \u0bb0\u0bcb\u0b95\u0bbf\u0ba3\u0bbf?"
},
{
"role": "assistant",
"content": "SELECT \"sanskrit\" FROM \"names_in_modern_languages\" WHERE \"tamil\"='r\u014dki\u1e47i \u0bb0\u0bcb\u0b95\u0bbf\u0ba3\u0bbf';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"frequency\" text,\n \"band\" text,\n \"freq_currently\" text,\n \"purpose\" text\n);\n\nQuestion: What is the frequency for katherine?"
},
{
"role": "assistant",
"content": "SELECT \"frequency\" FROM \"defunct_callsigns\" WHERE \"area_served\"='katherine';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"frequency\" text,\n \"band\" text,\n \"freq_currently\" text,\n \"purpose\" text\n);\n\nQuestion: Which band has a current freq of 8tab (hpon)?"
},
{
"role": "assistant",
"content": "SELECT \"band\" FROM \"defunct_callsigns\" WHERE \"freq_currently\"='8tab (hpon)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"frequency\" text,\n \"band\" text,\n \"freq_currently\" text,\n \"purpose\" text\n);\n\nQuestion: Which freq currently has 0 657?"
},
{
"role": "assistant",
"content": "SELECT \"freq_currently\" FROM \"defunct_callsigns\" WHERE \"frequency\"='0 657';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"frequency\" text,\n \"band\" text,\n \"freq_currently\" text,\n \"purpose\" text\n);\n\nQuestion: What is the purpose for the katherine freq of 8rn?"
},
{
"role": "assistant",
"content": "SELECT \"purpose\" FROM \"defunct_callsigns\" WHERE \"freq_currently\"='8rn' AND \"area_served\"='katherine';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"frequency\" text,\n \"band\" text,\n \"freq_currently\" text,\n \"purpose\" text\n);\n\nQuestion: Which freq currently has 0 684?"
},
{
"role": "assistant",
"content": "SELECT \"freq_currently\" FROM \"defunct_callsigns\" WHERE \"frequency\"='0 684';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"defunct_callsigns\" (\n \"callsign\" text,\n \"area_served\" text,\n \"frequency\" text,\n \"band\" text,\n \"freq_currently\" text,\n \"purpose\" text\n);\n\nQuestion: Which band serves darwin for commercial purpose?"
},
{
"role": "assistant",
"content": "SELECT \"band\" FROM \"defunct_callsigns\" WHERE \"area_served\"='darwin' AND \"purpose\"='commercial';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"world_championship_group_c_france\" (\n \"games\" real,\n \"drawn\" real,\n \"lost\" real,\n \"points_difference\" text,\n \"points\" real\n);\n\nQuestion: What is the points difference for a loss less than 6, and points less than 11?"
},
{
"role": "assistant",
"content": "SELECT \"points_difference\" FROM \"world_championship_group_c_france\" WHERE \"lost\"<6 AND \"points\"<11;"
}
] |
[
{
"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 Opponent has a Loss of b\u00e1ez (5-5)?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"game_log\" WHERE \"loss\"='b\u00e1ez (5-5)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"game_log\" (\n \"date\" text,\n \"opponent\" text,\n \"score\" text,\n \"loss\" text,\n \"attendance\" real,\n \"record\" text\n);\n\nQuestion: Which Score has an Opponent of @ rockies, and a Record of 33-35?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"game_log\" WHERE \"opponent\"='@ rockies' AND \"record\"='33-35';"
}
] |
[
{
"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 Attendance has an Opponent of phillies, and a Record of 30-33?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"attendance\") FROM \"game_log\" WHERE \"opponent\"='phillies' AND \"record\"='30-33';"
}
] |
[
{
"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 Attendance is the highest one that has a Loss of batista (4-5)?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"attendance\") FROM \"game_log\" WHERE \"loss\"='batista (4-5)';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast_translators_of_kanz\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: What is the frequency MHz of the ERP W's greater than 250?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"frequency_m_hz\") FROM \"broadcast_translators_of_kanz\" WHERE \"erp_w\">250;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast_translators_of_kanz\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: What is the call sign of the MHz Frequency less than 94.9 and an ERP W of 170?"
},
{
"role": "assistant",
"content": "SELECT \"call_sign\" FROM \"broadcast_translators_of_kanz\" WHERE \"frequency_m_hz\"<94.9 AND \"erp_w\"=170;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast_translators_of_kanz\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: What is the FCC info for the city of Tribune, Kansas?"
},
{
"role": "assistant",
"content": "SELECT \"fcc_info\" FROM \"broadcast_translators_of_kanz\" WHERE \"city_of_license\"='tribune, kansas';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast_translators_of_kanz\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: What is the city of license with an ERP W less than 170?"
},
{
"role": "assistant",
"content": "SELECT \"city_of_license\" FROM \"broadcast_translators_of_kanz\" WHERE \"erp_w\"<170;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast_translators_of_kanz\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: What is the smallest ERP W with a frequency MHz of 94.9?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"erp_w\") FROM \"broadcast_translators_of_kanz\" WHERE \"frequency_m_hz\"=94.9;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"broadcast_translators_of_kanz\" (\n \"call_sign\" text,\n \"frequency_m_hz\" real,\n \"city_of_license\" text,\n \"erp_w\" real,\n \"class\" text,\n \"fcc_info\" text\n);\n\nQuestion: What is the ERP W of a Frequency MHz greater than 89.5 in the city of Washburn, Texas?"
},
{
"role": "assistant",
"content": "SELECT \"erp_w\" FROM \"broadcast_translators_of_kanz\" WHERE \"frequency_m_hz\">89.5 AND \"city_of_license\"='washburn, texas';"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the total number of bronze medals the U.S. Virgin Islands, which has less than 0 golds, has?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"bronze\") FROM \"medal_table\" WHERE \"nation\"='u.s. virgin islands' AND \"gold\"<0;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the rank of the team with 11 total medals and more than 4 silver medals has?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"rank\") FROM \"medal_table\" WHERE \"total\"=11 AND \"silver\">4;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest total medals the team with more than 0 bronze, 6 silver, and a rank higher than 3 has?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total\") FROM \"medal_table\" WHERE \"bronze\">0 AND \"silver\"=6 AND \"rank\"<3;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the highest rank of Venezuela, which has more than 9 bronze medals?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"medal_table\" WHERE \"nation\"='venezuela' AND \"bronze\">9;"
}
] |
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medal_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the lowest rank of the team with 0 bronze, 1 silver, and more than 0 gold?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rank\") FROM \"medal_table\" WHERE \"bronze\"=0 AND \"silver\"=1 AND \"gold\">0;"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.