text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1966_season_finished_1st_54pts_out_of_19" ( "rider" text, "matches" real, "rides" real, "bonus_pts" real, "total_points" real ); Question: What is the smallest number of matches with Bonus Pts ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_from_2004" ( "date" real, "category" text, "team" text, "rider_1" text, "rider_2" text ); Question: Which category earlier than 2006 has Bart Brentjens as rider 2? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_from_2004" ( "date" real, "category" text, "team" text, "rider_1" text, "rider_2" text ); Question: How many dates does the ladies category correspond to Rothaus-Cube? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners_from_2004" ( "date" real, "category" text, "team" text, "rider_1" text, "rider_2" text ); Question: Which category has a team of Cannondale Vredestein? <|assistant|> SELECT "category" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the qual with a rank 9? <|assistant|> SELECT "qual" FROM "indy_500_res...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the finish in 1956? <|assistant|> SELECT "finish" FROM "indy_500_resul...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the finish with 200 laps and a start of 3? <|assistant|> SELECT "finis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the qual with 200 laps and a rank of 27? <|assistant|> SELECT "qual" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); Question: What is the rank with a 14 finish? <|assistant|> SELECT "rank" FROM "indy_500_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: When did Deng Xuan first win Wom...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: When did Julie Still first win W...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the lowest cuts made of the Masters tournament, which had a top-25 less than 0? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the highest number of wins a tournament with 1 cuts made, a top-25 less than 1, an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the average number of events the Masters tournament, which has more than 0 top-25,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_25" real, "events" real, "cuts_made" real ); Question: What is the total number of top-25 a tournament with less than 2 events has? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who won Women's doubles when Nik...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who won Women's doubles when Zen...
<|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, "record" text ); Question: What was the date of the game that had a loss of Gott (2-7)? <|assistant|> SELECT "date" FROM "ga...
<|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, "record" text ); Question: Who was the opponent at the game when the record was 54-58? <|assistant|> SELECT "opponent" FROM ...
<|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, "record" text ); Question: What was the score of the game when the record was 59-65? <|assistant|> SELECT "score" FROM "game...
<|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, "record" text ); Question: Who was the opponent at the game that had a loss of Caldwell (10-11)? <|assistant|> SELECT "oppon...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which opponent had a time of ...
<|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" text, "record" text ); Question: What was the date of the game with the Kansas City Royals when the Blue Jays...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text ); Question: Which catalogue is from the UK region, and is on vinyl, and was dated in...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text ); Question: What region has a bronze label and a catalogue of 202 876-270? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text ); Question: Which label is from the Germany region? <|assistant|> SELECT "label" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text ); Question: What label has brol 34531 as it's catalogue? <|assistant|> SELECT "label...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text ); Question: Which label has UK for its region, is on a CD, and is dated from 1986? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history_and_variations" ( "date" text, "region" text, "label" text, "catalogue" text, "format" text ); Question: Which catalogue has essential, castle music as it's label? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "120_million_to_199_million_records" ( "artist" text, "country_of_origin" text, "period_active" text, "release_year_of_first_charted_record" real, "genre" text, "claimed_sales" text ); Questio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Name the pick number for bill atessis <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Name the total number of overall for defensive tac...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "divided_in_countries" ( "country" text, "2008_list" real, "2009_list" real, "2010_list" real, "2011_list" real, "2012_list" real ); Question: What is the 2012-list rank of a country with the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which engine has daimler benz ag as an entrant? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: In which years was the to par +6? <|assistant|> SELECT "year_s_won" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: In 1991, what was the lowest total? <|assistant|> SELECT MIN("total")...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What are the total lanes that have a rank larger than 22? <|assistant|> SELECT SUM("l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: Which one has a rank bigger than 2, lane of 1, and is from Hong Kong? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What rank is from Japan, has a lane smaller than 7 and a heat smaller than 3? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managers" ( "manager" text, "years" text, "games" real, "wins" real, "losses" real ); Question: What was Jim Hoff's sum of losses and a wins smaller than 12? <|assistant|> SELECT SUM("losses") ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managers" ( "manager" text, "years" text, "games" real, "wins" real, "losses" real ); Question: What was the average of games that were one in 1978 that were smaller than 141? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managers" ( "manager" text, "years" text, "games" real, "wins" real, "losses" real ); Question: What was the sum of Richie Hebner winning games that were smaller 34? <|assistant|> SELECT SUM("g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managers" ( "manager" text, "years" text, "games" real, "wins" real, "losses" real ); Question: What was the average of wins with manager George Scherger smaller than 3 and losses smaller than ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1994_95_season_as_a_two_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1994_95_season_as_a_two_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1994_95_season_as_a_two_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); Question:...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What Country has Player Ky Laffoon? <|assistant|> SELECT "country" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What Player is from the Country United States and Money ($) of 356? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What Player has a To par of +1 and the Score 75-70-71-73=289? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals_29_12_17" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the outcome for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_finals_29_12_17" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the outcome of t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many golds have a Total of 11, and a Bronze smaller than 3? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How many golds have a Bronze of 0, a Total larger than 1, a Nation of chad, and a Sil...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the smallest silver with a Gold of 1, and a Nation of lithuania? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "total" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the total bronze with a Gold larger than 1, a Rank of 2, and a Silver smaller...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Which Visiting Team is on december 23? <|assistant|> SELECT "visiting_team" FROM "20...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Which Host Team has Final Score of 42-23? <|assistant|> SELECT "host_team" FROM "200...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: When did Final Score of 31-7 happen? <|assistant|> SELECT "date" FROM "2000" WHERE "...
<|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 of the Blue Jays game when their record was 75-68 and the...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); Question: Which Tournament in 2010 also has Grand Slam tou...
<|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 average attendance when the New York Mets were opponents with a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What visiting team played on October 18? <|assistant|> SELECT "visiting_team" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What visiting team played at 3com park on October 7? <|assistant|> SELECT "visiting_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Which host team won on a final scoreline of 13-10? <|assistant|> SELECT "host_team" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: In what stadium did a game result in a final scoreline reading 27-34? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: In the game in which the Jacksonville Jaguars were hosts, what was the name of the v...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2001" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Which visiting team wound up with a final score of 18-40? <|assistant|> SELECT "visi...
<|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, "game_site" text, "record" text, "attendance" real ); Question: Name the sum of attendacne for 16 weeks <|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, "game_site" text, "record" text, "attendance" real ); Question: Name the result for week less than 7 and game sites of ...
<|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, "game_site" text, "record" text, "attendance" real ); Question: Name the result for week 7 <|assistant|> SELECT "result...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing_sortable_options" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" text ); Question: How many yards lost by the player with more gained than 51 and average/g of 3.6? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rushing_sortable_options" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" text ); Question: What are the gains for the player with average of 26.8 and lost yard fewer than 13? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: When did Mathieu play against Flavio Cipolla? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: Which tournament had a final score of 6–3, 6–2? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: On which surface did Mathieu play against Antonio Veić? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: When did Mathieu play against Antonio Veić? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); Question: When did Mathieu play against Andrey Golubev? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locations" ( "park" text, "tower_height" text, "drop_height" text, "speed" text, "model" text, "opened" text, "height_requirement" text ); Question: What opened with a drop height of 272fee...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locations" ( "park" text, "tower_height" text, "drop_height" text, "speed" text, "model" text, "opened" text, "height_requirement" text ); Question: What was the speed of 200feet Giant Drop...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "locations" ( "park" text, "tower_height" text, "drop_height" text, "speed" text, "model" text, "opened" text, "height_requirement" text ); Question: What park opened in 1999? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Name the record for detroit and decision of denis <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); Question: Name the average attendance with dallas visitor <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: How close to par was Tom Kite when he played? <|assistant|> SELECT "to_par" FROM "second_ro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: Which of the countries showed a score of 71-72=143? <|assistant|> SELECT "country" FROM "se...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: Which country watch Tom Watson at t9 score 72-72=144? <|assistant|> SELECT "country" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); Question: What was the final score when the player was an e to par? <|assistant|> SELECT "score" FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "college_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text ); Question: What is the name of the team that has 307 attempts? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "college_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text ); Question: What is the name of the team that has 1,317 attempts? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "college_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text ); Question: What year was 2,242 yards achieved? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "college_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text ); Question: Which team has a 59.8% completion rate? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" text ); Question: Which year has has a Engine of maserati straight-6? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" text ); Question: What is the Point of Chassis of Lancia d50 in 1954 <|assistant...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What is on at 8:00 before the 9:00 showing of Chuck? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What show comes on at 9:00 on the channel that shows the Insider at 7:00? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: On the channel with The Biggest loser at 8:00, what's on at 7:30? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: What's on at 7:30 before the 9:00 showing of the Tudors? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tuesday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); Question: If Gossip Girl is on at 7:30, what shows at 9:00? <|assistant|> SELECT "9_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_average_in_a_career" ( "matches" real, "innings" real, "not_out" real, "high_score" text, "runs" real, "average" real ); Question: What is the match total for a score over 299 and under ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_average_in_a_career" ( "matches" real, "innings" real, "not_out" real, "high_score" text, "runs" real, "average" real ); Question: What is the high run total associated with a high score...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); Question: Which 2nd leg has a 1st leg of 1-1 and is Team 1 djoliba ac? <|assistant|> SELECT "2nd_leg"...