text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: What is Winner, when City / State is "Mallala , South Australia", and when Team is "Elfi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: What is Circuit, when Team is "R.J.MacArthur Onslow", and when City / State is "Sydney ,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: What is Winner, when Team is "R.J.MacArthur Onslow", and when Circuit is "Oran Park Race...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: What is Date, when City / State is "Mallala , South Australia", and when Team is "R.J.Ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: What is Winner, when Date is "20 August"? <|assistant|> SELECT "winner" FROM "race_calen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "2006_07_pts" text, "2007_08_pts" text, "2008_09_pts" real, "total_pts" real, "total_pld" real ); Question: What is the total number of points with less than 49 poi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "2006_07_pts" text, "2007_08_pts" text, "2008_09_pts" real, "total_pts" real, "total_pld" real ); Question: What is the total pld that has 36 points in 2007-08, and...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "relegation" ( "team" text, "2006_07_pts" text, "2007_08_pts" text, "2008_09_pts" real, "total_pts" real, "total_pld" real ); Question: What is the lowest total pld with 57 points in 2006-07, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "for_actors_in_woody_allen_films" ( "year" real, "film" text, "result" text, "category" text, "actor" text ); Question: What actor was nominated for best actress? <|assistant|> SELECT "actor" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "for_actors_in_woody_allen_films" ( "year" real, "film" text, "result" text, "category" text, "actor" text ); Question: What year was Jennifer Tilly's Film of Bullets Over Broadway up in the bes...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "for_actors_in_woody_allen_films" ( "year" real, "film" text, "result" text, "category" text, "actor" text ); Question: What is the result of Samantha Morton being up for best supporting actress...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "for_actors_in_woody_allen_films" ( "year" real, "film" text, "result" text, "category" text, "actor" text ); Question: What film was Dianne Wiest in? <|assistant|> SELECT "film" FROM "for_actor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tank_locomotives" ( "class" text, "number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text ); Question: Which class has fewer than 10 and number(s) names? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tank_locomotives" ( "class" text, "number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text ); Question: What is the type with a quantity of fewer than 6 and number(s) 5201? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1969_as_three_leagues_come_together" ( "glenelg_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: How many byes were then when there were less than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1969_as_three_leagues_come_together" ( "glenelg_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: How many wins were there when the byes were more t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1969_as_three_leagues_come_together" ( "glenelg_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: How many wins were there when draws were more than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1969_as_three_leagues_come_together" ( "glenelg_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); Question: How many wins did Glenelg FL of bahgallah have whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_15" ( "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score_in_final" text ); Question: What is Date, when Opponent in Final is "Guy Forget"? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_15" ( "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score_in_final" text ); Question: What is Opponent in Final, when Date is "13 January 1992"? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_15" ( "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score_in_final" text ); Question: What is Opponent in Final, when Surface is "Hard", and when Date is "13 J...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: What is the Height of the Player with a Date of Birth of 1979-06-12? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: What is the Height of the Player with a Date of Birth of 1982-07-05? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: What is the Height of the Player with a Date of Birth of 1982-07-05? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: What is the Weight of the Player with a Date of Birth of 1979-09-26? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: What is Elise Norwood's Pos.? <|assistant|> SELECT "pos" FROM "australia" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); Question: What is the Club of the Player with a Date of Birth of 1977-02-03? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); Question: What home has 1-5 as the away? <|assistant|> SELECT "home" FROM "ts...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); Question: What league has 2-3 as the away? <|assistant|> SELECT "league" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); Question: What away has 1-4 as the home? <|assistant|> SELECT "away" FROM "ts...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tsv_1860_munich_versus_sp_vgg_unterhachi" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); Question: What teams has 1-5 as the away? <|assistant|> SELECT "teams" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text ); Question: What Date had a Series of ATCC Round 6? <|assistant|> SELECT "date" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text ); Question: Who was the Winner in the AMC Round 4 at Lakeside International Raceway...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bcs_standings" ( "week_9_oct_29" text, "week_10_nov_5" text, "week_11_nov_12" text, "week_12_nov_19" text, "week_13_nov_26" text, "week_14_dec_3" text, "week_15_final_dec_9" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bcs_standings" ( "week_9_oct_29" text, "week_10_nov_5" text, "week_11_nov_12" text, "week_12_nov_19" text, "week_13_nov_26" text, "week_14_dec_3" text, "week_15_final_dec_9" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bcs_standings" ( "week_9_oct_29" text, "week_10_nov_5" text, "week_11_nov_12" text, "week_12_nov_19" text, "week_13_nov_26" text, "week_14_dec_3" text, "week_15_final_dec_9" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bcs_standings" ( "week_9_oct_29" text, "week_10_nov_5" text, "week_11_nov_12" text, "week_12_nov_19" text, "week_13_nov_26" text, "week_14_dec_3" text, "week_15_final_dec_9" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bcs_standings" ( "week_9_oct_29" text, "week_10_nov_5" text, "week_11_nov_12" text, "week_12_nov_19" text, "week_13_nov_26" text, "week_14_dec_3" text, "week_15_final_dec_9" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bcs_standings" ( "week_9_oct_29" text, "week_10_nov_5" text, "week_11_nov_12" text, "week_12_nov_19" text, "week_13_nov_26" text, "week_14_dec_3" text, "week_15_final_dec_9" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the fewest bronze medals when the total medals is less than 10, and the gold medals less...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: With 8 as the rank, and a total of more than 2 medals what is the average bronze medals? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the maximum total medals when the rank is 8? <|assistant|> SELECT MAX("total") FROM "med...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the largest number of gold medals when the bronze medals is less than 49, and there is 2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: When the number of gold medals is greater than 59, and the rank is total, what is the average br...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the smallest number of medals a country with more than 14 silver has? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the rank of a country with more than 2 gold, less than 5 silver, and less tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: WHat was the score for Phil Mickelson when he placed t3? <|assistant|> SELECT "score" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What place did the golfer take whose country is South Africa? <|assistant|> SELECT "place" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: What was the result of the game played at Jeppese...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); Question: What week was the game played on November 12, 196...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "track_listing" ( "song_title" text, "artist" text, "decade" text, "genre" text, "exportable" text ); Question: What decade is the artist the replacements? <|assistant|> SELECT "decade" FROM "tr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_york_counties_ranked_by_per_capita_i" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_york_counties_ranked_by_per_capita_i" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Which Constructor has Laps larger than 9, and a Grid smaller than 2? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text ); Question: What's filiberto rivera's height? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text ); Question: Who has a position of sg? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text ); Question: Who has a height of 2.16? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text ); Question: What's the tallest height for c position in cur...
<|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, "attendance" text ); Question: What was the attendance when the Southend United was the home team? <|assis...
<|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, "attendance" text ); Question: Who was the away team that played Northampton Town at home with a tie numbe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles_2" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Which Outcome has an Opponent in the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "evolution_of_symbols" ( "binary" real, "octal" real, "decimal" real, "hexadecimal" real, "glyph" real ); Question: What is the sum of the glyph with a binary less than 111001, an octal less tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "evolution_of_symbols" ( "binary" real, "octal" real, "decimal" real, "hexadecimal" real, "glyph" real ); Question: What is the average hexadecimal with a decimal less than 53, an octal less tha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "evolution_of_symbols" ( "binary" real, "octal" real, "decimal" real, "hexadecimal" real, "glyph" real ); Question: What is the lowest octal with a 30 hexadecimal and less than 0 glyphs? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "evolution_of_symbols" ( "binary" real, "octal" real, "decimal" real, "hexadecimal" real, "glyph" real ); Question: What is the average hexadecimal with a decimal greater than 57? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "evolution_of_symbols" ( "binary" real, "octal" real, "decimal" real, "hexadecimal" real, "glyph" real ); Question: What is the average decimal with a 110010 binary and a glyph greater than 2? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "evolution_of_symbols" ( "binary" real, "octal" real, "decimal" real, "hexadecimal" real, "glyph" real ); Question: What is the sum of the glyph with a 38 hexadecimal and a binary less than 1110...
<|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, "game_site" text, "record" text, "attendance" real ); Question: What was the record in the game where the opponent wasd...
<|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, "game_site" text, "record" text, "attendance" real ); Question: What was the highest attendance at a game that was play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_in_the_tour_de_france" ( "year" real, "stage" real, "category" real, "start" text, "finish" text, "leader_at_the_summit" text ); Question: What is the category for the year when B...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_in_the_tour_de_france" ( "year" real, "stage" real, "category" real, "start" text, "finish" text, "leader_at_the_summit" text ); Question: What is the stage number when the catego...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); Question: For the 1948-49 season, what was the At Home record? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); Question: In which season was the Away record 2-2 and At Home record 1-0? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); Question: In the 1958-59 season, what league did the team play in? <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); Question: What team played in the Bundesliga league with an Away record of 2-1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); Question: What team(s) played in the 1995-96 season? <|assistant|> SELECT "tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fc_bayern_munich_versus_tsv_1860_munich" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); Question: Playing in the Bundesliga league, what was the Away record for the t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_5_august_6_and_7_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" tex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_5_august_6_and_7_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" tex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_5_august_6_and_7_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" tex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_5_august_6_and_7_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" tex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_5_august_6_and_7_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" tex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "week_5_august_6_and_7_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" tex...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text ); Question: Who is moving to Triestina? <|assistant|> SELECT "name" FROM "out" WHERE "moving_to"='triestin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text ); Question: What is the transfer window of the player moving to Panionios? <|assistant|> SELECT "transfer_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text ); Question: What is the type for the Panionios moving to? <|assistant|> SELECT "type" FROM "out" WHERE "mo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text ); Question: Where is the nationality of Arg Esp moving to? <|assistant|> SELECT "moving_to" FROM "out" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text ); Question: Who is moving to Chelsea on loan? <|assistant|> SELECT "name" FROM "out" WHERE "type"='loan' A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "closed_and_aborted_television_providers" ( "provider" text, "years" text, "free_or_pay" text, "no_of_channels" text, "colour" text, "digital" text, "transmission" text ); Question: What is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "closed_and_aborted_television_providers" ( "provider" text, "years" text, "free_or_pay" text, "no_of_channels" text, "colour" text, "digital" text, "transmission" text ); Question: Which pr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "closed_and_aborted_television_providers" ( "provider" text, "years" text, "free_or_pay" text, "no_of_channels" text, "colour" text, "digital" text, "transmission" text ); Question: How many...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "closed_and_aborted_television_providers" ( "provider" text, "years" text, "free_or_pay" text, "no_of_channels" text, "colour" text, "digital" text, "transmission" text ); Question: What yea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bcs_standings" ( "week_9_oct_23" text, "week_10_oct_30" text, "week_11_nov_6" text, "week_12_nov_13" text, "week_13_nov_20" text, "week_14_nov_27" text, "week_15_final_dec_3" text ); Questi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bcs_standings" ( "week_9_oct_23" text, "week_10_oct_30" text, "week_11_nov_6" text, "week_12_nov_13" text, "week_13_nov_20" text, "week_14_nov_27" text, "week_15_final_dec_3" text ); Questi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bcs_standings" ( "week_9_oct_23" text, "week_10_oct_30" text, "week_11_nov_6" text, "week_12_nov_13" text, "week_13_nov_20" text, "week_14_nov_27" text, "week_15_final_dec_3" text ); Questi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "bcs_standings" ( "week_9_oct_23" text, "week_10_oct_30" text, "week_11_nov_6" text, "week_12_nov_13" text, "week_13_nov_20" text, "week_14_nov_27" text, "week_15_final_dec_3" text ); Questi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_3_2" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What Surface has a Date of 15 february ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_3_2" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What Date has a Score in the final of 3...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_3_2" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What Opponent in the final has a Date o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_5_3_2" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What Championship has a Date of 26 may ...