sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT gross FROM table_name_73 WHERE director = "richard tuggle"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE GROSS WITH A DIRECTOR OF RICHARD TUGGLE?It is not neccessary to use all the tables.
SELECT AVG(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 4401 AND admissions.dischtime IS NULL) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'bicarbonate')
CREATE TABLE INST, Here is a database schema( table schema);
during the current hospital visit, what was the average bicarbonate value for patient 4401?It is not neccessary to use all the tables.
SELECT SUM(2000) FROM table_name_88 WHERE 1969 = 54.3 AND 1979 < 48.4
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2000 number when the 1969 is 54.3 and the 1979 is less than 48.4?It is not neccessary to use all the tables.
SELECT round FROM table_20860739_1 WHERE height = "6'5"
CREATE TABLE INST, Here is a database schema( table schema);
How many rounds were there a height of 6'5?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Away team score = 13.13 (91)
CREATE TABLE INST, Here is a database schema( table schema);
Which away team scored 13.13 (91)?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Attendance = rose garden 20,126
CREATE TABLE INST, Here is a database schema( table schema);
What is the record for the game that shows the Rose Garden 20,126 as attendance?.It is not neccessary to use all the tables.
SELECT MAX # FROM table WHERE Air Date = September 29, 2008
CREATE TABLE INST, Here is a database schema( table schema);
what is the most # that aired on september 29, 2008?.It is not neccessary to use all the tables.
SELECT Recipient(s) FROM table WHERE Result = nominated AND Category = most popular drama AND Year > 2004
CREATE TABLE INST, Here is a database schema( table schema);
Who was the recipient when the show was nominated for Most Popular Drama after 2004?.It is not neccessary to use all the tables.
SELECT Release format FROM table WHERE Release date > 1979
CREATE TABLE INST, Here is a database schema( table schema);
What type of format was released after 1979?.It is not neccessary to use all the tables.
SELECT demographic.dischtime, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "42820"
CREATE TABLE INST, Here is a database schema( table schema);
mention the discharge time and diagnosis icd9 code of subject id 42820.It is not neccessary to use all the tables.
SELECT COUNT(result) FROM table_19744915_17 WHERE couple = "Ellery and Frankie"
CREATE TABLE INST, Here is a database schema( table schema);
What was the total result for couple Ellery and Frankie?It is not neccessary to use all the tables.
SELECT Written by FROM table WHERE No. in series = 46b
CREATE TABLE INST, Here is a database schema( table schema);
Who wrote the episode in the series 46b?.It is not neccessary to use all the tables.
SELECT call_sign FROM table_name_1 WHERE class = "a" AND frequency_mhz = 88.7
CREATE TABLE INST, Here is a database schema( table schema);
Which call sign has a Class of A and a Frequency MHz of 88.7?It is not neccessary to use all the tables.
SELECT position FROM table_25561560_2 WHERE skipper = "Mark Richards"
CREATE TABLE INST, Here is a database schema( table schema);
In what position did skipper Mark Richards place?It is not neccessary to use all the tables.
SELECT COUNT(laps) FROM table_name_37 WHERE time = "+2.987"
CREATE TABLE INST, Here is a database schema( table schema);
How many laps had a time of +2.987?It is not neccessary to use all the tables.
SELECT "Opponent" FROM table_14159 WHERE "Record" = '0-1'
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Opponent of the match with a Record of 0-1?It is not neccessary to use all the tables.
SELECT SUM Laps FROM table WHERE Team = mi-jack conquest racing AND Time/Retired = off course
CREATE TABLE INST, Here is a database schema( table schema);
How many laps for mi-jack conquest racing when they went off course?.It is not neccessary to use all the tables.
SELECT COUNT(laps) FROM table_name_55 WHERE driver = "jochen rindt"
CREATE TABLE INST, Here is a database schema( table schema);
How many laps for jochen rindt?It is not neccessary to use all the tables.
SELECT Qual 1 FROM table WHERE Name = jan heylen
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the qual 1 for jan heylen.It is not neccessary to use all the tables.
SELECT MAX Biggenden FROM table WHERE Year = 1947
CREATE TABLE INST, Here is a database schema( table schema);
What is the biggended for 1947?.It is not neccessary to use all the tables.
SELECT date_of_appointment FROM table_name_60 WHERE outgoing_manager = "petrik sander"
CREATE TABLE INST, Here is a database schema( table schema);
When is the appointment date for outgoing manager Petrik Sander?It is not neccessary to use all the tables.
SELECT date FROM table_name_90 WHERE region = "france"
CREATE TABLE INST, Here is a database schema( table schema);
Which Date has a Region of france?It is not neccessary to use all the tables.
SELECT candidates FROM table_1342198_38 WHERE incumbent = "Hardie Scott"
CREATE TABLE INST, Here is a database schema( table schema);
What was the candidates for hardie scottIt is not neccessary to use all the tables.
SELECT home_team FROM table_24887326_8 WHERE away_team = "Plymouth Argyle"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team who played plymouth argyle?It is not neccessary to use all the tables.
SELECT AVG(pick) FROM table_name_22 WHERE school_club_team = "alabama" AND round < 9
CREATE TABLE INST, Here is a database schema( table schema);
What's the Pick average that has a School/Club Team of Alabama with a Round that's smaller than 9?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Opponent = iowa state
CREATE TABLE INST, Here is a database schema( table schema);
Where did the Bruins play Iowa State?.It is not neccessary to use all the tables.
SELECT number_of_jews__asarb_ FROM table_1131183_2 WHERE metro_area = "Philadelphia"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of jews asarb where the metro area is philadelphia?It is not neccessary to use all the tables.
SELECT goals FROM table_name_25 WHERE gp_gs = "did not play" AND year = "2004"
CREATE TABLE INST, Here is a database schema( table schema);
How many goals were scored in 2004 when the gp/gs was "did not play"?It is not neccessary to use all the tables.
SELECT laps FROM table_name_17 WHERE constructor = "honda" AND grid = "13"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of laps for the honda vehicle with a grid of 13?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Location = n/a AND Odds = p + 1
CREATE TABLE INST, Here is a database schema( table schema);
What was the score for an n/a location with the odds of p + 1?.It is not neccessary to use all the tables.
SELECT MIN(crowd) FROM table_name_57 WHERE away_team = "richmond"
CREATE TABLE INST, Here is a database schema( table schema);
What was the lowest crowd seen at a game that Richmond was the Away team in?It is not neccessary to use all the tables.
SELECT MAX Prod No. FROM table WHERE Episode No. = 3-04
CREATE TABLE INST, Here is a database schema( table schema);
What is the production number of 3-04?.It is not neccessary to use all the tables.
SELECT SUM Year FROM table WHERE Genre = rock (track)
CREATE TABLE INST, Here is a database schema( table schema);
Which Year has a Genre of rock (track)?.It is not neccessary to use all the tables.
SELECT COUNT(gold) FROM table_name_12 WHERE silver = 1 AND nation = "albania" AND total < 1
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the number of gold for albania with a silver of 1 and total less than 1It is not neccessary to use all the tables.
SELECT COUNT(release_date) FROM table_1467951_4 WHERE dvd_name = "Volume 4"
CREATE TABLE INST, Here is a database schema( table schema);
How many release dates does volume 4 DVD have?It is not neccessary to use all the tables.
SELECT MIN GDP (PPP) per capita FROM table
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest GDP (ppp) per capita?.It is not neccessary to use all the tables.
SELECT SUM(votes) FROM table_name_66 WHERE date = "1956" AND _percentage_of_national_vote > 11.47
CREATE TABLE INST, Here is a database schema( table schema);
How many votes were tallied in 1956 with a % of national vote larger than 11.47?It is not neccessary to use all the tables.
SELECT "equation:" FROM table_26351 WHERE "k_{\\mathrm{H,pc}} = \\frac{p}{c_\\mathrm{aq}}" = '2222.22'
CREATE TABLE INST, Here is a database schema( table schema);
What was the equation if k_{\mathrm{h,pc}} = \frac{p}{c_\mathrm{aq}} is 2222.22?It is not neccessary to use all the tables.
SELECT owner FROM table_name_60 WHERE seats = 84
CREATE TABLE INST, Here is a database schema( table schema);
Which owner has 84 seats?It is not neccessary to use all the tables.
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissi...
CREATE TABLE INST, Here is a database schema( table schema);
what are the five most frequently given diagnoses for the patients who had previously received other brain incision within 2 months, during the last year?It is not neccessary to use all the tables.
SELECT COUNT Games Won FROM table WHERE Best Winning Average = 20
CREATE TABLE INST, Here is a database schema( table schema);
How many players had a best winning average of 20?.It is not neccessary to use all the tables.
SELECT MAX(loss) FROM table_name_75 WHERE long > 0 AND gain > 484 AND avg_g > 126.4
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest Loss when Long is greater than 0 when Gain is greater than 484 and when Avg/g is greater than 126.4?It is not neccessary to use all the tables.
SELECT 1987 FROM table WHERE 1999 = a AND 1989 = a AND 1997 = a
CREATE TABLE INST, Here is a database schema( table schema);
What is the value in 1987 when it is A in 1999, 1989, and 1997?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT (title)) FROM movie WHERE release_year = 2013
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of movies produced in 2013 ?It is not neccessary to use all the tables.
SELECT MAX(3 AS rd_runner_up) FROM table_29942205_1 WHERE country_territory = "Uruguay"
CREATE TABLE INST, Here is a database schema( table schema);
How many women from Uruguay has become third runner-up in this pageant?It is not neccessary to use all the tables.
SELECT Registered voters FROM table WHERE D–R spread = +14.3%
CREATE TABLE INST, Here is a database schema( table schema);
What is the percentage of registered voters in which the d-r spread is +14.3%?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home team = fitzroy
CREATE TABLE INST, Here is a database schema( table schema);
What date was fitzroy the home team?.It is not neccessary to use all the tables.
SELECT Borough FROM table WHERE Location = seward AND Listed = 1977-11-23
CREATE TABLE INST, Here is a database schema( table schema);
What is the Borough for the Seward listing on 1977-11-23?.It is not neccessary to use all the tables.
SELECT Opponents FROM table WHERE Date = may 18, 1997
CREATE TABLE INST, Here is a database schema( table schema);
Name the opponents for may 18, 1997.It is not neccessary to use all the tables.
SELECT COUNT Opponent FROM table WHERE Record = 7-0
CREATE TABLE INST, Here is a database schema( table schema);
How many opponents led to an exactly 7-0 record?.It is not neccessary to use all the tables.
SELECT Class FROM table WHERE Part 4 = geholfen gedroschen
CREATE TABLE INST, Here is a database schema( table schema);
What is the class for Geholfen Gedroschen in part 4?.It is not neccessary to use all the tables.
SELECT "Date" FROM table_14584 WHERE "Game" = '6'
CREATE TABLE INST, Here is a database schema( table schema);
What was the date for game 6?It is not neccessary to use all the tables.
SELECT COUNT(school_club_team_country) FROM table_11734041_10 WHERE player = "Kimball, Toby Toby Kimball"
CREATE TABLE INST, Here is a database schema( table schema);
Kimball toby toby kimball is a player; How many times at school/ club team/country was the player present?It is not neccessary to use all the tables.
SELECT Colt model no. FROM table WHERE Bayonet Lug = No AND Stock = 2nd Generation AND Case deflector = No AND Name = GAU-5A/A
CREATE TABLE INST, Here is a database schema( table schema);
What are the Colt model numbers of the models named GAU-5A/A, with no bayonet lug, no case deflector and stock of 2nd generation? .It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Caps = 13
CREATE TABLE INST, Here is a database schema( table schema);
What position does the player with 13 caps play?.It is not neccessary to use all the tables.
SELECT MIN(pick__number) FROM table_15353123_1
CREATE TABLE INST, Here is a database schema( table schema);
Who was the highest pickIt is not neccessary to use all the tables.
SELECT T1.Product_Name, COUNT(*) FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name ORDER BY COUNT(*) DESC
CREATE TABLE INST, Here is a database schema( table schema);
Show the names of products and the number of events they are in sorted by the number of events in descending order.It is not neccessary to use all the tables.
SELECT COUNT Country FROM table WHERE Supply point = Itaipu
CREATE TABLE INST, Here is a database schema( table schema);
In how many countries is Itaipu a supply point for electricity?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Away team = melbourne
CREATE TABLE INST, Here is a database schema( table schema);
What home team score has a Away team of melbourne?.It is not neccessary to use all the tables.
SELECT result FROM table_name_75 WHERE incumbent = "william elliott"
CREATE TABLE INST, Here is a database schema( table schema);
When the incumbent was William Elliott what was the result?It is not neccessary to use all the tables.
SELECT home_team AS score FROM table_name_94 WHERE home_team = "hawthorn"
CREATE TABLE INST, Here is a database schema( table schema);
What was Hawthorn's score as the home team?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Year < 1994
CREATE TABLE INST, Here is a database schema( table schema);
What location is previous to 1994?.It is not neccessary to use all the tables.
SELECT British FROM table WHERE Letter = o /oʊ/
CREATE TABLE INST, Here is a database schema( table schema);
What is the British letter with o /oʊ/?.It is not neccessary to use all the tables.
SELECT MIN(played) FROM table_name_17 WHERE goals_for = 73 AND goals_against > 69
CREATE TABLE INST, Here is a database schema( table schema);
What is the fewest games played for teams with 73 goals for and more than 69 goals against?It is not neccessary to use all the tables.
SELECT "Lyricist" FROM table_349 WHERE "Song name" = 'Na Jane Aise Ho Gaya Kaise'
CREATE TABLE INST, Here is a database schema( table schema);
What was the lyricst of 'na jane aise ho gaya kaise'?It is not neccessary to use all the tables.
SELECT Name origin FROM table WHERE Name = Ovda Fluctus
CREATE TABLE INST, Here is a database schema( table schema);
What is every name origin with the name Ovda Fluctus?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE League = USL Second Division AND Playoffs = Semifinals AND U.S. Open Cup = Quarterfinals
CREATE TABLE INST, Here is a database schema( table schema);
What year at the US Open Cup quarterfinals, were the playoffs in the semifinals for the USL second division?.It is not neccessary to use all the tables.
SELECT MAX Matches FROM table WHERE Name = Mark Taylor Category:Articles with hCards
CREATE TABLE INST, Here is a database schema( table schema);
Name the matches for mark taylor category:articles with hcards.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Winner = johnny miller (7)
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of Johnny Miller (7)?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Home team score = 12.4 (76)
CREATE TABLE INST, Here is a database schema( table schema);
What team is the home team when the home team scored 12.4 (76)?.It is not neccessary to use all the tables.
SELECT "Year (Ceremony)" FROM table_60578 WHERE "Result" = 'not nominated' AND "Film title used in nomination" = 'the color of fame'
CREATE TABLE INST, Here is a database schema( table schema);
What year has a not nominated result and a nomination title of 'the color of fame'?It is not neccessary to use all the tables.
SELECT result FROM table_name_39 WHERE round = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the result of round 4?It is not neccessary to use all the tables.
SELECT school FROM table_name_35 WHERE mascot = "squires"
CREATE TABLE INST, Here is a database schema( table schema);
Which School has a Mascot of squires?It is not neccessary to use all the tables.
SELECT internet_explorer FROM table_name_66 WHERE mobile = "2.1%"
CREATE TABLE INST, Here is a database schema( table schema);
What percentage of users were using Internet Explorer during the period in which 2.1% were using mobile browsers?It is not neccessary to use all the tables.
SELECT Type FROM table WHERE Moving to = alianza atlético
CREATE TABLE INST, Here is a database schema( table schema);
what is the type movinig to alianza atlético?.It is not neccessary to use all the tables.
SELECT score FROM table_name_25 WHERE opponent = "braves" AND record = "41–27"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game against the Braves with a record of 41–27?It is not neccessary to use all the tables.
SELECT COUNT(1 AS st_tournament) FROM table_2849652_2 WHERE sport = "Bowling"
CREATE TABLE INST, Here is a database schema( table schema);
How many first tournaments are associated with bowling?It is not neccessary to use all the tables.
SELECT COUNT(series__number) FROM table_14835826_1 WHERE us_viewers__millions_ = "18.77"
CREATE TABLE INST, Here is a database schema( table schema);
How many series had 18.77 million viewers?It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Location = hiroshima
CREATE TABLE INST, Here is a database schema( table schema);
What year did the event in Hiroshima take place?.It is not neccessary to use all the tables.
SELECT COUNT Second Place FROM table WHERE City & Nation = Chicago, USA
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of second place finishes when the city & nation was Chicago, USA?.It is not neccessary to use all the tables.
SELECT Try bonus FROM table WHERE Lost = 12
CREATE TABLE INST, Here is a database schema( table schema);
What i the try bonus with 12 losses?.It is not neccessary to use all the tables.
SELECT result FROM table_name_85 WHERE week > 8 AND opponent = "washington redskins"
CREATE TABLE INST, Here is a database schema( table schema);
What's the result when the Washington Redskins were the opponents on a week after 8?It is not neccessary to use all the tables.
SELECT tie_no FROM table_name_39 WHERE away_team = "oxford city"
CREATE TABLE INST, Here is a database schema( table schema);
What was the tie no when Oxford city was the away team?It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_65 WHERE away_team = "carlton"
CREATE TABLE INST, Here is a database schema( table schema);
What did carlton score while away?It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Bronze = 3 AND Total > 10
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest rank for Spain when more than 10 medals were won, 3 of which were bronze?.It is not neccessary to use all the tables.
SELECT Regular Season Winner FROM table WHERE Conference = Missouri Valley Conference
CREATE TABLE INST, Here is a database schema( table schema);
Who won the regular season when Missouri Valley Conference took place?.It is not neccessary to use all the tables.
SELECT census_ranking FROM table_176521_2 WHERE official_name = "Maugerville"
CREATE TABLE INST, Here is a database schema( table schema);
What are the census ranking(s) of maugerville?It is not neccessary to use all the tables.
SELECT date FROM table_name_58 WHERE record = "9–8–1"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game when the Lightning had a record of 9 8 1?It is not neccessary to use all the tables.
SELECT MAX Total FROM table
CREATE TABLE INST, Here is a database schema( table schema);
Name the most total .It is not neccessary to use all the tables.
SELECT Player FROM table WHERE To par = +7 AND Score = 69-69-75-74=287
CREATE TABLE INST, Here is a database schema( table schema);
What player has +7 as the to par, and 69-69-75-74=287 as the score?.It is not neccessary to use all the tables.
SELECT tie_no FROM table_name_56 WHERE home_team = "west ham united"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Tie Number when the home team was West Ham United?It is not neccessary to use all the tables.
SELECT total FROM table_name_55 WHERE bronze > 1 AND silver < 5 AND rank = "9"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total having a bronze value over 1 silver under 5 and ranked 9?It is not neccessary to use all the tables.
SELECT COUNT(points) FROM table_name_93 WHERE artist = "joe o'meara"
CREATE TABLE INST, Here is a database schema( table schema);
How many points did Joe O'Meara have?It is not neccessary to use all the tables.
SELECT COUNT(position) FROM table_name_86 WHERE points = 29 AND lost < 2
CREATE TABLE INST, Here is a database schema( table schema);
What is the position number when there were 29 points and less than 2 is lost?It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Locomotive = n474
CREATE TABLE INST, Here is a database schema( table schema);
What is the name for the locomotive n474?.It is not neccessary to use all the tables.
SELECT "2010" FROM table_67116 WHERE "Code (IATA/ICAO)" = 'cra/lrcv'
CREATE TABLE INST, Here is a database schema( table schema);
What is the average in 2010 of the team with a code of (IATA/ICAO) or cra/lrcv?It is not neccessary to use all the tables.
SELECT Laps FROM table WHERE Grid = 3
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of laps for Grid 3?.It is not neccessary to use all the tables.
SELECT dáil FROM table_name_55 WHERE seats = 61
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of the dail with 61 seats?It is not neccessary to use all the tables.
SELECT date FROM table_name_10 WHERE tournament = "the tour championship"
CREATE TABLE INST, Here is a database schema( table schema);
When did the Tournament of the Tour Championship take place?It is not neccessary to use all the tables.
SELECT AVG(week) FROM table_name_96 WHERE result = "w 21–7"
CREATE TABLE INST, Here is a database schema( table schema);
Result of w 21–7 had what average week?It is not neccessary to use all the tables.