text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" text, "conference_joined" text ); Question: Can you tell me the Conference Joined that has the Location of terre haute, and the Mascot of golden bears? <|assistant|> SELECT "conference_joined" FROM "former_members" WHERE "location"='terre haute' AND "mascot"='golden bears';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" text, "conference_joined" text ); Question: Can you tell me the Mascot that has the School of rosedale? <|assistant|> SELECT "mascot" FROM "former_members" WHERE "school"='rosedale';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" text, "conference_joined" text ); Question: Can you tell me the Conference Joined that has the Mascot of little sycamores? <|assistant|> SELECT "conference_joined" FROM "former_members" WHERE "mascot"='little sycamores';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" text, "conference_joined" text ); Question: Can you tell me the Location that has the Mascot of lakers? <|assistant|> SELECT "location" FROM "former_members" WHERE "mascot"='lakers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_3_junior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What is the time of the rider from the 348cc K4 Honda team with a speed of 97.743mph? <|assistant|> SELECT "time" FROM "race_3_junior_classic_race" WHERE "team"='348cc k4 honda' AND "speed"='97.743mph';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the Lane of the swimmer with a Time of 8:34.25? <|assistant|> SELECT "lane" FROM "heats" WHERE "time"='8:34.25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the Name of the swimmer with a Time of 9:04.86 in Heat 2? <|assistant|> SELECT "name" FROM "heats" WHERE "heat"=2 AND "time"='9:04.86';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: What is the Location of the Event in Round 1 with a Time of 1:25? <|assistant|> SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "time"='1:25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_players" ( "position" text, "appearances" real, "goals" real, "first_appearance" real, "last_appearance" real ); Question: What is the average goals when the last appearance was before 1984, there were more than 17 appearances, the first appearance was before 1961 and the position was mf? <|assistant|> SELECT AVG("goals") FROM "list_of_players" WHERE "last_appearance"<1984 AND "appearances">17 AND "first_appearance"<1961 AND "position"='mf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" real, "conference_joined" text ); Question: what is the school that left in 1966? <|assistant|> SELECT "school" FROM "former_members" WHERE "year_left"=1966;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" real, "conference_joined" text ); Question: what is the mascot for moores hill that joined later than 1952? <|assistant|> SELECT "mascot" FROM "former_members" WHERE "year_joined">1952 AND "school"='moores hill';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" real, "conference_joined" text ); Question: what is the conference joined for the county 69 ripley in 1952 in versailles? <|assistant|> SELECT "conference_joined" FROM "former_members" WHERE "county"='69 ripley' AND "year_joined"=1952 AND "location"='versailles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "location" text, "mascot" text, "county" text, "year_joined" real, "year_left" real, "conference_joined" text ); Question: who is the mascot of the county 78 switzerland? <|assistant|> SELECT "mascot" FROM "former_members" WHERE "county"='78 switzerland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "react" real, "time" real ); Question: What is the total time of the athlete from Canada with a lane less than 8 and a rank less than 8? <|assistant|> SELECT COUNT("time") FROM "semifinal_1" WHERE "lane"<8 AND "nationality"='canada' AND "rank"<8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "react" real, "time" real ); Question: What is the total react number with a time less than 20.05 and a lane less than 6? <|assistant|> SELECT COUNT("react") FROM "semifinal_1" WHERE "time"<20.05 AND "lane"<6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "react" real, "time" real ); Question: What is the average react of bryan barnett, who has a lane less than 2? <|assistant|> SELECT AVG("react") FROM "semifinal_1" WHERE "name"='bryan barnett' AND "lane"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text ); Question: What year did the Hornets leave the conference? <|assistant|> SELECT "year_left" FROM "former_members" WHERE "team_name"='hornets';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text ); Question: In what city was the team that left the conference in 1949 based? <|assistant|> SELECT "city" FROM "former_members" WHERE "year_left"='1949';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text ); Question: What year did the team based in the city of Winamac join the conference? <|assistant|> SELECT "year_joined" FROM "former_members" WHERE "city"='winamac';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text ); Question: From what county was the team that left the conference in 1993? <|assistant|> SELECT "county" FROM "former_members" WHERE "year_left"='1993';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text ); Question: From what school was the team that left the conference in 1992? <|assistant|> SELECT "school" FROM "former_members" WHERE "year_left"='1992';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "former_members" ( "school" text, "city" text, "team_name" text, "county" text, "year_joined" text, "year_left" text ); Question: In what year did the team from the Western school join the conference? <|assistant|> SELECT "year_joined" FROM "former_members" WHERE "school"='western';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real ); Question: What is the place when less than 1 point is scored? <|assistant|> SELECT AVG("place") FROM "results" WHERE "points"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real ); Question: What is the highest draw number when 23 points are scored? <|assistant|> SELECT MAX("draw") FROM "results" WHERE "points"=23;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the lowest heat that had a time of 1:02.85 in a lane larger than 7? <|assistant|> SELECT MIN("heat") FROM "heats" WHERE "time"='1:02.85' AND "lane">7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the sum of the lanes before heat 7 that elizabeth simmonds swam? <|assistant|> SELECT SUM("lane") FROM "heats" WHERE "heat"<7 AND "name"='elizabeth simmonds';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1928_to_1933" ( "year" real, "baden" text, "w_rttemberg" text, "nordbayern" text, "s_dbayern" text ); Question: What's the Südbayern in 1928? <|assistant|> SELECT "s_dbayern" FROM "1928_to_1933" WHERE "year"=1928;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1928_to_1933" ( "year" real, "baden" text, "w_rttemberg" text, "nordbayern" text, "s_dbayern" text ); Question: What's the Württemberg for Karlsruher FV happening after 1931? <|assistant|> SELECT "w_rttemberg" FROM "1928_to_1933" WHERE "baden"='karlsruher fv' AND "year">1931;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1928_to_1933" ( "year" real, "baden" text, "w_rttemberg" text, "nordbayern" text, "s_dbayern" text ); Question: What's the year that has a Baden Freiburger FC? <|assistant|> SELECT COUNT("year") FROM "1928_to_1933" WHERE "baden"='freiburger fc';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1928_to_1933" ( "year" real, "baden" text, "w_rttemberg" text, "nordbayern" text, "s_dbayern" text ); Question: What's the Württemberg in the year before 1929? <|assistant|> SELECT "w_rttemberg" FROM "1928_to_1933" WHERE "year"<1929;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1928_to_1933" ( "year" real, "baden" text, "w_rttemberg" text, "nordbayern" text, "s_dbayern" text ); Question: What's the Nordbayern with a Württemberg of Union Böckingen in the year before 1932? <|assistant|> SELECT "nordbayern" FROM "1928_to_1933" WHERE "year"<1932 AND "w_rttemberg"='union böckingen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the high rebounds for the game that had a score of w 76-66? <|assistant|> SELECT "high_rebounds" FROM "regular_season" WHERE "score"='w 76-66';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the location/attendance for the game with a record of 16-6? <|assistant|> SELECT "location_attendance" FROM "regular_season" WHERE "record"='16-6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the nationality with a lane larger than 1, and a rank larger than 5, for Hsu Chi-Chieh? <|assistant|> SELECT "nationality" FROM "semifinal_1" WHERE "lane">1 AND "rank">5 AND "name"='hsu chi-chieh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the lane with a time of 1:56.64, and a tank smaller than 7? <|assistant|> SELECT COUNT("lane") FROM "semifinal_1" WHERE "time"='1:56.64' AND "rank"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the rank of Japan? <|assistant|> SELECT "rank" FROM "semifinal_1" WHERE "nationality"='japan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the time for Russia? <|assistant|> SELECT "time" FROM "semifinal_1" WHERE "nationality"='russia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What nation has more than 0 silver medals and is ranked 1? <|assistant|> SELECT "nation" FROM "medals_table" WHERE "silver">0 AND "rank"='1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the rank of the country with total more than 3 and more than 6 silver? <|assistant|> SELECT "rank" FROM "medals_table" WHERE "total">3 AND "silver">6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the most silver won by the country with more than 1 gold, 3 bronze, ranked 1, and less than 12 as the total? <|assistant|> SELECT MAX("silver") FROM "medals_table" WHERE "gold">1 AND "bronze"=3 AND "rank"='1' AND "total"<12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What nation has a total less than 11, more than 1 silver and less than 1 bronze? <|assistant|> SELECT "nation" FROM "medals_table" WHERE "total"<11 AND "silver"<1 AND "bronze"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the most silver won by Norway? <|assistant|> SELECT MAX("silver") FROM "medals_table" WHERE "nation"='norway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); Question: What district has a constituency of 60? <|assistant|> SELECT "district" FROM "assembly_segments" WHERE "constituency_number"='60';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); Question: What is district has a name of Rajnagar? <|assistant|> SELECT "district" FROM "assembly_segments" WHERE "name"='rajnagar';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the score for the away team of Brentford? <|assistant|> SELECT "score" FROM "second_round_proper" WHERE "away_team"='brentford';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the score of the tied game or the away team of Crewe Alexandra? <|assistant|> SELECT "tie_no" FROM "second_round_proper" WHERE "away_team"='crewe alexandra';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the date of the game for the Wrexham away team? <|assistant|> SELECT "date" FROM "second_round_proper" WHERE "away_team"='wrexham';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What was the date of the game for the HartlePool United team? <|assistant|> SELECT "date" FROM "second_round_proper" WHERE "home_team"='hartlepool united';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "box_office_score_data" ( "date" text, "show" text, "venue" text, "city" text, "tickets_sold_available" text, "gross_revenue" text ); Question: What is the number of tickets sold and available for the concert at Long Beach Arena? <|assistant|> SELECT "tickets_sold_available" FROM "box_office_score_data" WHERE "venue"='long beach arena';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "box_office_score_data" ( "date" text, "show" text, "venue" text, "city" text, "tickets_sold_available" text, "gross_revenue" text ); Question: Which city has a venue of the Arco Arena? <|assistant|> SELECT "city" FROM "box_office_score_data" WHERE "venue"='arco arena';<|endoftext|>
<|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, "round" real, "time" text, "location" text ); Question: What is the lowest round that has kazushi sakuraba as the opponent? <|assistant|> SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "opponent"='kazushi sakuraba';<|endoftext|>
<|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: Japan (JPN) with a total of less than 5, has what average gold medals? <|assistant|> SELECT AVG("gold") FROM "medal_table" WHERE "nation"='japan (jpn)' AND "total"<5;<|endoftext|>
<|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: What is the average bronze medal when gold is greater than 0, and there is less than 0 silver medals? <|assistant|> SELECT AVG("bronze") FROM "medal_table" WHERE "gold">0 AND "silver"<0;<|endoftext|>
<|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: What is the sum of bronze medals when the rank is greater than 2, and less than 2 total medals with silver medals being more than 0? <|assistant|> SELECT COUNT("bronze") FROM "medal_table" WHERE "rank">2 AND "total"<2 AND "silver">0;<|endoftext|>
<|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: With a greater than 4 rank, and the silver medal greater than 0, and the bronze medal less than 1, what is the average total? <|assistant|> SELECT AVG("total") FROM "medal_table" WHERE "rank">4 AND "silver">0 AND "bronze"<1;<|endoftext|>
<|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: What is the fewest gold medals when the bronze medals is greater than 5? <|assistant|> SELECT MIN("gold") FROM "medal_table" WHERE "bronze">5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What is the player when the team is oakland raiders? <|assistant|> SELECT "player" FROM "fourth_round" WHERE "team"='oakland raiders';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What is the team when the college is virginia tech? <|assistant|> SELECT "team" FROM "fourth_round" WHERE "college"='virginia tech';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What college has a team of new york jets? <|assistant|> SELECT "college" FROM "fourth_round" WHERE "team"='new york jets';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What team has a pick larger than 30, when the college is saginaw valley state? <|assistant|> SELECT "team" FROM "fourth_round" WHERE "pick">30 AND "college"='saginaw valley state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); Question: What is the highest pick when the college is saginaw valley state? <|assistant|> SELECT MAX("pick") FROM "fourth_round" WHERE "college"='saginaw valley state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: what is the record when the opponent is akiko inoue? <|assistant|> SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='akiko inoue';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: what is the even when the location is tokyo, japan and the record is 6-1? <|assistant|> SELECT "event" FROM "mixed_martial_arts_record" WHERE "location"='tokyo, japan' AND "record"='6-1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "rank" real, "name" text, "altitude_meters" real, "range" text, "parent_range" text ); Question: Which range includes Mount Fukushima, and is ranked 38? <|assistant|> SELECT "range" FROM "see_also" WHERE "name"='mount fukushima' AND "rank"=38;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "rank" real, "name" text, "altitude_meters" real, "range" text, "parent_range" text ); Question: What is the altitude (meters) is associated with the Name Mount Launoit, with the range as Belgica Mountains? <|assistant|> SELECT SUM("altitude_meters") FROM "see_also" WHERE "range"='belgica mountains' AND "name"='mount launoit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "rank" real, "name" text, "altitude_meters" real, "range" text, "parent_range" text ); Question: What is the Altitude (meters) associated with a rank smaller than 10, and the range Mühlig-Hofmann Mountains? <|assistant|> SELECT COUNT("altitude_meters") FROM "see_also" WHERE "range"='mühlig-hofmann mountains' AND "rank"<10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "rank" real, "name" text, "altitude_meters" real, "range" text, "parent_range" text ); Question: What name is associated with a rank greater than 69, an altitude (meters) smaller than 2154, and a range of Sivorgfjella? <|assistant|> SELECT "name" FROM "see_also" WHERE "range"='sivorgfjella' AND "rank">69 AND "altitude_meters"<2154;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "rank" real, "name" text, "altitude_meters" real, "range" text, "parent_range" text ); Question: What name is associated with a rank of less than 24, and an altitude (meters) of 3085? <|assistant|> SELECT "name" FROM "see_also" WHERE "rank"<24 AND "altitude_meters"=3085;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_football_class" text, "primary_conference" text, "county" text ); Question: What is the primary conference with a IHSAA Football Class of A, at South Decatur school? <|assistant|> SELECT "primary_conference" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_football_class"='a' AND "school"='south decatur';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_football_class" text, "primary_conference" text, "county" text ); Question: What is the Location with a county of 30 Hancock? <|assistant|> SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "county"='30 hancock';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_football_class" text, "primary_conference" text, "county" text ); Question: What county has an IHSAA Football Class of A, and a Mascot of royals? <|assistant|> SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "ihsaa_football_class"='a' AND "mascot"='royals';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_football_class" text, "primary_conference" text, "county" text ); Question: What school has a county of 69 ripley? <|assistant|> SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "county"='69 ripley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "ihsaa_football_class" text, "num_county" text ); Question: What is the enrollment for the school with the mascot of the Fighting '59ers? <|assistant|> SELECT "enrollment" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='fighting ''59ers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What nation has a total less than 2, silver of 1 and bronze less than 1? <|assistant|> SELECT "nation" FROM "medals_table" WHERE "total"<2 AND "bronze"<1 AND "silver"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What's the total with silver being less than 0, less than 1 gold, and 3 bronze? <|assistant|> SELECT SUM("total") FROM "medals_table" WHERE "bronze"=3 AND "gold"<1 AND "silver"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What's Australia's time in the heat more than 4? <|assistant|> SELECT "time" FROM "heats" WHERE "heat">4 AND "nationality"='australia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What's Sara Isakovič's lane number that had a heat of 3? <|assistant|> SELECT SUM("lane") FROM "heats" WHERE "heat"=3 AND "name"='sara isakovič';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What's the heat that was timed 2:08.54? <|assistant|> SELECT COUNT("heat") FROM "heats" WHERE "time"='2:08.54';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1936" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text ); Question: Who is the Director of Fish Tales? <|assistant|> SELECT "director" FROM "1936" WHERE "title"='fish tales';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1936" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text ); Question: What was released on 1936-08-29? <|assistant|> SELECT "title" FROM "1936" WHERE "release_date"='1936-08-29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1936" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text ); Question: What is the release date of Milk and Money? <|assistant|> SELECT "release_date" FROM "1936" WHERE "title"='milk and money';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1936" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text ); Question: What is the release date of I Wanna Play House? <|assistant|> SELECT "release_date" FROM "1936" WHERE "title"='i wanna play house';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1936" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text ); Question: Who is the director of Little Beau Porky? <|assistant|> SELECT "director" FROM "1936" WHERE "title"='little beau porky';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1936" ( "title" text, "series" text, "director" text, "production_num" text, "release_date" text ); Question: What is the release date of The Blow Out? <|assistant|> SELECT "release_date" FROM "1936" WHERE "title"='the blow out';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: Who was the author for company Buzz Productions Theater? <|assistant|> SELECT "author" FROM "references" WHERE "company"='buzz productions theater';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: What country had the play Cyclops? <|assistant|> SELECT "country" FROM "references" WHERE "play"='cyclops';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: What country had the play Medea? <|assistant|> SELECT "country" FROM "references" WHERE "play"='medea';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: What play is from the country Belgium? <|assistant|> SELECT "play" FROM "references" WHERE "country"='belgium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: What play has a base of Athens and was written by Aeschylus? <|assistant|> SELECT "play" FROM "references" WHERE "author"='aeschylus' AND "base"='athens';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text ); Question: What is the company from Greece with author Aeschylus? <|assistant|> SELECT "company" FROM "references" WHERE "country"='greece' AND "author"='aeschylus';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "examples" ( "coaster_name" text, "park" text, "location" text, "track" text, "builder" text, "year_opened" text ); Question: What is the coaster name that was opened in 1978, and have wooden track? <|assistant|> SELECT "coaster_name" FROM "examples" WHERE "year_opened"='1978' AND "track"='wooden';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "examples" ( "coaster_name" text, "park" text, "location" text, "track" text, "builder" text, "year_opened" text ); Question: Which year opened has le monstre coaster? <|assistant|> SELECT "year_opened" FROM "examples" WHERE "coaster_name"='le monstre';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "examples" ( "coaster_name" text, "park" text, "location" text, "track" text, "builder" text, "year_opened" text ); Question: Which coaster is located in sandusky, Ohio? <|assistant|> SELECT "coaster_name" FROM "examples" WHERE "location"='sandusky, ohio';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "examples" ( "coaster_name" text, "park" text, "location" text, "track" text, "builder" text, "year_opened" text ); Question: Which year opened is located in west mifflin, pennsylvania? <|assistant|> SELECT "year_opened" FROM "examples" WHERE "location"='west mifflin, pennsylvania';<|endoftext|>
<|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" real, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real ); Question: What is the lowest league cup goals for the entry with fa cup goals greater than 0 and FA cup apps larger than 2? <|assistant|> SELECT MIN("league_cup_goals") FROM "appearances_and_goals" WHERE "fa_cup_goals">0 AND "fa_cup_apps">2;<|endoftext|>
<|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" real, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real ); Question: What is the sum of league cup appearances for the players with FA cup goals larger than 0 and FA cup appearances less than 2? <|assistant|> SELECT SUM("league_cup_apps") FROM "appearances_and_goals" WHERE "fa_cup_goals">0 AND "fa_cup_apps"<2;<|endoftext|>
<|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" real, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real ); Question: What is the highest league cup appearances for the player with league cup goals of 0, and FA cup appearances of 2, and 4 league goals? <|assistant|> SELECT MAX("league_cup_apps") FROM "appearances_and_goals" WHERE "league_cup_goals"=0 AND "fa_cup_apps"=2 AND "league_goals"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: What game was played at Omni Coliseum with a w 105-95 score? <|assistant|> SELECT "game" FROM "game_log" WHERE "location_attendance"='omni coliseum' AND "score"='w 105-95';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: When did the team have a 10-8 record? <|assistant|> SELECT "date" FROM "game_log" WHERE "record"='10-8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); Question: When was 11-8 the record? <|assistant|> SELECT "date" FROM "game_log" WHERE "record"='11-8';<|endoftext|>