text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the date of the game that tied at 3? <|assistant|> SELECT "date" FROM "f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "games" ( "series" text, "platform" text, "japanese_release_date" text, "north_american_release_date" text, "european_release_date" text, "australia_release_date" text ); Question: What is Eur...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "games" ( "series" text, "platform" text, "japanese_release_date" text, "north_american_release_date" text, "european_release_date" text, "australia_release_date" text ); Question: What is Jap...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "games" ( "series" text, "platform" text, "japanese_release_date" text, "north_american_release_date" text, "european_release_date" text, "australia_release_date" text ); Question: What is Nor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Que...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); Que...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1997" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: Which venue was the opposing team New Zealand on 22/11/1997? <|assistant|> SELECT "venue" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1997" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What day was the opposing team Australia and the against 25? <|assistant|> SELECT "date" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1997" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What was the status for the opposing team South Africa? <|assistant|> SELECT "status" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "name" text, "residence" text, "party" text, "years_in_assembly" text, "years_in_senate" text ); Question: What is the political party of Jackie Goldberg? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "name" text, "residence" text, "party" text, "years_in_assembly" text, "years_in_senate" text ); Question: During what years was Christine Kehoe in Assembly? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "name" text, "residence" text, "party" text, "years_in_assembly" text, "years_in_senate" text ); Question: What were the San Francisco resident's years in assembly? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "name" text, "residence" text, "party" text, "years_in_assembly" text, "years_in_senate" text ); Question: What political party does the person from San Diego belong to? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1988" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: Which Opposing Teams is on 06/02/1988? <|assistant|> SELECT "opposing_teams" FROM "1988" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1988" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: When Status of five nations, and a Venue of twickenham , london, and a Opposing Teams of ire...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); Question: What's the attendance when the opponents are cambridge united? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); Question: What's the average attendance when the opponents are dundalk? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pre_season_and_friendlies" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); Question: What's the total attendance for H/A of A and opponents of wolverhampton...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Total has a Gold smaller than 4? <|assistant|> SELECT MIN("total") FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Rank has a Nation of china (chn), and a Bronze smaller than 4? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How much Total has a Bronze smaller than 13, and a Nation of netherlands (ned),...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text ); Question: Which website was founded before 1897, and is located in Adaminaby? <|assistant|> SELECT "websi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text ); Question: Which website is located in Albury and has a school of Albury High School? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text ); Question: What is the average year founded that is located in Broken Hill and has school years of k-6? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text ); Question: What suburb/town has school years of k-6, was founded before 1875, and has Ashfield Public Scho...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text ); Question: What is the year Airds High School was founded? <|assistant|> SELECT "founded" FROM "a" WHERE "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "a" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text ); Question: Which website has 1921 as the year founded? <|assistant|> SELECT "website" FROM "a" WHERE "foun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text ); Question: What Score points has a Rank points of defending champion? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text ); Question: What Rank points has an Event of wc beijing, and Score points of 11? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text ); Question: What Shooter has a Total of 28? <|assistant|> SELECT "shooter" FROM "qualificat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text ); Question: What Shooter has an Event of wc beijing, a Total of 16, and Rank points of 4? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1982" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the average against of Murrayfield, Edinburgh? <|assistant|> SELECT AVG("against") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1982" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the status of the Wales opposing team? <|assistant|> SELECT "status" FROM "1982" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1982" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What date has an against of 7? <|assistant|> SELECT "date" FROM "1982" WHERE "against"=7;<|e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_york" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); Question: What District was Incumbent Steve Israel First elected after 1998 in the Democrati...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_york" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); Question: What are the results of a first elected prior to year 1982? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "new_york" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); Question: Who is the Incumbent of the Democratic Party at an election after 1992 in the New ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What is Gene Sauers' to par? <|assistant|> SELECT "to_par" FROM "first_round" WHERE "player"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: Where is john daly of united states from? <|assistant|> SELECT "place" FROM "first_round" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "largest_cities_and_metropolitan_areas" ( "rank" real, "city" text, "state" text, "population" real, "metro_population_of_4_aspects" real ); Question: What is the average rank of the city of el ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "largest_cities_and_metropolitan_areas" ( "rank" real, "city" text, "state" text, "population" real, "metro_population_of_4_aspects" real ); Question: What is the state of the city of denver, wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: What is the result when the round is less than 3, the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: What is the smallest round to have a record of 4-0? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: What is the result of a round greater than 3? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "boxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); Question: Which event has Toa Naketoatama as an opponent? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "europe" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" real, "injured" text ); Question: How many kills have 15 as the injured, with a year prior ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is Date, when Opposing Teams is "South Africa", and when Venus is "Vodacom Park , Bloem...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the average Against, when Status is "2007 Rugby World Cup", and when Opposing Teams ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is Venue, when Status is "2007 Rugby World Cup", when Against is less than 22, and when...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the lowest Against, when Status is "First Test", and when Date is "26/05/2007"? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is Opposing Teams, when Against is "20", and when Venue is "Twickenham , London"? <|ass...
<|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, "location" text ); Question: What is the record when Danilo Pereira was the opponent? <|a...
<|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, "location" text ); Question: Which event had Edson Claas Vieira as an opponent? <|assista...
<|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, "location" text ); Question: Which method was used when Rafael Cavalcante was the opponen...
<|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, "location" text ); Question: Which method was used when Alessio Sakara was the opponent? ...
<|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, "location" text ); Question: Who is the opponent when the record is 3-8? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "25_largest_local_government_areas_by_pop" ( "rank" real, "local_government_area" text, "population_2006_census" real, "population_2007_estimate" real, "growth_rate" text, "stat_division_distri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); Question: What is the total fat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); Question: What is the total fat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); Question: What is the smoke poi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); Question: What shows for monoun...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); Question: What is the smoke poi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); Question: What is the saturated...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the Tie No with a Score of 2–2? <|assistant|> SELECT "tie_no" FROM "sixth...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the Date of the Crystal Palace Away game? <|assistant|> SELECT "date" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the Home team of Tie no 2? <|assistant|> SELECT "home_team" FROM "sixth_r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the Home team of tie no 2? <|assistant|> SELECT "home_team" FROM "sixth_r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the average Grid, when Laps is less than 24, when Bike is "Honda CBR1000...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the highest Laps, when Bike is "Yamaha YZF-R1", when Rider is "David Che...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the sum of Grid, when Time is "+16.687"? <|assistant|> SELECT SUM("grid"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the total number of Grid, when Laps is greater than 24? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "season" real, "year" real, "mole" text, "winner" text, "runner_up" text, "total_prize_money" text, "potential_prize_money" text, "destination" text ); Question: Who was the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "season" real, "year" real, "mole" text, "winner" text, "runner_up" text, "total_prize_money" text, "potential_prize_money" text, "destination" text ); Question: What was the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "season" real, "year" real, "mole" text, "winner" text, "runner_up" text, "total_prize_money" text, "potential_prize_money" text, "destination" text ); Question: What is the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "australia" ( "season" real, "year" real, "mole" text, "winner" text, "runner_up" text, "total_prize_money" text, "potential_prize_money" text, "destination" text ); Question: When the Mol...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "show" text, "date" text, "official_ratings_millions" real, "weekly_rank" text, "share" text ); Question: Which Share has a weekly Rank of 8 and is dated 15 June? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "show" text, "date" text, "official_ratings_millions" real, "weekly_rank" text, "share" text ); Question: Which Weekly Rank has an Official ratings (millions) of 11.58? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "show" text, "date" text, "official_ratings_millions" real, "weekly_rank" text, "share" text ); Question: Which Show is dated 9 June? <|assistant|> SELECT "show" FROM "ratings" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings" ( "show" text, "date" text, "official_ratings_millions" real, "weekly_rank" text, "share" text ); Question: Which Weekly Rank for a Live Final Show has an Official Ratings (millions) g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1948" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the status with the opposing team of Scotland? <|assistant|> SELECT "status" FROM "1...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1948" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: What is the lowest against score for Twickenham, London with the status of Five Nations agai...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1992" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: Which Venue has a Against smaller than 7? <|assistant|> SELECT "venue" FROM "1992" WHERE "ag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1992" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: When has a Status of five nations, and a Against of 7? <|assistant|> SELECT "date" FROM "199...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1992" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: Which Venue has a Against larger than 13? <|assistant|> SELECT "venue" FROM "1992" WHERE "ag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1992" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); Question: Name the Against which has a Venue of wembley stadium , london? <|assistant|> SELECT MAX("ag...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_ladder_1999" ( "club" text, "wins" real, "byes" real, "losses" real, "against" real ); Question: Which wins have less than 1 bye? <|assistant|> SELECT MAX("wins") FROM "first_ladder_1999"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_ladder_1999" ( "club" text, "wins" real, "byes" real, "losses" real, "against" real ); Question: Which Against has Losses larger than 10, and Wins smaller than 4, and a Club of dunolly? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_ladder_1999" ( "club" text, "wins" real, "byes" real, "losses" real, "against" real ); Question: Which Byes has an Against smaller than 1297, and a Club of avoca, and Wins larger than 12?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "recreational_aircraft" ( "manufacturer" text, "model" text, "kit_factory" text, "wing" text, "seats" real ); Question: What Kit/Factory has a J250 model made by Jabiru? <|assistant|> SELECT "ki...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_of_savoy" ( "name" text, "father" text, "birth" text, "marriage" text, "became_duchess" text, "ceased_to_be_duchess" text, "death" text, "spouse" text ); Question: When was the duch...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_of_savoy" ( "name" text, "father" text, "birth" text, "marriage" text, "became_duchess" text, "ceased_to_be_duchess" text, "death" text, "spouse" text ); Question: When was anne of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_of_savoy" ( "name" text, "father" text, "birth" text, "marriage" text, "became_duchess" text, "ceased_to_be_duchess" text, "death" text, "spouse" text ); Question: When did the duch...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_of_savoy" ( "name" text, "father" text, "birth" text, "marriage" text, "became_duchess" text, "ceased_to_be_duchess" text, "death" text, "spouse" text ); Question: When did the woma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the score of the game with a tie no of 3? <|assistant|> SELECT "score" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who did home team sunderland play on 23 january 1982? <|assistant|> SELECT "away...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the score of the game against away team queens park rangers on 23 januar...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the score of the game with a tie no of 6? <|assistant|> SELECT "score" F...