text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet" ( "type" text, "owns" text, "length" text, "delivery_date" text, "gross_tonnage" real ); Question: with delivery date of 2001 2001 what is the owns? <|assistant|> SELECT "owns" FROM "fle...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet" ( "type" text, "owns" text, "length" text, "delivery_date" text, "gross_tonnage" real ); Question: with delivery date of 2001 2001 what is gross tonnage? <|assistant|> SELECT AVG("gross_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fleet" ( "type" text, "owns" text, "length" text, "delivery_date" text, "gross_tonnage" real ); Question: with delivery date 1997 1997 what is the owns? <|assistant|> SELECT "owns" FROM "fleet"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "location" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "nickname" text, "present_conference" text ); Question: Which conference does the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "location" text, "founded" real, "type" text, "enrollment" real, "joined" real, "left" real, "nickname" text, "present_conference" text ); Question: What is the number of enro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "date" text, "title" text, "origin" text, "label_cat_no" text, "chart_no" real ); Question: What is the highest chart number for the song Yardbirds aka Roger the Engineer? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "date" text, "title" text, "origin" text, "label_cat_no" text, "chart_no" real ); Question: What is the average chart number for 11/1965? <|assistant|> SELECT AVG("chart_no") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "studio_albums" ( "date" text, "title" text, "origin" text, "label_cat_no" text, "chart_no" real ); Question: What is origin country for a title that charted at 52? <|assistant|> SELECT "origin"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What is the Record of the Game after 40 with New York Rangers as Oppone...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: When did Adam Thompson play in the final? <|assistant|> SELECT "date" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_titles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); Question: When was the Lagos tournament? <|assistant|> SELECT "date" FROM "single...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the score against the phillies on may 24? <|assistant|> SELECT "sco...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); Question: Opponent of new england patriots had what attendance? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); Question: Attendance of 55,340 had what opponent? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); Question: Week smaller than 4, and a Game Site of rca dome, and a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); Question: Record of 0–8 had what result? <|assistant|> SELECT "re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); Question: Record of 0–8 had what lowest week? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the score when the visitor was pittsburgh? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: What was the decision on November 26? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_individual_rankings" ( "location_state_city" text, "usn_2013" real, "bw_2013" real, "forbes_2011" real, "ec_2013" real, "ft_2011" real, "ae_2011" real, "cnn_2011" real, "bi_2013"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_individual_rankings" ( "location_state_city" text, "usn_2013" real, "bw_2013" real, "forbes_2011" real, "ec_2013" real, "ft_2011" real, "ae_2011" real, "cnn_2011" real, "bi_2013"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_individual_rankings" ( "location_state_city" text, "usn_2013" real, "bw_2013" real, "forbes_2011" real, "ec_2013" real, "ft_2011" real, "ae_2011" real, "cnn_2011" real, "bi_2013"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_individual_rankings" ( "location_state_city" text, "usn_2013" real, "bw_2013" real, "forbes_2011" real, "ec_2013" real, "ft_2011" real, "ae_2011" real, "cnn_2011" real, "bi_2013"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_individual_rankings" ( "location_state_city" text, "usn_2013" real, "bw_2013" real, "forbes_2011" real, "ec_2013" real, "ft_2011" real, "ae_2011" real, "cnn_2011" real, "bi_2013"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "time_et" text, "result" text, "game_site" text, "record" text, "nfl_recap" text ); Question: Who did they play at lincoln fin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "commune" text, "area_km_2" real, "2002_population" real, "density_km_2" real, "government_website" text ); Question: What is the density for the area that is larger than 4,01...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "administration" ( "commune" text, "area_km_2" real, "2002_population" real, "density_km_2" real, "government_website" text ); Question: What is the density that has an area smaller than 2,200.2...
<|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 rank for nations with fewer than 0 gold medals? <|assistant...
<|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 total number of bronze medals with more than 1 medal total and fewe...
<|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 highest rank of a nation with fewer than 0 silver medals? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text ); Question: Which Bats have a First of josh, and Throws of r, and a Surname of cakebr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text ); Question: Which DOB has Throws of r, and a Position of c, and a First of torey? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text ); Question: Which DOB has a Surname of cresswell? <|assistant|> SELECT "d_o_b" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text ); Question: Which DOB has Bats of r, and Throws of r, and a Position of rhp, and a Fi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text ); Question: Which Position did Ruzic play? <|assistant|> SELECT "position" FROM "play...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "player_roster" ( "surname" text, "first" text, "d_o_b" text, "bats" text, "throws" text, "position" text ); Question: How many throws did Torey have? <|assistant|> SELECT "throws" FROM "playe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_starts" ( "name" text, "period" text, "starts" real, "wins" real, "losses" real, "ties" real, "win_pct" real ); Question: Which Ties is the highest one that has Losses smaller than 9, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_starts" ( "name" text, "period" text, "starts" real, "wins" real, "losses" real, "ties" real, "win_pct" real ); Question: Which Win % has a Name of tony rice, and Wins smaller than 28?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_starts" ( "name" text, "period" text, "starts" real, "wins" real, "losses" real, "ties" real, "win_pct" real ); Question: Which Wins have a Win % smaller than 0.8270000000000001, and a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_starts" ( "name" text, "period" text, "starts" real, "wins" real, "losses" real, "ties" real, "win_pct" real ); Question: How many Losses have a Name of blair kiel? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_starts" ( "name" text, "period" text, "starts" real, "wins" real, "losses" real, "ties" real, "win_pct" real ); Question: Which Losses have a Name of jimmy clausen? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: what is the number of attendance on june 24 <|assistant|> SELECT COUNT("atte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stanley_cup_final" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real ); Question: Attendance larger than 17,001, and a Date of june 15 had what deci...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stanley_cup_final" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real ); Question: Home of dallas happened on what date? <|assistant|> SELECT "date" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stanley_cup_final" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real ); Question: Home of buffalo happened on what date? <|assistant|> SELECT "date"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "stanley_cup_final" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real ); Question: Visitor of dallas, and a Date of june 12 had what highest attendan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men_indoor" ( "pos" real, "mark" text, "athlete" text, "venue" text, "date" text ); Question: On which date was the position less than 4 at Piraeus? <|assistant|> SELECT "date" FROM "men_indoor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: Which team had 64 laps and 13 points? <|assistant|> SELECT "team" FROM "race" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: How many laps did the team with a time/retired of +1.906 have? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What is the time/retired of the team with a grid of 14? <|assistant|> SELECT "tim...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What is the lowest grid of pkv racing, which had 13 points and less than 64 laps?...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What is the total grid of the team with a time/retired of +7.346? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What is the grid of pkv racing with the driver oriol servià? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "microsoft_specific_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text ); Question: When Cancelable of yes, bubble of yes and a Category of keyboard, wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "microsoft_specific_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text ); Question: When Bubbles of no, and a Category of miscellaneous, and a Type of pr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "microsoft_specific_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text ); Question: When Type was rowexit what was the Category? <|assistant|> SELECT "ca...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "microsoft_specific_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text ); Question: When Cancelable of yes, and a Type of drag, what was the Category? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "microsoft_specific_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text ); Question: When Event has Bubbles of yes, Cancelable of yes, Category of mouse, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "microsoft_specific_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text ); Question: Let's say Type is of datasetcomplete, what is the Attribute? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_civil_parishes_and_unparished_ar" ( "name" text, "status" text, "population" real, "district" text, "former_local_authority" text ); Question: What is the name of the parish that has a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_civil_parishes_and_unparished_ar" ( "name" text, "status" text, "population" real, "district" text, "former_local_authority" text ); Question: What district is the parish who had the So...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_civil_parishes_and_unparished_ar" ( "name" text, "status" text, "population" real, "district" text, "former_local_authority" text ); Question: What district is St Martin's Without paris...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "venue" text, "home" text, "guest" text, "score" text, "attendance" real ); Question: Who was the home team when FK kom were the guests? <|assistant|> SELECT "home" FROM "schedule" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "venue" text, "home" text, "guest" text, "score" text, "attendance" real ); Question: What venue was the match against the guest team, FK ibar, played at? <|assistant|> SELECT "venu...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "year" real, "home" text, "score" text, "away" text, "date" text, "venue" text ); Question: What's the Score with a Home of Scotland and Date of 24 February? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text ); Question: What round was john sutro, tackle, drafter with a pick lower than 79? <|assistant|> SELECT SUM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text ); Question: What pick was roger holdinsky? <|assistant|> SELECT "pick" FROM "nfl_draft" WHERE "player"='ro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text ); Question: When was chuck morris, back, drafted? <|assistant|> SELECT MIN("pick") FROM "nfl_draft" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text ); Question: What wss the average round drafted for xavier players? <|assistant|> SELECT AVG("round") FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "rank" text, "urban_sub_area" text, "population" text, "status" text, "council_area" text ); Question: What is the urban sub-area with an East Dunbartonshire council area and a po...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "rank" text, "urban_sub_area" text, "population" text, "status" text, "council_area" text ); Question: What is the council area for the Larkhall urban sub-area? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "rank" text, "urban_sub_area" text, "population" text, "status" text, "council_area" text ); Question: What is the population of the East Kilbride urban sub-area? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "rank" text, "urban_sub_area" text, "population" text, "status" text, "council_area" text ); Question: Which urban sub-area has a population of 16,140? <|assistant|> SELECT "urban...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What is the record of the cubs on July 19? <|assistant|> SELECT "record" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What was the score during the game that had more than 12,194 people in atten...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: What nationality is Northwood School (N.Y.)? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: What are incumbent William Vandever's results? <|assistant|> SELECT "result" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: Who was the first person elected from Democratic GAIN? <|assistant|> SELECT "firs...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: What was the result for incumbent Joseph McKenna who was first elected in 1884? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "california" ( "district" text, "incumbent" text, "party" text, "first_elected" text, "result" text ); Question: When was republican incumbent Joseph McKenna first elected? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "teams_and_venues" ( "team" text, "location" text, "venue" text, "capacity" real, "position_in_1992" text ); Question: what is the lowest capacity in grodno <|assistant|> SELECT MIN("capacity") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Score has January larger than 18 and a Record of 35–15–1? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_500_results" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); Question: How many starts are associated with an oldsmobile engine, 21 fini...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_500_results" ( "year" real, "chassis" text, "engine" text, "start" real, "finish" real, "team" text ); Question: What was the finish associated with under 11 starts, a honda engi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1960s" ( "year" text, "english_title" text, "original_title" text, "country" text, "director" text ); Question: what is the director of la ronde <|assistant|> SELECT "director" FROM "1960s" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "western_conference_finals" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real ); Question: What is the lowest number of people attending the game on ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "western_conference_finals" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real ); Question: What is the lowest number of people attending the game whe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "western_conference_finals" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real ); Question: What was the score of the game on May 26? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_entry_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); Question: What is the lowest round that Adam Wiesel was picked? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_entry_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); Question: What college, junior, or club team did defence player Rory Fitz...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "largest_margin_of_innings_victory" ( "score" text, "opposition" text, "venue" text, "city" text, "year" real ); Question: What was the score for 1911? <|assistant|> SELECT "score" FROM "largest...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: what country has tiger woods <|assistant|> SELECT "country" FROM "third_round" WHERE "player...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: what country has a score of 69-70-72=211? <|assistant|> SELECT "place" FROM "third_round" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: what player scored 69-72-68=209? <|assistant|> SELECT "player" FROM "third_round" WHERE "sco...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: What is the largest number for earnings for tom watson when ranked more than 2? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "willingen" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: Which 1st (m) is the lowest one that has a N...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "willingen" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: Which 2nd (m) is the lowest one that has a R...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "willingen" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: Which 2nd (m) has an Overall WC points (Rank...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "points" text, "position" text ); Question: What is the highest number of wins associ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" real, "wins" real, "poles" real, "points" text, "position" text ); Question: How many poles did he have in 2006 with u...