text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "birds" ( "name" text, "novelty" text, "status" text, "authors" text, "unit" text, "location" text, "notes" text ); Question: What are the notes where the authors are Zhou & Zhang? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "birds" ( "name" text, "novelty" text, "status" text, "authors" text, "unit" text, "location" text, "notes" text ); Question: What is the status where the notes are possible jr synonym of sa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the average Top-5 finishes with 2 as the Top-10 a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What are the least Top-5 finish when the events are great...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the total of wins when the evens is less than 3? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); Question: How many cuts made when the Top-10 is larger than 1, and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "name" text, "position" text, "number" real, "school_club_team" text, "season" text, "acquisition_via" text ); Question: What years did Omar Sneed play? <|assistant|> SELECT "season" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "name" text, "position" text, "number" real, "school_club_team" text, "season" text, "acquisition_via" text ); Question: Which season did Jovy Sese play? <|assistant|> SELECT "season" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "name" text, "position" text, "number" real, "school_club_team" text, "season" text, "acquisition_via" text ); Question: How did the School/Club Team of Manuel Luis Quezon acquire their ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "name" text, "position" text, "number" real, "school_club_team" text, "season" text, "acquisition_via" text ); Question: Which School/ Club Team acquired Jondan Salvador via trade? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apea_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the Points with...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apea_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the Points with...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apea_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Team has a Lost l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apea_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Points has a Posi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "apea_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Played has a Poin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many average plays have po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which average against has a lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which of the highest drawn has...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many played have 3 as the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_played_songs" ( "rank" real, "song_title" text, "composer_s" text, "performer_s" text, "year" real ); Question: Who sang the song composed by Mariah Carey and Walter Afanasieff? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_played_songs" ( "rank" real, "song_title" text, "composer_s" text, "performer_s" text, "year" real ); Question: How many years was Louis Armstrong performing? <|assistant|> SELECT COUNT("y...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Who were the Runner(s)-up with the winning score of −16 ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What tournament had a winning score of −27 (64-64-61=189...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What tournament had a runner(s)-up of Scott Hoch & Kenny...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What tournament had a Runner(s)-up of Tom Kite? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the date of the Outback Steakhouse Pro-Am Tourna...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_tour_wins_8" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Which tournament has a Runner(s)-up of Gary McCord? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_fixtures_and_results" ( "date" text, "tournament" text, "location" text, "home_team" text, "score" text, "away_team" text ); Question: What was the location of the game with a score of 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_fixtures_and_results" ( "date" text, "tournament" text, "location" text, "home_team" text, "score" text, "away_team" text ); Question: What was the location of the home game for Slovakia...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_fixtures_and_results" ( "date" text, "tournament" text, "location" text, "home_team" text, "score" text, "away_team" text ); Question: What was the tournament where Japan was the home te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_fixtures_and_results" ( "date" text, "tournament" text, "location" text, "home_team" text, "score" text, "away_team" text ); Question: What was the location of the home game for Japan? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournaments" ( "date" text, "location" text, "country" text, "event" text, "winner" text, "runner_up" text ); Question: Who was the Runner-up in Hossegor? <|assistant|> SELECT "runner_up" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournaments" ( "date" text, "location" text, "country" text, "event" text, "winner" text, "runner_up" text ); Question: On what Date was the Tournament in Gold Coast? <|assistant|> SELECT "da...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tournaments" ( "date" text, "location" text, "country" text, "event" text, "winner" text, "runner_up" text ); Question: Who was the Winner of the French Polynesia Billabong Pro Event? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "laf_s_campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What is the highest numb...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage_winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "jersey_num" real, "name" text, "height_cm" real, "weight_kg" real, "birthdate" text, "birthplace" text, "2000_2001_team" text,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_summary_in_indian_premier_le" ( "year" text, "matches" real, "wins" real, "losses" real, "no_result" real, "tied" real, "success_rate" text ); Question: What is the average numb...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performance_summary_in_indian_premier_le" ( "year" text, "matches" real, "wins" real, "losses" real, "no_result" real, "tied" real, "success_rate" text ); Question: What is the total number...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "season" text, "team" text, "country" text, "division" real, "apps" real, "goals" real ); Question: What is the total number of Division(s), when Team is Chongqing Lifan,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "season" text, "team" text, "country" text, "division" real, "apps" real, "goals" real ); Question: What is Season, when Country is China, when Team is Dalian Shide, when...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "season" text, "team" text, "country" text, "division" real, "apps" real, "goals" real ); Question: What is the highest Apps, when Goals are greater than 5? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "season" text, "team" text, "country" text, "division" real, "apps" real, "goals" real ); Question: What Season, when Country is China, when Team is Dalian Shide, and whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "season" text, "team" text, "country" text, "division" real, "apps" real, "goals" real ); Question: What is the total number of Division(s), when Country is China, when A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "season" text, "team" text, "country" text, "division" real, "apps" real, "goals" real ); Question: What is the lowest Division, when Goals are less than 10, when Team is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_area" ( "rank" real, "province" text, "population" real, "area" real, "density" real ); Question: What is the lowest area when the density is greater than 234.77, the population is less than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_area" ( "rank" real, "province" text, "population" real, "area" real, "density" real ); Question: What is the lowest rank when the population is greater than 59,544 and the area is 1,395.5? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_area" ( "rank" real, "province" text, "population" real, "area" real, "density" real ); Question: What is the lowest population total in La Romana when the area is less than 1,788.4, the den...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eight" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text ); Question: What is the Home with a Time that is 14:00? <|assistant|> SELECT "home" FROM "round...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eight" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text ); Question: What is the Score with an Away that is high park demons? <|assistant|> SELECT "scor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eight" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text ); Question: What is the Score with a Hoe that is etobicoke kangaroos? <|assistant|> SELECT "sco...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_eight" ( "date" text, "time" text, "home" text, "away" text, "score" text, "ground" text ); Question: What is the Date with a Score that is 46-77? <|assistant|> SELECT "date" FROM "roun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proportions" ( "benchmark" text, "crown_height" text, "pavilion_depth" text, "table_diameter" text, "girdle_thickness" text, "crown_angle" text, "pavilion_angle" text, "brilliance_grade" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proportions" ( "benchmark" text, "crown_height" text, "pavilion_depth" text, "table_diameter" text, "girdle_thickness" text, "crown_angle" text, "pavilion_angle" text, "brilliance_grade" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proportions" ( "benchmark" text, "crown_height" text, "pavilion_depth" text, "table_diameter" text, "girdle_thickness" text, "crown_angle" text, "pavilion_angle" text, "brilliance_grade" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proportions" ( "benchmark" text, "crown_height" text, "pavilion_depth" text, "table_diameter" text, "girdle_thickness" text, "crown_angle" text, "pavilion_angle" text, "brilliance_grade" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proportions" ( "benchmark" text, "crown_height" text, "pavilion_depth" text, "table_diameter" text, "girdle_thickness" text, "crown_angle" text, "pavilion_angle" text, "brilliance_grade" t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "north_group" ( "team" text, "match" real, "points" real, "draw" real, "lost" real ); Question: What is the number of lost with 2 points? <|assistant|> SELECT COUNT("lost") FROM "north_group" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the aggregate for the match with a team 2 of Kenya? <|assistant|> SELECT "agg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the aggregate for the match with Sierra Leone as team 1? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the 1st leg score for the match with Lesotho as team 1? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: What was the 2nd leg score for the match with Lesotho as team 1? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ladies" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of ladies ranked who had less than 3 silvers, less than 2 t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ladies" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total number of gold medals for the skater with less than 3 bronze medal...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "original_broadway_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: What was Matthew Warchus' Award? <|assistant|> SELECT "award" FROM "origin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "format" text, "owner" text, "notes" text ); Question: What is the Format of the French Frequency with a Call sign of CKRL-FM? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "format" text, "owner" text, "notes" text ); Question: What is the Format of the Frequency owned by Laval University? <|assistant|> SELECT "format" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "format" text, "owner" text, "notes" text ); Question: What is the Notes of the Frequency with Format of talk radio? <|assistant|> SELECT "notes" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "format" text, "owner" text, "notes" text ); Question: What is the Notes of the Frequency with a Format of soft adult contemporary? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "taiwan" ( "chart" text, "single_title" text, "debut_position" real, "peak_position" real, "chart_run" real ); Question: How many chart runs had a debut position of more than 7 when peak positio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1960s" ( "spoofed_title" text, "writer" text, "artist" text, "issue" real, "date" text ); Question: Which Spoofed title had Mort Drucker as the artist in issue 88? <|assistant|> SELECT "spoofed...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1960s" ( "spoofed_title" text, "writer" text, "artist" text, "issue" real, "date" text ); Question: Who was the artist for Spoofed title Genteel Ben in an issue later than 74? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1960s" ( "spoofed_title" text, "writer" text, "artist" text, "issue" real, "date" text ); Question: Which issue was the Spoofed title Route 67 for which Mort Drucker was the artist? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1960s" ( "spoofed_title" text, "writer" text, "artist" text, "issue" real, "date" text ); Question: What is the earliest issue Arnie Kogen wrote for in December 1964? <|assistant|> SELECT MIN("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: What are the highest points th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many losses have corinthia...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many points have a differe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_paulista" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: How many positions have 15 for...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "date" text, "round" real, "notes" text ); Question: What was the result of the match held when his record...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "date" text, "round" real, "notes" text ); Question: What do the notes say for 1989 May 7? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "date" text, "round" real, "notes" text ); Question: How did he beat Alberto Rodriguez? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "date" text, "round" real, "notes" text ); Question: What was his record in 1987? <|assistant|> SELECT "re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the lowest total that has barbados as the nation with a bronze greater than 0...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many silvers have a gold greater than 2, a bronze less than 35, china as the nati...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the largest total that has a gold less than 0? <|assistant|> SELECT MAX("tota...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "all_time_medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many golds have a silver greater than 1, vietnam as the nation, with a bronze les...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_by_nationality" ( "rank" text, "country" text, "wins" real, "winners" real, "first_title" real, "last_title" real ); Question: Which Wins has a Country of new zealand and a Last tit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_by_nationality" ( "rank" text, "country" text, "wins" real, "winners" real, "first_title" real, "last_title" real ); Question: What is the total of Last title that has Wins smaller ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_by_nationality" ( "rank" text, "country" text, "wins" real, "winners" real, "first_title" real, "last_title" real ); Question: Which First title has Wins smaller than 8 and in Canad...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions_by_nationality" ( "rank" text, "country" text, "wins" real, "winners" real, "first_title" real, "last_title" real ); Question: How many Winners have Wins of 1 and a Country of fiji ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadiums" ( "team" text, "stadium" text, "capacity" real, "opened" real, "city" text ); Question: What is the latest opened year of the team in Glasgow, Scotland? <|assistant|> SELECT MAX("open...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stadiums" ( "team" text, "stadium" text, "capacity" real, "opened" real, "city" text ); Question: What is the average opened year of Mini Estadi stadium in Barcelona, Spain? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_results" ( "season" text, "league" text, "games" real, "lost" real, "tied" real, "points" real, "winning_pct" real, "goals_for" real, "goals_against" real, "standing" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_by_season_results" ( "season" text, "league" text, "games" real, "lost" real, "tied" real, "points" real, "winning_pct" real, "goals_for" real, "goals_against" real, "standing" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the Score of the Competition with a Result of 5-0? <|assistant|...