text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "election" ( "event" text, "date" text, "dp_da" real, "np_nnp" text, "cope" text, "acdp" real, "others" real ); Question: Name the NP/NNP for ACDP of 1 and others of 1 and DP/DA of 5 <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: Which player won less than $335? <|assistant|> SELECT "player" FROM "f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What was the place ranking for the player from Australia? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: How much money did the player Ed Oliver win? <|assistant|> SELECT SUM(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runner_ups_10_62" ( "year" real, "opponent" text, "competition" text, "score" text, "venue" text, "attendance" real ); Question: What competition did Parramatta Eels join after 1982? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runner_ups_10_62" ( "year" real, "opponent" text, "competition" text, "score" text, "venue" text, "attendance" real ); Question: When did nswrfl has a score of 8-21? <|assistant|> SELECT "yea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runner_ups_10_62" ( "year" real, "opponent" text, "competition" text, "score" text, "venue" text, "attendance" real ); Question: How many years have less than 28,505 attendance? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What Date is listed for the Region of France and Catalog of 82876-70291-2? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: Which Format is listed that has a Region of China? <|assistant|> SELECT "format" FROM "re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: What's the Date for the Label of Bertelsmann Music group and has a Region of Europe? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: How many people attended the Royals game with a score of 17 - 6? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the result of April 27's game? <|assistant|> SELECT "score" FROM "g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "design_details" ( "308_winchester_cartridge_type" text, "100_m_group_mm" text, "100_m_group_moa" text, "300_m_group_mm" text, "300_m_group_moa" text ); Question: Which of the .308 Winchester ca...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "licensed_titles" ( "title" text, "year" real, "developer" text, "publisher" text, "players_per_console" text, "genre" text ); Question: For the strategy game in 1992, how many players were al...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "licensed_titles" ( "title" text, "year" real, "developer" text, "publisher" text, "players_per_console" text, "genre" text ); Question: Which Genre was published by Atari and developed by NuF...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "licensed_titles" ( "title" text, "year" real, "developer" text, "publisher" text, "players_per_console" text, "genre" text ); Question: Which year was the game developed by Music Comp in? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: Name the record for august 31 <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='august ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: Name the opponent for august 6 <|assistant|> SELECT "opponent" FROM "game_log" WHERE "date"='augu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: Name the opponent with record of 52-58 <|assistant|> SELECT "opponent" FROM "game_log" WHERE "rec...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "belfast_and_northern_counties_railway_18" ( "class" text, "type" text, "fleet_numbers" text, "quantity_made" real, "manufacturer" text, "date_made" text, "date_withdrawn" text ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "belfast_and_northern_counties_railway_18" ( "class" text, "type" text, "fleet_numbers" text, "quantity_made" real, "manufacturer" text, "date_made" text, "date_withdrawn" text ); Question: ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What year shows 4 points? <|assistant|> SELECT "year" FROM "complete_formu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the most points when the entrant was Jaguar racing earlier than 20...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the entrant in 1999? <|assistant|> SELECT "entrant" FROM "complete...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the most points when the chassis was Jaguar R3 later than 2002? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "skin_depth_at_24_k_hz" ( "material" text, "resistivity_10_6_ohm_inches" real, "relative_permeability" real, "skin_depth_inches" real, "surface_resistance_relative_to_copper" real ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "skin_depth_at_24_k_hz" ( "material" text, "resistivity_10_6_ohm_inches" real, "relative_permeability" real, "skin_depth_inches" real, "surface_resistance_relative_to_copper" real ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "skin_depth_at_24_k_hz" ( "material" text, "resistivity_10_6_ohm_inches" real, "relative_permeability" real, "skin_depth_inches" real, "surface_resistance_relative_to_copper" real ); Question: W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "pos" text, "player" text, "team" text, "height" text, "weight" real ); Question: How much does Jonathan Bender weigh? <|assistant|> SELECT "weight" FROM "contestants" WHERE "pla...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "pos" text, "player" text, "team" text, "height" text, "weight" real ); Question: Of those with a height of 7-0, who weighs the most? <|assistant|> SELECT MAX("weight") FROM "con...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "contestants" ( "pos" text, "player" text, "team" text, "height" text, "weight" real ); Question: What does DeShawn Stevenson weigh? <|assistant|> SELECT SUM("weight") FROM "contestants" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timaru_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: Name the highest roll for coed and authority of state int...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "engine_code" text, "displacement" text, "power_torque_rpm" text, "redline_rpm" real, "year" real ); Question: What is the displacement of the engine that has a Redline rpm higher tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "engine_code" text, "displacement" text, "power_torque_rpm" text, "redline_rpm" real, "year" real ); Question: From what year is the engine with engine code M57D30? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "engine_code" text, "displacement" text, "power_torque_rpm" text, "redline_rpm" real, "year" real ); Question: What is the average Redline RPM of engines with engine code M57TUD30, ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); Question: What was the result against Beijing Hyundai? <|assistant|> SELECT "resu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); Question: Was the game with Kashima antlers at home or away? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); Question: What date was the game against Royal Antwerp? <|assistant|> SELECT "dat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "time" text, "att" text, "record" text ); Question: What Records Time is 3:38? <|assistant|> SELECT "record" FROM "game_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "country" text, "2006" real, "2005" real, "2004" real, "2003" real ); Question: What Country has a number smaller than 56 in 2005 and of 14 in 2006? <|assistant|> SELECT COUNT("2004") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list" ( "country" text, "2006" real, "2005" real, "2004" real, "2003" real ); Question: What Country has a number smaller than 3 in 2004 and larger than 1 in 2005? <|assistant|> SELECT COUNT("2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); Question: The building with 48 floors has an address in Las Ve...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); Question: The Palazzo's street address is listed as what? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_setlist" ( "year" real, "song_title" text, "artist" text, "master_recording" text, "tier" text ); Question: What's the title of the song by Winger? <|assistant|> SELECT "song_title" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text ); Question: What shows for 3rd place when Runner-up shows as runner-up? <|assistant|> SELECT "3rd_place...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text ); Question: What year shows as Runner-up of england (24 pts)? <|assistant|> SELECT "year" FROM "winners...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text ); Question: What shows for Winners when it shows 3rd place of [[|]] (21 pts), and a Runner-up of united...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text ); Question: What shows for 3rd place when the venue was Pardubice? <|assistant|> SELECT "3rd_place" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text ); Question: what shows for 3rd place in 1990? <|assistant|> SELECT "3rd_place" FROM "winners" WHERE "ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "venue" text, "winners" text, "runner_up" text, "3rd_place" text ); Question: What year was the venue Landshut? <|assistant|> SELECT "year" FROM "winners" WHERE "venue"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What is the record when Tampa Bay is the visitor? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What is the date when Joseph is the decision and San Jose is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What is the date of the match when Detroit is the home team a...
<|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: Who is the opponent with attendance greater than 73,984 with a result of w 28–14? <|assistan...
<|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: How many people were in attendance in a week over 4 on December 6, 1981? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); Question: Name the least game for october 10 at shibe park <|assistant|> SELECT MIN("game") FROM "summary...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" real, "total" real ); Question: What is the lowest bronze total that has a rank of 1 and more than 34 total med...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" real, "total" real ); Question: What is the lowest bronze total that has a silver total of 13 medals? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_by_team" ( "appearances" real, "team" text, "wins" real, "losses" real, "winning_percentage" real, "season_s" text ); Question: With Appearances larger than 1, what is the Wins fo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_by_team" ( "appearances" real, "team" text, "wins" real, "losses" real, "winning_percentage" real, "season_s" text ); Question: For the Reno Aces, what are the Losses when they ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_by_team" ( "appearances" real, "team" text, "wins" real, "losses" real, "winning_percentage" real, "season_s" text ); Question: In 2009, what Appearances had a Winning Percentage ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the chassis for the year of 1969? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: Which Occupation has a Rank of 5th, a Gender of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: Which Gender has a Residence of Haliburton? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: What's the lowest in Votes with a Rank of 5th, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "4_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text ); Question: What Occupation has the Rank of 5th and has a C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What is the sum of the people in attendance when there was a Loss of clement...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What place was Corey Pavin in? <|assistant|> SELECT "place" FROM "second_round" WHERE "play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What was the two-round score for Bob Tway? <|assistant|> SELECT "score" FROM "second_round"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real ); Question: How many people went to the game that lasted 2:37 after game 2? <|assistant|> SELECT SUM("atten...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: What is the FCC info of the w214ba call sign with a fr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: What is the total number of the ERP W with a call sign...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: What is the FCC info of the station with a frequency a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_26_16_10" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What date has an outcome of runner-up, and a Score of 6–4, 6–2, an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: In Round 10, what was the Overall for Ed Tomlin? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What was the Position of Pick #23 in a Round less ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What Average Pick # has an Overall of 296? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: In Round 13, what was the Pick # of the Guard Posi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: With an Overall larger than 107, in what Round was...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the highest Pick # for the College of Mary...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is Brown Motors best point total using the Offenhauser L4...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "rally_leader" text ); Question: Name the length for stage of ss6 <|assistant|> SELECT "length" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "rally_leader" text ); Question: Name the stage for m. grönholm and winner of s.loeb with time of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "rally_leader" text ); Question: Name the winner for schimatari 1 <|assistant|> SELECT "winner" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "rally_leader" text ); Question: Name the stage for 08:46 <|assistant|> SELECT "stage" FROM "speci...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "rally_leader" text ); Question: Name the winner with rally leader of c. atkinson and name of agia...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "special_stages" ( "stage" text, "time_eest" text, "name" text, "length" text, "winner" text, "rally_leader" text ); Question: Name the winner for ss14 <|assistant|> SELECT "winner" FROM "spec...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who won the mixed doubles the sa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who won the mixed doubles in the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: Who lost when the mariners played on September 12? <|assistant|> SELECT "loss" FROM "game_log" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: On September 7 what was the record? <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: Who plays on the date september 29? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "date"=...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_iq_full_power_affiliates" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); Question: Which city of license has a wriq Ca...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_iq_full_power_affiliates" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); Question: What is the total of Frequency MHz ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_iq_full_power_affiliates" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); Question: Which ERP W has a Class of A, and a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_iq_full_power_affiliates" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); Question: Which class City of license of ferr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio_iq_full_power_affiliates" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); Question: Which call sign has a Class of A, a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: what heat number had a time of 58.44? <|assistant|> SELECT COUNT("heat") FROM "heats" WHERE "time"='...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: what lane was new zealand in? <|assistant|> SELECT "lane" FROM "heats" WHERE "nationality"='new zeal...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stage_results" ( "stage" text, "date" text, "course" text, "distance" text, "winner" text, "race_leader" text ); Question: What stage of the race was held on the course Reggio Calabria to Cat...