text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text ); Question: What Incli...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text ); Question: What Compa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text ); Question: What Incli...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text ); Question: What Semim...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text ); Question: What Semim...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_race_wins_in_a_single_season" ( "country" text, "season" text, "victories" real, "downhill" text, "super_g" text, "giant_slalom" real, "slalom" text, "combined" text ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text ); Question: WHAT IS THE PACKAGE VERSION WITH TELUS MOBILITY? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text ); Question: WHAT IS THE PACKAGE VERSION FOR blackberry storm 9530, APPL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text ); Question: WHAT IS THE CARRIER WITH 5.0.0.742 VERSION? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text ); Question: WHAT IS THE CARRIER FOR 4.7.0.208 VERSION? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text ); Question: WHAT IS THE DEVICE WITH MTS MOBILITY? <|assistant|> SELECT ...
<|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" real, "money" real ); Question: How much money was there when the to par was 15? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models_except_north_america_and_japan" ( "chassis_code" text, "years" text, "model" text, "engine" text, "power" text, "torque" text ); Question: What are the years for the 250 model? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models_except_north_america_and_japan" ( "chassis_code" text, "years" text, "model" text, "engine" text, "power" text, "torque" text ); Question: What is the power of the Chassis code w123.13...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models_except_north_america_and_japan" ( "chassis_code" text, "years" text, "model" text, "engine" text, "power" text, "torque" text ); Question: What Engine does the w123.026 chassis have? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models_except_north_america_and_japan" ( "chassis_code" text, "years" text, "model" text, "engine" text, "power" text, "torque" text ); Question: What Chassis code has a 200d model and a Powe...
<|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: What is the height in ft and m of the regions bank b...
<|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: What is the street address of the van antwerp buildi...
<|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: What is the hight in ft and m of the building with l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2004" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the against when the opposing team is Italy? <|assistant|> SELECT COUNT("against") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "name" text, "confederation" text, "international_goals" real, "caps" real, "goals_per_match" real ); Question: What is Cha Bum-Kun's average number of goals per match? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "name" text, "confederation" text, "international_goals" real, "caps" real, "goals_per_match" real ); Question: How many caps does Jon Dahl Tomasson, who has less than 0.46 goals per m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "club_information" ( "club" text, "season_s_last_head_coach" text, "city" text, "stadium" text, "2004_2005_season" text ); Question: What is the club from Vila Do Conde? <|assistant|> SELECT "cl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "club_information" ( "club" text, "season_s_last_head_coach" text, "city" text, "stadium" text, "2004_2005_season" text ); Question: What is the stadium for the team that was 6th in the liga in ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "club_information" ( "club" text, "season_s_last_head_coach" text, "city" text, "stadium" text, "2004_2005_season" text ); Question: What is the stadium for the city of Braga? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: In what round was Kelsey Tessier drafted? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text ); Question:...
<|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 is Player, when Place is "1"? <|assistant|> SELECT "player" FROM "second_round" WHERE ...
<|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 is Score, when Country is "United States", when Place is "T3", and when Player is "Phi...
<|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 is To Par, when Country is "Australia"? <|assistant|> SELECT "to_par" FROM "second_rou...
<|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 is Score, when Player is "Vijay Singh"? <|assistant|> SELECT "score" FROM "second_roun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What type of surface did they play on 23 O...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What type of surface did they play on 21 J...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: what was the score of the Championship mat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What was the name of the opponent Tommy Ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What was the score of the match played on ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_record" ( "season" text, "competition" text, "round" text, "opponent" text, "home" text, "away" text, "aggregate" text ); Question: What season has roma as the opponent? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_raiding_cruise" ( "date" text, "ship_name" text, "tonnage" real, "ship_type" text, "location" text, "disposition_of_ship" text ); Question: What is the Ship Type of the Prize Dispositio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_raiding_cruise" ( "date" text, "ship_name" text, "tonnage" real, "ship_type" text, "location" text, "disposition_of_ship" text ); Question: What is the highest tonnage of the Brig Ship ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What's the to par for england when the score is less than 71? <|assistant|> SELECT "to_par" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation_table" ( "team" text, "1983" text, "1984" text, "1985_1986" real, "total_points" real, "seasons" real, "points_average" real ); Question: What is the lowest total for 1985-1986 w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text ); Question: Which Year born (Age) has a Current Club of spo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text ); Question: Which Current Club has a Player of bassem balaa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text ); Question: What was the round in 1968? <|assistant|> SELECT "round" FROM "men" WHERE "year"=1968;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text ); Question: What is the round for a year earlier than 1987? <|assistant|> SELECT "round" FROM "men" WHERE "year...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text ); Question: What is the round when Grand Slam was the Davis Cup? <|assistant|> SELECT "round" FROM "men" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text ); Question: What is the grand slam in 1987, when round shows first round, and Ivan Lendl won? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mexico_under_20_managers" ( "manager" text, "mexico_career" text, "played" real, "drawn" real, "lost" real, "win_pct" real ); Question: What is the highes win % that manager juan carlos cháve...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "north_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); Question: In which district is the incumbent a republican first elected in 1998? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "north_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); Question: What is the party affiliation of Virginia Foxx? <|assistant|> SELECT "party"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text ); Question: What is Event, when Winning Driver is "Laurent Aiello Lau...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text ); Question: What is Date, when Round is "2"? <|assistant|> SELECT "da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text ); Question: What is Event, when Round is "10"? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text ); Question: What is Date, when Round is less than 10, and when Circui...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Que...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Que...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Que...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Que...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Que...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Que...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_and_draw_dates" ( "phase" text, "round" text, "draw_date" text, "first_leg" text, "second_leg" text ); Question: What is the round for the qualifying phase with a draw date on 16 July 201...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Jack Nicklaus finished in what place? <|assistant|> SELECT "finish"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: What year (s) won was +2 the To par, and t22 the finish? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Lee Trevino of the United States with a total greater than 294 had ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: The golfer from Spain with a total less than 294 won in what year (...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); Question: Which Nationality has a Pick # smaller ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); Question: Which League from has a Player of louis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); Question: Which League from has a NHL team of san...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); Question: Name the Nationality of södertälje sk? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); Question: Which Team has a Pick # of 148? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); Question: Which team has a League from of ontario...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What is T4 Place Player Nick Price's Money? <|assistant|> SELECT "money" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What is the To par of the Place 1 Player? <|assistant|> SELECT "to_par" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What Player's Score is 69-68-66-70=273? <|assistant|> SELECT "player" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What Player's To par is −6? <|assistant|> SELECT "player" FROM "final_round"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real ); Question: What is the height of the the building ranked 13= with fewer than 28 floors? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1 <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); Question: Which To par has a Country of australia, and a Year(s) won of 1990? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text ); Question: Which city is in Cantabria? <|assistant|> SELECT "city" FROM "1979" WHERE "p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text ); Question: What is the name of the city with the Socialist Party of the Extremadurian P...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text ); Question: Which province has the partido Socialista del Pueblo Extremeño party? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text ); Question: When was the Partido radical party in Madrid registered? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text ); Question: Which province is Pamplona located in? <|assistant|> SELECT "province" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text ); Question: On what date was the Canarian Workers Socialist Union registered? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest rank of Hungary where there was a total of 8 medals, includi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the highest rank of Great Britain who has less than 16 bronze? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "americas" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" text, "injured" text ); Question: What was the injured entry for the row with a killed en...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "americas" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" text, "injured" text ); Question: What location has a killed of 100.9, and a year later t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "americas" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" text, "injured" text ); Question: What was the injured entry for Venezuela? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_ratings" ( "season" real, "timeslot_edt" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" real, "18_49_average" real ); Ques...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_ratings" ( "season" real, "timeslot_edt" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" real, "18_49_average" real ); Ques...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_ballroom_dancing_competition" ( "date" text, "round" real, "pair" text, "ages" text, "dance" text, "song" text ); Question: How old were Mitchell & Jessica when they danced the Cha-Cha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_ballroom_dancing_competition" ( "date" text, "round" real, "pair" text, "ages" text, "dance" text, "song" text ); Question: Who danced the Cha-Cha-Cha on November 18, 2008? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "junior_ballroom_dancing_competition" ( "date" text, "round" real, "pair" text, "ages" text, "dance" text, "song" text ); Question: Who danced the Samba on October 14, 2008? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wha" ( "year" real, "round" real, "pick" real, "player" text, "nationality" text ); Question: What was the pic for Canada for player Yvon Bouillon earlier than 1974? <|assistant|> SELECT AVG("p...