sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT rank FROM table_name_44 WHERE gold < 16 AND bronze > 2 AND silver > 2 AND total = 14
CREATE TABLE INST, Here is a database schema( table schema);
What rank has less than 16 gold more than 2 bronze and silver and a total of 14?It is not neccessary to use all the tables.
SELECT track FROM table_name_86 WHERE pole_position = "takashi kogure"
CREATE TABLE INST, Here is a database schema( table schema);
On which track did Takashi Kogure hold pole position?It is not neccessary to use all the tables.
SELECT MAX(last_competed) FROM table_14308895_2 WHERE country_territory = "New Zealand"
CREATE TABLE INST, Here is a database schema( table schema);
when did new zealand last compete?It is not neccessary to use all the tables.
SELECT COUNT(attendance) FROM table_name_76 WHERE visitor = "charlotte" AND leading_scorer = "ricky davis (23)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum number of attendance when the visiting team was Charlotte and the leading scorer was Ricky Davis (23)?It is not neccessary to use all the tables.
SELECT frequency FROM table_24418525_1 WHERE coverage = "Mega Manila"
CREATE TABLE INST, Here is a database schema( table schema);
What frequency is mega manila set to?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Kit manufacturer = umbro AND Captain = eric cantona
CREATE TABLE INST, Here is a database schema( table schema);
What team has a kit manufacturer of Umbro and Eric Cantona as captain?.It is not neccessary to use all the tables.
SELECT date FROM table_name_40 WHERE result = "w 30–15"
CREATE TABLE INST, Here is a database schema( table schema);
On what Date was the Result of the game W 30–15?It is not neccessary to use all the tables.
SELECT result FROM table_name_14 WHERE h___a = "a" AND kick_off = "1992-10-31 16:00"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result of the match with a H/A of A and a kick off at 1992-10-31 16:00?It is not neccessary to use all the tables.
SELECT * FROM table_test_6 WHERE blood_hemoglobin < 90
CREATE TABLE INST, Here is a database schema( table schema);
blood hemoglobin < 90 g / l;It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Date = 11 november
CREATE TABLE INST, Here is a database schema( table schema);
What is the location of the race on 11 November?.It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_name_83 WHERE silver = 5 AND gold < 5 AND total < 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest rank that has 5 silvers less than 5 golds and less than 7 total medals?It is not neccessary to use all the tables.
SELECT No. FROM table WHERE U.S. viewers (million) = 5.60
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of the episode in the season that had 5.60 millions of north american spectors?.It is not neccessary to use all the tables.
SELECT score FROM table_name_18 WHERE january > 21 AND points = 63
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has a January larger than 21, and Points of 63?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Bada = 0.05%
CREATE TABLE INST, Here is a database schema( table schema);
On which dates was the value of Bada 0.05%?.It is not neccessary to use all the tables.
SELECT cws_best_finish FROM table_name_25 WHERE head_coach = "jim morris"
CREATE TABLE INST, Here is a database schema( table schema);
What was Head Coach Jim Morris's best finish?It is not neccessary to use all the tables.
SELECT Etymology FROM table WHERE Rank = 12
CREATE TABLE INST, Here is a database schema( table schema);
What Etymology ranked 12?.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Nationality/Sponsors = Belgium
CREATE TABLE INST, Here is a database schema( table schema);
Which telescopes were sponsored by or originated in Belgium?.It is not neccessary to use all the tables.
SELECT date FROM table_name_74 WHERE attendance > 36 OFFSET 796
CREATE TABLE INST, Here is a database schema( table schema);
When was the Browns' game that over 36796 attended?It is not neccessary to use all the tables.
SELECT AVG Rating (%) FROM table WHERE Channel = shandong satellite tv AND Share (%) < 1.74
CREATE TABLE INST, Here is a database schema( table schema);
Name the average rating % for shandong satellite tv and share % less than 1.74.It is not neccessary to use all the tables.
SELECT AVG(workload) FROM program_course WHERE category LIKE '%PreMajor%'
CREATE TABLE INST, Here is a database schema( table schema);
What is the mean difficulty of the classes that are PreMajor ?It is not neccessary to use all the tables.
SELECT result FROM table_14608759_1 WHERE week = 4
CREATE TABLE INST, Here is a database schema( table schema);
What are week 4 results?It is not neccessary to use all the tables.
SELECT MAX(no_in_series) FROM table_1876825_6 WHERE original_air_date = "February 8, 2004"
CREATE TABLE INST, Here is a database schema( table schema);
What episode number in the series aired on February 8 2004?It is not neccessary to use all the tables.
SELECT MAX(height) FROM table_14363116_1 WHERE player = "Yury Berezhko"
CREATE TABLE INST, Here is a database schema( table schema);
Name the maximum height for yury berezhkoIt is not neccessary to use all the tables.
SELECT Density FROM table WHERE Traditional = 古田縣
CREATE TABLE INST, Here is a database schema( table schema);
Name the density for 古田縣.It is not neccessary to use all the tables.
SELECT Name FROM table WHERE Longitude = 202.9E
CREATE TABLE INST, Here is a database schema( table schema);
Where is longitude 202.9e?.It is not neccessary to use all the tables.
SELECT MIN(score_final) FROM table_name_26 WHERE rank_final = 7 AND year > 2009
CREATE TABLE INST, Here is a database schema( table schema);
Which the lowest Score-Fina has a Rank-Final of 7 and a Year larger than 2009?It is not neccessary to use all the tables.
SELECT County FROM table WHERE Others# = 5
CREATE TABLE INST, Here is a database schema( table schema);
What county has others at 5?.It is not neccessary to use all the tables.
SELECT player FROM table_2897457_4 WHERE pick__number = 64
CREATE TABLE INST, Here is a database schema( table schema);
Which player is pick 64?It is not neccessary to use all the tables.
SELECT SUM(1872) FROM table_name_29 WHERE 1866 > 856 AND 1861 > 1906 AND 1876 > 1990
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of 1872(s) when 1866 is greater than 856 when 1861 is greater than 1906 and when 1876 is greater than 1990?It is not neccessary to use all the tables.
SELECT party FROM table_name_34 WHERE incumbent = "ken cuccinelli"
CREATE TABLE INST, Here is a database schema( table schema);
Which party has Ken Cuccinelli as an incumbent?It is not neccessary to use all the tables.
SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*) >= 2
CREATE TABLE INST, Here is a database schema( table schema);
List the names of studios that have at least two films.It is not neccessary to use all the tables.
SELECT to_par FROM table_name_40 WHERE year_s__won = "2003"
CREATE TABLE INST, Here is a database schema( table schema);
What is the to par number of the person who won in 2003?It is not neccessary to use all the tables.
SELECT court_rank FROM table_name_70 WHERE courtesy_title = "nagato-no-kami"
CREATE TABLE INST, Here is a database schema( table schema);
What is the court rank of the person with a courtesy title of nagato-no-kami?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = 17/07/2009
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when the date was 17/07/2009?.It is not neccessary to use all the tables.
SELECT airport FROM table_name_29 WHERE iata = "hgh"
CREATE TABLE INST, Here is a database schema( table schema);
Which airport has an IATA of hgh?It is not neccessary to use all the tables.
SELECT SUM Gold FROM table WHERE Total < 7 AND Nation = gabon AND Rank < 17
CREATE TABLE INST, Here is a database schema( table schema);
How many gold did Gabon have when they were ranked no higher than 17, and less than 7 in total?.It is not neccessary to use all the tables.
SELECT Leading scorer FROM table WHERE Date = april 9
CREATE TABLE INST, Here is a database schema( table schema);
Who led the score on April 9?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Venue = kardinia park
CREATE TABLE INST, Here is a database schema( table schema);
What is the home team score for kardinia park?.It is not neccessary to use all the tables.
SELECT results FROM table_1805191_6 WHERE incumbent = "Grace Napolitano"
CREATE TABLE INST, Here is a database schema( table schema);
What were the result(s) of the election featuring grace napolitano as the incumbent?It is not neccessary to use all the tables.
SELECT AVG Loans Received FROM table WHERE Contributions < 34,986,088 AND All Disbursements > 251,093,944 AND Candidate = dennis kucinich † AND Operating Expenditures > 3,638,219
CREATE TABLE INST, Here is a database schema( table schema);
How much in average Loans Received has Contributions less than 34,986,088, Disbursements more than 251,093,944 for Dennis Kucinich † with Operating Expenditures more than 3,638,219?.It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Common = Galliate
CREATE TABLE INST, Here is a database schema( table schema);
Where does the common of Galliate rank in population?.It is not neccessary to use all the tables.
SELECT county FROM table_name_3 WHERE year_left = "1993"
CREATE TABLE INST, Here is a database schema( table schema);
From what county was the team that left the conference in 1993?It is not neccessary to use all the tables.
SELECT COUNT Runners FROM table WHERE Placing > 1
CREATE TABLE INST, Here is a database schema( table schema);
How many Runners have a Placing that isn't 1?.It is not neccessary to use all the tables.
SELECT COUNT Laps FROM table WHERE Time/Retired = +12.5 secs
CREATE TABLE INST, Here is a database schema( table schema);
How many laps have a Time/Retired of +12.5 secs?.It is not neccessary to use all the tables.
SELECT COUNT(*) FROM customers WHERE state = "CA"
CREATE TABLE INST, Here is a database schema( table schema);
How many customers in state of CA?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Time = 2:26 AND Location = riverfront stadium
CREATE TABLE INST, Here is a database schema( table schema);
What was date when the time was 2:26 and the location was Riverfront Stadium?.It is not neccessary to use all the tables.
SELECT MIN(yards) FROM table_name_30 WHERE avg = 7 AND long < 7
CREATE TABLE INST, Here is a database schema( table schema);
what is the least yards when the average is 7 and the long is less than 7?It is not neccessary to use all the tables.
SELECT AVG Losses FROM table WHERE Wins < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of losses for teams with fewer than 0 wins?.It is not neccessary to use all the tables.
SELECT MAX(poles) FROM table_24330803_1 WHERE season = 2011
CREATE TABLE INST, Here is a database schema( table schema);
How many pole positions were there for the 2011 season?It is not neccessary to use all the tables.
SELECT constructor FROM table_name_14 WHERE grid < 18 AND driver = "mika häkkinen"
CREATE TABLE INST, Here is a database schema( table schema);
Which constructor has a Grid smaller than 18 and a Driver of mika häkkinen?It is not neccessary to use all the tables.
SELECT COUNT(music) FROM table_28677723_10 WHERE tor_fløysvik = 3
CREATE TABLE INST, Here is a database schema( table schema);
How many music entries are there when tor floysvik is 3?It is not neccessary to use all the tables.
SELECT last_match FROM table_name_8 WHERE manner_of_departure = "sacked" AND outgoing_manager = "geninho"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the last match that had a sacked manner of departure and a geninho outgoing manner?It is not neccessary to use all the tables.
SELECT COUNT(built) FROM table_name_51 WHERE withdrawn = 1967 AND br_sr_no = "w27" AND to_iow < 1926
CREATE TABLE INST, Here is a database schema( table schema);
What is the number for year built of W27 that was withdrawn in 1967 with a To LoW year earlier than 1926?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Date = 28 february 1953 AND Tie no = 3
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has a Date of 28 february 1953, and a Tie no of 3?.It is not neccessary to use all the tables.
SELECT score FROM table_name_83 WHERE date = "20/6/97"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score on 20/6/97?It is not neccessary to use all the tables.
SELECT MAX("Series #") FROM table_72603 WHERE "U.S. viewers (million)" = '3.84'
CREATE TABLE INST, Here is a database schema( table schema);
Which episode number drew in 3.84 million viewers in the U.S.?It is not neccessary to use all the tables.
SELECT republican_ticket FROM table_name_8 WHERE communist_ticket = "(none)" AND socialist_ticket = "joseph g. glass"
CREATE TABLE INST, Here is a database schema( table schema);
Who's the Republican ticket with a Communist ticket of (none) and a Socialist ticket of joseph g. glass?It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Home team = collingwood
CREATE TABLE INST, Here is a database schema( table schema);
What is Collingwood's home venue?.It is not neccessary to use all the tables.
SELECT Discipline FROM table WHERE FIS points = 1561
CREATE TABLE INST, Here is a database schema( table schema);
Name the discipline for 1561 fis points.It is not neccessary to use all the tables.
SELECT 2008 FROM table_name_84 WHERE tournament = "win-loss" AND 2005 = "a"
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE 2008 WITH TOURNAMENT OF WIN-LOSS AND 2005 A?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "TRANSIENT ISCHEMIC ATTACK" AND procedures.short_title = "Cardiopulm resuscita NOS"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients whose primary disease is transient ischemic attack and procedure short title is cardiopulm resuscita nos?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_31 WHERE 2008 = "a" AND 2005 = "q1" AND 2004 = "1r"
CREATE TABLE INST, Here is a database schema( table schema);
What tournament has a 2008 value of A q1 in 2005 and 1r in 2004?It is not neccessary to use all the tables.
SELECT 10:00 PM FROM table WHERE 8:00 PM = tout le monde en parle
CREATE TABLE INST, Here is a database schema( table schema);
What shows for 10:00 PM when the 8:00 PM is tout le monde en parle?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Paroxysmal ventricular tachycardia" AND prescriptions.drug_type = "MAIN"
CREATE TABLE INST, Here is a database schema( table schema);
how many patients whose diagnoses long title is paroxysmal ventricular tachycardia and drug type is main?It is not neccessary to use all the tables.
SELECT date FROM table_name_43 WHERE eliminated = "final night"
CREATE TABLE INST, Here is a database schema( table schema);
On what date was elimination on final night?It is not neccessary to use all the tables.
SELECT team FROM table_25318033_1 WHERE points = "137"
CREATE TABLE INST, Here is a database schema( table schema);
What team has 137 points?It is not neccessary to use all the tables.
SELECT COUNT Isolation FROM table WHERE Mountain Peak = Jack Mountain
CREATE TABLE INST, Here is a database schema( table schema);
How many different isolation numbers does the Jack Mountain peak have?.It is not neccessary to use all the tables.
SELECT MIN Took office FROM table WHERE Name = yvette alexander AND Up for reelection > 2016
CREATE TABLE INST, Here is a database schema( table schema);
What was the earliest year that Yvette Alexander took office and was up for reelection after 2016?.It is not neccessary to use all the tables.
SELECT Head of Household FROM table WHERE Married Filing Separately = $104,426–$186,475
CREATE TABLE INST, Here is a database schema( table schema);
Name the head of household that has married filing separately of $104,426–$186,475.It is not neccessary to use all the tables.
SELECT Weight Lost (kg) FROM table WHERE Starting Weight (kg) = 97.4
CREATE TABLE INST, Here is a database schema( table schema);
What is every amount for weight lost if the starting weight is 97.4?.It is not neccessary to use all the tables.
SELECT Points FROM table WHERE Entrant = g a vandervell
CREATE TABLE INST, Here is a database schema( table schema);
How many points does g a vandervell have?.It is not neccessary to use all the tables.
SELECT final_score FROM table_24123547_2 WHERE opponent = "Lions"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the games VS the Lions?It is not neccessary to use all the tables.
SELECT description FROM table_28652521_1 WHERE storage_case = "cardboard box" AND for_shank_type = "low"
CREATE TABLE INST, Here is a database schema( table schema);
What are all the different descriptions for the buttonholer with cardboard box for storage and a low shank type?It is not neccessary to use all the tables.
SELECT Location Attendance FROM table WHERE Game = 3
CREATE TABLE INST, Here is a database schema( table schema);
Name the location attendance for 3 game.It is not neccessary to use all the tables.
SELECT written_by FROM table_27622417_1 WHERE prod_code = "411"
CREATE TABLE INST, Here is a database schema( table schema);
who were the writers in the episode whose production code was 411?It is not neccessary to use all the tables.
SELECT Winner FROM table WHERE Date = 2007
CREATE TABLE INST, Here is a database schema( table schema);
Who was the winner in 2007?.It is not neccessary to use all the tables.
SELECT COUNT(organization) FROM table_28436909_4 WHERE founding_date = "1873-12-25"
CREATE TABLE INST, Here is a database schema( table schema);
When 1873-12-25 is the founding date how many organizations are there?It is not neccessary to use all the tables.
SELECT AVG(laps) FROM table_name_80 WHERE rider = "max biaggi"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average number of laps for max biaggiIt is not neccessary to use all the tables.
SELECT Genre FROM table WHERE English Title/Translation = Fever Ranma ½: Hot Springs Athletic Chapter
CREATE TABLE INST, Here is a database schema( table schema);
What's the genre of Fever Ranma ½: Hot Springs Athletic Chapter?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Opponent = collingwood
CREATE TABLE INST, Here is a database schema( table schema);
Name the venue with opponent of collingwood.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Venue = arden street oval
CREATE TABLE INST, Here is a database schema( table schema);
Who was the home team in the game played at arden street oval?.It is not neccessary to use all the tables.
SELECT SUM Game FROM table WHERE Date = december 5
CREATE TABLE INST, Here is a database schema( table schema);
How many games were on December 5?.It is not neccessary to use all the tables.
SELECT country FROM table_name_39 WHERE player = "paul lawrie"
CREATE TABLE INST, Here is a database schema( table schema);
What country is Paul Lawrie from?It is not neccessary to use all the tables.
SELECT AVG Works number FROM table WHERE Builder = vulcan foundry AND Name = snowdon ranger
CREATE TABLE INST, Here is a database schema( table schema);
What is the average work number of Snowdon Ranger with the builder Vulcan Foundry?.It is not neccessary to use all the tables.
SELECT "winner" FROM table_204_630 WHERE "race" = 'carolina 500'
CREATE TABLE INST, Here is a database schema( table schema);
who was the top competitor at the carolina 500 ?It is not neccessary to use all the tables.
SELECT COUNT Round of 16 FROM table WHERE Round of 32 = Lakpa Tashi Sherpa ( BHU ) W PTS 12-5
CREATE TABLE INST, Here is a database schema( table schema);
How many times was lakpa tashi sherpa ( bhu ) w pts 12-5 in round of 32?.It is not neccessary to use all the tables.
SELECT MIN Episode FROM table WHERE Guest(s) = Sarah Millican and Grayson Perry
CREATE TABLE INST, Here is a database schema( table schema);
which episode did sarah millican and grayson perry appear in.It is not neccessary to use all the tables.
SELECT ief_2011 FROM table_name_96 WHERE fsi_2012 = "99.2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the IEF 2011 of the country with an FSI 2012 of 99.2?It is not neccessary to use all the tables.
SELECT revenue__us_$million_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "55.4"
CREATE TABLE INST, Here is a database schema( table schema);
How many dollars is the revenue when the net profit is 55.4 million dollars?It is not neccessary to use all the tables.
SELECT Meet FROM table WHERE Event = 1500m freestyle
CREATE TABLE INST, Here is a database schema( table schema);
What event had the 1500m freestyle?.It is not neccessary to use all the tables.
SELECT MAX Attendance FROM table WHERE Date = october 25
CREATE TABLE INST, Here is a database schema( table schema);
Which Attendance has a Date of october 25?.It is not neccessary to use all the tables.
SELECT No.(s) FROM table WHERE School/Club Team/Country = virginia
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of the player who came from Virginia?.It is not neccessary to use all the tables.
SELECT sub_parish__sokn_ FROM table_name_39 WHERE location_of_the_church = "fresvik"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Sub-Parish called that has a church located in Fresvik?It is not neccessary to use all the tables.
SELECT Time/Retired FROM table WHERE Driver = alain prost
CREATE TABLE INST, Here is a database schema( table schema);
What is the time/retired for alain prost?.It is not neccessary to use all the tables.
SELECT erp__analog__digital_ FROM table_name_6 WHERE transmitter_location = "mount goonaneman"
CREATE TABLE INST, Here is a database schema( table schema);
What is the ERP for the Mount Goonaneman transmitter?It is not neccessary to use all the tables.
SELECT Władysławowo , Poland FROM table WHERE World record = clean & jerk
CREATE TABLE INST, Here is a database schema( table schema);
What shows for Władysławowo, Poland when the world record was clean & jerk?.It is not neccessary to use all the tables.
SELECT operator FROM table_1612760_1 WHERE destination = "Dalston Junction"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the operator to destination Dalston Junction?It is not neccessary to use all the tables.
SELECT "Years of appearance" FROM table_21893 WHERE "Team" = 'Prince Albert Raiders'
CREATE TABLE INST, Here is a database schema( table schema);
What is the year of appearance for the Prince Albert Raiders?It is not neccessary to use all the tables.
SELECT set_1 FROM table_name_92 WHERE score = "3–0" AND set_3 = "15–12"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Set 1 with a Score of 3 0, and has a Set 3 of 15 12?It is not neccessary to use all the tables.
SELECT u.DisplayName, u.Reputation, u.Id, COUNT(a.Id) AS AcceptCount, (SELECT COUNT(*) FROM Posts WHERE OwnerUserId = u.Id AND PostTypeId = 2) AS AnswerCount, (CAST(COUNT(a.Id) AS FLOAT) / (SELECT COUNT(*) FROM Posts WHERE OwnerUserId = u.Id AND PostTypeId = 2) * 100) AS AcceptedPercentage FROM Posts AS q INNER JOIN Po...
CREATE TABLE INST, Here is a database schema( table schema);
Show the users in a specified reputation range, with ratio of answers accepted.. Show the users in a specified reputation range, with ratio of answers accepted.It is not neccessary to use all the tables.