text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sandy_bridge_quad_core_32_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequenc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sandy_bridge_quad_core_32_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequenc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which round did the bout that...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: Which Time has a Lane smaller than 2, and a Nationality of spain? <|assistant|> SELECT "time" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: How many Heats have a Name of miguel molina? <|assistant|> SELECT COUNT("heat") FROM "heats" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_standings" ( "year" text, "league" text, "position" text, "leading_scorer" text, "fa_cup" text, "fa_trophy" text ); Question: what is the league when the fa cup is qr4 and the fa troph...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_standings" ( "year" text, "league" text, "position" text, "leading_scorer" text, "fa_cup" text, "fa_trophy" text ); Question: what is the fa trophy when the leading scorer is lee grego...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_standings" ( "year" text, "league" text, "position" text, "leading_scorer" text, "fa_cup" text, "fa_trophy" text ); Question: what is the year when the position is 1/22 promoted and th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: When the Altrincham was the home team what was the tie no? <|assistant|> SELECT "t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: Crawley Town as the home team has what as the tie no? <|assistant|> SELECT "tie_no...
<|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" text ); Question: What is the nationality of the swimmer with a rank over 2 with a time of 55.77? <|ass...
<|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" text ); Question: What is the earliest heat with a finisher from the Czech Republic and a rank over 41?...
<|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" text ); Question: What is the total number of heats with a finisher named Gregor Tait in lanes over 6? ...
<|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" text ); Question: What is the time of the swimmer in rank 40? <|assistant|> SELECT "time" FROM "heats" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1943" ( "title" text, "series" text, "director" text, "release_date" text, "reissue" text ); Question: From what series was Tokio Jokio, directed by Norm McCabe? <|assistant|> SELECT "series" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1943" ( "title" text, "series" text, "director" text, "release_date" text, "reissue" text ); Question: When was Inki and the Minah Bird released? <|assistant|> SELECT "release_date" FROM "1943"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1945" ( "title" text, "series" text, "director" text, "production_number" text, "release_date" text, "reissue" text ); Question: From what series is Peck Up Your Troubles? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_rankings" ( "year" real, "political_rights" real, "civil_liberties" real, "status" text, "president" text ); Question: When the president was Yoweri Museveni, and the year was 1993, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_rankings" ( "year" real, "political_rights" real, "civil_liberties" real, "status" text, "president" text ); Question: What is the year average when not free was the status, and less...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "historical_rankings" ( "year" real, "political_rights" real, "civil_liberties" real, "status" text, "president" text ); Question: What is the least political rights rank in 1976? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_summer_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); Question: What is average ratings for Japanese title of ホタルノヒカリ, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_summer_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); Question: Which episodes has the lowest average ratings of 8.7%? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_summer_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); Question: Which romaji title, has Japanese title of 菊次郎とさき 3? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_summer_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text ); Question: Which TV station, has romaji title of tantei gakuen q a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "sergey_filimonov_kaz" text, "173kg" text, "almaty_kazakhstan" text ); Question: What is the snatch for the person holding the Olympic record, and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "sergey_filimonov_kaz" text, "173kg" text, "almaty_kazakhstan" text ); Question: What is the Almaty, Kazakhstan when Sergey Filimonov ( KAZ ) is 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "sergey_filimonov_kaz" text, "173kg" text, "almaty_kazakhstan" text ); Question: What shows for Sergey Filimonov (KAZ) when the Snatch shows snatc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "sergey_filimonov_kaz" text, "173kg" text, "almaty_kazakhstan" text ); Question: What is the Almaty, Kazakhstan when the Sergey Filimonov (KAZ) is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the total weeks with more 56,134 attendees against the minnesota vikings? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television_series" ( "year" real, "chinese_title" text, "english" text, "role" text, "character" text ); Question: What year was the main role a character named Guan Yu (關羽)? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television_series" ( "year" real, "chinese_title" text, "english" text, "role" text, "character" text ); Question: What is the English character for Lin Ming Kuan (林明寬)? <|assistant|> SELECT "e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television_series" ( "year" real, "chinese_title" text, "english" text, "role" text, "character" text ); Question: What character has a Year larger than 2010 with a lead role, and Chinese Title...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "television_series" ( "year" real, "chinese_title" text, "english" text, "role" text, "character" text ); Question: What is the year that has a character named Wu Ji Wei (無極威)? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: Which Round has an Opponent of aleksandr pitchkounov? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: Which Result has a Round of 5, and an Event of mt one? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1948_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: Mortlake club has more than 924 against, less than 14 losses, and how many total draws? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1948_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What is the total number of wins for Cobden club when there are more than 2 draws? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1948_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: When against is 797 and wins is more than 10, what is the sum of draws? <|assistant|> SELECT CO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1948_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: Club warrnambool has less than 9 wins and what average of draws? <|assistant|> SELECT AVG("draw...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1948_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What is the average number of draws for Mortlake club when they have less than 0 wins? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subdivisions" ( "name" text, "geographic_code" text, "type" text, "households" real, "population_2004" real, "foreign_population" real, "moroccan_population" real ); Question: Which Foreign...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subdivisions" ( "name" text, "geographic_code" text, "type" text, "households" real, "population_2004" real, "foreign_population" real, "moroccan_population" real ); Question: Which Populat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cup" ( "round" text, "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "report" text ); Question: What date was the opponent VFL Sindelfingen? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cup" ( "round" text, "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "report" text ); Question: What date was the attendance 1,804? <|assistant|> SELECT "date"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "cup" ( "round" text, "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "report" text ); Question: Who was the opponent with an attendance of 628? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What bike has a grid greater than 17, laps less than 8, with milos cihak as the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the highest grid that has gregorio lavilla as the rider? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What rider has laps less than 20, a ducati 1098 rs 08 as the bike, with accident...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "name" text, "career" text, "matches" real, "overs" real, "maidens" real, "runs" real, "wickets" real, "average" real, "best" text ); Question: How many overs when there a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "name" text, "career" text, "matches" real, "overs" real, "maidens" real, "runs" real, "wickets" real, "average" real, "best" text ); Question: What are the fewest wickets...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "name" text, "career" text, "matches" real, "overs" real, "maidens" real, "runs" real, "wickets" real, "average" real, "best" text ); Question: What is the largest number ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "name" text, "career" text, "matches" real, "overs" real, "maidens" real, "runs" real, "wickets" real, "average" real, "best" text ); Question: Who has fewer than 2047.3 o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches_played" ( "season" text, "date" text, "venue" text, "competition" text, "score" text, "attendance" real, "report" text ); Question: How many people attended the Scottish Cup on 29.0...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches_played" ( "season" text, "date" text, "venue" text, "competition" text, "score" text, "attendance" real, "report" text ); Question: What was the score of the league cup in the 2007-...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "matches_played" ( "season" text, "date" text, "venue" text, "competition" text, "score" text, "attendance" real, "report" text ); Question: What is the attendance in the game in the 2010-11...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_softball_league_1951_to_19" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text ); Question: What tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_softball_league_1951_to_19" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text ); Question: What loc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_softball_league_1951_to_19" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text ); Question: What yea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_softball_league_1951_to_19" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text ); Question: What loc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_softball_league_1951_to_19" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text ); Question: What yea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_softball_league_1951_to_19" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text ); Question: What yea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: Which base has a company of Theatro Technis Karolos Koun? <|assistant|> SELECT "base" FROM "re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: Which company has an author of Aristophanes and play of Plutus? <|assistant|> SELECT "company"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: Which author has a company of the Semeio Theatre? <|assistant|> SELECT "author" FROM "referenc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: Which play was done by the Radu Stanca National Theatre company? <|assistant|> SELECT "play" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: Which play had a base of Aosta? <|assistant|> SELECT "play" FROM "references" WHERE "base"='ao...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: What is the country of the play based in Athens at the Attis Theatre company? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tank_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text ); Question: Which Class has a Quantity larger than 96? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tank_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text ); Question: How much Quantity has a Type of 1′c1′ h2t? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tank_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text ); Question: Which Class has a Type of 1′c n2t? <|assistant|> SELECT "class...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tank_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text ); Question: Which Year(s) of manufacture has a Quantity larger than 39, an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tank_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text ); Question: Which Year(s) of manufacture has a Quantity of 2, and a Type o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: what is the highest place when lost...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: what is the least lost when the pla...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: how many times is the team tauro an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: what is the least played when point...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real ); Question: what is the average points when goa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: Playing against the Seattle Seahawks in a week after week 1 before 69,149 people what was th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text ); Question: How many weeks in total has bye as the date? <|assistant|> SELECT COUNT("week") FROM "schedu...
<|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 country does Tiger Woods come from? <|assistant|> SELECT "country" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "ri_song_hui_prk" text, "102kg" text, "busan_south_korea" text ); Question: What's the Ri Song-Hui when the olympic record is the world record and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "ri_song_hui_prk" text, "102kg" text, "busan_south_korea" text ); Question: What's the 102kg when the Ri Song-Hui was 226kg? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "records" ( "world_record" text, "snatch" text, "ri_song_hui_prk" text, "102kg" text, "busan_south_korea" text ); Question: What's the 102kg when the snatch was snatch and the olympic record was...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text ); Question: What was the average pick made by the Texas Rangers? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text ); Question: What was the home town of Bob Geren, picked by the San Diego Padres? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text ); Question: What was the position of Jon Perlman? <|assistant|> SELECT "position" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eleventh_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What college has a pick smaller than 87 for the position of tackle? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eleventh_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What college had the pick of 85? <|assistant|> SELECT "college" FROM "eleventh_round" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1934_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What are the least losses of Mortlake having less than 970 against? <|assistant|> SELECT MIN("l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1934_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What's the total against when the draws are more than 0? <|assistant|> SELECT COUNT("against") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1934_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What's the total wins when the draws are less than 0? <|assistant|> SELECT COUNT("wins") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1934_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What's the least against number for Cobden with draws more than 0? <|assistant|> SELECT MIN("ag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1934_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What's the most against when the draws are more than 0? <|assistant|> SELECT MAX("against") FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1934_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); Question: What are the total wins when there are 1261 against? <|assistant|> SELECT SUM("wins") FROM "193...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); Question: What is the notes entry for the row with a Time of 1:42.309? <|assistant|> SELECT "notes" FROM "he...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); Question: What is the rank for China? <|assistant|> SELECT SUM("rank") FROM "heat_1" WHERE "country"='china'...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heat_1" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); Question: What is the time for Cuba, with a notes entry of QS? <|assistant|> SELECT "time" FROM "heat_1" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the Week number on October 10, 1976? <|assistant|> SELECT COUNT("week") FROM "schedu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the Date of the game with a Result of L 33–14? <|assistant|> SELECT "date" FROM "sch...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "augmented_seventh_chord_table" ( "chord" text, "root" text, "major_third" text, "augmented_fifth" text, "minor_seventh" text ); Question: The Major third of D has what for the Augmented fifth? ...