sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT to_par FROM table_name_97 WHERE money___$__ = "playoff" AND score = 68 - 73 - 77 - 65 = 283
CREATE TABLE INST, Here is a database schema( table schema);
What is To Par when Money ( $ ) is Playoff and when Score is 68-73-77-65=283?It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Home team = tottenham hotspur
CREATE TABLE INST, Here is a database schema( table schema);
Who is the away team that tottenham hotspur played?.It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Country = sweden
CREATE TABLE INST, Here is a database schema( table schema);
Where in Sweden is the home of the Swedish team?.It is not neccessary to use all the tables.
SELECT SUM Spectators FROM table WHERE Date = 17 june 2006 AND Time (CET) > 15
CREATE TABLE INST, Here is a database schema( table schema);
How many Spectators have a Date of 17 june 2006, and a Time (CET) larger than 15?.It is not neccessary to use all the tables.
SELECT MAX(rank) FROM table_22355_62 WHERE gold = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum rank of the nation that won 4 gold medals?It is not neccessary to use all the tables.
SELECT SUM(byes) FROM table_name_27 WHERE draws < 0
CREATE TABLE INST, Here is a database schema( table schema);
How many byes were there recorded with 0 draws?It is not neccessary to use all the tables.
SELECT gold FROM table_name_56 WHERE total = 14
CREATE TABLE INST, Here is a database schema( table schema);
How many golds for the nation with 14 total?It is not neccessary to use all the tables.
SELECT T1.Area FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING T2.year < 2010 ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the area of the appelation that produces the highest number of wines before the year of 2010?It is not neccessary to use all the tables.
SELECT SUM No. Built FROM table WHERE Unit nos. = 375301-310
CREATE TABLE INST, Here is a database schema( table schema);
How many number Builts had unit numbers of 375301-310?.It is not neccessary to use all the tables.
SELECT School FROM table WHERE Player = tyrone johnson
CREATE TABLE INST, Here is a database schema( table schema);
Which School did Player Tyrone Johnson attend?.It is not neccessary to use all the tables.
SELECT position FROM table_20170644_3 WHERE college = "Regina"
CREATE TABLE INST, Here is a database schema( table schema);
What position is the player who went to Regina?It is not neccessary to use all the tables.
SELECT Outcome FROM table WHERE Score in the final = 3–6, 1–6
CREATE TABLE INST, Here is a database schema( table schema);
Which Outcome has a Score in the final of 3–6, 1–6?.It is not neccessary to use all the tables.
SELECT COUNT(bronze) FROM table_name_41 WHERE silver > 4 AND nation = "total" AND gold < 30
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of bronze medals for the team with more than 4 silver and less than 30 gold medals?It is not neccessary to use all the tables.
SELECT Combined FROM table WHERE Overall = 8
CREATE TABLE INST, Here is a database schema( table schema);
Which combined score has an overall of 8?.It is not neccessary to use all the tables.
SELECT driver FROM table_2266762_1 WHERE team = "Richard Childress Racing" AND race_time = "2:58:22"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the driver for the Richard Childress Racing team in the race with a time of 2:58:22?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Casualties = 1 wia AND Circumstances = ied AND Location = 15km nw of pol-e khomri
CREATE TABLE INST, Here is a database schema( table schema);
When was the location 15km NW of Pol-E Khomri, the circumstaances IED and the casualties of 1 WIA?.It is not neccessary to use all the tables.
SELECT Type FROM table WHERE Location = cooperstown
CREATE TABLE INST, Here is a database schema( table schema);
What type of bridge is in Cooperstown?.It is not neccessary to use all the tables.
SELECT model__list_ FROM table_2467150_2 WHERE processor = "Kentsfield" AND brand_name = "Xeon"
CREATE TABLE INST, Here is a database schema( table schema);
What is the value for model if processor is Kentsfield and brand name is Xeon?It is not neccessary to use all the tables.
SELECT MIN No. Disc FROM table WHERE No. in series = 14
CREATE TABLE INST, Here is a database schema( table schema);
Name the minimum number disc for number in series for 14.It is not neccessary to use all the tables.
SELECT heat FROM table_name_54 WHERE name = "jin hao"
CREATE TABLE INST, Here is a database schema( table schema);
Jin Hao had what amount of heat?It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Earnings ( $ ) < 71,979
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest rank for a player earning $71,979?.It is not neccessary to use all the tables.
SELECT MIN Wins FROM table WHERE Top-10 > 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the least number of wins when the top 10 is more than 8?.It is not neccessary to use all the tables.
SELECT COUNT(transmitted) FROM table_1601792_4 WHERE frequency = "7 UHF"
CREATE TABLE INST, Here is a database schema( table schema);
How many stations are transmitted on frequency 7 uhf?It is not neccessary to use all the tables.
SELECT Third Place FROM table WHERE Champions = Baník Ostrava (1)
CREATE TABLE INST, Here is a database schema( table schema);
Who had third place when the champions is baník ostrava (1)?.It is not neccessary to use all the tables.
SELECT away FROM table_name_22 WHERE record = "7-4" AND win__percentage = 0.637 AND season = "2010"
CREATE TABLE INST, Here is a database schema( table schema);
What is the away score with a record of 7-4 win% of 0.637 and 2010 season?It is not neccessary to use all the tables.
SELECT time FROM table_name_81 WHERE notes = "sa/b" AND athlete = "frida svensson"
CREATE TABLE INST, Here is a database schema( table schema);
What is the time of frida svensson's race that had sa/b under the notes?It is not neccessary to use all the tables.
SELECT IHSAA Class FROM table WHERE School = chesterton
CREATE TABLE INST, Here is a database schema( table schema);
What is the IHSAA class for Chesterton?.It is not neccessary to use all the tables.
SELECT Opposition FROM table WHERE Stadium = westpac stadium AND Attendance = 31,853
CREATE TABLE INST, Here is a database schema( table schema);
Who's the opposition at westpac stadium when the attendance is 31,853?.It is not neccessary to use all the tables.
SELECT COUNT(won) FROM table_2509505_1 WHERE goals_for = 274
CREATE TABLE INST, Here is a database schema( table schema);
Name the number of won for goals for being 274It is not neccessary to use all the tables.
SELECT team FROM table_name_98 WHERE opposition = "tipperary" AND game = "munster final"
CREATE TABLE INST, Here is a database schema( table schema);
What team opposed Tipperary in the Munster Final game?It is not neccessary to use all the tables.
SELECT SUM(rank) FROM table_name_36 WHERE country = "italy"
CREATE TABLE INST, Here is a database schema( table schema);
What's Italy's rank?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_79 WHERE series = "1-0"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent with a series of 1-0?It is not neccessary to use all the tables.
SELECT Winning driver FROM table WHERE Pole position = bryan herta
CREATE TABLE INST, Here is a database schema( table schema);
Who's the Winning driver with a Pole position of bryan herta?.It is not neccessary to use all the tables.
SELECT record FROM table_name_44 WHERE date = "september 30"
CREATE TABLE INST, Here is a database schema( table schema);
What was the home team's record on September 30?It is not neccessary to use all the tables.
SELECT open_source_movie FROM table_name_90 WHERE cc_license = "by-nc-sa 1.0"
CREATE TABLE INST, Here is a database schema( table schema);
What open source movie has a CC License of by-nc-sa 1.0?It is not neccessary to use all the tables.
SELECT Outcome FROM table WHERE Tournament = chiang mai , thailand
CREATE TABLE INST, Here is a database schema( table schema);
What is Outcome, when Tournament is "Chiang Mai , Thailand"?.It is not neccessary to use all the tables.
SELECT AVG(pick__number) FROM table_name_77 WHERE college = "iowa" AND overall < 200
CREATE TABLE INST, Here is a database schema( table schema);
What is the mean pick number for Iowa College when the overall is less than 200?It is not neccessary to use all the tables.
SELECT SUM Region FROM table WHERE Name = saint-agapit AND Code < 33045
CREATE TABLE INST, Here is a database schema( table schema);
What is total population of Saint-Agapit (code 33045)?.It is not neccessary to use all the tables.
SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50
CREATE TABLE INST, Here is a database schema( table schema);
Show times of elimination of wrestlers with days held more than 50.It is not neccessary to use all the tables.
SELECT second_member FROM table_name_3 WHERE first_member = "sir rowland hill, bt" AND second_party = "conservative"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the second member with first member Sir Rowland Hill BT and a conservative second party?It is not neccessary to use all the tables.
SELECT original_airdate FROM table_26866299_1 WHERE series__number = 96
CREATE TABLE INST, Here is a database schema( table schema);
What was the original air date for episode number 96 in the series?It is not neccessary to use all the tables.
SELECT Race Name FROM table WHERE Circuit = snetterton
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the race for which the circuit was Snetterton?.It is not neccessary to use all the tables.
SELECT Ships in class FROM table WHERE Class = kuha class
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the ships in classs for kuha class.It is not neccessary to use all the tables.
SELECT playoffs FROM table_name_50 WHERE head_coach = "brent sutter" AND finish = "4th central" AND points = "82"
CREATE TABLE INST, Here is a database schema( table schema);
What was the playoff status when the head coach was Brent Sutter the finish was 4th central and the points were 82?It is not neccessary to use all the tables.
SELECT third_place FROM table_25214321_1 WHERE winner = "Karina Bacchi"
CREATE TABLE INST, Here is a database schema( table schema);
Who finished in third place when the winner was Karina Bacchi?It is not neccessary to use all the tables.
SELECT surface FROM table_name_3 WHERE opponent = "marcos baghdatis"
CREATE TABLE INST, Here is a database schema( table schema);
What was the surface for the opponent Marcos Baghdatis?It is not neccessary to use all the tables.
SELECT COUNT(number_of_clubs) FROM table_17632217_2 WHERE runners_up = "Liaoning Fushun"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of clubs when the runner-up was Liaoning Fushun?It is not neccessary to use all the tables.
SELECT team_1 FROM table_name_46 WHERE team_2 = "union douala"
CREATE TABLE INST, Here is a database schema( table schema);
What Team 1 has union douala as Team 2?It is not neccessary to use all the tables.
SELECT COUNT(season) FROM table_name_89 WHERE goals = 1 AND apps > 11
CREATE TABLE INST, Here is a database schema( table schema);
How many seasons have 1 goals and more than 11 apps?It is not neccessary to use all the tables.
SELECT SUM Week FROM table WHERE Attendance = 75,555
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE WEEK WITH AN ATTENDANCE OF 75,555?.It is not neccessary to use all the tables.
SELECT From FROM table WHERE Jersey Number(s) = 3
CREATE TABLE INST, Here is a database schema( table schema);
Where is jersey number 3 from?.It is not neccessary to use all the tables.
SELECT 2008–09 FROM table WHERE Event = masters
CREATE TABLE INST, Here is a database schema( table schema);
What is the 2008-09 result has Masters as the event?.It is not neccessary to use all the tables.
SELECT result FROM table_name_45 WHERE date = "november 25, 2001"
CREATE TABLE INST, Here is a database schema( table schema);
What is the result for November 25, 2001?It is not neccessary to use all the tables.
SELECT Part 3 FROM table WHERE Verb meaning = to gather
CREATE TABLE INST, Here is a database schema( table schema);
What is the Part 3 when the Verb meaning is to gather?.It is not neccessary to use all the tables.
SELECT aircraft AS damage FROM table_name_51 WHERE aircraft = "boeing 707-320b"
CREATE TABLE INST, Here is a database schema( table schema);
What was the aircraft damage for the Boeing 707-320B?It is not neccessary to use all the tables.
SELECT player FROM table_name_1 WHERE pick = 219
CREATE TABLE INST, Here is a database schema( table schema);
WHAT IS THE PLAYER WITH A PICK OF 219?It is not neccessary to use all the tables.
SELECT Catalog FROM table WHERE Date = january 25, 1987
CREATE TABLE INST, Here is a database schema( table schema);
What is the catalog number for the January 25, 1987 release?.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Developer = 2play mobile AND Genre = action
CREATE TABLE INST, Here is a database schema( table schema);
What is Title, when Developer is "2Play Mobile", and when Genre is "Action"?.It is not neccessary to use all the tables.
SELECT 2014 FROM table_name_23 WHERE 2013 = "jarrah rubinstein"
CREATE TABLE INST, Here is a database schema( table schema);
Who held the same position in 2014 that Jarrah Rubinstein held in 2013?It is not neccessary to use all the tables.
SELECT Class FROM table WHERE Chassis = dallara f308 AND Rounds = all AND Driver = sam abay
CREATE TABLE INST, Here is a database schema( table schema);
what is the class when the chassis is dallara f308, rounds is all and the driver is sam abay?.It is not neccessary to use all the tables.
SELECT Author FROM table WHERE Featuring = Peri AND Released = April 2010
CREATE TABLE INST, Here is a database schema( table schema);
Name the author for peri and april 2010.It is not neccessary to use all the tables.
SELECT prize FROM table_name_88 WHERE name = "sebastian ruthenberg"
CREATE TABLE INST, Here is a database schema( table schema);
What was the prize won by Sebastian Ruthenberg?It is not neccessary to use all the tables.
SELECT COUNT(location) FROM table_1399994_5 WHERE opponents = "Claudia Kohde-Kilsch Eva Pfaff"
CREATE TABLE INST, Here is a database schema( table schema);
How many locations hosted Claudia Kohde-Kilsch Eva Pfaff?It is not neccessary to use all the tables.
SELECT MIN(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 71559) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'glucose') AND STRFTIME('%y-%m', labevents.charttime) <= '2103-03' GROUP BY ...
CREATE TABLE INST, Here is a database schema( table schema);
what is patient 71559's monthly minimum glucose level until 03/2103?It is not neccessary to use all the tables.
SELECT population__2001_census_ FROM table_2801442_1 WHERE headquarters = "Bhubaneswar"
CREATE TABLE INST, Here is a database schema( table schema);
How many people lived in the district whose headquarters is in Bhubaneswar in 2001?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE First elected = 1944
CREATE TABLE INST, Here is a database schema( table schema);
What is the result for first elected in 1944.It is not neccessary to use all the tables.
SELECT SUM Reg GP FROM table WHERE Player = rick vaive AND Rd # > 1
CREATE TABLE INST, Here is a database schema( table schema);
How many reg GP for rick vaive in round 1?.It is not neccessary to use all the tables.
SELECT "IATA" FROM table_32960 WHERE "Country" = 'china' AND "ICAO" = 'zspd'
CREATE TABLE INST, Here is a database schema( table schema);
Which IATA is associated with China and an ICAO of ZSPD?It is not neccessary to use all the tables.
SELECT country___exonym__ FROM table_1008653_9 WHERE official_or_native_language_s___alphabet_script_ = "Icelandic"
CREATE TABLE INST, Here is a database schema( table schema);
What is the country (exonym) where the official or native language(s) (alphabet/script) is Icelandic?It is not neccessary to use all the tables.
SELECT COUNT(player) FROM table_12962773_12 WHERE height = "2.01"
CREATE TABLE INST, Here is a database schema( table schema);
WHat is the number for the player whose height is 2.01?It is not neccessary to use all the tables.
SELECT AVG Money ( $ ) FROM table WHERE Country = united states AND Place = t6
CREATE TABLE INST, Here is a database schema( table schema);
Which money has a Country of united states, and a Place of t6?.It is not neccessary to use all the tables.
SELECT DISTINCT T2.Hardware_Model_name FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE t2.Company_name = "Nokia Corporation" AND T1.Type <> "Text"
CREATE TABLE INST, Here is a database schema( table schema);
List the hardware model name for the phons that were produced by 'Nokia Corporation' but whose screen mode type is not Text.It is not neccessary to use all the tables.
SELECT year_joined FROM table_name_10 WHERE school = "western"
CREATE TABLE INST, Here is a database schema( table schema);
In what year did the team from the Western school join the conference?It is not neccessary to use all the tables.
SELECT AVG Laps FROM table WHERE Time/Retired = spun off AND Driver = nick heidfeld
CREATE TABLE INST, Here is a database schema( table schema);
What is the mean number of laps when time/retired was spun off and the driver was Nick Heidfeld?.It is not neccessary to use all the tables.
SELECT Area (km²) FROM table WHERE Map # = 24
CREATE TABLE INST, Here is a database schema( table schema);
Name the area for map # 24.It is not neccessary to use all the tables.
SELECT Nation FROM table WHERE Gold = 1 AND Bronze > 0
CREATE TABLE INST, Here is a database schema( table schema);
what is the nation when the gold is 1 and bronze is larger than 0?.It is not neccessary to use all the tables.
SELECT t3.treatmentname FROM (SELECT t2.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'c. di...
CREATE TABLE INST, Here is a database schema( table schema);
what were the three most frequently performed procedures for patients who received c. difficile toxin previously in the same hospital encounter since 6 years ago?It is not neccessary to use all the tables.
SELECT score FROM table_name_57 WHERE home = "ny islanders" AND date = "october 20"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the game on October 20 when the home team is the NY Islanders?It is not neccessary to use all the tables.
SELECT laps FROM table_name_72 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 Poles FROM table WHERE Points = 104
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of poles with 104 points?.It is not neccessary to use all the tables.
SELECT Artist FROM table WHERE Theme = 400th anniversary of quebec
CREATE TABLE INST, Here is a database schema( table schema);
Which artist created the silver dollar for the 400th anniversary of Quebec?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Club = rsc anderlecht
CREATE TABLE INST, Here is a database schema( table schema);
What scores did the RSC Anderlecht club have?.It is not neccessary to use all the tables.
SELECT Current Stock FROM table WHERE Avg. trips per mile (×1000) = 4744
CREATE TABLE INST, Here is a database schema( table schema);
When 4744 is the avg. trips per mile (x1000) what is the current stock?.It is not neccessary to use all the tables.
SELECT player FROM table_name_66 WHERE place = "1"
CREATE TABLE INST, Here is a database schema( table schema);
What is Player when Place is "1"?It is not neccessary to use all the tables.
SELECT date FROM table_27734769_8 WHERE high_rebounds = "LaMarcus Aldridge (6)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the date the high rebounds were by lamarcus aldridge (6)?It is not neccessary to use all the tables.
SELECT "Party" FROM table_18523 WHERE "Result" = 'Re-elected' AND "District" = 'Texas 11'
CREATE TABLE INST, Here is a database schema( table schema);
What party did the re-elected incumbent of the Texas 11 district belong to?It is not neccessary to use all the tables.
SELECT venue FROM table_name_10 WHERE away_team = "richmond"
CREATE TABLE INST, Here is a database schema( table schema);
Where did Richmond play?It is not neccessary to use all the tables.
SELECT Outcome FROM table WHERE Opponent in the final = çağla büyükakçay
CREATE TABLE INST, Here is a database schema( table schema);
What is the Outcome when çağla büyükakçay was the opponent in the final?.It is not neccessary to use all the tables.
SELECT country FROM table_name_17 WHERE place = "t6" AND score = 69 - 69 = 138 AND player = "niclas fasth"
CREATE TABLE INST, Here is a database schema( table schema);
What is the country that has a place of T6 a socre of 69-69=138 and where Niclas Fasth played?It is not neccessary to use all the tables.
SELECT designation FROM table_name_37 WHERE launch_weight = "11.3kg"
CREATE TABLE INST, Here is a database schema( table schema);
What designation has a launch weight of 11.3kg?It is not neccessary to use all the tables.
SELECT system FROM table_name_58 WHERE current_version = "3.0.0"
CREATE TABLE INST, Here is a database schema( table schema);
What is the System with the Current version 3.0.0?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Attendance = 65,554
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opposing team in the game attended by 65,554?.It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Year = 1907
CREATE TABLE INST, Here is a database schema( table schema);
What country had a winner in 1907?.It is not neccessary to use all the tables.
SELECT Points FROM table WHERE Wins = 0 AND Podiums = 0 AND Races = 4
CREATE TABLE INST, Here is a database schema( table schema);
What were the points in the year when his Wins were 0, his Podiums were 0, and he drove in 4 races?.It is not neccessary to use all the tables.
SELECT high_rebounds FROM table_23274514_5 WHERE record = "10-19"
CREATE TABLE INST, Here is a database schema( table schema);
Name the high rebounds for record 10-19It is not neccessary to use all the tables.
SELECT MAX(laps) FROM table_name_37 WHERE time_retired = "engine" AND grid = 5
CREATE TABLE INST, Here is a database schema( table schema);
Name the highest laps for time/retired of engine and grid of 5It is not neccessary to use all the tables.
SELECT MIN(kazakhstan) FROM table_name_20 WHERE kyrghizstan = 4.62 AND belarus < 2.46
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the lowest kazakhstan for kyrghizstan of 4.62 and belarus less than 2.46It is not neccessary to use all the tables.
SELECT date FROM table_name_57 WHERE record = "15-27"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Date of the game where the Cavaliers have a Record of 15-27?It is not neccessary to use all the tables.
SELECT prescriptions.route, prescriptions.drug_dose FROM prescriptions WHERE prescriptions.drug = "Promethazine HCl"
CREATE TABLE INST, Here is a database schema( table schema);
what is the drug route and drug dose of promethazine HCl?It is not neccessary to use all the tables.
SELECT ben_tahir FROM table_name_82 WHERE liscumb = "6" AND libweshya = "3"
CREATE TABLE INST, Here is a database schema( table schema);
What Ben-Tahir has a 6 Liscumb and 3 Libweshya?It is not neccessary to use all the tables.