text
stringlengths
310
1.28k
<|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 of carmelita jeter with a Time smaller than 11.08? <|assistant|> SELECT MIN("r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real ); Question: When the points are 98 what is the draw? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "assumed_office" text, "left_office" text, "total_time_in_office" text ); Question: What is the TOTAL Time in Office with a rank smaller t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "assumed_office" text, "left_office" text, "total_time_in_office" text ); Question: What is the assumed Office date when the TOTAL Time in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "akakios_kakiasvilis_gre" text, "188kg" text, "athens_greece" text ); Question: What Akakios Kakiasvilis (GRE) is 187kg the 188kg? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "akakios_kakiasvilis_gre" text, "188kg" text, "athens_greece" text ); Question: What world record has the 188kg as 187kg? <|assistant|> SELECT "wo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "akakios_kakiasvilis_gre" text, "188kg" text, "athens_greece" text ); Question: For what 188kg is the world record clean & jerk? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_16_4_titles_12_runner_ups" ( "outcome" text, "year" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What year had a score of 6–7(5), 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_16_4_titles_12_runner_ups" ( "outcome" text, "year" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: What year had a score of 4–6, 7–6,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a_b_second_round" ( "time" text, "home_team" text, "score" text, "away_team" text, "venue" text ); Question: Who was the away team for the match with a home team of Citizen Team A? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a_b_second_round" ( "time" text, "home_team" text, "score" text, "away_team" text, "venue" text ); Question: What was the score for the match with a home team of Citizen Team A? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a_b_second_round" ( "time" text, "home_team" text, "score" text, "away_team" text, "venue" text ); Question: Who was the home team in the match that had an away team of Convoy Sun Hei Team B? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a_b_second_round" ( "time" text, "home_team" text, "score" text, "away_team" text, "venue" text ); Question: What time did the match with an away team of Happy Valley Team B start? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the 2nd leg when second team is Sumykhimprom? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the agg when the seconf leg is 58-75? <|assistant|> SELECT "agg" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the first team when the 2nd leg is 100-113? <|assistant|> SELECT "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What is team 1 when the 1st leg is 92-82? <|assistant|> SELECT "team_num1" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What is team number 1 when then 2nd leg is 64-97? <|assistant|> SELECT "tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_qualifying_round" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: What is the 1st leg when team number 1 is CSU SIBIU? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "duration" ( "term_abroad" text, "2000_01" real, "2001_02" real, "2002_03" real, "2003_04" real, "2004_05" real, "2005_06" real, "2006_07" real, "2007_08" real, "2008_09" real ); Quest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "duration" ( "term_abroad" text, "2000_01" real, "2001_02" real, "2002_03" real, "2003_04" real, "2004_05" real, "2005_06" real, "2006_07" real, "2007_08" real, "2008_09" real ); Quest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: Which Time/Retired has Laps smaller than 100, and Points larger than 0? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: Which Laps have a Time/Retired of + 4 laps, and a Grid larger than 18? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: Which Team has Laps of 100, and a Time/Retired of +8.6 secs? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_runs" ( "player" text, "matches" text, "runs" text, "balls" text, "strike_rate" text, "average" text, "100s" text ); Question: What runs has 11 matches, and 2 as the 100s? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_runs" ( "player" text, "matches" text, "runs" text, "balls" text, "strike_rate" text, "average" text, "100s" text ); Question: What matches is 2 the 100s? <|assistant|> SELECT "matches...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_runs" ( "player" text, "matches" text, "runs" text, "balls" text, "strike_rate" text, "average" text, "100s" text ); Question: What strike rate is 9 the matches? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_runs" ( "player" text, "matches" text, "runs" text, "balls" text, "strike_rate" text, "average" text, "100s" text ); Question: Which player has 79.62 as the strike rate? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_runs" ( "player" text, "matches" text, "runs" text, "balls" text, "strike_rate" text, "average" text, "100s" text ); Question: With 10 as matches, and 469 runs, what is the strike rate...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_runs" ( "player" text, "matches" text, "runs" text, "balls" text, "strike_rate" text, "average" text, "100s" text ); Question: When the strike rate is 70.10, what is the balls? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "date" text, "event" text, "heat_semifinal_final" text, "nation" text, "time" text ); Question: What nation has a time of 51.35 in the final heat? <|assistant|> SELECT "nation" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "date" text, "event" text, "heat_semifinal_final" text, "nation" text, "time" text ); Question: Which heat, semifinal or final has a time of 48.97? <|assistant|> SELECT "heat_semifin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "date" text, "event" text, "heat_semifinal_final" text, "nation" text, "time" text ); Question: What heat, semifinal or final has a time of 25.00? <|assistant|> SELECT "heat_semifina...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "date" text, "event" text, "heat_semifinal_final" text, "nation" text, "time" text ); Question: What date was the men's 100m breaststroke in heat 6? <|assistant|> SELECT "date" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_round" ( "group" text, "name" text, "nationality" text, "4_00" text, "result" text ); Question: Marion Buisson with a 4.00 of o had what result? <|assistant|> SELECT "result" FROM "q...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_round" ( "group" text, "name" text, "nationality" text, "4_00" text, "result" text ); Question: Anastasija Reiberger from Germany had what 4.00? <|assistant|> SELECT "4_00" FROM "qua...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_round" ( "group" text, "name" text, "nationality" text, "4_00" text, "result" text ); Question: Alana Boyd of group B with a 4.30 result has what nationality? <|assistant|> SELECT "n...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_round" ( "group" text, "name" text, "nationality" text, "4_00" text, "result" text ); Question: Roslinda Samsu has what nationality? <|assistant|> SELECT "nationality" FROM "qualifyi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_round" ( "group" text, "name" text, "nationality" text, "4_00" text, "result" text ); Question: What nation is Marion Buisson playing for? <|assistant|> SELECT "nationality" FROM "qu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: Who is the rower from Canada? <|assistant|> SELECT "rowers" FROM "heat_1" WHERE "country"='canada';<...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What is the sum of the rank of the rower with an r note from Australia? <|assistant|> SELECT SUM("ra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); Question: What is the country with a rank less than 2? <|assistant|> SELECT "country" FROM "heat_1" WHERE "ran...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_1" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What notes did Gabriella Bascelli receive? <|assistant|> SELECT "notes" FROM "quarterfinal_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarterfinal_1" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text ); Question: What rank did the time of 7:31.90 receive? <|assistant|> SELECT COUNT("rank") FROM "quarter...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_summer_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); Question: Which Romaji Title has a Japanese Title of 女王の教室? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_summer_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); Question: How many Episodes have a Romaji Title of slow dance? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_summer_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); Question: How many Episodes have a Romaji Title of dragon zakura?...
<|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" real ); Question: Which Format has a Label of columbia, and a Catalog smaller than 88697411432, and a Date ...
<|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" real ); Question: Which Catalog has a Date of july 15, 2011? <|assistant|> SELECT AVG("catalog") FROM "rele...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Which opponent was on July 21, 2008? <|assistant|> SELECT "opponent" FROM "singles_5" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: What was the date of the tournament with a clay surface and an opponent of Irina Falconi?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); Question: Who was the opponent on May 10, 2009? <|assistant|> SELECT "opponent" FROM "singles_5" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the score of the home team, bath city? <|assistant|> SELECT "score" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the score for the away team southport? <|assistant|> SELECT "score" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the home team that had an away team of lincoln city? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What date had a game with wycombe wanderers as the away team? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "quarter_final_1_10_january_2009" ( "draw" real, "artist" text, "song" text, "points" real, "place" real ); Question: How many places have an Artist of augustė, and a Draw smaller than 6? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_men" ( "year" real, "place" text, "gold" text, "silver" text, "bronze" text ); Question: What is the latest year the world championships were held in Thun? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championships_men" ( "year" real, "place" text, "gold" text, "silver" text, "bronze" text ); Question: Who won gold when the world championships were held in Phoenix? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the sm...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: Cass county ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: In what county...
<|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, "score" text, "record" text ); Question: Who was the opponent at the game with a score of 35-14? <|assistant|> SELECT "op...
<|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, "score" text, "record" text ); Question: What was the result of the game when the record was 5-1? <|assistant|> SELECT "r...
<|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, "score" text, "record" text ); Question: What was the result of the game against the Los Angeles Dons? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: Which Year has a Venue of bydgoszcz, poland, and an Event of junior team? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: Which Venue has a Year smaller than 2009, and an Event of 3000 m, and a Competition of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: Which Year has a Competition of commonwealth youth games? <|assistant|> SELECT AVG("yea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real ); Question: What is the total for 1986? <|assistant|> SELECT COUNT("rank") FROM "references" WHERE "year"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real ); Question: What is the name before 1954 with more than 15 floors? <|assistant|> SELECT "name" FROM "refe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real ); Question: What is the lowest rank for El Paso Natural Gas Company Building? <|assistant|> SELECT MIN("r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_data" ( "rank" text, "province" text, "population_2011" real, "percentage" real, "population_estimate_2013" real ); Question: What is the lowest 2013 population estimate of south afr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_data" ( "rank" text, "province" text, "population_2011" real, "percentage" real, "population_estimate_2013" real ); Question: What is the rank of the gauteng province? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_data" ( "rank" text, "province" text, "population_2011" real, "percentage" real, "population_estimate_2013" real ); Question: What is the lowest 2013 population estimate of the provi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_teams" ( "team" text, "winners" real, "runners_up" real, "years_won" text, "years_runner_up" text ); Question: What year(s) was Duisburg runner-up? <|assistant|> SELECT "years_runner_up" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "major_competition_record" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What was the earliest year with a note of 18.04 m wl? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "major_competition_record" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); Question: What venue had a competition of World Junior Championships before 2011? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "readers_choice" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); Question: Who was the developer of Call of Duty: Black Ops? <|assistant|> SELECT "developer_s"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "readers_choice" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); Question: What is the platform for the game of the third-person shooter genre? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "readers_choice" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); Question: What is the platform of the game from 2007? <|assistant|> SELECT "platform_s" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "readers_choice" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); Question: Who was the developer of Resident Evil 4? <|assistant|> SELECT "developer_s" FROM "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What was the rank of flori lang when his time was less than 22.27 <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What lane had a heat after 12, a rank of 38 and a time larger than 22.67? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What game has 27-12 record? <|assistant|> SELECT "game" FROM "game_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What date was the record 21-11? <|assistant|> SELECT "date" FROM "g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What is the location/attendance for the w 95-93 score? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What is the location/attendance with a 26-11 record? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: Which opponent has a 26-12 record? <|assistant|> SELECT "opponent" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_2" ( "rank" real, "rower" text, "country" text, "time" text, "notes" text ); Question: What is Lee Ka Man's Time? <|assistant|> SELECT "time" FROM "heat_2" WHERE "rower"='lee ka man';<|end...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_2" ( "rank" real, "rower" text, "country" text, "time" text, "notes" text ); Question: What is the Rank of the rower with a Time of 8:23.02? <|assistant|> SELECT COUNT("rank") FROM "heat_2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the most gold when the rank is 7 and bronze is less than 0? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the most gold when the total is 7? <|assistant|> SELECT MAX("gold") FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the least gold when the rank is 10 and silver is less than 0? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the lowest total when the nation is sweden (swe) and silver is less tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: what is the average total when silver is more than 2, bronze is 12 and gold is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "n" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "n" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the la...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "n" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); Question: What is the to...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "400_w_sub_bands" ( "band" real, "frequency_m_hz" text, "wavelength" text, "type" text, "power_w" real ); Question: What Band number has a Power (W) of 400 or less? <|assistant|> SELECT SUM("ban...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "400_w_sub_bands" ( "band" real, "frequency_m_hz" text, "wavelength" text, "type" text, "power_w" real ); Question: What Band's Power (W) is 400 or less? <|assistant|> SELECT MAX("band") FROM "4...