text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_13" (
"year" real,
"championship" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What was the winning score in the u.s. women's open that was won by 5 strokes?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round" (
"tie_no" real,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the tie number for the round against visiting opponent Chelsea?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round" (
"tie_no" real,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the tie number for the round against visiting opponent Newcastle United?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What date was Millwall the home team?
<|assistant|>
SELECT "date" FROM "fourth_r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What date was Leeds United the away team?
<|assistant|>
SELECT "date" FROM "four... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What was the score when Bolton Wanderers were the away team?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the total of events when the tournament was U.S. Open and the Top... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: How many total wins have 3 as the Top-35 and less than 5 cuts made?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the minimum Top-10 when the Open Championship was the tournament ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: With wins greater than 0 what is the minimum Top-10?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the total Top-25 when the events were less than 0?
<|assistant|>
... |
<|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: Who is the player from the United States with a score of 71-75=146?
<|assistant|>
SELECT "p... |
<|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: Who is the player with a 77-68=145 score?
<|assistant|>
SELECT "player" FROM "second_round"... |
<|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 is the country with a 76-68=144 score?
<|assistant|>
SELECT "country" FROM "second_rou... |
<|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: Who is the player in t8 place with a 75-71=146 score?
<|assistant|>
SELECT "player" FROM "s... |
<|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 is the to par of the player from the United States with a place of t1 and a 76-68=144 ... |
<|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 is the country of player lee trevino, who has a to par of +2?
<|assistant|>
SELECT "co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_holders" (
"speed" text,
"craft" text,
"pilot_s" text,
"location" text,
"date" text
);
Question: Who was the pilot at lake dumbleyung?
<|assistant|>
SELECT "pilot_s" FROM "record_holders... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "record_holders" (
"speed" text,
"craft" text,
"pilot_s" text,
"location" text,
"date" text
);
Question: How fast was the speed during the record set at Coniston Water that was piloted by Malcol... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "local_rivals" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
Question: Which Home has an Away of 1β1?
<|assistant|>
SELECT "home" FROM "local_rivals" WHERE "away"='1β... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "local_rivals" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
Question: Which Away has a Season of 2007β08?
<|assistant|>
SELECT "away" FROM "local_rivals" WHERE "seas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "local_rivals" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
Question: Which Season has an Away of 1β2?
<|assistant|>
SELECT "season" FROM "local_rivals" WHERE "away"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "local_rivals" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
Question: Which Away has a Home of 1β0?
<|assistant|>
SELECT "away" FROM "local_rivals" WHERE "home"='1β0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "local_rivals" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
Question: Which Season has a League of bezirksliga?
<|assistant|>
SELECT "season" FROM "local_rivals" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "local_rivals" (
"season" text,
"league" text,
"teams" text,
"home" text,
"away" text
);
Question: Which Season has a Home of 0β1?
<|assistant|>
SELECT "season" FROM "local_rivals" WHERE "home"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the Venue in 2003?
<|assistant|>
SELECT "venue" FROM "international_goals... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What Competition had a Score of 3β3?
<|assistant|>
SELECT "competition" FROM "inte... |
<|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: Name the lowest Round with Op... |
<|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: Name the total number of Roun... |
<|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 Event is in chandigarh ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "selections" (
"year" real,
"round" text,
"player" text,
"nationality" text,
"position" text,
"college_high_school_club" text
);
Question: Who is the player with a year later than 2007 and the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "selections" (
"year" real,
"round" text,
"player" text,
"nationality" text,
"position" text,
"college_high_school_club" text
);
Question: What is the earliest year of c position player gary b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "selections" (
"year" real,
"round" text,
"player" text,
"nationality" text,
"position" text,
"college_high_school_club" text
);
Question: What round is sf/sg player sly williams from a year a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "selections" (
"year" real,
"round" text,
"player" text,
"nationality" text,
"position" text,
"college_high_school_club" text
);
Question: What is the round of the pf position player from 1996... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Score has a Visitor of montreal can... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Points have an Attendance of 21,273... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Points have a Visitor of montreal c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Date has a Home of montreal canadie... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fifth_round_proper" (
"tie_no" real,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the score for the home team Notts County?
<|assistant|>
SELECT "score" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_nielsen_ratings" (
"episode" text,
"rating" real,
"share" real,
"viewers_millions" real,
"weekly_rank" text
);
Question: Which Episode has a Viewers (millions) larger than 11.26, a Weekly R... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_nielsen_ratings" (
"episode" text,
"rating" real,
"share" real,
"viewers_millions" real,
"weekly_rank" text
);
Question: Which Viewers (millions) has an Episode of "i'm not a good villain",... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank" real,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: What is the 2012 with a mini in 2009?
<|assistant|>
SELECT "2012" FROM "se... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank" real,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: What is the 2013 with virgin in 2009?
<|assistant|>
SELECT "2013" FROM "se... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank" real,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: What is the highest rank of the 2009 xbox?
<|assistant|>
SELECT MAX("rank"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"rank" real,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
);
Question: What is the 2010 with a rank higher than 15 and a 2011 maserati?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
Question: What is the record with 23 points and a visitor of Chicago?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "captaincy_record" (
"venue" text,
"span" text,
"matches" text,
"lost" text,
"tied" text
);
Question: What venue had a tie?
<|assistant|>
SELECT "tied" FROM "captaincy_record" WHERE "venue"='ven... |
<|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 score in Spain T3?
<|assistant|>
SELECT "score" FROM "second_round" WHERE "pla... |
<|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 score did Lee Trevino get in T1?
<|assistant|>
SELECT "score" FROM "second_round" WHER... |
<|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 player had the score 71-72=143 in Spain?
<|assistant|>
SELECT "player" FROM "second_r... |
<|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: When curtis strange had a to par +1, what was his score?
<|assistant|>
SELECT "score" 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: Who is the player for Zimbabwe?
<|assistant|>
SELECT "player" FROM "second_round" WHERE "co... |
<|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 country is Greg Norman from?
<|assistant|>
SELECT "country" FROM "second_round" WHERE ... |
<|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 country is Bob Tway from?
<|assistant|>
SELECT "country" FROM "second_round" WHERE "pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season" (
"driver" text,
"points" real,
"races" real,
"wins" text,
"second" text,
"third" text
);
Question: What is the number of wins when the number of third was 1, points were le... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_matches" (
"date" text,
"team_num1" text,
"res" text,
"team_num2" text,
"competition" text,
"attendance" real
);
Question: What was the result for the friendly match competition?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "notable_matches" (
"date" text,
"team_num1" text,
"res" text,
"team_num2" text,
"competition" text,
"attendance" real
);
Question: What was the team #1 for the match that had a result of 0-3?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "puerto_rico" (
"2012_rank" real,
"municipio" text,
"2010_land_area" text,
"2010_population_density" text,
"ansi" real,
"location" text
);
Question: what is the 2010 population density for mun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award_giving_body" text,
"category" text,
"nominated_for" text,
"result" text
);
Question: What's the category for the tween academy: class of 2012 nomin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award_giving_body" text,
"category" text,
"nominated_for" text,
"result" text
);
Question: How many years was famas awards the award giving body?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award_giving_body" text,
"category" text,
"nominated_for" text,
"result" text
);
Question: What's the result for the category of best actor in a supporti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" text
);
Question: Which Record has a Date of december 17?
<|assistant|>
SELECT "record" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" text
);
Question: Which Streak has a Team of new york knicks?
<|assistant|>
SELECT "streak" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" text
);
Question: Which Date has a Record of 21β10?
<|assistant|>
SELECT "date" FROM "season_sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" text
);
Question: Which Team has a Record of 17β8?
<|assistant|>
SELECT "team" FROM "season_sch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" text
);
Question: Which Date has a Score of 102β113?
<|assistant|>
SELECT "date" FROM "season_s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" text
);
Question: Which Game has a Streak of loss 1, and a Score of 110β111?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
Question: What is the name of the player who is Sco and moving to greenock morton... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
Question: Where is rory loy moving to?
<|assistant|>
SELECT "moving_to" FROM "out... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "out" (
"nat" text,
"name" text,
"moving_to" text,
"type" text,
"transfer_window" text,
"transfer_fee" text
);
Question: What is the transfer fee for rory loy?
<|assistant|>
SELECT "transfer_f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_standings" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
Question: What is the date of the game with toronto as the visitor?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_standings" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
Question: What is the date of the game with less than 35 points and chicago as the h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_standings" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
Question: What is the date of the game with pittsburgh as the home team and boston a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_standings" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
Question: What is the record of the game with 35 points and pittsburgh as the home t... |
<|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 place did bobby wadkins come in?
<|assistant|>
SELECT "place" FROM "first_round" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real
);
Question: What is the lowest Lane, when Mark is 7.66?
<|assistant|>
SELECT MIN("lane") FROM "final" WHERE "mark"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real
);
Question: What is Mark, when React is less than 0.148?
<|assistant|>
SELECT "mark" FROM "final" WHERE "react"<0.1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real
);
Question: What is the sum of Land, when React is greater than 0.217, and when Name is Yoel HernΓ‘ndez?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"name" text,
"country" text,
"mark" text,
"react" real
);
Question: What is Mark, when Lane is less than 5, and when React is 0.217?
<|assistant|>
SELECT "mark" FROM "fina... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"game" real,
"date" text,
"team" text,
"score" text,
"record" text,
"streak" text
);
Question: What was the record following game 67?
<|assistant|>
SELECT "record" FROM "se... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: What day in February had an opponent of @ Colorado Rockies?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text
);
Question: What was the score of the game with a record of 18-22-13?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "runners_up_17" (
"date" real,
"tournament" text,
"surface" text,
"partnering" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which Opponent in the final has a Score of 6β3, 3β6... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "runners_up_17" (
"date" real,
"tournament" text,
"surface" text,
"partnering" text,
"opponent_in_the_final" text,
"score" text
);
Question: Which Tournament has a Surface of carpet, and a Dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "commanders_in_chief_commanders" (
"name" text,
"branch" text,
"term_began" text,
"term_ended" text,
"time_in_office" text
);
Question: What time in office does the U.S. Navy have?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "commanders_in_chief_commanders" (
"name" text,
"branch" text,
"term_began" text,
"term_ended" text,
"time_in_office" text
);
Question: When did the term end for the U.S. Marine Corps?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_energy_intensity_progression_by_ye" (
"country" text,
"unit_p_koe_05" text,
"2006" real,
"2007" real,
"2008" real,
"2009" real
);
Question: What is the 2006 figure for Argentina when 20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_energy_intensity_progression_by_ye" (
"country" text,
"unit_p_koe_05" text,
"2006" real,
"2007" real,
"2008" real,
"2009" real
);
Question: What is the 2009 average if 2008 is less than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_energy_intensity_progression_by_ye" (
"country" text,
"unit_p_koe_05" text,
"2006" real,
"2007" real,
"2008" real,
"2009" real
);
Question: What is the 2009 average when the 2007 averag... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: How many gains were there for the player who had a loss greater than 57 and a long less than 55?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rushing" (
"name" text,
"gain" real,
"loss" real,
"long" real,
"avg_g" real
);
Question: What is the lowest Loss for the player named total that has a long greater than 55?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What nationality is Kentucky and the player Tayshaun Prince?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What is the nationality of Duke?
<|assistant|>
SELECT "nationality" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What was the nationality of a point guard position in 1999-2001?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "p" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_club_team" text
);
Question: What is the position of Tayshaun Prince?
<|assistant|>
SELECT "position... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_princesses_royal" (
"order" real,
"name_dates" text,
"princess_royal_from_date_to_date" text,
"parent" text,
"date_married" text,
"husband_dates" text
);
Question: Who was the parent ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.