text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1973" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: what type of game has the resuts of 1:0? <|assistant|> SELECT "type_of_game" FROM "1973" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_most_appearances" ( "ranking" real, "nationality" text, "name" text, "games" real, "years" text ); Question: What is the average Games for 1965–1981, and a Ranking larger than 4? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_most_appearances" ( "ranking" real, "nationality" text, "name" text, "games" real, "years" text ); Question: What is the Years when games shows 550? <|assistant|> SELECT "years" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_most_appearances" ( "ranking" real, "nationality" text, "name" text, "games" real, "years" text ); Question: What is the Nationality that shows 4 as the ranking? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rotavirus_genes_and_proteins" ( "rna_segment_gene" real, "size_s_base_pair" real, "protein" text, "molecular_weight_k_da" text, "location" text, "copies_per_particle" text ); Question: Which ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rotavirus_genes_and_proteins" ( "rna_segment_gene" real, "size_s_base_pair" real, "protein" text, "molecular_weight_k_da" text, "location" text, "copies_per_particle" text ); Question: How ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rotavirus_genes_and_proteins" ( "rna_segment_gene" real, "size_s_base_pair" real, "protein" text, "molecular_weight_k_da" text, "location" text, "copies_per_particle" text ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rotavirus_genes_and_proteins" ( "rna_segment_gene" real, "size_s_base_pair" real, "protein" text, "molecular_weight_k_da" text, "location" text, "copies_per_particle" text ); Question: What i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: Who won the bronze medal in Hiroshima? <|assistant|> SELECT "bronze" FROM "individual" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: Who won the silver medal in the games where Hong Chia-yuh took home bronze? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: Where did Michael Eric Bibat win bronze? <|assistant|> SELECT "location" FROM "individual" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: Who won gold in the games where Pan Cheng-Tsung won silver? <|assistant|> SELECT "gold" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many Bronzes that has a Silver of 0, and a Gold of 0, and a Nation of denma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many Bronzes that has a Nation of italy? <|assistant|> SELECT MAX("bronze")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many Silvers that has a Gold smaller than 1, and a Rank of 9, and a Total s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Bronze has a Nation of spain? <|assistant|> SELECT MAX("bronze") FROM "me...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_goals" real, "total_assists" real ); Question...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text ); Question: How many Januarys had records of 22-15-6? <|assistant|> SELECT COUNT("january") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "event_circuit" text, "city_state" text, "date" text, "format" text, "winner" text, "team" text ); Question: what is the date of barbagallo raceway? <|assistant|> SELECT "date" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "event_circuit" text, "city_state" text, "date" text, "format" text, "winner" text, "team" text ); Question: What city is the hidden valley raceway in? <|assistant|> SELECT "city_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); Question: What was the score in game 81? <|assistant|> SELECT "score" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); Question: What was the record after game 79? <|assistant|> SELECT "record" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "april" ( "game_num" real, "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); Question: Who was the home team on April 15? <|assistant|> SELECT "home" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "population_2010_11_01" text, "area_km" text, "density_km" text ); Question: What is the Pinyin for 依兰县? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "population_2010_11_01" text, "area_km" text, "density_km" text ); Question: What is the Pinyin for the item that h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "population_2010_11_01" text, "area_km" text, "density_km" text ); Question: What is the population for the area th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "population_2010_11_01" text, "area_km" text, "density_km" text ); Question: What is the population as of 11-01-201...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "population_2010_11_01" text, "area_km" text, "density_km" text ); Question: What is the Hanzi for píngfáng qū? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_standings" ( "season" real, "overall" text, "slalom" text, "giant_slalom" text, "super_g" text, "combined" text ); Question: Which Slalom has an overall of 25 in the 2009 season? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_standings" ( "season" real, "overall" text, "slalom" text, "giant_slalom" text, "super_g" text, "combined" text ); Question: What is the earliest season with a Giant Slalom of 5? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_standings" ( "season" real, "overall" text, "slalom" text, "giant_slalom" text, "super_g" text, "combined" text ); Question: Which combined score has an overall of 8? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_standings" ( "season" real, "overall" text, "slalom" text, "giant_slalom" text, "super_g" text, "combined" text ); Question: Which Super Ghas a missed season due to injury? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: Name the most events with cuts made more than 6 and top 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: Name the top-10 with top-5 less than 1 <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: Name the averae top 25 with events less than 0 <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: Name the total number of top 10 with top 25 less than 2 a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "0_6_0_0_6_0_garratt_production_list_all_" ( "gauge" text, "railway" text, "works_no" text, "year" text, "builder" text ); Question: In what Year is the Gauge 2 ft 6 in? <|assistant|> SELECT "ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "0_6_0_0_6_0_garratt_production_list_all_" ( "gauge" text, "railway" text, "works_no" text, "year" text, "builder" text ); Question: In what Year is the Works No. 2040-2049? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "0_6_0_0_6_0_garratt_production_list_all_" ( "gauge" text, "railway" text, "works_no" text, "year" text, "builder" text ); Question: In what Year is the Works no. 2040-2049? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "0_6_0_0_6_0_garratt_production_list_all_" ( "gauge" text, "railway" text, "works_no" text, "year" text, "builder" text ); Question: What is the Gauge of Builder Beyer, Peacock? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text ); Question: Which round has the record of 5-0? <|assistant|> SELECT "round"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text ); Question: Which method has the record of 11-1? <|assistant|> SELECT "meth...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text ); Question: The UFC 44 event has what method? <|assistant|> SELECT "method"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text ); Question: Which event has 12-1 as a record? <|assistant|> SELECT "event" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text ); Question: What round was a loss with a record of 12-3? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text ); Question: The record of 11-1 used what method? <|assistant|> SELECT "meth...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_11_5_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What surface was the match on November 6, 1982 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_standings" ( "team" text, "players" text, "placing" real, "round_robin_w_l" text, "matches_w_l" text, "sets_w_l" text ); Question: What place did russia finish in? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_class" ( "class" text, "season" text, "race" real, "podiums" real, "pole" real, "f_lap" real, "w_chmp" real ); Question: What's the WChmp of the race greater than 42 and pole greater tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_class" ( "class" text, "season" text, "race" real, "podiums" real, "pole" real, "f_lap" real, "w_chmp" real ); Question: If podiums are 26, what's the lowest WChmp? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_class" ( "class" text, "season" text, "race" real, "podiums" real, "pole" real, "f_lap" real, "w_chmp" real ); Question: If the class is total, what is the total number of podiums? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_class" ( "class" text, "season" text, "race" real, "podiums" real, "pole" real, "f_lap" real, "w_chmp" real ); Question: During race 14, what's the podiums? <|assistant|> SELECT MAX("pod...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_good_news_network_in_spanish" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); Question: What Call sign has a City of lice...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_good_news_network_in_spanish" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); Question: What City of license has a ERP W ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_good_news_network_in_spanish" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); Question: What is the Class where City of l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); Question: What chassis has 2012 as the year? <|assistant|> SELECT "chassis" FROM "i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); Question: What engine has a start less than 7, and 23 as a finish? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); Question: What is the average finish that has a start greater than 3, with honda as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); Question: How many starts have a year prior to 2012, and team penske as the team, w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_500" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); Question: What start has a year later than 2010, and chip ganassi racing as the tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "penalty_shootouts" ( "date" text, "competition" text, "opponents" text, "venue" text, "score" text ); Question: Who was the opponent at the Football League Trophy competition? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "penalty_shootouts" ( "date" text, "competition" text, "opponents" text, "venue" text, "score" text ); Question: What was the opponent at the League Play Offs at home? <|assistant|> SELECT "oppo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "penalty_shootouts" ( "date" text, "competition" text, "opponents" text, "venue" text, "score" text ); Question: What venue held that game against the Queens Park Rangers? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "penalty_shootouts" ( "date" text, "competition" text, "opponents" text, "venue" text, "score" text ); Question: Who was the opponent at the away game with a score of 5-4? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "penalty_shootouts" ( "date" text, "competition" text, "opponents" text, "venue" text, "score" text ); Question: Who was the opponent at the League Cup competition with a score of 3-1? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification_leadership" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_two" ( "order" real, "episode" text, "air_date" text, "u_s_timeslot_est" text, "18_49" real, "viewers" real ); Question: What is the sum of numbers listed in 18-49 for the episode that...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_two" ( "order" real, "episode" text, "air_date" text, "u_s_timeslot_est" text, "18_49" real, "viewers" real ); Question: What is the total 18-49 for the episode that aired on July 2, 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_two" ( "order" real, "episode" text, "air_date" text, "u_s_timeslot_est" text, "18_49" real, "viewers" real ); Question: What was the timeslot in the US for the episode, "the farm"? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_two" ( "order" real, "episode" text, "air_date" text, "u_s_timeslot_est" text, "18_49" real, "viewers" real ); Question: What is the average 18-49 for the episode that had an order num...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_two" ( "order" real, "episode" text, "air_date" text, "u_s_timeslot_est" text, "18_49" real, "viewers" real ); Question: What is the episode name that aired on July 23, 2009 with more ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "album" text, "oricon_position" real, "1st_week_sales" text, "copies_sold" text ); Question: What year sold 1,695,900+ copies with an Oricon position larger than 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "album" text, "oricon_position" real, "1st_week_sales" text, "copies_sold" text ); Question: How many copies were sold where the position is lager than 1 in 1988? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "year" real, "album" text, "oricon_position" real, "1st_week_sales" text, "copies_sold" text ); Question: How many copies were sold when the 1st week sales were 4,590+? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the Winning Score on May 29, 1977? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: On what Date was Patty Sheehan Runner(s)-up? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: On what Date was Judy Rankin Runner(s)-up? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: On what Date was the Winning score –8 (69-72-70-69=280)? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: On what Date was Carole Charbonnier a Runner(s)-up with a 1 s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_wins_7" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What Tournament has a Winning score of +3 (71-72-70=213)? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); Question: What date did the team play home in Toronto? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); Question: How many people attended the game when Larry Hughes(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); Question: When did they play Utah at home? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "stadium" text, "record" text, "attendance" real ); Question: What opponent has balboa stadium as the opponent? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "stadium" text, "record" text, "attendance" real ); Question: What is the highest attendance that has oakland rai...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1999" ( "rank" real, "name" text, "headquarters" text, "primary_industry" text, "market_value_usd_million" real ); Question: Where is the headquarter of the conglomerate industry? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What date was the game played at the venue of Hrazdan Stadium, Yerevan, Armenia? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: Who was the bronze medal when the Asian Games were held in Busan? <|assistant|> SELECT "bronze...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: Who won the gold when Kim Hyang-Mi won the bronze? <|assistant|> SELECT "gold" FROM "individua...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: What was the earliest year that Park Jung-Ah won the gold? <|assistant|> SELECT MIN("year") FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: Who won the bronze when the Asian Games were in Doha? <|assistant|> SELECT "bronze" FROM "indi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was the Attendance on November 29, 1953? <|assistant|> SELECT SUM("attendance") FROM "s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: After Week 5, what was the Result of the game with Attendance greater than 22,057? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); Question: Which NFL team picked Patrick Collins? <|assistant|> SELECT "nfl_team" FROM "nfl_draft...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); Question: Which NFL team picked a player for the Wide Receiver position? <|assistant|> SELECT "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: What result has a year after 2002? <|assistant|> SELECT "result" FROM "achievements" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text ); Question: What tournament has a year prior to 2001? <|assistant|> SELECT "tournament" FROM "achievem...