text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_15" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text ); Question: Name the first broadcast for tina malone and joe wilkinson <|assistant|> SELECT "first_broadcast" FROM "series_15" WHERE "seans_team"='Tina Malone and Joe Wilkinson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_15" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text ); Question: Name the number of jons team for 15x10 <|assistant|> SELECT COUNT("jons_team") FROM "series_15" WHERE "episode"='15x10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_15" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text ); Question: Name the scores for chris ramsey and carol vorderman <|assistant|> SELECT "scores" FROM "series_15" WHERE "seans_team"='Chris Ramsey and Carol Vorderman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_15" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text ); Question: Name the total number of jons team for 15x07 <|assistant|> SELECT COUNT("jons_team") FROM "series_15" WHERE "episode"='15x07';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_6" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); Question: Name all of Jason's teams that appeared on episode 6x02? <|assistant|> SELECT "jasons_team" FROM "series_6" WHERE "episode"='6x02';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_6" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); Question: In how many episodes were Vanessa Feltz and Lee Mack the team for Sean? <|assistant|> SELECT COUNT("episode") FROM "series_6" WHERE "seans_team"='Vanessa Feltz and Lee Mack';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_6" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); Question: Name the episode(s) that featured Duncan James and Johnny Vegas as Jason's team. <|assistant|> SELECT "episode" FROM "series_6" WHERE "jasons_team"='Duncan James and Johnny Vegas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_3" text, "race_total_pts" real ); Question: What round does Duncan Tappy drive in? <|assistant|> SELECT MAX("sf_round") FROM "2009_season" WHERE "driver"='Duncan Tappy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_3" text, "race_total_pts" real ); Question: How many racing points did England get? <|assistant|> SELECT MAX("race_total_pts") FROM "2009_season" WHERE "country"='England';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_3" text, "race_total_pts" real ); Question: How many are the Race 2 points when Race 1 was 12? <|assistant|> SELECT "race_2_pts" FROM "2009_season" WHERE "race_1_pts"=12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23294081_11" ( "no" real, "num" real, "original_airdate" text, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text, "u_s_viewers_millions" text ); Question: How many millions of people in the US saw the episode number 226? <|assistant|> SELECT "u_s_viewers_millions" FROM "table1_23294081_11" WHERE "no"=226;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23294081_11" ( "no" real, "num" real, "original_airdate" text, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text, "u_s_viewers_millions" text ); Question: What is the highest episode number? <|assistant|> SELECT MAX("no") FROM "table1_23294081_11";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23294081_11" ( "no" real, "num" real, "original_airdate" text, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text, "u_s_viewers_millions" text ); Question: Who was performer 1 in the episode number 7 where Heather Anne Campbell was performer 2? <|assistant|> SELECT "performer_1" FROM "table1_23294081_11" WHERE "performer_2"='Heather Anne Campbell' AND "num"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_23294081_11" ( "no" real, "num" real, "original_airdate" text, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text, "u_s_viewers_millions" text ); Question: What's the number of the episode seen by 2.99 millions of people in the US, where performer 2 was Heather Anne Campbell? <|assistant|> SELECT MIN("num") FROM "table1_23294081_11" WHERE "performer_2"='Heather Anne Campbell' AND "u_s_viewers_millions"='2.99';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); Question: Name the episode for vic reeves and claudia winkleman <|assistant|> SELECT "episode" FROM "series_7" WHERE "seans_team"='Vic Reeves and Claudia Winkleman';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); Question: Name the number of scores for episode 7x05 <|assistant|> SELECT COUNT("scores") FROM "series_7" WHERE "episode"='7x05';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); Question: Name the seans team being 13 november 2008 <|assistant|> SELECT "seans_team" FROM "series_7" WHERE "first_broadcast"='13 November 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); Question: Name the total number of seans team being 7x04 <|assistant|> SELECT COUNT("seans_team") FROM "series_7" WHERE "episode"='7x04';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_7" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); Question: Name the total number of scores for 7x10 <|assistant|> SELECT COUNT("scores") FROM "series_7" WHERE "episode"='7x10';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real ); Question: How many dates have a total points for race of 180? <|assistant|> SELECT COUNT("date") FROM "2008_season" WHERE "race_total_pts"=180;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real ); Question: What is every points value for race 1 if the total race points is 180? <|assistant|> SELECT "race_1_pts" FROM "2008_season" WHERE "race_total_pts"=180;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real ); Question: What is the lowest number of total race points for the country of Belgium? <|assistant|> SELECT MIN("race_total_pts") FROM "2008_season" WHERE "country"='Belgium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real ); Question: Who is every driver for the location of Estoril Circuit? <|assistant|> SELECT "driver" FROM "2008_season" WHERE "location"='Estoril Circuit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2008_season" ( "sf_round" real, "country" text, "location" text, "date" text, "driver" text, "race_1_pts" real, "race_2_pts" real, "race_total_pts" real ); Question: What is the highest value for SF round for the country of England? <|assistant|> SELECT MAX("sf_round") FROM "2008_season" WHERE "country"='England';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_6_2_titles_4_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: What is the surface for the year 2001? <|assistant|> SELECT "surface" FROM "singles_6_2_titles_4_runner_ups" WHERE "year"=2001;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: What was the score on October 29? <|assistant|> SELECT "score" FROM "game_log" WHERE "date"='October 29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: How many opponents were there with the record of 3-2-2? <|assistant|> SELECT COUNT("opponent") FROM "game_log" WHERE "record"='3-2-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: What was the record on October 17? <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='October 17';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: What date did they play agains the New York Rangers? <|assistant|> SELECT "date" FROM "game_log" WHERE "opponent"='New York Rangers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: How many points were there scored on October 27? <|assistant|> SELECT MAX("points") FROM "game_log" WHERE "date"='October 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, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: How many different scores are there for the game with 10-3-4 record? <|assistant|> SELECT COUNT("score") FROM "game_log" WHERE "record"='10-3-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: When was the game with 13-5-6 record played? <|assistant|> SELECT "date" FROM "game_log" WHERE "record"='13-5-6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: What's the minimal number of points scored in any game? <|assistant|> SELECT MIN("points") FROM "game_log";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: How many different games against Florida Panthers were played in Verizon Center? <|assistant|> SELECT COUNT("game") FROM "game_log" WHERE "opponent"='Florida Panthers' AND "location"='Verizon Center';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: What was the record in the November 7 game? <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='November 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: How many times was there a record of 49-15-11? <|assistant|> SELECT COUNT("attendance") FROM "game_log" WHERE "record"='49-15-11';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: How many scores had a date of March 6? <|assistant|> SELECT COUNT("score") FROM "game_log" WHERE "date"='March 6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performances_18_10" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "result" text, "outcome" text ); Question: If the date is 7-21-2006, who was the opponent? <|assistant|> SELECT "opponent" FROM "singles_performances_18_10" WHERE "date"='7-21-2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performances_18_10" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "result" text, "outcome" text ); Question: If the opponent is Kristian Pless, who was it against? <|assistant|> SELECT "against" FROM "singles_performances_18_10" WHERE "opponent"='Kristian Pless';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "round" real, "location" text, "circuit" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text ); Question: Who is the winning team when max busnelli is the winning driver? <|assistant|> SELECT "winning_team" FROM "race_calendar" WHERE "winning_driver"='Max Busnelli';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "round" real, "location" text, "circuit" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text ); Question: In which location is aci vallelunga circuit? <|assistant|> SELECT "location" FROM "race_calendar" WHERE "circuit"='ACI Vallelunga Circuit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "round" real, "location" text, "circuit" text, "date" text, "pole_position" text, "winning_driver" text, "winning_team" text ); Question: Who held the pole position in misano world circuit? <|assistant|> SELECT "pole_position" FROM "race_calendar" WHERE "circuit"='Misano World Circuit';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: List the results for all games which involved the detroit red wings. <|assistant|> SELECT "score" FROM "game_log" WHERE "opponent"='Detroit Red Wings';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: Calculate the highest points where the win,loss, tie ratio is 28-12-6 <|assistant|> SELECT MAX("points") FROM "game_log" WHERE "record"='28-12-6';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real ); Question: what are the previous performance details for games involving the montreal canadiens? <|assistant|> SELECT "record" FROM "game_log" WHERE "opponent"='Montreal Canadiens';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2331549_1" ( "year" real, "host_city" text, "host_school" text, "champion" text, "second_place" text, "third_place" text ); Question: Which years did Michigan state university come in third place? <|assistant|> SELECT "year" FROM "table1_2331549_1" WHERE "third_place"='Michigan State University';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2331549_1" ( "year" real, "host_city" text, "host_school" text, "champion" text, "second_place" text, "third_place" text ); Question: Who were the champions in years where michigan technological university was in third place? <|assistant|> SELECT "champion" FROM "table1_2331549_1" WHERE "third_place"='Michigan Technological University';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2331549_1" ( "year" real, "host_city" text, "host_school" text, "champion" text, "second_place" text, "third_place" text ); Question: What was the host city in years where the host school was école de technologie supérieure? <|assistant|> SELECT "host_city" FROM "table1_2331549_1" WHERE "host_school"='École de technologie supérieure';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_2331549_1" ( "year" real, "host_city" text, "host_school" text, "champion" text, "second_place" text, "third_place" text ); Question: Who came in second place when the champion was south dakota school of mines & technology? <|assistant|> SELECT "second_place" FROM "table1_2331549_1" WHERE "champion"='South Dakota School of Mines & Technology';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_career_runs" ( "rank" real, "runs" real, "player" text, "matches" real, "innings" real, "not_out" real, "average" text ); Question: If the average is 45.65, what is the total number of innings? <|assistant|> SELECT COUNT("innings") FROM "most_career_runs" WHERE "average"='45.65';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_career_runs" ( "rank" real, "runs" real, "player" text, "matches" real, "innings" real, "not_out" real, "average" text ); Question: What is the name of the player if the innings is 82? <|assistant|> SELECT "player" FROM "most_career_runs" WHERE "innings"=82;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_career_runs" ( "rank" real, "runs" real, "player" text, "matches" real, "innings" real, "not_out" real, "average" text ); Question: If the innings is 68, what is the average? <|assistant|> SELECT "average" FROM "most_career_runs" WHERE "innings"=68;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_career_runs" ( "rank" real, "runs" real, "player" text, "matches" real, "innings" real, "not_out" real, "average" text ); Question: If the runs is 5028, what is the matches maximum? <|assistant|> SELECT MAX("matches") FROM "most_career_runs" WHERE "runs"=5028;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real ); Question: Name the least dismissals for sammy carter <|assistant|> SELECT MIN("dismissals") FROM "most_dismissals_in_test_career_wicketkee" WHERE "player"='Sammy Carter';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real ); Question: Name the number of dismissals for adam gilchrist <|assistant|> SELECT COUNT("dismissals") FROM "most_dismissals_in_test_career_wicketkee" WHERE "player"='Adam Gilchrist';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_dismissals_in_test_career_wicketkee" ( "rank" real, "dismissals" real, "player" text, "caught" real, "stumped" real, "matches" real, "innings" real ); Question: Name the least dismissals for 4 rank <|assistant|> SELECT MAX("dismissals") FROM "most_dismissals_in_test_career_wicketkee" WHERE "rank"=4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_nationwide_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: How many top 10 finishes did Ken Bouchard get in the year he won $17,695? <|assistant|> SELECT "top_10" FROM "nascar_nationwide_series" WHERE "winnings"='$17,695';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_nationwide_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: What year did Ken Bouchard finish in 78th place? <|assistant|> SELECT "year" FROM "nascar_nationwide_series" WHERE "position"='78th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_nationwide_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: How many seasons did Ken Bouchard finish in 38th place? <|assistant|> SELECT COUNT("year") FROM "nascar_nationwide_series" WHERE "position"='38th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nascar_nationwide_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: What is the greatest number of wins Ken Bouchard had in a season? <|assistant|> SELECT MIN("wins") FROM "nascar_nationwide_series";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: How many races in 2012 season have 0 podiums? <|assistant|> SELECT COUNT("races") FROM "career_summary" WHERE "season"=2012 AND "podiums"=0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: How many seasons have motopark team? <|assistant|> SELECT COUNT("season") FROM "career_summary" WHERE "team"='Motopark';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: Which team has nc position for 2010 season? <|assistant|> SELECT "team" FROM "career_summary" WHERE "position"='NC' AND "season"=2010;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); Question: How many points have a series of british formula renault 2.0 winter cup and f/laps of 0? <|assistant|> SELECT "points" FROM "career_summary" WHERE "series"='British Formula Renault 2.0 Winter Cup' AND "f_laps"=0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wnit_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: If the amount of rebounds is 0, what is the maximum minutes? <|assistant|> SELECT MAX("minutes") FROM "wnit_player_stats" WHERE "rebounds"=0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wnit_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: What is the points total number if the assists is 7? <|assistant|> SELECT COUNT("points") FROM "wnit_player_stats" WHERE "assists"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wnit_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: If the field goals is 26, what are the players names? <|assistant|> SELECT "player" FROM "wnit_player_stats" WHERE "field_goals"=26;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wnit_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: If the player is Jasmine Wynne, what is the minimum number of steals? <|assistant|> SELECT MIN("steals") FROM "wnit_player_stats" WHERE "player"='Jasmine Wynne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wnit_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: What is the blocks total number if the points is 4? <|assistant|> SELECT COUNT("blocks") FROM "wnit_player_stats" WHERE "points"=4;<|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 steals did jasmine wynne have? <|assistant|> SELECT "steals" FROM "player_stats" WHERE "player"='Jasmine Wynne';<|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 games did janae stokes play? <|assistant|> SELECT MAX("games_played") FROM "player_stats" WHERE "player"='Janae Stokes';<|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 rebounds did crystal ayers have? <|assistant|> SELECT COUNT("rebounds") FROM "player_stats" WHERE "player"='Crystal Ayers';<|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, "orangemen_points" real, "opponents" real, "record" text ); Question: What was the Orangemen record during game 3? <|assistant|> SELECT "record" FROM "schedule" WHERE "game"=3;<|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, "orangemen_points" real, "opponents" real, "record" text ); Question: What was the record for the Orangemen when they played against Army? <|assistant|> SELECT "record" FROM "schedule" WHERE "opponent"='Army';<|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, "orangemen_points" real, "opponents" real, "record" text ); Question: How many points did the Orangemen score in game 1? <|assistant|> SELECT MAX("orangemen_points") FROM "schedule" WHERE "game"=1;<|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, "orangemen_points" real, "opponents" real, "record" text ); Question: Who did the Orangemen play against when their record was 5-1? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "record"='5-1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "movies" ( "year" real, "title_of_movie" text, "name_of_role" text, "nature_of_role" text, "co_artists" text, "location" text ); Question: Name the location for 2007 <|assistant|> SELECT "location" FROM "movies" WHERE "year"=2007;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real ); Question: Display the lowest score for candidate Mir-Hossein Mousavi when candidate Mohsen Rezaee scored 44809 votes <|assistant|> SELECT MIN("mir_hossein_mousavi") FROM "provincial_results" WHERE "mohsen_rezaee"=44809;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real ); Question: What is the highest score for candidate Mohsen Rezaee when candidate mir-hossein mousavi scored 837858 votes? <|assistant|> SELECT MAX("mohsen_rezaee") FROM "provincial_results" WHERE "mir_hossein_mousavi"=837858;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real ); Question: List all the total scores for the election which had 3072 invalid votes <|assistant|> SELECT "total_votes" FROM "provincial_results" WHERE "spoiled_ballots"=3072;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real ); Question: What was the highest score of candidate mir-hossein mousavi in the location known as azarbaijan, west? <|assistant|> SELECT MAX("mir_hossein_mousavi") FROM "provincial_results" WHERE "province"='Azarbaijan, West';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real ); Question: List all the results for mahmoud ahmadinejad when candidate mir-hossein mousavi obtained 218481 votes. <|assistant|> SELECT "mahmoud_ahmadinejad" FROM "provincial_results" WHERE "mir_hossein_mousavi"=218481;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provincial_results" ( "province" text, "mahmoud_ahmadinejad" real, "mehdi_karroubi" real, "mir_hossein_mousavi" real, "mohsen_rezaee" real, "spoiled_ballots" real, "total_votes" real ); Question: What was the highest number of votes for mir-hossein mousavi when the number of invalid votes is 5683 <|assistant|> SELECT MAX("mir_hossein_mousavi") FROM "provincial_results" WHERE "spoiled_ballots"=5683;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "finishing_date" text, "rally_name" text, "rally_base" text, "surface" text, "support_category" text ); Question: Name surface for 8 round <|assistant|> SELECT "surface" FROM "calendar" WHERE "round"=8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "finishing_date" text, "rally_name" text, "rally_base" text, "surface" text, "support_category" text ); Question: Name the rally base for 5 round <|assistant|> SELECT "rally_base" FROM "calendar" WHERE "round"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "calendar" ( "round" real, "finishing_date" text, "rally_name" text, "rally_base" text, "surface" text, "support_category" text ); Question: Name the rally base for rallye de france alsace <|assistant|> SELECT "rally_base" FROM "calendar" WHERE "rally_name"='Rallye de France Alsace';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers" ( "pos" real, "driver" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real ); Question: What is the lowest position for a driver with 2 points? <|assistant|> SELECT MAX("pos") FROM "drivers" WHERE "points"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "drivers" ( "pos" real, "driver" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real ); Question: What driver(s) had over 65 stag wins? <|assistant|> SELECT "driver" FROM "drivers" WHERE "stage_wins"=65;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "constructors" ( "pos" real, "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real ); Question: What is the power stage wins total number if the wins is 10? <|assistant|> SELECT COUNT("power_stage_wins") FROM "constructors" WHERE "wins"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "constructors" ( "pos" real, "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real ); Question: If finishes is 10, what is the POS minimum? <|assistant|> SELECT MIN("pos") FROM "constructors" WHERE "finishes"=10;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "constructors" ( "pos" real, "constructor" text, "chassis" text, "starts" real, "finishes" real, "wins" real, "podiums" real, "stage_wins" real, "power_stage_wins" real, "points" real ); Question: What is the finishes maximum number? <|assistant|> SELECT MAX("finishes") FROM "constructors";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); Question: When relay is the station type and 5kw is the power kw what is the branding? <|assistant|> SELECT "branding" FROM "ibc_tv_stations" WHERE "power_k_w"='5kW' AND "station_type"='Relay';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); Question: When dxrt-tv is the callsign what is the power kw? <|assistant|> SELECT "power_k_w" FROM "ibc_tv_stations" WHERE "callsign"='DXRT-TV';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); Question: When dxzb-tv is the call sign what is the power kw? <|assistant|> SELECT "power_k_w" FROM "ibc_tv_stations" WHERE "callsign"='DXZB-TV';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); Question: When dxcc-tv is the call sign how many station types are there? <|assistant|> SELECT COUNT("station_type") FROM "ibc_tv_stations" WHERE "callsign"='DXCC-TV';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ibc_tv_stations" ( "branding" text, "callsign" text, "ch_num" text, "power_k_w" text, "station_type" text, "location_transmitter_site" text ); Question: When dwhr-tv is the call sign how many station types are there? <|assistant|> SELECT COUNT("station_type") FROM "ibc_tv_stations" WHERE "callsign"='DWHR-TV';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_three" ( "num" real, "title" text, "original_airdate" text, "timeslot" text, "viewers_millions" text, "nightly_rank" real, "weekly_rank" real ); Question: What date did Episode 22 originally air? <|assistant|> SELECT COUNT("original_airdate") FROM "series_three" WHERE "num"=22;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_three" ( "num" real, "title" text, "original_airdate" text, "timeslot" text, "viewers_millions" text, "nightly_rank" real, "weekly_rank" real ); Question: What episode premier received 0.680 million viewers? <|assistant|> SELECT "original_airdate" FROM "series_three" WHERE "viewers_millions"='0.680';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_three" ( "num" real, "title" text, "original_airdate" text, "timeslot" text, "viewers_millions" text, "nightly_rank" real, "weekly_rank" real ); Question: When did "The Intervention" originally air? <|assistant|> SELECT "original_airdate" FROM "series_three" WHERE "title"='\"The Intervention\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_three" ( "num" real, "title" text, "original_airdate" text, "timeslot" text, "viewers_millions" text, "nightly_rank" real, "weekly_rank" real ); Question: What timeslot received 0.673 viewers? <|assistant|> SELECT "timeslot" FROM "series_three" WHERE "viewers_millions"='0.673';<|endoftext|>