text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: What race did Meo Constantini win at the circuit o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text ); Question: On what date did Aymo Maggi win the Rome Grand Pri...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text ); Question: Name the season outcome for smyrna <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text ); Question: Name the school for eagles <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text ); Question: Name the school for Season Outcome of los...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text ); Question: Name the division record for riders <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text ); Question: Name the team for school of milford <|ass...
<|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: Name the average points for chassis of stevens and year less t...
<|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: Name the least points for chassis of kurtis kraft 500a <|assis...
<|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: Name the total number of year for chassis of kurtis kraft 4000...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_season" ( "week" real, "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Who was the visiting team on weeks under 12 and at Sports Auth...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_season" ( "week" real, "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: Who was the visiting team at Raymond James Stadium? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2011_season" ( "week" real, "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); Question: What date had the Houston Texans as visitors? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_in_minnesota_state_elections" ( "year" real, "office" text, "candidate" text, "popular_votes" real, "percentage" text ); Question: Name the year with percentage of 9.66% <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_in_minnesota_state_elections" ( "year" real, "office" text, "candidate" text, "popular_votes" real, "percentage" text ); Question: Name the total number of popular votes for mn attorney...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_in_minnesota_state_elections" ( "year" real, "office" text, "candidate" text, "popular_votes" real, "percentage" text ); Question: Name the average popular votes in years after 1990 wit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results_in_minnesota_state_elections" ( "year" real, "office" text, "candidate" text, "popular_votes" real, "percentage" text ); Question: Name the least popular votes for year less than 1994 a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What United States player holds the place of t8?` <|assistant|> SELECT "player" FROM "first_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What country of argentina has the To par of 68? <|assistant|> SELECT "to_par" FROM "first_ro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What is the To par and holds the t8 place of the United States player Tiger Woods? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: What country does miguel ángel jiménez player for and has a score of 69? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "racelines" ( "date" text, "track" text, "race" text, "purse" text, "finish" text, "time" text, "last_1_4" real, "odds" text, "driver" text, "trainer" text ); Question: What is the dat...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1998_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: Which Year has a nominated outstanding actor in a musical? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1998_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: Which Award has a nominated, and outstanding choreography? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1998_broadway_revival" ( "year" real, "award" text, "category" text, "nominee" text, "result" text ); Question: Which Award has best performance by a leading actor in a musical <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players_with_100_or_more_competitive_app" ( "name" text, "position" text, "club_career" text, "league_apps" real, "league_goals" real, "total_apps" real, "total_goals" real ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players_with_100_or_more_competitive_app" ( "name" text, "position" text, "club_career" text, "league_apps" real, "league_goals" real, "total_apps" real, "total_goals" real ); Question: Wha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "group" text, "award" text, "film_show" text, "result" text ); Question: What is the total number of Years that has the Group, Method Fest Independent Fil...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "group" text, "award" text, "film_show" text, "result" text ); Question: What is the average Year that has the Group, Logie Award, the Award, Most Outstan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "group" text, "award" text, "film_show" text, "result" text ); Question: Before 2012, which Group has the Result, nominated, the Film/Show, East West 101,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "group" text, "award" text, "film_show" text, "result" text ); Question: After 2008, which Group has the Result, nominated, and the Award, Best Lead Actor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "group" text, "award" text, "film_show" text, "result" text ); Question: What is the Award, when the Film/Show is East West 101, and when the year is befo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "group" text, "award" text, "film_show" text, "result" text ); Question: What is the Film/Show, when the Year is 2010? <|assistant|> SELECT "film_show" FR...
<|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 year is that has a Entrant of belond equa-flow / calif. ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: which election year has henry wyndham as the 2nd member and walte...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: what election year has 2nd party conservative with 2nd member hen...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: what is the 1st pary when the second is whig? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); Question: what is the election year with henry wyndham as 2nd member and wa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "twenty20_internationals" ( "player" text, "wkts" real, "runs" real, "econ" real, "ovrs" real ); Question: If the Ovrs is less than 2, what's the average in Wkts? <|assistant|> SELECT AVG("wkts"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "twenty20_internationals" ( "player" text, "wkts" real, "runs" real, "econ" real, "ovrs" real ); Question: If Adam Voges had less than 28.5 Ovrs, what are his highest Wkts? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_statistics" ( "year" text, "team" text, "t_tkl" real, "solo" real, "sacks" real, "pass_def" real ); Question: How many sacks have 2006 as the year, and a solo less than 62? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_statistics" ( "year" text, "team" text, "t_tkl" real, "solo" real, "sacks" real, "pass_def" real ); Question: What is the average pass def that has green bay packers as the team,...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_statistics" ( "year" text, "team" text, "t_tkl" real, "solo" real, "sacks" real, "pass_def" real ); Question: How many sacks have 72 as the solo and a TTkl less than 112? <|assis...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "professional_statistics" ( "year" text, "team" text, "t_tkl" real, "solo" real, "sacks" real, "pass_def" real ); Question: How many TTkl have 2004 as the year, and a pass def greater than 5? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "central_otago_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the highest decile of Tarras school, which...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "central_otago_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the decile of the school with a roll large...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "central_otago_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); Question: What is the area of Cromwell Primary school, which...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling_figures" ( "player" text, "overs" real, "figures" text, "opponent" text, "ground" text ); Question: Which player has figures of 4/14? <|assistant|> SELECT "player" FROM "best_bowli...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling_figures" ( "player" text, "overs" real, "figures" text, "opponent" text, "ground" text ); Question: How many overs occurred at Waca Ground against Queensland? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling_figures" ( "player" text, "overs" real, "figures" text, "opponent" text, "ground" text ); Question: At which ground did Dirk Nannes have a figure of 4/23? <|assistant|> SELECT "gro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_bowling_figures" ( "player" text, "overs" real, "figures" text, "opponent" text, "ground" text ); Question: Who was the opponent when Steven Smith had 3.3 overs? <|assistant|> SELECT "oppo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "biggest_losses" ( "margin" real, "score" text, "opponent" text, "venue" text, "year" real ); Question: Name the average year for brookvale oval and margin more than 46 <|assistant|> SELECT AVG(...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "biggest_losses" ( "margin" real, "score" text, "opponent" text, "venue" text, "year" real ); Question: Name the most year for brookvale oval <|assistant|> SELECT MAX("year") FROM "biggest_losse...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "biggest_losses" ( "margin" real, "score" text, "opponent" text, "venue" text, "year" real ); Question: Name the average year for manly-warringah sea eagles <|assistant|> SELECT AVG("year") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_19_10_9" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Who is the partner with a score of 6–1, 6–4? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "league_statistics" ( "season" text, "overall_spectators" real, "per_game" real, "best_supported_club" text, "spectators_game" real, "top_goal_scorer" text, "goals" real ); Question: what is...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "sport" text, "competition_name" text, "competing_entities" text, "age_groups" text, "held_every" text ); Question: What are the age groups for the Big League World Series? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "sport" text, "competition_name" text, "competing_entities" text, "age_groups" text, "held_every" text ); Question: How often is the table tennis competition held? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "men" ( "sport" text, "competition_name" text, "competing_entities" text, "age_groups" text, "held_every" text ); Question: How often is the cricket competition held? <|assistant|> SELECT "held_...
<|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 attendance of the Blue Jays' game when their record was 47-43? ...
<|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 year had a Cosworth V8 engine and 12 points? <|assistant...
<|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: How many points did the ATS Wheels entrant with an ATS D2 chas...
<|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 ma...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); Question: Which co drivers are 3rd in Joest r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: When was radek necas with less than 2.04 height born? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: How tall was the member of Nymburk, who was born in 1982? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); Question: What Kerry number does Taylor county have with ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); Question: What is the smallest bush# with 66.0% bush and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "west_indies_in_australia" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: Who was the captain of the away team at Adelaide Oval? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "west_indies_in_australia" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: What is the final score at Melbourne Cricket Ground? <|assistant|> SE...
<|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: Name the score for april 28 <|assistant|> SELECT "score" FROM "game_log" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the average Heat for anjelika solovieva? <|assistant|> SELECT AVG("heat") FROM "heats" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); Question: What is the average lane with Netherlands Antilles Nationality? <|assistant|> SELECT AVG("lane") FRO...
<|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 of the year with start 5? <|assistant|> SELECT "finish" FRO...
<|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 in 1940? <|assistant|> SELECT "rank" FROM "indy_500_results" ...
<|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 highest laps of the year when the rank was 14? <|assistant|> SELEC...
<|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 year had 134 laps? <|assistant|> SELECT "year" FROM "indy_500_results" WH...
<|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 when there was more than 192 laps and a qual of 135.736? <|...
<|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: Witch opponent has a loss of Glynn (0-2)? <|assistant|> SELECT "opponent" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_iwa_champions" ( "championship" text, "champion_s" text, "previous_champion_s" text, "date_won" text, "location" text ); Question: Who was the previous champion of the title won on July...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_iwa_champions" ( "championship" text, "champion_s" text, "previous_champion_s" text, "date_won" text, "location" text ); Question: When did Bonecrusher win the championship at Bayamón, ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_iwa_champions" ( "championship" text, "champion_s" text, "previous_champion_s" text, "date_won" text, "location" text ); Question: Who is the champion of the title previously held by La...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_iwa_champions" ( "championship" text, "champion_s" text, "previous_champion_s" text, "date_won" text, "location" text ); Question: Which championship was won on July 7, 2010? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_record" ( "race" text, "dist_f" real, "course" text, "class" text, "prize_k" real, "odds" text, "runners" real, "placing" real, "margin" real, "time" text, "jockey" text, "tra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_record" ( "race" text, "dist_f" real, "course" text, "class" text, "prize_k" real, "odds" text, "runners" real, "placing" real, "margin" real, "time" text, "jockey" text, "tra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_record" ( "race" text, "dist_f" real, "course" text, "class" text, "prize_k" real, "odds" text, "runners" real, "placing" real, "margin" real, "time" text, "jockey" text, "tra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_record" ( "race" text, "dist_f" real, "course" text, "class" text, "prize_k" real, "odds" text, "runners" real, "placing" real, "margin" real, "time" text, "jockey" text, "tra...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "name" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What place has a To par of +4 and a score of 74-70-74-74=292? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "name" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What place in the United States has a To par of e? <|assistant|> SELECT "place...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_round" ( "place" text, "name" text, "country" text, "score" text, "to_par" text, "money" real ); Question: What is the To par for the place in the United States and a score of 74-69-71-...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "competition_record" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: What Venue is listed that has a Year smaller than 2005 and a Position of 10th (sf...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "competition_record" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: What's the average Year for the Position of 7th (sf)? <|assistant|> SELECT AVG("y...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "competition_record" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: What's the highest Year for the Venue of Santiago De Chile and the Event of 800 m...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "competition_record" ( "year" real, "competition" text, "venue" text, "position" text, "event" text ); Question: What Venue has a Position of 12th (sf)? <|assistant|> SELECT "venue" FROM "compet...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which engine has an Entrant of team lotus, and a Year larger t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: How many points have a Year larger than 1966? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the smallest number of points with an Engine of climax...
<|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: How many points did Team Rothmans International have after 197...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); Question: What Nationality of the person who has a Rank of 4 <|assistant|> SELECT "nationality" FROM "se...
<|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, "stadium" text ); Question: Name the score on october 14 <|assistant|> SELECT "score" ...