text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "major_intersections" ( "county" text, "location" text, "distance" real, "total" real, "notes" text ); Question: Which Notes have a Distance larger than 7, and a Location of aplin? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "major_intersections" ( "county" text, "location" text, "distance" real, "total" real, "notes" text ); Question: How much Distance has a County of faulkner, and a Total smaller than 1.5? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "major_intersections" ( "county" text, "location" text, "distance" real, "total" real, "notes" text ); Question: How much Distance has Notes of north end terminus of ar 155? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "y" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: How much Latit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "y" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: Which Land (sq...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "y" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: Which Water (s...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); Question: What school had Jeff Urban playing at the p position? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text ); Question: What school has the Kansas City Royals for a team? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "luchas_de_apuestas_record" ( "wager" text, "winner" text, "loser" text, "location" text, "date" text ); Question: What is the date of the match where vampiro was the winner in Mexico City? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "luchas_de_apuestas_record" ( "wager" text, "winner" text, "loser" text, "location" text, "date" text ); Question: What is the wager on August 23, 1992 where vampiro was the winner? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "luchas_de_apuestas_record" ( "wager" text, "winner" text, "loser" text, "location" text, "date" text ); Question: What is the location where shocker was the winner? <|assistant|> SELECT "locati...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "luchas_de_apuestas_record" ( "wager" text, "winner" text, "loser" text, "location" text, "date" text ); Question: What is the location where aaron grundy was the loser? <|assistant|> SELECT "lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "1999" text, "1998" text, "1997" text, "1996" text, "1995" text, "1994" text, "1993" text, "1992" text, "1991" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "1999" text, "1998" text, "1997" text, "1996" text, "1995" text, "1994" text, "1993" text, "1992" text, "1991" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "1999" text, "1998" text, "1997" text, "1996" text, "1995" text, "1994" text, "1993" text, "1992" text, "1991" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "1999" text, "1998" text, "1997" text, "1996" text, "1995" text, "1994" text, "1993" text, "1992" text, "1991" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "1999" text, "1998" text, "1997" text, "1996" text, "1995" text, "1994" text, "1993" text, "1992" text, "1991" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "1999" text, "1998" text, "1997" text, "1996" text, "1995" text, "1994" text, "1993" text, "1992" text, "1991" text );...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "adsl_standards" ( "version" text, "standard_name" text, "common_name" text, "downstream_rate" text, "upstream_rate" text ); Question: What's the standard name with an ADSL2 version and a 01.5 1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "adsl_standards" ( "version" text, "standard_name" text, "common_name" text, "downstream_rate" text, "upstream_rate" text ); Question: What's the downstream rate for the Itu g.992.2 having a ver...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "adsl_standards" ( "version" text, "standard_name" text, "common_name" text, "downstream_rate" text, "upstream_rate" text ); Question: What's the version of Itu g.992.3 Annex J? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "adsl_standards" ( "version" text, "standard_name" text, "common_name" text, "downstream_rate" text, "upstream_rate" text ); Question: What's the version that has a 20.0 mbit/s downstream rate? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "adsl_standards" ( "version" text, "standard_name" text, "common_name" text, "downstream_rate" text, "upstream_rate" text ); Question: What's the standard name that has a common name of ADSL Ove...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "adsl_standards" ( "version" text, "standard_name" text, "common_name" text, "downstream_rate" text, "upstream_rate" text ); Question: What's the upstream rate for Itu g.992.2 with a version of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "w_league_records" ( "name" text, "games" text, "w_league" text, "finals" text, "goals" real, "years" text ); Question: How many games does the player with 1 (0) finals and a w-league of 28 (1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "w_league_records" ( "name" text, "games" text, "w_league" text, "finals" text, "goals" real, "years" text ); Question: What year had more than 2 goals and 11 (2) games? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "w_league_records" ( "name" text, "games" text, "w_league" text, "finals" text, "goals" real, "years" text ); Question: What is the lowest number of goals with 8 (2) w-leagues? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goal_scorers" ( "name" text, "la_liga" real, "copa_del_rey" real, "uefa_champions_league" real, "fifa_club_world_championship" real, "total" real ); Question: Which UEFA Champions League has ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goal_scorers" ( "name" text, "la_liga" real, "copa_del_rey" real, "uefa_champions_league" real, "fifa_club_world_championship" real, "total" real ); Question: Which Copa del Rey has a Name of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goal_scorers" ( "name" text, "la_liga" real, "copa_del_rey" real, "uefa_champions_league" real, "fifa_club_world_championship" real, "total" real ); Question: Which Copa del Rey has a La Liga...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goal_scorers" ( "name" text, "la_liga" real, "copa_del_rey" real, "uefa_champions_league" real, "fifa_club_world_championship" real, "total" real ); Question: Which FIFA Club World Championsh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_2" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); Question: What is the average rank for Hungary? <|assistant|> SELECT AVG("rank") FROM "heat_2" WHERE "countr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_2" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); Question: What country has a time of 3:19.167? <|assistant|> SELECT "country" FROM "heat_2" WHERE "time"='3:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_2" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); Question: What are the notes for the time at 3:19.167? <|assistant|> SELECT "notes" FROM "heat_2" WHERE "tim...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_10_albums" ( "rank" real, "artist" text, "album" text, "peak_position" text, "sales" real, "certification" text ); Question: What was the album Closer: The Best of Sarah Mclachlan certifi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the average Laps that have gregorio lavilla as the rider, with a grid gr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What bike has 26 as the grid? <|assistant|> SELECT "bike" FROM "superbike_race_2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the highest grid that has +44.866 as the time, with laps greater than 25...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Qu...
<|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, "tv_time" text, "attendance" text ); Question: What was the attendance on november 2, 2003? <|assistant|> SELECT "attenda...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "name" text, "nationality" text, "1_85" text, "1_93" text, "height" real ); Question: What is the 1.93 that is 2.05 in height? <|assistant|> SELECT "1_93" FROM "final" WHERE "height"=2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "name" text, "nationality" text, "1_85" text, "1_93" text, "height" real ); Question: What is the 1.93 for Svetlana Shkolina? <|assistant|> SELECT "1_93" FROM "final" WHERE "name"='sve...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final" ( "name" text, "nationality" text, "1_85" text, "1_93" text, "height" real ); Question: What is the name for the play from the Ukraine, and a 1.93 xxo? <|assistant|> SELECT "name" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "since_1963" ( "season" text, "division" text, "rank" text, "avg_att" text, "europe" text, "top_goalscorer" text, "goals" real ); Question: What country in Europe is ranked 4, with top goal ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "since_1963" ( "season" text, "division" text, "rank" text, "avg_att" text, "europe" text, "top_goalscorer" text, "goals" real ); Question: Wha is the rank for 52 574 avg. att? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "since_1963" ( "season" text, "division" text, "rank" text, "avg_att" text, "europe" text, "top_goalscorer" text, "goals" real ); Question: What european country had more than 14 goals, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_name" ( "country" text, "seasons" text, "championship_titles" text, "race_entries_starts" text, "poles" real, "wins" real, "podiums" real, "fastest_laps" real, "points" text ); Quest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_name" ( "country" text, "seasons" text, "championship_titles" text, "race_entries_starts" text, "poles" real, "wins" real, "podiums" real, "fastest_laps" real, "points" text ); Quest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_name" ( "country" text, "seasons" text, "championship_titles" text, "race_entries_starts" text, "poles" real, "wins" real, "podiums" real, "fastest_laps" real, "points" text ); Quest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations_received_by_ang_l" ( "award" text, "category" text, "year" real, "title" text, "result" text ); Question: How many years have an Award of venice film festival, and a Titl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations_received_by_ang_l" ( "award" text, "category" text, "year" real, "title" text, "result" text ); Question: Which Category has a Year larger than 1996, and a Result of won,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations_received_by_ang_l" ( "award" text, "category" text, "year" real, "title" text, "result" text ); Question: Which Title has a Year smaller than 2001, and an Award of indepe...
<|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: Which chassis has 17 points? <|assistant|> SELECT "chassis" FROM "complete...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_table" ( "league" text, "number_of_seasons" real, "total_games" real, "draw" real, "loss" real ); Question: What is the average draw for 186 games? <|assistant|> SELECT AVG("draw") FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_table" ( "league" text, "number_of_seasons" real, "total_games" real, "draw" real, "loss" real ); Question: What is the number of games for less than 2 seasons and more than 7 draws? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_table" ( "league" text, "number_of_seasons" real, "total_games" real, "draw" real, "loss" real ); Question: What is the total number of losses for less than 48 games, and less than 7 d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_table" ( "league" text, "number_of_seasons" real, "total_games" real, "draw" real, "loss" real ); Question: What is the total number of games with more than 18 loses, a Total League, a...
<|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: What is Bobby Ryan's nationality? <|assistant|> SELECT "nati...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: What's the location of the team Peter Stuyvesant International Raci...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: Who was the winner of the Adelaide International Raceway circuit? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: What date has the Surfers Paradise International Raceway circuit? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: What is the race title of Dick Johnson Racing? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "name" text, "lwat" real, "100" real, "140" real, "180s" real ); Question: What's the least 180's of John Part having a LWAT less than 28 with 100+ less than 180? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "name" text, "lwat" real, "100" real, "140" real, "180s" real ); Question: What's the LWAT having more than 43 for 180s, 194 for 100+, and more than 128 for 140+? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "name" text, "lwat" real, "100" real, "140" real, "180s" real ); Question: What's the total 140+ when the 100+ is 173? <|assistant|> SELECT COUNT("140") FROM "table" WHERE "100"=173;<|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table" ( "name" text, "lwat" real, "100" real, "140" real, "180s" real ); Question: What's the 100+ when the 140+ is less than 128 and the LWAT of 29? <|assistant|> SELECT SUM("100") FROM "tabl...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_clubs" ( "name" text, "nickname" text, "location" text, "home_ground_s" text, "coach" text, "captain" text ); Question: What's the Home ground(s) listed for the Name Melville Cricket ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_clubs" ( "name" text, "nickname" text, "location" text, "home_ground_s" text, "coach" text, "captain" text ); Question: What Name has the Captain Aaron Heal? <|assistant|> SELECT "nam...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_clubs" ( "name" text, "nickname" text, "location" text, "home_ground_s" text, "coach" text, "captain" text ); Question: What's the Nickname listed for the Name of University Cricket C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_clubs" ( "name" text, "nickname" text, "location" text, "home_ground_s" text, "coach" text, "captain" text ); Question: What Nickname has a Location of Southern River? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_clubs" ( "name" text, "nickname" text, "location" text, "home_ground_s" text, "coach" text, "captain" text ); Question: What is the Name listed for the Nickname of Storm? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_clubs" ( "name" text, "nickname" text, "location" text, "home_ground_s" text, "coach" text, "captain" text ); Question: What Name has the Location of Bayswater? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_as" ( "year" real, "title" text, "from_album" text, "label" text, "label_nr" text ); Question: How many years have a Form album of the thing? <|assistant|> SELECT SUM("year") FROM "sing...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_as" ( "year" real, "title" text, "from_album" text, "label" text, "label_nr" text ); Question: Which Label-Nr has a Year smaller than 1968, and a Label of world pacific, and an album of...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_as" ( "year" real, "title" text, "from_album" text, "label" text, "label_nr" text ); Question: Which Year has a Label-Nr of 88146? <|assistant|> SELECT "year" FROM "singles_as" WHERE "l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_as" ( "year" real, "title" text, "from_album" text, "label" text, "label_nr" text ); Question: How many years were there albums by heat wave? <|assistant|> SELECT SUM("year") FROM "sing...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_as" ( "year" real, "title" text, "from_album" text, "label" text, "label_nr" text ); Question: Which Title has an album of tough talk, and a Label-Nr of x-371? <|assistant|> SELECT "tit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "approved_proposed" ( "rank" real, "name" text, "status" text, "city" text, "floors" real ); Question: What is the lowest number of floors for the number 2 ranked Joyus Housing? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "approved_proposed" ( "rank" real, "name" text, "status" text, "city" text, "floors" real ); Question: What is the number of floors when the r Rank larger than 41, and a City of parel? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "approved_proposed" ( "rank" real, "name" text, "status" text, "city" text, "floors" real ); Question: What is the rank for the city of sewri? <|assistant|> SELECT COUNT("rank") FROM "approved_p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "approved_proposed" ( "rank" real, "name" text, "status" text, "city" text, "floors" real ); Question: What rank has a status of proposed, with 80 floors for Celestia Spaces 4? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_forms" ( "english" text, "german" text, "dutch" text, "latin" text, "romanian" text, "portuguese" text, "spanish" text, "italian" text, "french" text, "greek_modern" text, "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_forms" ( "english" text, "german" text, "dutch" text, "latin" text, "romanian" text, "portuguese" text, "spanish" text, "italian" text, "french" text, "greek_modern" text, "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_forms" ( "english" text, "german" text, "dutch" text, "latin" text, "romanian" text, "portuguese" text, "spanish" text, "italian" text, "french" text, "greek_modern" text, "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table_of_forms" ( "english" text, "german" text, "dutch" text, "latin" text, "romanian" text, "portuguese" text, "spanish" text, "italian" text, "french" text, "greek_modern" text, "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the least amount of silver for Italy with a total less than 5? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total for Austria when there is less than 1 bronze? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total when silver is more than 3, and rank is 2? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the gold number when total is more than 1, and bronze is 0, and rank i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "road_to_redemption_presented_by_nike" ( "episode" text, "date" text, "time" text, "network" text, "length" text ); Question: What date was the episode that aired at 7:30 pm ET? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "road_to_redemption_presented_by_nike" ( "episode" text, "date" text, "time" text, "network" text, "length" text ); Question: What date did episode one air on? <|assistant|> SELECT "date" FROM "...
<|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: At what venue was the 2010 FIFA World Cup Qualification? <|assistant|> SELECT "ven...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "mu_shuangshuang_chn" text, "139kg" text, "doha_qatar" text ); Question: What's the snatch when the 139kg was 305kg and the Olympic Record was the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "major_tournaments" ( "year" real, "tournament" text, "venue" text, "discipline" text, "result" text, "extra" text ); Question: What is the discipline for the summer Olympics in 2008? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "major_tournaments" ( "year" real, "tournament" text, "venue" text, "discipline" text, "result" text, "extra" text ); Question: What venue has an extra of 45.08 S? <|assistant|> SELECT "venue"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "major_tournaments" ( "year" real, "tournament" text, "venue" text, "discipline" text, "result" text, "extra" text ); Question: What is the extra when the result is 4th at the NCAA Championshi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "major_tournaments" ( "year" real, "tournament" text, "venue" text, "discipline" text, "result" text, "extra" text ); Question: What tournament had an extra of 3:06.94 s? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: Name the lowest Time of jamaica with a Lane larger than 4 and a Rank smaller than 1? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: Name the lowest Rank with a Lane of 5 and a Time smaller than 11.06? <|assistant|> SELECT MIN("rank...