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 \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: What position was Parsons in for 1992? "
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"nascar_sprint_cup_series\" WHERE \"year\"=1992;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text,\n \"combativity_award\" text\n);\n\nQuestion: Who is every young rider classification when Jelle Vanendert is the winner?"
},
{
"role": "assistant",
"content": "SELECT \"young_rider_classification\" FROM \"classification_leadership\" WHERE \"winner\"='Jelle Vanendert';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text,\n \"combativity_award\" text\n);\n\nQuestion: Who is every young rider classification if combativity award is Yannick Talabardon?"
},
{
"role": "assistant",
"content": "SELECT \"young_rider_classification\" FROM \"classification_leadership\" WHERE \"combativity_award\"='Yannick Talabardon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text,\n \"combativity_award\" text\n);\n\nQuestion: How many mountains classifications when Rui Costa is the winner?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"mountains_classification\") FROM \"classification_leadership\" WHERE \"winner\"='Rui Costa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"young_rider_classification\" text,\n \"team_classification\" text,\n \"combativity_award\" text\n);\n\nQuestion: What is every team classification when points classification is Philippe Gilbert if mountains classification is Johnny Hoogerland and stage is less than 9.0?"
},
{
"role": "assistant",
"content": "SELECT \"team_classification\" FROM \"classification_leadership\" WHERE \"points_classification\"='Philippe Gilbert' AND \"mountains_classification\"='Johnny Hoogerland' AND \"stage\"<9.0;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25997153_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: how many million u.s. viewers watched the episode directed by dan lerner?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_million\" FROM \"table1_25997153_1\" WHERE \"directed_by\"='Dan Lerner';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25997153_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: what is the latest episode in the series that had 16.17 million u.s. viewers?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"no_in_series\") FROM \"table1_25997153_1\" WHERE \"u_s_viewers_million\"='16.17';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25997153_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the title of the episode with the production code 3x5362?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_25997153_1\" WHERE \"production_code\"='3X5362';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26013618_1\" (\n \"nsg_nr\" real,\n \"name_of_the_nature_reserve\" text,\n \"district_town\" text,\n \"area_ha\" text,\n \"date_established\" text\n);\n\nQuestion: What Nature reserve number was established on 19961220 20.12.1996"
},
{
"role": "assistant",
"content": "SELECT MIN(\"nsg_nr\") FROM \"table1_26013618_1\" WHERE \"date_established\"='19961220 20.12.1996';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26013618_1\" (\n \"nsg_nr\" real,\n \"name_of_the_nature_reserve\" text,\n \"district_town\" text,\n \"area_ha\" text,\n \"date_established\" text\n);\n\nQuestion: How many reserves were established on 19740329 29.03.1974?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"nsg_nr\") FROM \"table1_26013618_1\" WHERE \"date_established\"='19740329 29.03.1974';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26013618_1\" (\n \"nsg_nr\" real,\n \"name_of_the_nature_reserve\" text,\n \"district_town\" text,\n \"area_ha\" text,\n \"date_established\" text\n);\n\nQuestion: When was Stellbrookmoor established?"
},
{
"role": "assistant",
"content": "SELECT \"date_established\" FROM \"table1_26013618_1\" WHERE \"name_of_the_nature_reserve\"='Stellbrookmoor';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26013618_1\" (\n \"nsg_nr\" real,\n \"name_of_the_nature_reserve\" text,\n \"district_town\" text,\n \"area_ha\" text,\n \"date_established\" text\n);\n\nQuestion: What town has the reserve with an area of 163,62?"
},
{
"role": "assistant",
"content": "SELECT \"district_town\" FROM \"table1_26013618_1\" WHERE \"area_ha\"='163,62';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26013618_1\" (\n \"nsg_nr\" real,\n \"name_of_the_nature_reserve\" text,\n \"district_town\" text,\n \"area_ha\" text,\n \"date_established\" text\n);\n\nQuestion: How many reserves are in Herzogtum Lauenburg with an area of 123,14?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"nsg_nr\") FROM \"table1_26013618_1\" WHERE \"district_town\"='Herzogtum Lauenburg' AND \"area_ha\"='123,14';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26013618_1\" (\n \"nsg_nr\" real,\n \"name_of_the_nature_reserve\" text,\n \"district_town\" text,\n \"area_ha\" text,\n \"date_established\" text\n);\n\nQuestion: How many names does nature reserve 54 have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"name_of_the_nature_reserve\") FROM \"table1_26013618_1\" WHERE \"nsg_nr\"=54;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25996938_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Which episode did 18.74 million people tune in?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_25996938_1\" WHERE \"u_s_viewers_million\"='18.74';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_25996938_1\" (\n \"no_in_series\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Which prod code was series 11?"
},
{
"role": "assistant",
"content": "SELECT \"production_code\" FROM \"table1_25996938_1\" WHERE \"no_in_series\"=11;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26007767_1\" (\n \"metropolitan_ring\" text,\n \"localities\" real,\n \"total\" real,\n \"jews_and_others_1\" real,\n \"thereof_jews\" real,\n \"arabs\" real,\n \"population_density_per_km\" text,\n \"annual_population_growth_rate\" text\n);\n\nQuestion: What is the highest localities?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"localities\") FROM \"table1_26007767_1\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26007767_1\" (\n \"metropolitan_ring\" text,\n \"localities\" real,\n \"total\" real,\n \"jews_and_others_1\" real,\n \"thereof_jews\" real,\n \"arabs\" real,\n \"population_density_per_km\" text,\n \"annual_population_growth_rate\" text\n);\n\nQuestion: What is the least arabs when the metropolitan ring is inner ring 3?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"arabs\") FROM \"table1_26007767_1\" WHERE \"metropolitan_ring\"='Inner Ring 3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26007767_1\" (\n \"metropolitan_ring\" text,\n \"localities\" real,\n \"total\" real,\n \"jews_and_others_1\" real,\n \"thereof_jews\" real,\n \"arabs\" real,\n \"population_density_per_km\" text,\n \"annual_population_growth_rate\" text\n);\n\nQuestion: How many time is the population density (per km\u00b2) is 2.5?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"localities\") FROM \"table1_26007767_1\" WHERE \"population_density_per_km\"='2.5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26007767_1\" (\n \"metropolitan_ring\" text,\n \"localities\" real,\n \"total\" real,\n \"jews_and_others_1\" real,\n \"thereof_jews\" real,\n \"arabs\" real,\n \"population_density_per_km\" text,\n \"annual_population_growth_rate\" text\n);\n\nQuestion: What is the metropolitan ring when thereof: jews is 30600?"
},
{
"role": "assistant",
"content": "SELECT \"metropolitan_ring\" FROM \"table1_26007767_1\" WHERE \"thereof_jews\"=30600;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"young_rider_classification\" text,\n \"teams_classification\" text\n);\n\nQuestion: What is the number of stages where the teams classification leader is Cerv\u00e9lo Testteam?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"stage\") FROM \"classification_leadership\" WHERE \"teams_classification\"='Cerv\u00e9lo TestTeam';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"young_rider_classification\" text,\n \"teams_classification\" text\n);\n\nQuestion: How many stages did Team Sky lead the teams classification?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"stage\") FROM \"classification_leadership\" WHERE \"teams_classification\"='Team Sky';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"young_rider_classification\" text,\n \"teams_classification\" text\n);\n\nQuestion: Who leads the general classification in stage 3?"
},
{
"role": "assistant",
"content": "SELECT \"general_classification\" FROM \"classification_leadership\" WHERE \"stage\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2602958_4\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"prod_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many production codes are there for episode number 45?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"prod_code\") FROM \"table1_2602958_4\" WHERE \"no\"=45;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2602958_4\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"prod_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who wrote episode 6 in season 3?"
},
{
"role": "assistant",
"content": "SELECT \"writer_s\" FROM \"table1_2602958_4\" WHERE \"num\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2602958_4\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"prod_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Which episodein season 3 had 175020 for a production code?"
},
{
"role": "assistant",
"content": "SELECT \"num\" FROM \"table1_2602958_4\" WHERE \"prod_code\"=175020;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2602958_4\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"prod_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many production codes does the episode \"keg! max!\" have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"prod_code\") FROM \"table1_2602958_4\" WHERE \"title\"='\\\"Keg! Max!\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2602958_4\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"prod_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What was the original air date of \"they shoot gilmores, don't they?\""
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_2602958_4\" WHERE \"title\"='\\\"They Shoot Gilmores, Don''t They?\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2602958_4\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"prod_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who wrote episode number 45?"
},
{
"role": "assistant",
"content": "SELECT \"writer_s\" FROM \"table1_2602958_4\" WHERE \"no\"=45;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2602958_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"prod_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who directed the episode \"hammers and veils\"?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"table1_2602958_3\" WHERE \"title\"='\\\"Hammers and Veils\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2602958_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"prod_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many viewers in millions for episode number 38?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_million\" FROM \"table1_2602958_3\" WHERE \"no\"=38;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2602958_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"prod_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who directed the episode with production code 227451?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"table1_2602958_3\" WHERE \"prod_code\"=227451;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2602958_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"prod_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: What is the original air date for the episode directed by kevin dowling?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_2602958_3\" WHERE \"director\"='Kevin Dowling';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2602958_3\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"prod_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many episodes are titled \"like mother, like daughter\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_2602958_3\" WHERE \"title\"='\\\"Like Mother, Like Daughter\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2603017_2\" (\n \"ab_angry_boar\" text,\n \"b_bishop\" text,\n \"ba_running_bear\" text,\n \"bb_blind_bear\" text,\n \"bc_beast_cadet\" text\n);\n\nQuestion: what is ba - running bear where b - bishop is rn - running stag?"
},
{
"role": "assistant",
"content": "SELECT \"ba_running_bear\" FROM \"table1_2603017_2\" WHERE \"b_bishop\"='RN - Running Stag';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2603017_2\" (\n \"ab_angry_boar\" text,\n \"b_bishop\" text,\n \"ba_running_bear\" text,\n \"bb_blind_bear\" text,\n \"bc_beast_cadet\" text\n);\n\nQuestion: what is b - bishop where ab - angry boar is vw - vertical wolf?"
},
{
"role": "assistant",
"content": "SELECT \"b_bishop\" FROM \"table1_2603017_2\" WHERE \"ab_angry_boar\"='VW - Vertical Wolf';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2603017_2\" (\n \"ab_angry_boar\" text,\n \"b_bishop\" text,\n \"ba_running_bear\" text,\n \"bb_blind_bear\" text,\n \"bc_beast_cadet\" text\n);\n\nQuestion: what is ba - running bear where ab - angry boar is os - ox soldier?"
},
{
"role": "assistant",
"content": "SELECT \"ba_running_bear\" FROM \"table1_2603017_2\" WHERE \"ab_angry_boar\"='OS - Ox Soldier';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2603017_2\" (\n \"ab_angry_boar\" text,\n \"b_bishop\" text,\n \"ba_running_bear\" text,\n \"bb_blind_bear\" text,\n \"bc_beast_cadet\" text\n);\n\nQuestion: what is b - bishop where bc - beast cadet is gr - great dove?"
},
{
"role": "assistant",
"content": "SELECT \"b_bishop\" FROM \"table1_2603017_2\" WHERE \"bc_beast_cadet\"='GR - Great Dove';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2603017_2\" (\n \"ab_angry_boar\" text,\n \"b_bishop\" text,\n \"ba_running_bear\" text,\n \"bb_blind_bear\" text,\n \"bc_beast_cadet\" text\n);\n\nQuestion: what is bb - blind bear where ba - running bear is mf - mountain falcon?"
},
{
"role": "assistant",
"content": "SELECT \"bb_blind_bear\" FROM \"table1_2603017_2\" WHERE \"ba_running_bear\"='MF - Mountain Falcon';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2603017_2\" (\n \"ab_angry_boar\" text,\n \"b_bishop\" text,\n \"ba_running_bear\" text,\n \"bb_blind_bear\" text,\n \"bc_beast_cadet\" text\n);\n\nQuestion: what is bb - blind bear where ba - running bear is tc - tile chariot?"
},
{
"role": "assistant",
"content": "SELECT \"bb_blind_bear\" FROM \"table1_2603017_2\" WHERE \"ba_running_bear\"='TC - Tile Chariot';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26040604_1\" (\n \"model\" text,\n \"launch\" text,\n \"code_name\" text,\n \"transistors_million\" real,\n \"die_size_mm_2\" real,\n \"bus_interface\" text,\n \"memory_mb\" text,\n \"sm_count\" real,\n \"core_config_1_3\" text,\n \"core_m_hz\" real,\n \"shader_m_hz\" real,\n \"memory_m_hz\" text,\n \"pixel_gp_s\" text,\n \"texture_gt_s\" text,\n \"bandwidth_gb_s\" text,\n \"dram_type\" text,\n \"bus_width_bit\" real,\n \"gflops_fma_2\" text,\n \"tdp_watts\" real,\n \"release_price_usd\" text\n);\n\nQuestion: What is the minimum die size for an SM count of exactly 2?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"die_size_mm_2\") FROM \"table1_26040604_1\" WHERE \"sm_count\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26040604_1\" (\n \"model\" text,\n \"launch\" text,\n \"code_name\" text,\n \"transistors_million\" real,\n \"die_size_mm_2\" real,\n \"bus_interface\" text,\n \"memory_mb\" text,\n \"sm_count\" real,\n \"core_config_1_3\" text,\n \"core_m_hz\" real,\n \"shader_m_hz\" real,\n \"memory_m_hz\" text,\n \"pixel_gp_s\" text,\n \"texture_gt_s\" text,\n \"bandwidth_gb_s\" text,\n \"dram_type\" text,\n \"bus_width_bit\" real,\n \"gflops_fma_2\" text,\n \"tdp_watts\" real,\n \"release_price_usd\" text\n);\n\nQuestion: How many die sizes have a texture of exactly 34?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"die_size_mm_2\") FROM \"table1_26040604_1\" WHERE \"texture_gt_s\"='34';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26040604_1\" (\n \"model\" text,\n \"launch\" text,\n \"code_name\" text,\n \"transistors_million\" real,\n \"die_size_mm_2\" real,\n \"bus_interface\" text,\n \"memory_mb\" text,\n \"sm_count\" real,\n \"core_config_1_3\" text,\n \"core_m_hz\" real,\n \"shader_m_hz\" real,\n \"memory_m_hz\" text,\n \"pixel_gp_s\" text,\n \"texture_gt_s\" text,\n \"bandwidth_gb_s\" text,\n \"dram_type\" text,\n \"bus_width_bit\" real,\n \"gflops_fma_2\" text,\n \"tdp_watts\" real,\n \"release_price_usd\" text\n);\n\nQuestion: What model has a launch of September 3, 2010?"
},
{
"role": "assistant",
"content": "SELECT \"model\" FROM \"table1_26040604_1\" WHERE \"launch\"='September 3, 2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26040604_1\" (\n \"model\" text,\n \"launch\" text,\n \"code_name\" text,\n \"transistors_million\" real,\n \"die_size_mm_2\" real,\n \"bus_interface\" text,\n \"memory_mb\" text,\n \"sm_count\" real,\n \"core_config_1_3\" text,\n \"core_m_hz\" real,\n \"shader_m_hz\" real,\n \"memory_m_hz\" text,\n \"pixel_gp_s\" text,\n \"texture_gt_s\" text,\n \"bandwidth_gb_s\" text,\n \"dram_type\" text,\n \"bus_width_bit\" real,\n \"gflops_fma_2\" text,\n \"tdp_watts\" real,\n \"release_price_usd\" text\n);\n\nQuestion: What was the DRAM type of an SM Count of 6?"
},
{
"role": "assistant",
"content": "SELECT \"dram_type\" FROM \"table1_26040604_1\" WHERE \"sm_count\"=6;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2602958_5\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_air_date\" text,\n \"prod_code\" real,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Who wrote the movie positioned at 8 on the list?"
},
{
"role": "assistant",
"content": "SELECT \"writer_s\" FROM \"table1_2602958_5\" WHERE \"num\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26036389_1\" (\n \"sr_no\" real,\n \"name_of_road\" text,\n \"passes_through_district_s\" text,\n \"length_in_km\" text,\n \"mdr_no\" real\n);\n\nQuestion: What district does the road with a MDR number of 47 pass through?"
},
{
"role": "assistant",
"content": "SELECT \"passes_through_district_s\" FROM \"table1_26036389_1\" WHERE \"mdr_no\"=47;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26036389_1\" (\n \"sr_no\" real,\n \"name_of_road\" text,\n \"passes_through_district_s\" text,\n \"length_in_km\" text,\n \"mdr_no\" real\n);\n\nQuestion: What is the MDR number of Rait Charhi Dharamshala?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"mdr_no\") FROM \"table1_26036389_1\" WHERE \"name_of_road\"='Rait Charhi Dharamshala';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26036389_1\" (\n \"sr_no\" real,\n \"name_of_road\" text,\n \"passes_through_district_s\" text,\n \"length_in_km\" text,\n \"mdr_no\" real\n);\n\nQuestion: What is the Sr. number of Banikhet Dalhouse Khajiar?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"sr_no\") FROM \"table1_26036389_1\" WHERE \"name_of_road\"='Banikhet Dalhouse Khajiar';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_career_runs\" (\n \"rank\" real,\n \"runs\" real,\n \"average\" text,\n \"strike_rate\" text,\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"period\" text\n);\n\nQuestion: What is the smallest number of runs?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"runs\") FROM \"most_career_runs\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_career_runs\" (\n \"rank\" real,\n \"runs\" real,\n \"average\" text,\n \"strike_rate\" text,\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"period\" text\n);\n\nQuestion: How many innings are there when the average is 32.3?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"innings\") FROM \"most_career_runs\" WHERE \"average\"='32.3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_career_runs\" (\n \"rank\" real,\n \"runs\" real,\n \"average\" text,\n \"strike_rate\" text,\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"period\" text\n);\n\nQuestion: What was the average when the strike rate is 75.78?"
},
{
"role": "assistant",
"content": "SELECT \"average\" FROM \"most_career_runs\" WHERE \"strike_rate\"='75.78';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_dismissals_catches_plus_stumpings_i\" (\n \"rank\" real,\n \"dismissals\" real,\n \"catches\" real,\n \"stumps\" real,\n \"player\" text,\n \"period\" text\n);\n\nQuestion: What is the catches maximum number?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"catches\") FROM \"most_dismissals_catches_plus_stumpings_i\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_dismissals_catches_plus_stumpings_i\" (\n \"rank\" real,\n \"dismissals\" real,\n \"catches\" real,\n \"stumps\" real,\n \"player\" text,\n \"period\" text\n);\n\nQuestion: If the player is Hashan Tillakaratne, what is the catches minimum?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"catches\") FROM \"most_dismissals_catches_plus_stumpings_i\" WHERE \"player\"='Hashan Tillakaratne';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_dismissals_catches_plus_stumpings_i\" (\n \"rank\" real,\n \"dismissals\" real,\n \"catches\" real,\n \"stumps\" real,\n \"player\" text,\n \"period\" text\n);\n\nQuestion: what is the period if the player is Hashan Tillakaratne?"
},
{
"role": "assistant",
"content": "SELECT \"period\" FROM \"most_dismissals_catches_plus_stumpings_i\" WHERE \"player\"='Hashan Tillakaratne';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_dismissals_catches_plus_stumpings_i\" (\n \"rank\" real,\n \"dismissals\" real,\n \"catches\" real,\n \"stumps\" real,\n \"player\" text,\n \"period\" text\n);\n\nQuestion: What is the ranktotal number if the Hashan Tillakaratne?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"most_dismissals_catches_plus_stumpings_i\" WHERE \"player\"='Hashan Tillakaratne';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_dismissals_catches_plus_stumpings_i\" (\n \"rank\" real,\n \"dismissals\" real,\n \"catches\" real,\n \"stumps\" real,\n \"player\" text,\n \"period\" text\n);\n\nQuestion: If the catches is 131, what is the rank total number?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"rank\") FROM \"most_dismissals_catches_plus_stumpings_i\" WHERE \"catches\"=131;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"crime_statistics_1995_2011_non_homicide\" (\n \"year\" real,\n \"population\" real,\n \"total\" real,\n \"violent\" real,\n \"property_crimes\" real,\n \"forcible_rape\" real,\n \"robbery\" real,\n \"aggravated_assault\" real,\n \"burglary\" real,\n \"larceny_theft\" real,\n \"vehicle_theft\" real\n);\n\nQuestion: What was the maximum burglary statistics if the property crimes is 168630?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"burglary\") FROM \"crime_statistics_1995_2011_non_homicide\" WHERE \"property_crimes\"=168630;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"crime_statistics_1995_2011_non_homicide\" (\n \"year\" real,\n \"population\" real,\n \"total\" real,\n \"violent\" real,\n \"property_crimes\" real,\n \"forcible_rape\" real,\n \"robbery\" real,\n \"aggravated_assault\" real,\n \"burglary\" real,\n \"larceny_theft\" real,\n \"vehicle_theft\" real\n);\n\nQuestion: How many burglary crimes were committed if the forcible rapes were 1233?"
},
{
"role": "assistant",
"content": "SELECT \"burglary\" FROM \"crime_statistics_1995_2011_non_homicide\" WHERE \"forcible_rape\"=1233;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"crime_statistics_1995_2011_non_homicide\" (\n \"year\" real,\n \"population\" real,\n \"total\" real,\n \"violent\" real,\n \"property_crimes\" real,\n \"forcible_rape\" real,\n \"robbery\" real,\n \"aggravated_assault\" real,\n \"burglary\" real,\n \"larceny_theft\" real,\n \"vehicle_theft\" real\n);\n\nQuestion: How many vehicle thefts data were recorded if forcible rape is 1232?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"vehicle_theft\") FROM \"crime_statistics_1995_2011_non_homicide\" WHERE \"forcible_rape\"=1232;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"crime_statistics_1995_2011_non_homicide\" (\n \"year\" real,\n \"population\" real,\n \"total\" real,\n \"violent\" real,\n \"property_crimes\" real,\n \"forcible_rape\" real,\n \"robbery\" real,\n \"aggravated_assault\" real,\n \"burglary\" real,\n \"larceny_theft\" real,\n \"vehicle_theft\" real\n);\n\nQuestion: How many vehicle theft data were recorded for a year with a population of 4465430?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"vehicle_theft\") FROM \"crime_statistics_1995_2011_non_homicide\" WHERE \"population\"=4465430;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"crime_statistics_1995_2011_non_homicide\" (\n \"year\" real,\n \"population\" real,\n \"total\" real,\n \"violent\" real,\n \"property_crimes\" real,\n \"forcible_rape\" real,\n \"robbery\" real,\n \"aggravated_assault\" real,\n \"burglary\" real,\n \"larceny_theft\" real,\n \"vehicle_theft\" real\n);\n\nQuestion: What was the minimum property crimes stats if the burglary committed was 45350?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"property_crimes\") FROM \"crime_statistics_1995_2011_non_homicide\" WHERE \"burglary\"=45350;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_career_averages\" (\n \"rank\" real,\n \"average\" text,\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"period\" text\n);\n\nQuestion: What was kumar sangakkara's average?"
},
{
"role": "assistant",
"content": "SELECT \"average\" FROM \"highest_career_averages\" WHERE \"player\"='Kumar Sangakkara';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_career_averages\" (\n \"rank\" real,\n \"average\" text,\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"period\" text\n);\n\nQuestion: Who was the player with a 36.74 average?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"highest_career_averages\" WHERE \"average\"='36.74';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_career_averages\" (\n \"rank\" real,\n \"average\" text,\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"period\" text\n);\n\nQuestion: What is the rank of the player with the 39.69 average?"
},
{
"role": "assistant",
"content": "SELECT \"rank\" FROM \"highest_career_averages\" WHERE \"average\"='39.69';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"highest_career_averages\" (\n \"rank\" real,\n \"average\" text,\n \"player\" text,\n \"matches\" real,\n \"innings\" real,\n \"period\" text\n);\n\nQuestion: What is the lowest number of matches for a record holder?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"matches\") FROM \"highest_career_averages\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26099252_1\" (\n \"browser\" text,\n \"operating_system\" text,\n \"latest_stable_release\" text,\n \"theora\" text,\n \"h_264\" text,\n \"vp8_web_m\" text,\n \"vp9_web_m\" text\n);\n\nQuestion: When theora is 2.3, how much is the h.264?"
},
{
"role": "assistant",
"content": "SELECT \"h_264\" FROM \"table1_26099252_1\" WHERE \"theora\"='2.3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26099252_1\" (\n \"browser\" text,\n \"operating_system\" text,\n \"latest_stable_release\" text,\n \"theora\" text,\n \"h_264\" text,\n \"vp8_web_m\" text,\n \"vp9_web_m\" text\n);\n\nQuestion: When vp8 ( webm ) is 6.0, how much is the vp9 ( webm )?"
},
{
"role": "assistant",
"content": "SELECT \"vp9_web_m\" FROM \"table1_26099252_1\" WHERE \"vp8_web_m\"='6.0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26099252_1\" (\n \"browser\" text,\n \"operating_system\" text,\n \"latest_stable_release\" text,\n \"theora\" text,\n \"h_264\" text,\n \"vp8_web_m\" text,\n \"vp9_web_m\" text\n);\n\nQuestion: When vp8 ( webm ) is 4.4, how much is vp9 ( webm )"
},
{
"role": "assistant",
"content": "SELECT \"vp9_web_m\" FROM \"table1_26099252_1\" WHERE \"vp8_web_m\"='4.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26099252_1\" (\n \"browser\" text,\n \"operating_system\" text,\n \"latest_stable_release\" text,\n \"theora\" text,\n \"h_264\" text,\n \"vp8_web_m\" text,\n \"vp9_web_m\" text\n);\n\nQuestion: What is the last stable version where the h.264 is 3.0 and vp9 (webm) is no."
},
{
"role": "assistant",
"content": "SELECT \"latest_stable_release\" FROM \"table1_26099252_1\" WHERE \"vp9_web_m\"='No' AND \"h_264\"='3.0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26099252_1\" (\n \"browser\" text,\n \"operating_system\" text,\n \"latest_stable_release\" text,\n \"theora\" text,\n \"h_264\" text,\n \"vp8_web_m\" text,\n \"vp9_web_m\" text\n);\n\nQuestion: When h.264 is 9.0, how much is vp9 ( webm )"
},
{
"role": "assistant",
"content": "SELECT \"vp9_web_m\" FROM \"table1_26099252_1\" WHERE \"h_264\"='9.0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"shortscale_comparison\" text,\n \"chuquet\" text,\n \"peletier\" text,\n \"systematics\" text,\n \"base_10\" text,\n \"si_prefix\" text\n);\n\nQuestion: Name the peletier for systematics being million 1"
},
{
"role": "assistant",
"content": "SELECT \"peletier\" FROM \"see_also\" WHERE \"systematics\"='Million 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"shortscale_comparison\" text,\n \"chuquet\" text,\n \"peletier\" text,\n \"systematics\" text,\n \"base_10\" text,\n \"si_prefix\" text\n);\n\nQuestion: Name the si prefix for thousand chuquet"
},
{
"role": "assistant",
"content": "SELECT \"si_prefix\" FROM \"see_also\" WHERE \"chuquet\"='thousand';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"shortscale_comparison\" text,\n \"chuquet\" text,\n \"peletier\" text,\n \"systematics\" text,\n \"base_10\" text,\n \"si_prefix\" text\n);\n\nQuestion: Name the base 10 for peletier for bi llion"
},
{
"role": "assistant",
"content": "SELECT \"base_10\" FROM \"see_also\" WHERE \"peletier\"='Bi llion';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"shortscale_comparison\" text,\n \"chuquet\" text,\n \"peletier\" text,\n \"systematics\" text,\n \"base_10\" text,\n \"si_prefix\" text\n);\n\nQuestion: Name the total number of peletier for shortscale comparison billion"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"peletier\") FROM \"see_also\" WHERE \"shortscale_comparison\"='Billion';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"shortscale_comparison\" text,\n \"chuquet\" text,\n \"peletier\" text,\n \"systematics\" text,\n \"base_10\" text,\n \"si_prefix\" text\n);\n\nQuestion: Name the base 10 for shortscale comparison for billion"
},
{
"role": "assistant",
"content": "SELECT \"base_10\" FROM \"see_also\" WHERE \"shortscale_comparison\"='Billion';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio_23\" (\n \"branding\" text,\n \"callsign\" text,\n \"ch_num\" text,\n \"station_type\" text,\n \"power_k_w_erp\" text,\n \"location_transmitter_site\" text\n);\n\nQuestion: What is the branding of the callsign DWBA-TV?"
},
{
"role": "assistant",
"content": "SELECT \"branding\" FROM \"studio_23\" WHERE \"callsign\"='DWBA-TV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio_23\" (\n \"branding\" text,\n \"callsign\" text,\n \"ch_num\" text,\n \"station_type\" text,\n \"power_k_w_erp\" text,\n \"location_transmitter_site\" text\n);\n\nQuestion: What is the station type of DWMC-TV?"
},
{
"role": "assistant",
"content": "SELECT \"station_type\" FROM \"studio_23\" WHERE \"callsign\"='DWMC-TV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio_23\" (\n \"branding\" text,\n \"callsign\" text,\n \"ch_num\" text,\n \"station_type\" text,\n \"power_k_w_erp\" text,\n \"location_transmitter_site\" text\n);\n\nQuestion: What is the location that has a power of 5kw (10kw ERP)?"
},
{
"role": "assistant",
"content": "SELECT \"location_transmitter_site\" FROM \"studio_23\" WHERE \"power_k_w_erp\"='5kW (10kW ERP)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"studio_23\" (\n \"branding\" text,\n \"callsign\" text,\n \"ch_num\" text,\n \"station_type\" text,\n \"power_k_w_erp\" text,\n \"location_transmitter_site\" text\n);\n\nQuestion: What is the power, in kW, of channel TV-23, callsign DYCG-TV?"
},
{
"role": "assistant",
"content": "SELECT \"power_k_w_erp\" FROM \"studio_23\" WHERE \"ch_num\"='TV-23' AND \"callsign\"='DYCG-TV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regional\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"location\" text\n);\n\nQuestion: What's the power for General Santos?"
},
{
"role": "assistant",
"content": "SELECT \"power_k_w\" FROM \"regional\" WHERE \"location\"='General Santos';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regional\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"location\" text\n);\n\nQuestion: What bran is the callsign dytc-fm?"
},
{
"role": "assistant",
"content": "SELECT \"branding\" FROM \"regional\" WHERE \"callsign\"='DYTC-FM';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"regional\" (\n \"branding\" text,\n \"callsign\" text,\n \"frequency\" text,\n \"power_k_w\" text,\n \"location\" text\n);\n\nQuestion: What frequency is dxec-fm?"
},
{
"role": "assistant",
"content": "SELECT \"frequency\" FROM \"regional\" WHERE \"callsign\"='DXEC-FM';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_season\" (\n \"rank\" real,\n \"player\" text,\n \"year\" real,\n \"opponent\" text,\n \"passing_yards\" real,\n \"rushing_yards\" real,\n \"total_offense\" real\n);\n\nQuestion: Who was the opponent when there was 117 rushing yards?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"2013_season\" WHERE \"rushing_yards\"=117;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_season\" (\n \"rank\" real,\n \"player\" text,\n \"year\" real,\n \"opponent\" text,\n \"passing_yards\" real,\n \"rushing_yards\" real,\n \"total_offense\" real\n);\n\nQuestion: What was the earliest year?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"2013_season\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_season\" (\n \"rank\" real,\n \"player\" text,\n \"year\" real,\n \"opponent\" text,\n \"passing_yards\" real,\n \"rushing_yards\" real,\n \"total_offense\" real\n);\n\nQuestion: Who was the opponent when there was 81 rushing yards?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"2013_season\" WHERE \"rushing_yards\"=81;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_season\" (\n \"rank\" real,\n \"player\" text,\n \"year\" real,\n \"opponent\" text,\n \"passing_yards\" real,\n \"rushing_yards\" real,\n \"total_offense\" real\n);\n\nQuestion: How many rushing yards where there when the opponent was Indiana and there was 503 passing yards?"
},
{
"role": "assistant",
"content": "SELECT \"rushing_yards\" FROM \"2013_season\" WHERE \"opponent\"='Indiana' AND \"passing_yards\"=503;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2013_season\" (\n \"rank\" real,\n \"player\" text,\n \"year\" real,\n \"opponent\" text,\n \"passing_yards\" real,\n \"rushing_yards\" real,\n \"total_offense\" real\n);\n\nQuestion: Who was the opponent when Devin Gardner was the player?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"2013_season\" WHERE \"player\"='Devin Gardner';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: How many points were scored on pole services?"
},
{
"role": "assistant",
"content": "SELECT \"points\" FROM \"career_summary\" WHERE \"team\"='Pole Services';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: How many teams were in the series championnat de france formula renault 2.0?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"career_summary\" WHERE \"series\"='Championnat de France Formula Renault 2.0';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bukidnon\" (\n \"city_municipality\" text,\n \"date_of_creation\" text,\n \"area_km_2\" text,\n \"population_2010\" real,\n \"income_classification_dof\" text\n);\n\nQuestion: What is the area (km2) for the place with a 2010 population of 153085?"
},
{
"role": "assistant",
"content": "SELECT \"area_km_2\" FROM \"bukidnon\" WHERE \"population_2010\"=153085;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bukidnon\" (\n \"city_municipality\" text,\n \"date_of_creation\" text,\n \"area_km_2\" text,\n \"population_2010\" real,\n \"income_classification_dof\" text\n);\n\nQuestion: How many city/municipalties have an area (km2) of 506.64?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"city_municipality\") FROM \"bukidnon\" WHERE \"area_km_2\"='506.64';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bukidnon\" (\n \"city_municipality\" text,\n \"date_of_creation\" text,\n \"area_km_2\" text,\n \"population_2010\" real,\n \"income_classification_dof\" text\n);\n\nQuestion: How many places have an area of 409.41 (km2)?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"population_2010\") FROM \"bukidnon\" WHERE \"area_km_2\"='409.41';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bukidnon\" (\n \"city_municipality\" text,\n \"date_of_creation\" text,\n \"area_km_2\" text,\n \"population_2010\" real,\n \"income_classification_dof\" text\n);\n\nQuestion: What day was kibawe created?"
},
{
"role": "assistant",
"content": "SELECT \"date_of_creation\" FROM \"bukidnon\" WHERE \"city_municipality\"='Kibawe';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bukidnon\" (\n \"city_municipality\" text,\n \"date_of_creation\" text,\n \"area_km_2\" text,\n \"population_2010\" real,\n \"income_classification_dof\" text\n);\n\nQuestion: How many places are named manolo fortich?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"area_km_2\") FROM \"bukidnon\" WHERE \"city_municipality\"='Manolo Fortich';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"super_draft\" (\n \"season\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"team\" text,\n \"previous_college_team\" text\n);\n\nQuestion: Which player for Project-40 in his college team?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"super_draft\" WHERE \"previous_college_team\"='Project-40';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"super_draft\" (\n \"season\" real,\n \"player\" text,\n \"position\" text,\n \"nationality\" text,\n \"team\" text,\n \"previous_college_team\" text\n);\n\nQuestion: Dallas Burn's draft pick was which position?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"super_draft\" WHERE \"team\"='Dallas Burn';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26136228_3\" (\n \"series_no\" real,\n \"episode_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who wrote the episode that had 1.08 million U.S. viewers?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_26136228_3\" WHERE \"u_s_viewers_millions\"='1.08';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26136228_3\" (\n \"series_no\" real,\n \"episode_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who directed episode 11 in the series?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_26136228_3\" WHERE \"series_no\"=11;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26136228_3\" (\n \"series_no\" real,\n \"episode_no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What episode number in the season had 1.05 million U.S. viewers?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"episode_no\") FROM \"table1_26136228_3\" WHERE \"u_s_viewers_millions\"='1.05';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episodes\" (\n \"episode_num\" real,\n \"series_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer\" text,\n \"original_airdate\" text,\n \"viewers_in_millions\" text\n);\n\nQuestion: What is the name of the episode that had 8.51 million viewers?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"episodes\" WHERE \"viewers_in_millions\"='8.51';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.