sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT grid FROM table_name_84 WHERE driver = "jacques villeneuve"
CREATE TABLE INST, Here is a database schema( table schema);
Jacques Villeneuve was on what grid?It is not neccessary to use all the tables.
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance + T3.balance LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
Find the name of account that has the lowest total checking and saving balance.It is not neccessary to use all the tables.
SELECT AVG(round) FROM table_name_72 WHERE pick = "16"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average round of the number 16 pick?It is not neccessary to use all the tables.
SELECT COUNT Bronze FROM table WHERE Rank < 2 AND Gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
How many bronze medals for the nation ranked above 2, and under 0 golds?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Away team = ipswich town
CREATE TABLE INST, Here is a database schema( table schema);
What is the score for the away team, Ipswich Town?.It is not neccessary to use all the tables.
SELECT Village (German) FROM table WHERE Percent of Slovenes 1951 = 96.9%
CREATE TABLE INST, Here is a database schema( table schema);
Provide me with the name of the village (German) where there is 96.9% Slovenes in 1951. .It is not neccessary to use all the tables.
SELECT MIN(total) FROM table_name_90 WHERE bronze < 7 AND silver = 1 AND rank > 9
CREATE TABLE INST, Here is a database schema( table schema);
What is the Total number of medals for the Nation with 7 or less Bronze medals and 1 Silver medal with a Rank of 9 or larger?It is not neccessary to use all the tables.
SELECT Condition FROM table WHERE Bleeding time = Unaffected AND Prothrombin time = Prolonged
CREATE TABLE INST, Here is a database schema( table schema);
what's the condition with bleeding time being unaffected and prothrombin time being prolonged.It is not neccessary to use all the tables.
SELECT wheels FROM table_name_33 WHERE built = 1920
CREATE TABLE INST, Here is a database schema( table schema);
Which wheels were built 1920?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE To par > 3 AND Year(s) won = 1979
CREATE TABLE INST, Here is a database schema( table schema);
Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1.It is not neccessary to use all the tables.
SELECT game FROM table_name_19 WHERE opponent = "miami heat"
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the Game that has the Opponent of miami heat?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_8 WHERE date = "april 24, 1999"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent on april 24 1999?It is not neccessary to use all the tables.
SELECT partner FROM table_name_40 WHERE style = "jazz" AND results = "bottom three"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the partner for the jazz piece in the bottom three?It is not neccessary to use all the tables.
SELECT MAX(sales), _receipts, _or_shipments__$1, 000 AS _ FROM table_23802822_1 WHERE establishments = 49319
CREATE TABLE INST, Here is a database schema( table schema);
If the establishment is 49319 what is the sales receipts or shipments maximum amount?It is not neccessary to use all the tables.
SELECT round FROM table_13328239_4 WHERE venue = "Knowsley Road" AND result = "Lose"
CREATE TABLE INST, Here is a database schema( table schema);
What round was held at Knowsley Road resulting in a lose.It is not neccessary to use all the tables.
SELECT yacht FROM table_1858574_3 WHERE sail_number = "AUS70"
CREATE TABLE INST, Here is a database schema( table schema);
On what yacht was the sail number aus70?It is not neccessary to use all the tables.
SELECT type FROM table_name_23 WHERE year_s_ = "1982"
CREATE TABLE INST, Here is a database schema( table schema);
what is the type when the year(s) is 1982?It is not neccessary to use all the tables.
SELECT title FROM table_name_55 WHERE story = "martin worth"
CREATE TABLE INST, Here is a database schema( table schema);
What was the title of the episode that martin worth wrote the story for?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Date = december 3, 1995
CREATE TABLE INST, Here is a database schema( table schema);
Which one took place on December 3, 1995?.It is not neccessary to use all the tables.
SELECT tries_against FROM table_name_29 WHERE points_against = "961"
CREATE TABLE INST, Here is a database schema( table schema);
How many tries against were there when there was 961 points against?It is not neccessary to use all the tables.
SELECT COUNT Eliminated FROM table WHERE Safe = Kelly and Brendan
CREATE TABLE INST, Here is a database schema( table schema);
What is the number eliminated when kelly and brendan are safe?.It is not neccessary to use all the tables.
SELECT location_attendance FROM table_17058116_5 WHERE date = "November 21"
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game that took place in November 21 located and how many attended?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_53 WHERE save = "smith (26)"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent that also has a save of Smith (26)?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Opposing Teams = wales
CREATE TABLE INST, Here is a database schema( table schema);
What day was Wales the opposing team?.It is not neccessary to use all the tables.
SELECT Home/Away FROM table WHERE Date = february 29, 2008
CREATE TABLE INST, Here is a database schema( table schema);
What home/away game is on February 29, 2008?.It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_35 WHERE home_team = "north melbourne"
CREATE TABLE INST, Here is a database schema( table schema);
What was the away team's score in the game against North Melbourne?It is not neccessary to use all the tables.
SELECT MIN Pick FROM table WHERE Position = ss, p AND Team = minnesota twins
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest pick of a player for the SS, P Position for the Minnesota Twins?.It is not neccessary to use all the tables.
SELECT years FROM table_name_30 WHERE ties > 1 AND wins < 311 AND losses = 174
CREATE TABLE INST, Here is a database schema( table schema);
What years did the person coach who had more than 1 tie mess than 311 wins and 174 losses?It is not neccessary to use all the tables.
SELECT No. 10 FROM table WHERE No. 8 = jackson AND No. 9 = jayden
CREATE TABLE INST, Here is a database schema( table schema);
Name the No. 10 which has a No. 8 of jackson, and a No. 9 of jayden?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Position = guard/forward
CREATE TABLE INST, Here is a database schema( table schema);
Which player is in the position of Guard/Forward?.It is not neccessary to use all the tables.
SELECT score FROM table_name_59 WHERE opponent = "scoville jenkins"
CREATE TABLE INST, Here is a database schema( table schema);
what was the score when scoville jenkins was the opponent?It is not neccessary to use all the tables.
SELECT Away team score FROM table WHERE Crowd > 15,322 AND Away team = richmond
CREATE TABLE INST, Here is a database schema( table schema);
When the crowd was over 15,322 in Richmond what did the Away team score?.It is not neccessary to use all the tables.
SELECT title FROM table_name_96 WHERE developer = "battlecry studios"
CREATE TABLE INST, Here is a database schema( table schema);
Which title was developed by Battlecry Studios?It is not neccessary to use all the tables.
SELECT nfl_team FROM table_name_30 WHERE draft_year = 1978
CREATE TABLE INST, Here is a database schema( table schema);
In 1978 what is the NFL team?It is not neccessary to use all the tables.
SELECT COUNT Game FROM table WHERE Score = W 112-94
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of games for w 112-94.It is not neccessary to use all the tables.
SELECT Surface FROM table WHERE Year = 1971
CREATE TABLE INST, Here is a database schema( table schema);
What was the court surface on year 1971?.It is not neccessary to use all the tables.
SELECT Pronunciation spelled free FROM table WHERE Pronunciation spelled checked = ɑ
CREATE TABLE INST, Here is a database schema( table schema);
What is Pronunciation Spelled Free, when Pronunciation Spelled Checked is "ɑ"?.It is not neccessary to use all the tables.
SELECT jockey FROM table_name_74 WHERE horse = "eight belles"
CREATE TABLE INST, Here is a database schema( table schema);
What is Jockey when Horse is "Eight Belles"?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Event = 1 km time trial
CREATE TABLE INST, Here is a database schema( table schema);
what is the record when the event is 1 km time trial?.It is not neccessary to use all the tables.
SELECT place FROM table_name_89 WHERE score = 71 AND country = "united states"
CREATE TABLE INST, Here is a database schema( table schema);
When the score is 71 and the player is from United States what is the place?It is not neccessary to use all the tables.
SELECT points FROM table_13758945_3 WHERE tries_for = "64"
CREATE TABLE INST, Here is a database schema( table schema);
what's the points with tries for being 64It is not neccessary to use all the tables.
SELECT place FROM table_name_29 WHERE player = "tom lehman"
CREATE TABLE INST, Here is a database schema( table schema);
In what place did Tom Lehman finish?It is not neccessary to use all the tables.
SELECT High rebounds FROM table WHERE High points = Jamal Crawford (20)
CREATE TABLE INST, Here is a database schema( table schema);
What are the high rebounds in the jamal crawford (20) high points?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Venue = n/a AND Team 2 = yokohama f. marinos
CREATE TABLE INST, Here is a database schema( table schema);
Team 2 of Yokohama F. Marinos in the n/a venue had what score?.It is not neccessary to use all the tables.
SELECT venue FROM table_name_81 WHERE attendance = "47,678"
CREATE TABLE INST, Here is a database schema( table schema);
At what Venue was the Attendance 47678?It is not neccessary to use all the tables.
SELECT winning_score FROM table_name_42 WHERE date = "aug 26, 1973"
CREATE TABLE INST, Here is a database schema( table schema);
Which Winning score has a Date of aug 26 1973?It is not neccessary to use all the tables.
SELECT SUM(shirt_no) FROM table_name_6 WHERE birth_date = "8 november 1980" AND weight < 93
CREATE TABLE INST, Here is a database schema( table schema);
Birth Date of 8 November 1980 and a Weight smaller than 93 has what sum of a shirt number?It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Event = independent event AND Method = submission (peruvian necktie)
CREATE TABLE INST, Here is a database schema( table schema);
What is Record, when Event is "Independent Event", and when Method is "Submission (Peruvian Necktie)"?.It is not neccessary to use all the tables.
SELECT "High assists" FROM table_73461 WHERE "Series" = '0-1'
CREATE TABLE INST, Here is a database schema( table schema);
When 0-1 is the series who has the highest amount of assists?It is not neccessary to use all the tables.
SELECT airport FROM table_name_30 WHERE country = "russia" AND iata = "krr"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the airport located in Russia with an IATA of KRR?It is not neccessary to use all the tables.
SELECT sail_number FROM table_14882588_3 WHERE yacht = "Yendys"
CREATE TABLE INST, Here is a database schema( table schema);
What are all sail numbers for the yacht Yendys?It is not neccessary to use all the tables.
SELECT AVG Grid FROM table WHERE Driver = luca badoer AND Laps > 69
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the average Grid for driver of Luca Badoer and Laps more than 69.It is not neccessary to use all the tables.
SELECT Digital channel FROM table WHERE Network = nbc
CREATE TABLE INST, Here is a database schema( table schema);
Network of nbc is what digital channel?.It is not neccessary to use all the tables.
SELECT "Title" FROM table_31037 WHERE "No. in series" = '29'
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of episode number 29 in the series?It is not neccessary to use all the tables.
SELECT name FROM table_name_76 WHERE year = "1997–99"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Name for 1997–99?It is not neccessary to use all the tables.
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND date_day.day_number = 2 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
CREATE TABLE INST, Here is a database schema( table schema);
display all flights from PITTSBURGH to SAN FRANCISCO on 8 2It is not neccessary to use all the tables.
SELECT SUM Laps FROM table WHERE Winnings = $67,675 AND Points < 61
CREATE TABLE INST, Here is a database schema( table schema);
Which driver has less than 61 points, but winnings of $67,675?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Country = argentina AND Tournament = argentina f17 futures
CREATE TABLE INST, Here is a database schema( table schema);
On what Date will the Argentina F17 Futures Tournament be played in Argentina?.It is not neccessary to use all the tables.
SELECT position FROM table_name_75 WHERE nationality = "united states" AND player = "jimmy oliver"
CREATE TABLE INST, Here is a database schema( table schema);
What position did Jimmy Oliver of the United States play?It is not neccessary to use all the tables.
SELECT SUM Pick FROM table WHERE Name = cecil martin AND Overall < 268
CREATE TABLE INST, Here is a database schema( table schema);
The player Cecil Martin with an overall less than 268 has what total pick?.It is not neccessary to use all the tables.
SELECT COUNT(first_elected) FROM table_1342013_9 WHERE incumbent = "William C. Lantaff"
CREATE TABLE INST, Here is a database schema( table schema);
how many first elected with incumbent being william c. lantaffIt is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Venue = south end grounds
CREATE TABLE INST, Here is a database schema( table schema);
Which team did the Boston Beaneaters host at the South End Grounds?.It is not neccessary to use all the tables.
SELECT nickname FROM table_name_59 WHERE club = "geelong west cricket & football club"
CREATE TABLE INST, Here is a database schema( table schema);
What was the nickname of the team in the Geelong West Cricket & Football Club?It is not neccessary to use all the tables.
SELECT distance FROM table_name_69 WHERE date = "5 september"
CREATE TABLE INST, Here is a database schema( table schema);
What is the distance for the 5 September race?It is not neccessary to use all the tables.
SELECT Visitor FROM table WHERE Date = march 31
CREATE TABLE INST, Here is a database schema( table schema);
What is the Visitor on March 31?.It is not neccessary to use all the tables.
SELECT AVG Losses FROM table WHERE Club = warrnambool AND Draws < 19
CREATE TABLE INST, Here is a database schema( table schema);
What are the losses of Warrnambool with a draw less than 19?.It is not neccessary to use all the tables.
SELECT Area km 2 FROM table WHERE Official Name = saint-jacques
CREATE TABLE INST, Here is a database schema( table schema);
Saint-Jacques has what as the area km 2?.It is not neccessary to use all the tables.
SELECT Joint Music Award FROM table WHERE Total > 18 AND Year > 2007
CREATE TABLE INST, Here is a database schema( table schema);
How many Joint Music Awards are there when the Total is larger than 18, in a Year after 2007?.It is not neccessary to use all the tables.
SELECT DISTINCT prescriptions.route FROM prescriptions WHERE prescriptions.drug = 'insulin human nph'
CREATE TABLE INST, Here is a database schema( table schema);
what are the methods of consumption of insulin human nph?It is not neccessary to use all the tables.
SELECT MAX Cuts made FROM table WHERE Wins > 1
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the highest cuts made with wins more than 1.It is not neccessary to use all the tables.
SELECT undecided FROM table_name_51 WHERE goldberg = "6%"
CREATE TABLE INST, Here is a database schema( table schema);
What is the undecided percentage of the poll where Goldberg had 6%?It is not neccessary to use all the tables.
SELECT Trophy FROM table WHERE Season = 2008–2009
CREATE TABLE INST, Here is a database schema( table schema);
What is the Trophy with a Season with 2008–2009?.It is not neccessary to use all the tables.
SELECT AVG(enr) FROM College
CREATE TABLE INST, Here is a database schema( table schema);
What is the average enrollment number?It is not neccessary to use all the tables.
SELECT Institution FROM table WHERE Nickname = Yellowjackets
CREATE TABLE INST, Here is a database schema( table schema);
Name the institution for yellowjackets.It is not neccessary to use all the tables.
SELECT minoru FROM table_name_22 WHERE hikaru_sato = "x" AND super_crazy = "yang (8:36)"
CREATE TABLE INST, Here is a database schema( table schema);
Name the minoru that has a hikaru sato of x and super crazy of yang (8:36)It is not neccessary to use all the tables.
SELECT MAX Issue Date FROM table WHERE Artist = madonna AND Sales < 1,060,000
CREATE TABLE INST, Here is a database schema( table schema);
What is the biggest issue date Madonna, who had less than 1,060,000 sales, had?.It is not neccessary to use all the tables.
SELECT demographic.age, prescriptions.route FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "2560"
CREATE TABLE INST, Here is a database schema( table schema);
what is age and drug route of subject id 2560?It is not neccessary to use all the tables.
SELECT partner FROM table_name_33 WHERE date > 1971 AND outcome = "runner-up" AND score_in_the_final = "3–6, 3–6"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the partner on a date later than 1971 who is the runner-up with a score of 3–6 3–6?It is not neccessary to use all the tables.
SELECT Runners-up FROM table WHERE Champions = 1 (2013)
CREATE TABLE INST, Here is a database schema( table schema);
What runner(s)-up has 1 (2013) as the champions?.It is not neccessary to use all the tables.
SELECT home_team FROM table_name_36 WHERE road_team = "boston" AND date = "april 20"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team on April 20 against Boston?It is not neccessary to use all the tables.
SELECT Programming FROM table WHERE Video = audio only
CREATE TABLE INST, Here is a database schema( table schema);
Which Programming has a Video of audio only?.It is not neccessary to use all the tables.
SELECT Last Update FROM table WHERE Name = jamar jackson
CREATE TABLE INST, Here is a database schema( table schema);
for the name of jamar jackson what is the last update?.It is not neccessary to use all the tables.
SELECT MIN(round) FROM table_name_2 WHERE school = "georgia tech"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest round for Georgia Tech?It is not neccessary to use all the tables.
SELECT Issue Date FROM table WHERE Download = no available AND Artist = eric prydz
CREATE TABLE INST, Here is a database schema( table schema);
What's the Issue Date for an Eric Prydz song with a no available Download information?.It is not neccessary to use all the tables.
SELECT COUNT(founded) FROM table_18483171_1 WHERE location = "Rock Island, Illinois"
CREATE TABLE INST, Here is a database schema( table schema);
List the total number of institutions founded in Rock Island Illinois.It is not neccessary to use all the tables.
SELECT gender FROM table_18974269_1 WHERE original_season = "RR: South Pacific"
CREATE TABLE INST, Here is a database schema( table schema);
What was the gender of the contestant on RR: South Pacific season?It is not neccessary to use all the tables.
SELECT College FROM table WHERE Player = Jean-Nicolas Carriere
CREATE TABLE INST, Here is a database schema( table schema);
What college does Jean-Nicolas Carriere play for?.It is not neccessary to use all the tables.
SELECT Laps FROM table WHERE Manufacturer = aprilia AND Grid = 10
CREATE TABLE INST, Here is a database schema( table schema);
What were the laps of aprilia with a grid of 10?.It is not neccessary to use all the tables.
SELECT Week FROM table WHERE Date = bye
CREATE TABLE INST, Here is a database schema( table schema);
What week is a bye week?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Year = 2001
CREATE TABLE INST, Here is a database schema( table schema);
Which Name was in the Year 2001?.It is not neccessary to use all the tables.
SELECT date FROM table_name_2 WHERE home_away_game = "away" AND week = 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the date of the away game in week 8?It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_27 WHERE home_team = "fitzroy"
CREATE TABLE INST, Here is a database schema( table schema);
What was fitzroy's score at home?It is not neccessary to use all the tables.
SELECT Frequency FROM table WHERE State = indiana AND Call sign = wgnr
CREATE TABLE INST, Here is a database schema( table schema);
What is the frequency of the radio station in Indiana that has a call sign of WGNR?.It is not neccessary to use all the tables.
SELECT player FROM table_name_46 WHERE figures = "4/14"
CREATE TABLE INST, Here is a database schema( table schema);
Which player has figures of 4/14?It is not neccessary to use all the tables.
SELECT COUNT(*) > 0 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'glucose') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 59049) AND STRFTIME('%y-%m', labevents.charttime) >= '2105-01'
CREATE TABLE INST, Here is a database schema( table schema);
has patient 59049 received a glucose test since 01/2105?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Runner(s)-up = oliver wilson
CREATE TABLE INST, Here is a database schema( table schema);
What is Date, when Runner(s)-Up is Oliver Wilson?.It is not neccessary to use all the tables.
SELECT club FROM table_name_87 WHERE points_difference = "-24"
CREATE TABLE INST, Here is a database schema( table schema);
What club had a points difference of -24?It is not neccessary to use all the tables.
SELECT AVG Staying councillors FROM table WHERE Election result > 0 AND Party = conservatives AND New council < 27
CREATE TABLE INST, Here is a database schema( table schema);
How many staying councillors were there when the election result was larger than 0, the new council less than 27 and the party conservatives?.It is not neccessary to use all the tables.
SELECT "Player" FROM table_73736 WHERE "NFL Team" = 'Green Bay Packers'
CREATE TABLE INST, Here is a database schema( table schema);
Which player did the green bay packers pick?It is not neccessary to use all the tables.
SELECT COUNT(guest_s_) FROM table_29135051_3 WHERE broadcast_date = "11September2012"
CREATE TABLE INST, Here is a database schema( table schema);
how many guest stars did the episode that was broadcasted 11september2012 haveIt is not neccessary to use all the tables.