text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); Question: How many opponents were there when the opponent was Arizona State? <|assistant|> SELECT MIN("opponents") FROM "schedule" WHERE "opponent"='Arizona State';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); Question: How many records show Utah as the opponent? <|assistant|> SELECT COUNT("record") FROM "schedule" WHERE "opponent"='Utah';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); Question: How many opponents are there when cowboy points were 10? <|assistant|> SELECT "opponents" FROM "schedule" WHERE "cowboys_points"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); Question: How many records were there when opponents were 9? <|assistant|> SELECT COUNT("record") FROM "schedule" WHERE "opponents"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); Question: Name the number of record for 12 cowboys points <|assistant|> SELECT COUNT("record") FROM "schedule" WHERE "cowboys_points"=12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); Question: Name the most game for record 4-0 <|assistant|> SELECT MAX("game") FROM "schedule" WHERE "record"='4-0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); Question: Name the result for cowboys points being 23 <|assistant|> SELECT COUNT("result") FROM "schedule" WHERE "cowboys_points"=23;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); Question: Name the record for arizona <|assistant|> SELECT "record" FROM "schedule" WHERE "opponent"='Arizona';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: Name the unemployment rate for 34024 <|assistant|> SELECT COUNT("unemployment_rate") FROM "list_of_appalachian_regional_commission_" WHERE "population"=34024;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: Name the total number of population for craig <|assistant|> SELECT COUNT("population") FROM "list_of_appalachian_regional_commission_" WHERE "county"='Craig';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: Name the unemployment rate for botetourt <|assistant|> SELECT "unemployment_rate" FROM "list_of_appalachian_regional_commission_" WHERE "county"='Botetourt';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: Name the status for unemployment rate being 6.7% <|assistant|> SELECT "status" FROM "list_of_appalachian_regional_commission_" WHERE "unemployment_rate"='6.7%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: What is the status of the county that has a 14.7% poverty rate? <|assistant|> SELECT "status" FROM "list_of_appalachian_regional_commission_" WHERE "poverty_rate"='14.7%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: What is the poverty rate in the county that has a market income per capita of $16,420? <|assistant|> SELECT "poverty_rate" FROM "list_of_appalachian_regional_commission_" WHERE "market_income_per_capita"='$16,420';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: What is the lowest population in a county with market income per capita of $24,383? <|assistant|> SELECT MIN("population") FROM "list_of_appalachian_regional_commission_" WHERE "market_income_per_capita"='$24,383';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: What is the povery rate of the county with market income per capita of $20,518? <|assistant|> SELECT "poverty_rate" FROM "list_of_appalachian_regional_commission_" WHERE "market_income_per_capita"='$20,518';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: what is the market income per capita where the county is hancock? <|assistant|> SELECT "market_income_per_capita" FROM "list_of_appalachian_regional_commission_" WHERE "county"='Hancock';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: what is the county where the market income per capita is $25,006? <|assistant|> SELECT "county" FROM "list_of_appalachian_regional_commission_" WHERE "market_income_per_capita"='$25,006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: what is the unemployment rate where the market income per capita is $16,406? <|assistant|> SELECT "unemployment_rate" FROM "list_of_appalachian_regional_commission_" WHERE "market_income_per_capita"='$16,406';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: what is the unemployment rate for wayne county? <|assistant|> SELECT "unemployment_rate" FROM "list_of_appalachian_regional_commission_" WHERE "county"='Wayne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22815870_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real ); Question: What is the original air date of the episode with a production code of 105? <|assistant|> SELECT "original_air_date" FROM "table1_22815870_1" WHERE "prod_code"=105;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22815870_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real ); Question: What is the original air date of the episode titled "Pilot"? <|assistant|> SELECT "original_air_date" FROM "table1_22815870_1" WHERE "title"='\"Pilot\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22815870_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real ); Question: Who wrote the episode titled "Christmas"? <|assistant|> SELECT "written_by" FROM "table1_22815870_1" WHERE "title"='\"Christmas\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22815870_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real ); Question: What is the production code of the episode titled "Lenny"? <|assistant|> SELECT MAX("prod_code") FROM "table1_22815870_1" WHERE "title"='\"Lenny\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22815870_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real ); Question: What is the original air date of the episode titled "Mom at the Bar/Train Buddy" that was written b Adrienne Carter? <|assistant|> SELECT "original_air_date" FROM "table1_22815870_1" WHERE "written_by"='Adrienne Carter' AND "title"='\"Mom at the Bar/Train Buddy\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_22815870_1" ( "series_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real ); Question: What is the original air date of the episode titled "Commercial/Coach DMV"? <|assistant|> SELECT "original_air_date" FROM "table1_22815870_1" WHERE "title"='\"Commercial/Coach DMV\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: How many counties have a population of 2266? <|assistant|> SELECT COUNT("county") FROM "list_of_appalachian_regional_commission_" WHERE "population"=2266;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: How many statuses are listed for Wayne county? <|assistant|> SELECT COUNT("status") FROM "list_of_appalachian_regional_commission_" WHERE "county"='Wayne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: What is the market income per capita in a county where the status is distressed and the unemployment rate is at 10.5%? <|assistant|> SELECT "market_income_per_capita" FROM "list_of_appalachian_regional_commission_" WHERE "status"='Distressed' AND "unemployment_rate"='10.5%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: What is the status for all the counties that have a poverty rate of 36.6%? <|assistant|> SELECT "status" FROM "list_of_appalachian_regional_commission_" WHERE "poverty_rate"='36.6%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: What is the status if the poverty rate is 11.4%? <|assistant|> SELECT "status" FROM "list_of_appalachian_regional_commission_" WHERE "poverty_rate"='11.4%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: If the poverty rate is 12.9%, what is the county? <|assistant|> SELECT "county" FROM "list_of_appalachian_regional_commission_" WHERE "poverty_rate"='12.9%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: What is the population maximum? <|assistant|> SELECT MAX("population") FROM "list_of_appalachian_regional_commission_";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: What county is the unemployment rate 4.8%? <|assistant|> SELECT "county" FROM "list_of_appalachian_regional_commission_" WHERE "unemployment_rate"='4.8%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_appalachian_regional_commission_" ( "county" text, "population" real, "unemployment_rate" text, "market_income_per_capita" text, "poverty_rate" text, "status" text ); Question: If the poverty rate is 12.9%, what is the market income per capita? <|assistant|> SELECT "market_income_per_capita" FROM "list_of_appalachian_regional_commission_" WHERE "poverty_rate"='12.9%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings_chart" ( "order" real, "episode" text, "airdate" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_night" real ); Question: Name the viewers for 2.1 rating <|assistant|> SELECT "viewers_millions" FROM "ratings_chart" WHERE "rating"='2.1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings_chart" ( "order" real, "episode" text, "airdate" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_night" real ); Question: Name the most share for 2.76 million viewers <|assistant|> SELECT MAX("share") FROM "ratings_chart" WHERE "viewers_millions"='2.76';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings_chart" ( "order" real, "episode" text, "airdate" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_night" real ); Question: Name the viewers for 1.2/4 rating <|assistant|> SELECT "viewers_millions" FROM "ratings_chart" WHERE "rating_share_18_49"='1.2/4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ratings_chart" ( "order" real, "episode" text, "airdate" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_night" real ); Question: Name the rating for 3.79 viewers <|assistant|> SELECT "rating_share_18_49" FROM "ratings_chart" WHERE "viewers_millions"='3.79';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers" ( "r" real, "player" text, "scottish_premier_league" real, "scottish_cup" real, "scottish_league_cup" real, "champions_league_qualifying" real, "europa_league" real, "total" real ); Question: Name the least europa league <|assistant|> SELECT MIN("europa_league") FROM "top_scorers";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers" ( "r" real, "player" text, "scottish_premier_league" real, "scottish_cup" real, "scottish_league_cup" real, "champions_league_qualifying" real, "europa_league" real, "total" real ); Question: Name the max total for aiden mcgeady <|assistant|> SELECT MAX("total") FROM "top_scorers" WHERE "player"='Aiden McGeady';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers" ( "r" real, "player" text, "scottish_premier_league" real, "scottish_cup" real, "scottish_league_cup" real, "champions_league_qualifying" real, "europa_league" real, "total" real ); Question: Name the scottish premier league georgios samaras <|assistant|> SELECT "scottish_premier_league" FROM "top_scorers" WHERE "player"='Georgios Samaras';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers" ( "r" real, "player" text, "scottish_premier_league" real, "scottish_cup" real, "scottish_league_cup" real, "champions_league_qualifying" real, "europa_league" real, "total" real ); Question: Name the total number of r for josh thompson <|assistant|> SELECT COUNT("r") FROM "top_scorers" WHERE "player"='Josh Thompson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What was the total number of rebounds on november 27? <|assistant|> SELECT COUNT("high_rebounds") FROM "game_log" WHERE "date"='November 27';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: On what date did the Pistons play @ toronto? <|assistant|> SELECT "date" FROM "game_log" WHERE "team"='@ Toronto';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: List the location and number of fans in attendance for game 7/ <|assistant|> SELECT COUNT("location_attendance") FROM "game_log" WHERE "game"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "field_goals" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: How many interceptions for the team who played 31 games? <|assistant|> SELECT "steals" FROM "player_stats" WHERE "games_played"=31;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "field_goals" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: How many steals for the player who had 121 rebounds? <|assistant|> SELECT MIN("steals") FROM "player_stats" WHERE "rebounds"=121;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: What date was the Piston's record at 23-47? <|assistant|> SELECT "date" FROM "game_log" WHERE "record"='23-47';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Who had the highest rebounds during the game with a record of 23-47? <|assistant|> SELECT "high_rebounds" FROM "game_log" WHERE "record"='23-47';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: How many rebound did the person who scored 147 points have? <|assistant|> SELECT COUNT("rebounds") FROM "player_stats" WHERE "points"=147;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: Of the players with 50 free throws, what is the lowest number of three pointers? <|assistant|> SELECT MIN("three_pointers") FROM "player_stats" WHERE "free_throws"=50;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: Who are all the players with 156 rebounds? <|assistant|> SELECT "player" FROM "player_stats" WHERE "rebounds"=156;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: Of the players who scored 5 three pointers, what is the highest number of games played? <|assistant|> SELECT MAX("games_played") FROM "player_stats" WHERE "three_pointers"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "no" real, "player" text, "hometown" text, "class" text, "position" text, "height" text, "weight" real ); Question: What is every number for the hometown of Canton, Illinois? <|assistant|> SELECT "no" FROM "roster" WHERE "hometown"='Canton, Illinois';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "no" real, "player" text, "hometown" text, "class" text, "position" text, "height" text, "weight" real ); Question: Who is every player with a height of 6-5? <|assistant|> SELECT "player" FROM "roster" WHERE "height"='6-5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "no" real, "player" text, "hometown" text, "class" text, "position" text, "height" text, "weight" real ); Question: Who are all players from hometown of Carbondale, Illinois? <|assistant|> SELECT "player" FROM "roster" WHERE "hometown"='Carbondale, Illinois';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "no" real, "player" text, "hometown" text, "class" text, "position" text, "height" text, "weight" real ); Question: What is every class with a position of guard and Tal Brody as the player? <|assistant|> SELECT "class" FROM "roster" WHERE "position"='Guard' AND "player"='Tal Brody';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "no" real, "player" text, "hometown" text, "class" text, "position" text, "height" text, "weight" real ); Question: How many values for number occur with the hometown of Canton, Illinois? <|assistant|> SELECT COUNT("no") FROM "roster" WHERE "hometown"='Canton, Illinois';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "no" real, "player" text, "position" text, "height" text, "weight" real, "class" text, "hometown" text ); Question: What class was ren alde? <|assistant|> SELECT "class" FROM "roster" WHERE "player"='Ren Alde';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "no" real, "player" text, "position" text, "height" text, "weight" real, "class" text, "hometown" text ); Question: Who are the player's who weighed 170? <|assistant|> SELECT "player" FROM "roster" WHERE "weight"=170;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "no" real, "player" text, "position" text, "height" text, "weight" real, "class" text, "hometown" text ); Question: What is jim dutcher's hometown? <|assistant|> SELECT "hometown" FROM "roster" WHERE "player"='Jim Dutcher';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: Name the total number of player for 51 points <|assistant|> SELECT COUNT("player") FROM "player_stats" WHERE "points"=51;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: Name the most rebounds for larry smith <|assistant|> SELECT MAX("rebounds") FROM "player_stats" WHERE "player"='Larry Smith';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: Name the steals for 5 blocks <|assistant|> SELECT "steals" FROM "player_stats" WHERE "blocks"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: Name the least points <|assistant|> SELECT MIN("points") FROM "player_stats";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "magnetic_properties" ( "magnet" text, "b_r_t" text, "h_ci_k_a_m" text, "bh_max_k_j_m_3" text, "t_c_c" text ); Question: When 0.6–1.4 is the b r (t) what is the h ci (ka/m)? <|assistant|> SELECT "h_ci_k_a_m" FROM "magnetic_properties" WHERE "b_r_t"='0.6–1.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "magnetic_properties" ( "magnet" text, "b_r_t" text, "h_ci_k_a_m" text, "bh_max_k_j_m_3" text, "t_c_c" text ); Question: When nd 2 fe 14 b (bonded) is the magnet how many measurements of tc (Β°c)? <|assistant|> SELECT COUNT("t_c_c") FROM "magnetic_properties" WHERE "magnet"='Nd 2 Fe 14 B (bonded)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "magnetic_properties" ( "magnet" text, "b_r_t" text, "h_ci_k_a_m" text, "bh_max_k_j_m_3" text, "t_c_c" text ); Question: When 720 is the t c (Β°c) what is the h ci (ka/m)? <|assistant|> SELECT "h_ci_k_a_m" FROM "magnetic_properties" WHERE "t_c_c"='720';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_standings" ( "team" text, "sec_wins" real, "sec_losses" real, "percentage" text, "home_record" text, "road_record" text, "overall_record" text ); Question: Name the sec wins for .357 percentage and 4-3 home record <|assistant|> SELECT "sec_wins" FROM "conference_standings" WHERE "percentage"='.357' AND "home_record"='4-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_standings" ( "team" text, "sec_wins" real, "sec_losses" real, "percentage" text, "home_record" text, "road_record" text, "overall_record" text ); Question: Name the percentage for georgia <|assistant|> SELECT "percentage" FROM "conference_standings" WHERE "team"='Georgia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_standings" ( "team" text, "sec_wins" real, "sec_losses" real, "percentage" text, "home_record" text, "road_record" text, "overall_record" text ); Question: Name the overall record for road record being 4-3 <|assistant|> SELECT "overall_record" FROM "conference_standings" WHERE "road_record"='4-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_standings" ( "team" text, "sec_wins" real, "sec_losses" real, "percentage" text, "home_record" text, "road_record" text, "overall_record" text ); Question: Name the number of road record for team ole miss <|assistant|> SELECT COUNT("road_record") FROM "conference_standings" WHERE "team"='Ole Miss';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "conference_standings" ( "team" text, "sec_wins" real, "sec_losses" real, "percentage" text, "home_record" text, "road_record" text, "overall_record" text ); Question: Name the percentage for ole miss <|assistant|> SELECT "percentage" FROM "conference_standings" WHERE "team"='Ole Miss';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: What is the most number of blocks kendall gill had? <|assistant|> SELECT MAX("blocks") FROM "player_stats" WHERE "player"='Kendall Gill';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: What is the lowest number of three pointers in games where the number of rebounds was 178? <|assistant|> SELECT MIN("three_pointers") FROM "player_stats" WHERE "rebounds"=178;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: How many steals were the in games that andy kaufmann played? <|assistant|> SELECT COUNT("steals") FROM "player_stats" WHERE "player"='Andy Kaufmann';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: What is the lowest number of three pointers in games that kendall gill played? <|assistant|> SELECT MIN("three_pointers") FROM "player_stats" WHERE "player"='Kendall Gill';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_stats" ( "player" text, "games_played" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); Question: How many games had three pointers where the number of points was 581? <|assistant|> SELECT COUNT("three_pointers") FROM "player_stats" WHERE "points"=581;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasonal_ratings" ( "season" real, "episodes" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); Question: How many timeslots were available for the season finale on August 29, 2009? <|assistant|> SELECT COUNT("timeslot_et") FROM "seasonal_ratings" WHERE "season_finale"='August 29, 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasonal_ratings" ( "season" real, "episodes" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); Question: What was the highest amount of episodes for the season with 5.74 million viewers? <|assistant|> SELECT MAX("episodes") FROM "seasonal_ratings" WHERE "viewers_in_millions"='5.74';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasonal_ratings" ( "season" real, "episodes" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); Question: What rank number had a season premiere on December 24, 2011? <|assistant|> SELECT "rank" FROM "seasonal_ratings" WHERE "season_premiere"='December 24, 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasonal_ratings" ( "season" real, "episodes" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); Question: How many rankings were there for the season with a finale on August 20, 2011? <|assistant|> SELECT COUNT("rank") FROM "seasonal_ratings" WHERE "season_finale"='August 20, 2011';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasonal_ratings" ( "season" real, "episodes" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); Question: How many episodes had a season premiere on December 11, 2010? <|assistant|> SELECT COUNT("episodes") FROM "seasonal_ratings" WHERE "season_premiere"='December 11, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasonal_ratings" ( "season" real, "episodes" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); Question: What was the season number that had a premiere on December 11, 2010? <|assistant|> SELECT MAX("season") FROM "seasonal_ratings" WHERE "season_premiere"='December 11, 2010';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_19_11_titles_8_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Which surfaces have the final score of 6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)? <|assistant|> SELECT "surface" FROM "singles_19_11_titles_8_runner_ups" WHERE "score_in_the_final"='6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_19_11_titles_8_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: How many outcome have a score of 7–6 (9–7) , 6–3? <|assistant|> SELECT COUNT("outcome") FROM "singles_19_11_titles_8_runner_ups" WHERE "score_in_the_final"='7–6 (9–7) , 6–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_19_11_titles_8_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Which outcomes have a final score of 6–3, 6–2? <|assistant|> SELECT "outcome" FROM "singles_19_11_titles_8_runner_ups" WHERE "score_in_the_final"='6–3, 6–2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_19_11_titles_8_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What is the last year that Andre Agassi was the final opponent? <|assistant|> SELECT MAX("year") FROM "singles_19_11_titles_8_runner_ups" WHERE "opponent_in_the_final"='Andre Agassi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_19_11_titles_8_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: How many years have a final score of 6–3, 6–2? <|assistant|> SELECT COUNT("year") FROM "singles_19_11_titles_8_runner_ups" WHERE "score_in_the_final"='6–3, 6–2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_19_11_titles_8_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Which championship has a final score of 6–7 (9–11) , 6–4, 7–5, 4–6, 4–6? <|assistant|> SELECT "championship" FROM "singles_19_11_titles_8_runner_ups" WHERE "score_in_the_final"='6–7 (9–11) , 6–4, 7–5, 4–6, 4–6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atp_tour_career_earnings" ( "year" real, "majors" real, "atp_wins" real, "total_wins" real, "earnings" real, "money_list_rank" real ); Question: How many years had a total earnings amount of 2254598? <|assistant|> SELECT COUNT("year") FROM "atp_tour_career_earnings" WHERE "earnings"=2254598;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atp_tour_career_earnings" ( "year" real, "majors" real, "atp_wins" real, "total_wins" real, "earnings" real, "money_list_rank" real ); Question: What is the latest year that data is available for? <|assistant|> SELECT MAX("year") FROM "atp_tour_career_earnings";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_6_5_titles_1_runner_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What is the score in the final in the year 1994? <|assistant|> SELECT "score_in_the_final" FROM "singles_6_5_titles_1_runner_up" WHERE "year"=1994;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_6_5_titles_1_runner_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Who is the championship for the year of 1993? <|assistant|> SELECT "championship" FROM "singles_6_5_titles_1_runner_up" WHERE "year"=1993;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_6_5_titles_1_runner_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Who is the opponent in the final when frankfurt is championship and the year is less than 1993.0? <|assistant|> SELECT "opponent_in_the_final" FROM "singles_6_5_titles_1_runner_up" WHERE "championship"='Frankfurt' AND "year"<1993.0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atp_tour_career_earnings" ( "year" real, "majors" real, "atp_wins" real, "total_wins" real, "earnings" real, "money_list_rank" real ); Question: In what year was his money list rank 3? <|assistant|> SELECT MIN("year") FROM "atp_tour_career_earnings" WHERE "money_list_rank"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atp_tour_career_earnings" ( "year" real, "majors" real, "atp_wins" real, "total_wins" real, "earnings" real, "money_list_rank" real ); Question: What was his money list rank in 2001? <|assistant|> SELECT MIN("money_list_rank") FROM "atp_tour_career_earnings" WHERE "year"=2001;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atp_tour_career_earnings" ( "year" real, "majors" real, "atp_wins" real, "total_wins" real, "earnings" real, "money_list_rank" real ); Question: How many atp wins did he have when his money list rank was 4? <|assistant|> SELECT MAX("atp_wins") FROM "atp_tour_career_earnings" WHERE "money_list_rank"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atp_tour_career_earnings" ( "year" real, "majors" real, "atp_wins" real, "total_wins" real, "earnings" real, "money_list_rank" real ); Question: What is the maximum total wins he had for any year? <|assistant|> SELECT MAX("total_wins") FROM "atp_tour_career_earnings";<|endoftext|>