text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_15_3_titles_5_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Name the least year for evonne goolagong helen gourlay <|assistant|> SELECT MIN("year") FROM "women_s_doubles_15_3_titles_5_runner_ups" WHERE "opponents"='Evonne Goolagong Helen Gourlay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "women_s_doubles_15_3_titles_5_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Name the surface for australian open for winner <|assistant|> SELECT "surface" FROM "women_s_doubles_15_3_titles_5_runner_ups" WHERE "championship"='Australian Open' AND "outcome"='Winner';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "round" real, "circuit_location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "highest_scoring_team" text, "winning_privateer" text ); Question: What's the highest scoring team in the round in Ring Knutstorp in which Polestar Racing is the winning team? <|assistant|> SELECT "highest_scoring_team" FROM "races" WHERE "circuit_location"='Ring Knutstorp' AND "winning_team"='Polestar Racing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "races" ( "round" real, "circuit_location" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "highest_scoring_team" text, "winning_privateer" text ); Question: How many rounds were there in Karlskoga Motorstadion with Roger Eriksson at the pole position? <|assistant|> SELECT COUNT("round") FROM "races" WHERE "circuit_location"='Karlskoga Motorstadion' AND "pole_position"='Roger Eriksson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20086138_1" ( "season" text, "competition" text, "round" text, "opposition" text, "first_leg" text, "second_leg" text, "aggregate" text ); Question: What was the first leg result in the round against Norchi Dinamoeli? <|assistant|> SELECT "first_leg" FROM "table1_20086138_1" WHERE "opposition"='Norchi Dinamoeli';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_taupo_1_november" ( "pos" real, "driver" text, "vehicle" text, "top_13_time" text, "shoot_out_time" text, "best_time_of_day" text ); Question: which vehicles got best time of day 1:17.17 <|assistant|> SELECT "vehicle" FROM "2008_taupo_1_november" WHERE "best_time_of_day"='1:17.17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_taupo_1_november" ( "pos" real, "driver" text, "vehicle" text, "top_13_time" text, "shoot_out_time" text, "best_time_of_day" text ); Question: how many drivers driving toyota corolla <|assistant|> SELECT COUNT("driver") FROM "2008_taupo_1_november" WHERE "vehicle"='Toyota Corolla';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_taupo_1_november" ( "pos" real, "driver" text, "vehicle" text, "top_13_time" text, "shoot_out_time" text, "best_time_of_day" text ); Question: what is the lowest position of brendan sole <|assistant|> SELECT MAX("pos") FROM "2008_taupo_1_november" WHERE "driver"='Brendan Sole';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_taupo_1_november" ( "pos" real, "driver" text, "vehicle" text, "top_13_time" text, "shoot_out_time" text, "best_time_of_day" text ); Question: how many vehicles where top 13 time is 1:18.72 <|assistant|> SELECT COUNT("vehicle") FROM "2008_taupo_1_november" WHERE "top_13_time"='1:18.72';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_taupo_1_november" ( "pos" real, "driver" text, "vehicle" text, "top_13_time" text, "shoot_out_time" text, "best_time_of_day" text ); Question: which driver got best time of day 1:16.93 <|assistant|> SELECT "driver" FROM "2008_taupo_1_november" WHERE "best_time_of_day"='1:16.93';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "year" text, "team" text, "games" real, "mins" text, "f_gpct" text, "3_ppct" text, "f_tpct" text, "rebounds" text, "assists" text, "steals" text, "blocks" text, "points" text ); Question: What is the amount of assists when mins is 744:27? <|assistant|> SELECT "assists" FROM "career_statistics" WHERE "mins"='744:27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "year" text, "team" text, "games" real, "mins" text, "f_gpct" text, "3_ppct" text, "f_tpct" text, "rebounds" text, "assists" text, "steals" text, "blocks" text, "points" text ); Question: What is the game number with 385:33 mins? <|assistant|> SELECT MIN("games") FROM "career_statistics" WHERE "mins"='385:33';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "year" text, "team" text, "games" real, "mins" text, "f_gpct" text, "3_ppct" text, "f_tpct" text, "rebounds" text, "assists" text, "steals" text, "blocks" text, "points" text ); Question: What is the points number when rebounds is 4.4? <|assistant|> SELECT "points" FROM "career_statistics" WHERE "rebounds"='4.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_statistics" ( "year" text, "team" text, "games" real, "mins" text, "f_gpct" text, "3_ppct" text, "f_tpct" text, "rebounds" text, "assists" text, "steals" text, "blocks" text, "points" text ); Question: Who is the team with the ft% of 77.6? <|assistant|> SELECT "team" FROM "career_statistics" WHERE "f_tpct"='77.6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nac_champions_and_runners_up" ( "year" text, "winner" text, "first_runner_up" text, "third_place" text, "consolation_winner_4th" text, "finals_location" text ); Question: When did Austin Austin TX get the third place? <|assistant|> SELECT "year" FROM "nac_champions_and_runners_up" WHERE "third_place"='Austin Austin TX';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nac_champions_and_runners_up" ( "year" text, "winner" text, "first_runner_up" text, "third_place" text, "consolation_winner_4th" text, "finals_location" text ); Question: Who was the first runner up in the year when Mesa Mesa AZ was the consolation winner? <|assistant|> SELECT "first_runner_up" FROM "nac_champions_and_runners_up" WHERE "consolation_winner_4th"='Mesa Mesa AZ';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "house_of_representatives" ( "district" text, "representative" text, "party_change" text, "prior_background" text, "religion" text, "birth_year" real ); Question: Who has a religion of United Methodist and a prior background of a Congressional Aide? <|assistant|> SELECT "representative" FROM "house_of_representatives" WHERE "religion"='United Methodist' AND "prior_background"='Congressional aide';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_and_betting" ( "starting_price" text, "number" real, "name" text, "age" real, "weight_st_lb" text, "jockey" text, "trainer" text, "owner" text, "colours" text ); Question: What horse had a starting price of 14/1 and weighted 10-7? <|assistant|> SELECT "name" FROM "runners_and_betting" WHERE "starting_price"='14/1' AND "weight_st_lb"='10-7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_and_betting" ( "starting_price" text, "number" real, "name" text, "age" real, "weight_st_lb" text, "jockey" text, "trainer" text, "owner" text, "colours" text ); Question: What's the number of the horse weighting 10-5? <|assistant|> SELECT MIN("number") FROM "runners_and_betting" WHERE "weight_st_lb"='10-5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_and_betting" ( "starting_price" text, "number" real, "name" text, "age" real, "weight_st_lb" text, "jockey" text, "trainer" text, "owner" text, "colours" text ); Question: What horse has the number 25? <|assistant|> SELECT "name" FROM "runners_and_betting" WHERE "number"=25;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_and_betting" ( "starting_price" text, "number" real, "name" text, "age" real, "weight_st_lb" text, "jockey" text, "trainer" text, "owner" text, "colours" text ); Question: How much does Point Barrow weight? <|assistant|> SELECT "weight_st_lb" FROM "runners_and_betting" WHERE "name"='Point Barrow';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_and_betting" ( "starting_price" text, "number" real, "name" text, "age" real, "weight_st_lb" text, "jockey" text, "trainer" text, "owner" text, "colours" text ); Question: What are Andrew McNamara's colors? <|assistant|> SELECT "colours" FROM "runners_and_betting" WHERE "jockey"='Andrew McNamara';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "runners_and_betting" ( "starting_price" text, "number" real, "name" text, "age" real, "weight_st_lb" text, "jockey" text, "trainer" text, "owner" text, "colours" text ); Question: What's the number of the horse whose trainer is Kim Bailey? <|assistant|> SELECT MAX("number") FROM "runners_and_betting" WHERE "trainer"='Kim Bailey';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20098479_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real ); Question: Who wrote episode number 48 <|assistant|> SELECT "written_by" FROM "table1_20098479_1" WHERE "no_in_series"=48;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20098479_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real ); Question: What is the lowest production code <|assistant|> SELECT MIN("production_code") FROM "table1_20098479_1";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20124413_3" ( "num" text, "original_title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" text ); Question: What was the original title of 3.19? <|assistant|> SELECT "original_title" FROM "table1_20124413_3" WHERE "production_code"='3.19';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20124413_3" ( "num" text, "original_title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" text ); Question: What was the production code for "down to earth"? <|assistant|> SELECT "production_code" FROM "table1_20124413_3" WHERE "original_title"='\"Down to Earth\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20124413_2" ( "num" text, "original_title" text, "directed_by" text, "written_by" text, "original_airdate" text, "prod_code" text ); Question: How many numbers have the product code of 2.6? <|assistant|> SELECT "num" FROM "table1_20124413_2" WHERE "prod_code"='2.6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20124413_2" ( "num" text, "original_title" text, "directed_by" text, "written_by" text, "original_airdate" text, "prod_code" text ); Question: How many directed have the product code of 2.8? <|assistant|> SELECT COUNT("directed_by") FROM "table1_20124413_2" WHERE "prod_code"='2.8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20124413_1" ( "num" text, "original_title" text, "directed_by" text, "written_by" text, "original_airdate" text, "prod_code" text, "viewers" real ); Question: When "helpful tracy" is the original title how many numbers are there? <|assistant|> SELECT COUNT("num") FROM "table1_20124413_1" WHERE "original_title"='\"Helpful Tracy\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20124413_1" ( "num" text, "original_title" text, "directed_by" text, "written_by" text, "original_airdate" text, "prod_code" text, "viewers" real ); Question: When 1.12 is the production code what is the original title? <|assistant|> SELECT "original_title" FROM "table1_20124413_1" WHERE "prod_code"='1.12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20124413_1" ( "num" text, "original_title" text, "directed_by" text, "written_by" text, "original_airdate" text, "prod_code" text, "viewers" real ); Question: When "the postcard" is the original title what is the production code? <|assistant|> SELECT "prod_code" FROM "table1_20124413_1" WHERE "original_title"='\"The Postcard\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_20124413_1" ( "num" text, "original_title" text, "directed_by" text, "written_by" text, "original_airdate" text, "prod_code" text, "viewers" real ); Question: When 1.17 is the production code how many air dates are there? <|assistant|> SELECT COUNT("original_airdate") FROM "table1_20124413_1" WHERE "prod_code"='1.17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: state the winnings of yates racing front row motorsports where poles were 0 <|assistant|> SELECT "winnings" FROM "nascar_sprint_cup_series" WHERE "poles"=0 AND "team_s"='Yates Racing Front Row Motorsports';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: which team(s) won $2,605,05 <|assistant|> SELECT "team_s" FROM "nascar_sprint_cup_series" WHERE "winnings"='$2,605,05';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Question: state the wins of the team with 2 top 10 <|assistant|> SELECT COUNT("wins") FROM "nascar_sprint_cup_series" WHERE "top_10"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nak_atra" ( "num" real, "sanskrit" text, "malayalam_name" text, "tamil_name" text, "telugu_name" text, "kannada_name" text, "western_star_name" text ); Question: what is kannada name ಕನ್ನಡ of tamil name தமிழ் anusham அனுஷம் <|assistant|> SELECT "kannada_name" FROM "nak_atra" WHERE "tamil_name"='Anusham அனுஷம்';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nak_atra" ( "num" real, "sanskrit" text, "malayalam_name" text, "tamil_name" text, "telugu_name" text, "kannada_name" text, "western_star_name" text ); Question: what is the malayalam name മലയാളം of tamil name தமிழ் punarpoosam புனர்பூசம் <|assistant|> SELECT "malayalam_name" FROM "nak_atra" WHERE "tamil_name"='Punarpoosam புனர்பூசம்';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nak_atra" ( "num" real, "sanskrit" text, "malayalam_name" text, "tamil_name" text, "telugu_name" text, "kannada_name" text, "western_star_name" text ); Question: what is the telugu name తెలుగు of kannada name ಕನ್ನಡ utthara ಉತ್ತರ <|assistant|> SELECT "telugu_name" FROM "nak_atra" WHERE "kannada_name"='Utthara ಉತ್ತರ';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nak_atra" ( "num" real, "sanskrit" text, "malayalam_name" text, "tamil_name" text, "telugu_name" text, "kannada_name" text, "western_star_name" text ); Question: what is the sanskrit of western star name arcturus <|assistant|> SELECT "sanskrit" FROM "nak_atra" WHERE "western_star_name"='Arcturus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nak_atra" ( "num" real, "sanskrit" text, "malayalam_name" text, "tamil_name" text, "telugu_name" text, "kannada_name" text, "western_star_name" text ); Question: what is the malayalam name മലയാളം of sanskrit uttarāṣāḍha उत्तराषाढा <|assistant|> SELECT "malayalam_name" FROM "nak_atra" WHERE "sanskrit"='Uttarāṣāḍha उत्तराषाढा';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "foochow" text, "area" real, "population" real, "density" real ); Question: Name the traditional for area 544 <|assistant|> SELECT "traditional" FROM "administration" WHERE "area"=544;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "foochow" text, "area" real, "population" real, "density" real ); Question: Name the foochow for pingnan county <|assistant|> SELECT "foochow" FROM "administration" WHERE "english_name"='Pingnan County';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "foochow" text, "area" real, "population" real, "density" real ); Question: Name the pinyin for ciá-ìng-gâing <|assistant|> SELECT "pinyin" FROM "administration" WHERE "foochow"='Ciá-ìng-gâing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "foochow" text, "area" real, "population" real, "density" real ); Question: Name the traditional for 屏南县 <|assistant|> SELECT "traditional" FROM "administration" WHERE "simplified"='屏南县';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "foochow" text, "area" real, "population" real, "density" real ); Question: Name the density for 古田縣 <|assistant|> SELECT "density" FROM "administration" WHERE "traditional"='古田縣';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "foochow" text, "area" real, "population" real, "density" real ); Question: Name the english name for 福鼎市 <|assistant|> SELECT "english_name" FROM "administration" WHERE "traditional"='福鼎市';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What CFL team did Darcy Brown play for? <|assistant|> SELECT "cfl_team" FROM "round_one" WHERE "player"='Darcy Brown';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What CFL team did simeon rottier play for? <|assistant|> SELECT "cfl_team" FROM "round_one" WHERE "player"='Simeon Rottier';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What college did étienne légaré play for? <|assistant|> SELECT "college" FROM "round_one" WHERE "player"='Étienne Légaré';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What team was in position OL? <|assistant|> SELECT "cfl_team" FROM "round_one" WHERE "position"='OL';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: Who was the player for the CFL team hamilton tiger-cats (via bc via saskatchewan )? <|assistant|> SELECT "player" FROM "round_one" WHERE "cfl_team"='Hamilton Tiger-Cats (via BC via Saskatchewan )';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What number pick did the CFL team bc lions (via hamilton via winnipeg ) have? <|assistant|> SELECT MAX("pick_num") FROM "round_one" WHERE "cfl_team"='BC Lions (via Hamilton via Winnipeg )';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "novelisations" ( "story_num" real, "target_num" text, "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: How many different release dates are there for the audio book with a story number 7? <|assistant|> SELECT COUNT("release_date") FROM "novelisations" WHERE "story_num"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "novelisations" ( "story_num" real, "target_num" text, "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: What's the title of the audio book with story number 91? <|assistant|> SELECT "title" FROM "novelisations" WHERE "story_num"=91;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "novelisations" ( "story_num" real, "target_num" text, "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: When was the audio book with target number 069 69 released? <|assistant|> SELECT "release_date" FROM "novelisations" WHERE "target_num"='069 69';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "novelisations" ( "story_num" real, "target_num" text, "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: What's the format of the audio book titled The Mind Robber? <|assistant|> SELECT "format" FROM "novelisations" WHERE "title"='The Mind Robber';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_sarah_jane_adventures" ( "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: who is the reader of the audiobook authored by cole, stephen stephen cole and released on 2008-11-13 13 november 2008 <|assistant|> SELECT "reader" FROM "the_sarah_jane_adventures" WHERE "author"='Cole, Stephen Stephen Cole' AND "release_date"='2008-11-13 13 November 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_sarah_jane_adventures" ( "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: how many companies released an audiobook titled deadly download <|assistant|> SELECT COUNT("company") FROM "the_sarah_jane_adventures" WHERE "title"='Deadly Download';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_sarah_jane_adventures" ( "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: which companies released on 2010-11-04 4 november 2010 <|assistant|> SELECT "company" FROM "the_sarah_jane_adventures" WHERE "release_date"='2010-11-04 4 November 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_sarah_jane_adventures" ( "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: which company released audiobooks authored by day, martin martin day <|assistant|> SELECT "company" FROM "the_sarah_jane_adventures" WHERE "author"='Day, Martin Martin Day';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "the_sarah_jane_adventures" ( "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: how many formats of books authored by day, martin martin day <|assistant|> SELECT COUNT("format") FROM "the_sarah_jane_adventures" WHERE "author"='Day, Martin Martin Day';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: How many players were drafted from laval? <|assistant|> SELECT COUNT("cfl_team") FROM "round_five" WHERE "college"='Laval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What player went to montreal college? <|assistant|> SELECT "player" FROM "round_five" WHERE "college"='Montreal';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What player(s) drafted by the hamilton tiger-cats? <|assistant|> SELECT "player" FROM "round_five" WHERE "cfl_team"='Hamilton Tiger-Cats';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); Question: What position(s) drafted by the montreal alouettes? <|assistant|> SELECT "position" FROM "round_five" WHERE "cfl_team"='Montreal Alouettes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torchwood" ( "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: which company uses pinborough, sarah sarah pinborough? <|assistant|> SELECT "company" FROM "torchwood" WHERE "author"='Pinborough, Sarah Sarah Pinborough';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torchwood" ( "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: who the reader of title department x? <|assistant|> SELECT "reader" FROM "torchwood" WHERE "title"='Department X';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torchwood" ( "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: how many notes were read by reader varma, idria indira varma? <|assistant|> SELECT COUNT("notes") FROM "torchwood" WHERE "reader"='Varma, Idria Indira Varma';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torchwood" ( "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: who is the reader on the download/cd format of the title written by author lidster, joseph joseph lidster? <|assistant|> SELECT "reader" FROM "torchwood" WHERE "format"='Download/CD' AND "author"='Lidster, Joseph Joseph Lidster';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "three_divisions_from_1963_to_2012" ( "season" text, "bayernliga" text, "landesliga_s_d" text, "landesliga_mitte" text, "landesliga_nord" text ); Question: Name the landesliga mitte for fc gundelfingen and vfl frohnlach <|assistant|> SELECT "landesliga_mitte" FROM "three_divisions_from_1963_to_2012" WHERE "landesliga_s_d"='FC Gundelfingen' AND "landesliga_nord"='VfL Frohnlach';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "three_divisions_from_1963_to_2012" ( "season" text, "bayernliga" text, "landesliga_s_d" text, "landesliga_mitte" text, "landesliga_nord" text ); Question: Name the landesliga nord for freier tus regensburg <|assistant|> SELECT "landesliga_nord" FROM "three_divisions_from_1963_to_2012" WHERE "landesliga_mitte"='Freier TuS Regensburg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "three_divisions_from_1963_to_2012" ( "season" text, "bayernliga" text, "landesliga_s_d" text, "landesliga_mitte" text, "landesliga_nord" text ); Question: Name the landesliga nord for asv neumarkt <|assistant|> SELECT "landesliga_nord" FROM "three_divisions_from_1963_to_2012" WHERE "landesliga_mitte"='ASV Neumarkt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "three_divisions_from_1963_to_2012" ( "season" text, "bayernliga" text, "landesliga_s_d" text, "landesliga_mitte" text, "landesliga_nord" text ); Question: Name the landesliga mitte sv türk gücü münchen <|assistant|> SELECT "landesliga_mitte" FROM "three_divisions_from_1963_to_2012" WHERE "bayernliga"='SV Türk Gücü München';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "three_divisions_from_1963_to_2012" ( "season" text, "bayernliga" text, "landesliga_s_d" text, "landesliga_mitte" text, "landesliga_nord" text ); Question: Name the landesliga sud for sg quelle fürth <|assistant|> SELECT "landesliga_s_d" FROM "three_divisions_from_1963_to_2012" WHERE "bayernliga"='SG Quelle Fürth';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "regions" real, "studio_audience" real, "press_jury" real, "oil_rig" real, "total_points" real, "place" text ); Question: What's the oil rig of the song that ended on 7th place? <|assistant|> SELECT "oil_rig" FROM "national_final" WHERE "place"='7th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "regions" real, "studio_audience" real, "press_jury" real, "oil_rig" real, "total_points" real, "place" text ); Question: What's the oil rig of the song with a draw number 9? <|assistant|> SELECT MIN("oil_rig") FROM "national_final" WHERE "draw"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "regions" real, "studio_audience" real, "press_jury" real, "oil_rig" real, "total_points" real, "place" text ); Question: How many points did the song "Stille før stormen" get? <|assistant|> SELECT MIN("total_points") FROM "national_final" WHERE "song"='\"Stille før stormen\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "regions" real, "studio_audience" real, "press_jury" real, "oil_rig" real, "total_points" real, "place" text ); Question: How many press jury points did the song by Frank Aleksandersen get? <|assistant|> SELECT MIN("press_jury") FROM "national_final" WHERE "artist"='Frank Aleksandersen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "regions" real, "studio_audience" real, "press_jury" real, "oil_rig" real, "total_points" real, "place" text ); Question: How many points did the song with a draw number 3 get? <|assistant|> SELECT "total_points" FROM "national_final" WHERE "draw"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eleventh_doctor_novels" ( "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: If the title is Paradox Lost and the reader is Briggs, Nicholas Nicholas Briggs, what are all of the notes? <|assistant|> SELECT "notes" FROM "eleventh_doctor_novels" WHERE "reader"='Briggs, Nicholas Nicholas Briggs' AND "title"='Paradox Lost';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eleventh_doctor_novels" ( "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: If the title is The Way Through The Woods, what is the release date? <|assistant|> SELECT "release_date" FROM "eleventh_doctor_novels" WHERE "title"='The Way Through the Woods';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eleventh_doctor_novels" ( "title" text, "author" text, "reader" text, "format" text, "company" text, "release_date" text, "notes" text ); Question: If the reader is Syal, Meera Meera Syal, what was the release date? <|assistant|> SELECT "release_date" FROM "eleventh_doctor_novels" WHERE "reader"='Syal, Meera Meera Syal';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current" ( "institution" text, "team_name" text, "location_population" text, "team_started" real, "affiliation" text, "enrollment" real, "mascot" text, "divisional_titles" real, "big_12_titles" real, "national_titles" real ); Question: What is the most divisional titles won by a school with an enrollment of 30049? <|assistant|> SELECT MAX("divisional_titles") FROM "current" WHERE "enrollment"=30049;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current" ( "institution" text, "team_name" text, "location_population" text, "team_started" real, "affiliation" text, "enrollment" real, "mascot" text, "divisional_titles" real, "big_12_titles" real, "national_titles" real ); Question: What is the maximum enrollment of the Sooners? <|assistant|> SELECT MAX("enrollment") FROM "current" WHERE "team_name"='Sooners';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current" ( "institution" text, "team_name" text, "location_population" text, "team_started" real, "affiliation" text, "enrollment" real, "mascot" text, "divisional_titles" real, "big_12_titles" real, "national_titles" real ); Question: What is the minimum enrollment of the cyclones? <|assistant|> SELECT MIN("enrollment") FROM "current" WHERE "team_name"='Cyclones';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_list" ( "year" real, "author_s_or_editor_s" text, "book_title" text, "publisher" text, "category" text, "result" text ); Question: What is the result of the book title firelands? <|assistant|> SELECT "result" FROM "award_list" WHERE "book_title"='Firelands';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_list" ( "year" real, "author_s_or_editor_s" text, "book_title" text, "publisher" text, "category" text, "result" text ); Question: Which year is the book title the ordinary? <|assistant|> SELECT "year" FROM "award_list" WHERE "book_title"='The Ordinary';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_list" ( "year" real, "author_s_or_editor_s" text, "book_title" text, "publisher" text, "category" text, "result" text ); Question: Who is the publisher of the book titled daughters of an emerald dusk? <|assistant|> SELECT "publisher" FROM "award_list" WHERE "book_title"='Daughters of an Emerald Dusk';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_list" ( "year" real, "author_s_or_editor_s" text, "book_title" text, "publisher" text, "category" text, "result" text ); Question: In which year were the authors or editors Delia Sherman? <|assistant|> SELECT MAX("year") FROM "award_list" WHERE "author_s_or_editor_s"='Delia Sherman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_list" ( "year" real, "author_s_or_editor_s" text, "book_title" text, "publisher" text, "category" text, "result" text ); Question: How many authors or editors are there for the book title elf child? <|assistant|> SELECT COUNT("author_s_or_editor_s") FROM "award_list" WHERE "book_title"='Elf Child';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "award_list" ( "year" real, "author_s_or_editor_s" text, "book_title" text, "publisher" text, "category" text, "result" text ); Question: What is the title of the book when the publisher is black car publishing? <|assistant|> SELECT "book_title" FROM "award_list" WHERE "publisher"='Black Car Publishing';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "equinox_lottery" ( "divisions" text, "prize_eur" text, "odds_of_winning_1in" text, "number_of_winning_tickets" real, "in_order_to_win" text ); Question: What are the prizes when 1 is the number of winning tickets? <|assistant|> SELECT "prize_eur" FROM "equinox_lottery" WHERE "number_of_winning_tickets"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "equinox_lottery" ( "divisions" text, "prize_eur" text, "odds_of_winning_1in" text, "number_of_winning_tickets" real, "in_order_to_win" text ); Question: What are the number of winning tickets that have 180.00 as the prize (eur)? <|assistant|> SELECT "number_of_winning_tickets" FROM "equinox_lottery" WHERE "prize_eur"='180.00';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "equinox_lottery" ( "divisions" text, "prize_eur" text, "odds_of_winning_1in" text, "number_of_winning_tickets" real, "in_order_to_win" text ); Question: How many odd of winning have 6th as the division? <|assistant|> SELECT "odds_of_winning_1in" FROM "equinox_lottery" WHERE "divisions"='6th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "equinox_lottery" ( "divisions" text, "prize_eur" text, "odds_of_winning_1in" text, "number_of_winning_tickets" real, "in_order_to_win" text ); Question: What is the prize (eur) for the 6th division? <|assistant|> SELECT "prize_eur" FROM "equinox_lottery" WHERE "divisions"='6th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "equinox_lottery" ( "divisions" text, "prize_eur" text, "odds_of_winning_1in" text, "number_of_winning_tickets" real, "in_order_to_win" text ); Question: Which divisions have 565 as the number of winning tickets? <|assistant|> SELECT "divisions" FROM "equinox_lottery" WHERE "number_of_winning_tickets"=565;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "electorate" text, "labour" text, "national" text, "new_zealand_first" text, "green" text, "united_future" text, "maori_party" text, "act" text, "progressive" text, "other" text ); Question: Name the green for otaki <|assistant|> SELECT "green" FROM "references" WHERE "electorate"='Otaki';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "electorate" text, "labour" text, "national" text, "new_zealand_first" text, "green" text, "united_future" text, "maori_party" text, "act" text, "progressive" text, "other" text ); Question: Name the national for rimutaka <|assistant|> SELECT "national" FROM "references" WHERE "electorate"='Rimutaka';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "electorate" text, "labour" text, "national" text, "new_zealand_first" text, "green" text, "united_future" text, "maori_party" text, "act" text, "progressive" text, "other" text ); Question: Name the electoraate for united future being 4.47% <|assistant|> SELECT "electorate" FROM "references" WHERE "united_future"='4.47%';<|endoftext|>