sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT "Visiting Team" FROM table_56761 WHERE "Stadium" = 'servus centre'
CREATE TABLE INST, Here is a database schema( table schema);
Which Visiting Team has a Stadium of servus centre?It is not neccessary to use all the tables.
SELECT original_airdate FROM table_24222929_4 WHERE episode_number_production_number = "7 1-07"
CREATE TABLE INST, Here is a database schema( table schema);
Name the original air date for 7 1-07It is not neccessary to use all the tables.
SELECT resolution FROM table_27653752_1 WHERE pixels_per_degree__ppd_ = 69
CREATE TABLE INST, Here is a database schema( table schema);
What's the resolution of the model with a PPD of 69?It is not neccessary to use all the tables.
SELECT Land area (km²) FROM table WHERE Population (2011) = 1233
CREATE TABLE INST, Here is a database schema( table schema);
When 1233 is the population of 2011 what is the land area in kilometers squared?.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_97 WHERE time = "0:10"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent when the fight had a time of 0:10?It is not neccessary to use all the tables.
SELECT density__hab__km²__ FROM table_name_22 WHERE extension_km² = "380,64"
CREATE TABLE INST, Here is a database schema( table schema);
What is the density (hab/ km²) when the extension km² is 38064?It is not neccessary to use all the tables.
SELECT Number of networks FROM table WHERE Size of rest bit field = 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of networks when the size of rest bit field is 8?.It is not neccessary to use all the tables.
SELECT devices_per_channel FROM table_174151_5 WHERE raw_bandwidth__mbit_s_ = 2560
CREATE TABLE INST, Here is a database schema( table schema);
Name the devices per channel for 2560It is not neccessary to use all the tables.
SELECT COUNT Party FROM table WHERE Incumbent = Stephen Pace
CREATE TABLE INST, Here is a database schema( table schema);
How many parties does incumbent stephen pace represent?.It is not neccessary to use all the tables.
SELECT MIN Population (May, 2000) FROM table WHERE Location = coastal AND Barangay = Isio
CREATE TABLE INST, Here is a database schema( table schema);
What was the population of the coastal location Isio in May of 2000?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Production = wicked AND Award = green room awards
CREATE TABLE INST, Here is a database schema( table schema);
During what year was Wicked associated with the Green Room Awards?.It is not neccessary to use all the tables.
SELECT COUNT Number of fixtures FROM table WHERE New entries this round = none
CREATE TABLE INST, Here is a database schema( table schema);
How many times is the new entries this round is none?.It is not neccessary to use all the tables.
SELECT MAX("Match") FROM table_67904 WHERE "Date" = 'august 3, 2007'
CREATE TABLE INST, Here is a database schema( table schema);
What match number took place on August 3, 2007?It is not neccessary to use all the tables.
SELECT Race FROM table WHERE Winning horse = dominican AND Distance = 1-1/16 miles
CREATE TABLE INST, Here is a database schema( table schema);
what race did Dominican win with a distance of 1-1/16 miles?.It is not neccessary to use all the tables.
SELECT COUNT(wins) FROM table_2216245_2 WHERE winnings = "$95,180"
CREATE TABLE INST, Here is a database schema( table schema);
How many wins did he have when he had $95180 in winnings?It is not neccessary to use all the tables.
SELECT opponents_in_the_final FROM table_name_4 WHERE date = "june 23, 2003"
CREATE TABLE INST, Here is a database schema( table schema);
Who were the opponents of the final on June 23 2003?It is not neccessary to use all the tables.
SELECT COUNT W FROM table WHERE Skip (Club) = Nicole Backe (Nanaimo Curling Club)
CREATE TABLE INST, Here is a database schema( table schema);
When nicole backe (nanaimo curling club) is the skip (club) how many sets of w's are there?.It is not neccessary to use all the tables.
SELECT total FROM table_182298_5 WHERE mens_open = 7
CREATE TABLE INST, Here is a database schema( table schema);
How many are the total winners if 7 won the Men's Open?It is not neccessary to use all the tables.
SELECT Best fit (all data) FROM table WHERE Best fit (WMAP, extra parameter) = —
CREATE TABLE INST, Here is a database schema( table schema);
What is the best fit (all data) when the best fit (WMAP, extra parameter) shows —?.It is not neccessary to use all the tables.
SELECT "Class" FROM table_34329 WHERE "Call sign" = 'w269ax'
CREATE TABLE INST, Here is a database schema( table schema);
what is the class of w269axIt is not neccessary to use all the tables.
SELECT position FROM table_11677691_10 WHERE hometown = "Paramus, New Jersey"
CREATE TABLE INST, Here is a database schema( table schema);
What position belonged to the player from Paramus New Jersey?It is not neccessary to use all the tables.
SELECT opponents FROM table_name_15 WHERE partner = "irina-camelia begu" AND surface = "hard"
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponents have a Partner of irina-camelia begu and a Surface of hard?It is not neccessary to use all the tables.
SELECT Transfer fee FROM table WHERE Name = evilasio
CREATE TABLE INST, Here is a database schema( table schema);
what is the transfer fee for evilasio?.It is not neccessary to use all the tables.
SELECT COUNT Bronze FROM table WHERE Gold > 0 AND Total < 1
CREATE TABLE INST, Here is a database schema( table schema);
How much Bronze has a Gold larger than 0, and a Total smaller than 1?.It is not neccessary to use all the tables.
SELECT SUM(score) FROM table_name_96 WHERE to_par = "e" AND country = "united states"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score of the golfer from the united states who had a To par of e?It is not neccessary to use all the tables.
SELECT club FROM table_name_55 WHERE nationality = "united states" AND player = "ty harden"
CREATE TABLE INST, Here is a database schema( table schema);
What club did united states player ty harden play for?It is not neccessary to use all the tables.
SELECT Race Leader FROM table WHERE Course = cuneo to turin
CREATE TABLE INST, Here is a database schema( table schema);
Who's the race leader of Cuneo to Turin?.It is not neccessary to use all the tables.
SELECT SUM(bronze) FROM table_name_19 WHERE rank = 7 AND total > 22
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Bronze when the rank is 7, and the total is more than 22?It is not neccessary to use all the tables.
SELECT nation FROM table_name_9 WHERE bronze = "1" AND silver = "3"
CREATE TABLE INST, Here is a database schema( table schema);
What nation has 1 bronze and 3 silvers?It is not neccessary to use all the tables.
SELECT model_number FROM table_27277284_28 WHERE order_part_number = "TMRM75DAM22GG"
CREATE TABLE INST, Here is a database schema( table schema);
What is the model number for the order part numbered tmrm75dam22gg?It is not neccessary to use all the tables.
SELECT MAX Goals FROM table WHERE Games = 75
CREATE TABLE INST, Here is a database schema( table schema);
How many goals are associated with 75 games?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Score = 5–4
CREATE TABLE INST, Here is a database schema( table schema);
Who is the opponent with a score of 5–4?.It is not neccessary to use all the tables.
SELECT COUNT(high_rebounds) FROM table_17058151_8 WHERE date = "February 10"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of high rebounds for february 10It is not neccessary to use all the tables.
SELECT COUNT Macedonian FROM table WHERE Slovianski = veliki
CREATE TABLE INST, Here is a database schema( table schema);
How many values for Macedonian correspond to Slovianski value of Veliki?.It is not neccessary to use all the tables.
SELECT COUNT 1990 FROM table WHERE 1970 < 10,522
CREATE TABLE INST, Here is a database schema( table schema);
How many 1990 growth numbers had less than 10,522 in 1970?.It is not neccessary to use all the tables.
SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.subject_id = "2560"
CREATE TABLE INST, Here is a database schema( table schema);
what is diagnoses long title of subject id 2560?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Pick # = 69
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the player that is pick #69?.It is not neccessary to use all the tables.
SELECT SUM Game FROM table WHERE Opponent = new york knickerbockers
CREATE TABLE INST, Here is a database schema( table schema);
what is the game when the opponent is new york knickerbockers?.It is not neccessary to use all the tables.
SELECT manufacturer FROM table_name_53 WHERE laps < 28 AND grid < 9 AND rider = "jeremy mcwilliams"
CREATE TABLE INST, Here is a database schema( table schema);
Which manufacturer has more than 28 laps and less than 9 grids with jeremy mcwilliams?It is not neccessary to use all the tables.
SELECT Position FROM table WHERE Height = 205 AND Shirt No = 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the position of the player with a height of 205 and shirt no 8?.It is not neccessary to use all the tables.
SELECT directed_by FROM table_28194879_1 WHERE production_code = "PABF05"
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode whose production code is pabf05?It is not neccessary to use all the tables.
SELECT TagName, COUNT(DISTINCT Posts.Id) AS "Number of questions", (SELECT SUM(Score) FROM Tags AS TagsI INNER JOIN PostTags ON PostTags.TagId = TagsI.Id INNER JOIN Posts ON PostTags.PostId = Posts.Id WHERE TagsI.TagName = TagsO.TagName) AS "Total score of all questions", COUNT(Answers.Id) AS "Number of answers", SUM(Answers.Score) AS "Total score of all answers" FROM Tags AS TagsO INNER JOIN PostTags ON PostTags.TagId = TagsO.Id INNER JOIN Posts ON PostTags.PostId = Posts.Id LEFT JOIN Posts AS Answers ON Posts.Id = Answers.ParentId GROUP BY TagName
CREATE TABLE INST, Here is a database schema( table schema);
Total score and number of questions/answers by tag.It is not neccessary to use all the tables.
SELECT MIN Laps FROM table WHERE Manufacturer = yamaha AND Time/Retired = +1:08.312 AND Grid < 20
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest laps that has a manufacturer of yamaha, and a time/retired of +1:08.312, and a grid less than 20?.It is not neccessary to use all the tables.
SELECT medication.drugstarttime FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '033-17325')) AND medication.routeadmin = 'intra-cathet' AND STRFTIME('%y-%m', medication.drugstarttime) <= '2105-11' ORDER BY medication.drugstarttime DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
when was the last time that patient 033-17325 was prescribed a medicine via intra-cathet route until 11/2105?It is not neccessary to use all the tables.
SELECT team FROM table_name_22 WHERE start = 8 AND year < 2008
CREATE TABLE INST, Here is a database schema( table schema);
Which team had a start of 8 in years under 2008?It is not neccessary to use all the tables.
SELECT points FROM table_name_54 WHERE wins > 15 AND losses < 10
CREATE TABLE INST, Here is a database schema( table schema);
How many points has more than 15 wins and less than 10 losses?It is not neccessary to use all the tables.
SELECT railway_number_s_ FROM table_name_19 WHERE quantity = 3
CREATE TABLE INST, Here is a database schema( table schema);
Which railway number has 3 quantity?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT transfers.hadm_id FROM transfers WHERE transfers.careunit = 'micu' AND STRFTIME('%y', transfers.intime) = '2104')
CREATE TABLE INST, Here is a database schema( table schema);
how many patients were in careunit micu in 2104.It is not neccessary to use all the tables.
SELECT time FROM table_name_55 WHERE method = "decision(majority)" AND opponent = "keisuke yamada"
CREATE TABLE INST, Here is a database schema( table schema);
Which time has a Method of decision(majority) and an Opponent of keisuke yamada?It is not neccessary to use all the tables.
SELECT MAX Production code FROM table WHERE Original air date = October 27, 1994
CREATE TABLE INST, Here is a database schema( table schema);
What is the production code for the show that aired on October 27, 1994?.It is not neccessary to use all the tables.
SELECT AVG(week) FROM table_name_98 WHERE date = "september 3, 2000"
CREATE TABLE INST, Here is a database schema( table schema);
What week has a date of September 3 2000?It is not neccessary to use all the tables.
SELECT Year (Ceremony) FROM table WHERE Original title = Här har du ditt liv
CREATE TABLE INST, Here is a database schema( table schema);
When was the film Här har du ditt liv used in nomination?.It is not neccessary to use all the tables.
SELECT COUNT("Swimsuit") FROM table_78217 WHERE "Interview" < '9.09' AND "Evening Gown" < '8.21' AND "Average" = '8.453'
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of swimsuits for evening gowns less than 8.21 and average of 8.453 with interview less than 9.09It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Team = new york knicks AND Position = c
CREATE TABLE INST, Here is a database schema( table schema);
Who is the player that plays position c on the New York Knicks?.It is not neccessary to use all the tables.
SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality
CREATE TABLE INST, Here is a database schema( table schema);
Show me a pie chart for how many hosts does each nationality have? List the nationality and the count.It is not neccessary to use all the tables.
SELECT COUNT(laps) FROM table_name_48 WHERE year = "1961"
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of Laps for year of 1961It is not neccessary to use all the tables.
SELECT "Medal" FROM table_36407 WHERE "Weight" = 'fly' AND "Boxer" = 'michael conlon'
CREATE TABLE INST, Here is a database schema( table schema);
What medal did Michael Conlon, with a weight of fly, win?It is not neccessary to use all the tables.
SELECT SUM(apparent_magnitude) FROM table_name_45 WHERE ngc_number > 3293
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of Apparent magnitudes for an NGC number larger than 3293?It is not neccessary to use all the tables.
SELECT "competition" FROM table_203_763 GROUP BY "competition" ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
which competition appears the most on the table ?It is not neccessary to use all the tables.
SELECT drobo__2nd_ FROM table_name_40 WHERE drobo_fs = "up to 32"
CREATE TABLE INST, Here is a database schema( table schema);
Which Drobo (2nd) has a Drobo FS of up to 32?It is not neccessary to use all the tables.
SELECT SUM(game) FROM table_name_44 WHERE score = "w 104–90 (ot)"
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Game with a Score that is w 104–90 (ot)?It is not neccessary to use all the tables.
SELECT result FROM table_17861179_1 WHERE week = 6
CREATE TABLE INST, Here is a database schema( table schema);
For week 6 what were the results?It is not neccessary to use all the tables.
SELECT kit_manufacturer FROM table_name_50 WHERE captain = "gareth southgate"
CREATE TABLE INST, Here is a database schema( table schema);
What company is the kit manufacturer that Gareth Southgate belongs to?It is not neccessary to use all the tables.
SELECT MAX(crowd) FROM table_name_67 WHERE away_team = "collingwood"
CREATE TABLE INST, Here is a database schema( table schema);
What was the largest crowd when Collingwood was the away team?It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_16 WHERE departed_from = "tdb"
CREATE TABLE INST, Here is a database schema( table schema);
When did TDB depart?It is not neccessary to use all the tables.
SELECT COUNT(laps) FROM table_name_5 WHERE driver = "ron flockhart"
CREATE TABLE INST, Here is a database schema( table schema);
what is the number of laps when the driver is ron flockhart?It is not neccessary to use all the tables.
SELECT Dependent_name FROM dependent WHERE relationship = 'Spouse'
CREATE TABLE INST, Here is a database schema( table schema);
find all dependent names who have a spouse relation with some employee.It is not neccessary to use all the tables.
SELECT AVG(grid) FROM table_name_79 WHERE time_retired = "+17.276" AND laps > 22
CREATE TABLE INST, Here is a database schema( table schema);
What is the average grid for competitors who had more than 22 laps and time/retired of +17.276?It is not neccessary to use all the tables.
SELECT Free Agent Type FROM table WHERE Player = bryant johnson
CREATE TABLE INST, Here is a database schema( table schema);
What is the Free Agent Type for player bryant johnson?.It is not neccessary to use all the tables.
SELECT class FROM table_name_54 WHERE erp_w > 30
CREATE TABLE INST, Here is a database schema( table schema);
what is the class of the station with erp w more than 30?It is not neccessary to use all the tables.
SELECT COUNT Production code FROM table WHERE Original air date = November 16, 1990
CREATE TABLE INST, Here is a database schema( table schema);
How many production codes have an original airdate of November 16, 1990?.It is not neccessary to use all the tables.
SELECT engine type FROM table WHERE max. torque at rpm = N·m ( lbf·ft ) @ 4,800
CREATE TABLE INST, Here is a database schema( table schema);
What is the engine type when the max torque at rpm is n·m ( lbf·ft ) @ 4,800 Answers:?.It is not neccessary to use all the tables.
SELECT original_air_date FROM table_26561498_1 WHERE patient_portrayer = "Julie Warner"
CREATE TABLE INST, Here is a database schema( table schema);
what is the original air date for julie warner?It is not neccessary to use all the tables.
SELECT COUNT Year FROM table WHERE Award = tony award AND Nominee = terry johnson
CREATE TABLE INST, Here is a database schema( table schema);
In what year was Terry Johnson nominated for a Tony award?.It is not neccessary to use all the tables.
SELECT round FROM table_name_22 WHERE res = "loss" AND record = "12-3"
CREATE TABLE INST, Here is a database schema( table schema);
What round was a loss with a record of 12-3?It is not neccessary to use all the tables.
SELECT 2011 First Time FROM table WHERE 2009 All = 68%
CREATE TABLE INST, Here is a database schema( table schema);
What is the percentage for first time 2011 when the first time in 2009 is 68%?.It is not neccessary to use all the tables.
SELECT Location Attendance FROM table WHERE High points = Kevin Durant (25)
CREATE TABLE INST, Here is a database schema( table schema);
Where was the game in which Kevin Durant (25) did the most high points played?.It is not neccessary to use all the tables.
SELECT copa_libertadores_1996 FROM table_name_84 WHERE copa_conmebol_1996 = "quarterfinals"
CREATE TABLE INST, Here is a database schema( table schema);
What is the copa libertadores 1996 result of the team with a copa conmebol 1996 result of quarterfinals?It is not neccessary to use all the tables.
SELECT label FROM table_name_23 WHERE date = "2002" AND region = "germany" AND catalog = "dos 195"
CREATE TABLE INST, Here is a database schema( table schema);
What is the label for 2002 in Germany Catalog Dos 195?It is not neccessary to use all the tables.
SELECT "Place" FROM table_54893 WHERE "Performance" = '60.73m'
CREATE TABLE INST, Here is a database schema( table schema);
What is the place when the performance is 60.73m?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Away = 1–1 AND Home = 3–3
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponent has an Away of 1–1, and a Home of 3–3?.It is not neccessary to use all the tables.
SELECT MIN(time) FROM table_name_35 WHERE react > 0.183 AND athlete = "david neville"
CREATE TABLE INST, Here is a database schema( table schema);
What is the shortest Time for David Neville when his React time was greater than 0.183?It is not neccessary to use all the tables.
SELECT Stadium FROM table WHERE Opponent = bye
CREATE TABLE INST, Here is a database schema( table schema);
What was the Stadium against Bye?.It is not neccessary to use all the tables.
SELECT álbum FROM table_name_65 WHERE year = 1996
CREATE TABLE INST, Here is a database schema( table schema);
What álbum was in the year 1996?It is not neccessary to use all the tables.
SELECT COUNT Pick FROM table WHERE Position = tackle AND Player = woody adams AND Round > 22
CREATE TABLE INST, Here is a database schema( table schema);
What's the sum of the Pick that has the Position of Tackle, the Player Woody Adams, and a Round that's larger than 22?.It is not neccessary to use all the tables.
SELECT "player" FROM table_204_188 ORDER BY "rank" LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
who was the highest ranking player to withdraw from the 2010 french open tournament ?It is not neccessary to use all the tables.
SELECT SUM Draws FROM table WHERE Position < 4 AND Wins = 11 AND Points < 38
CREATE TABLE INST, Here is a database schema( table schema);
What was the sum of the draws for the team that had 11 wins, less than 38 points, and a position smaller than 4?.It is not neccessary to use all the tables.
SELECT Casinos FROM table WHERE 1-Jul-08 = 1865746
CREATE TABLE INST, Here is a database schema( table schema);
How many casinos are associated with a July 1, 2008 value of 1865746?.It is not neccessary to use all the tables.
SELECT Double Dotted Value FROM table WHERE Triple Dotted Value = 15/128
CREATE TABLE INST, Here is a database schema( table schema);
what is the double dotted value when the triple dotted value is 15/128?.It is not neccessary to use all the tables.
SELECT MAX("Pts Agst") FROM table_17922 WHERE "Pts For" = '860'
CREATE TABLE INST, Here is a database schema( table schema);
Name the most points against when points for is 860It is not neccessary to use all the tables.
SELECT SUM(caps) FROM table_name_83 WHERE goals < 9 AND rank > 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of caps for players with less than 9 goals ranked below 8?It is not neccessary to use all the tables.
SELECT director FROM table_name_8 WHERE language = "dutch"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the Director that speaks dutch?It is not neccessary to use all the tables.
SELECT position FROM table_19730892_1 WHERE name = "Billy Price"
CREATE TABLE INST, Here is a database schema( table schema);
Name the position for billy priceIt is not neccessary to use all the tables.
SELECT COUNT(title) FROM table_12451376_2 WHERE production_code = 211
CREATE TABLE INST, Here is a database schema( table schema);
Please list the total number of title with the production code 211.It is not neccessary to use all the tables.
SELECT Successor FROM table WHERE District = Ohio 15th
CREATE TABLE INST, Here is a database schema( table schema);
who was the successor for district ohio 15th?.It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Method = submission
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponent has a Method of submission?.It is not neccessary to use all the tables.
SELECT Format FROM table WHERE Call sign = K213CL
CREATE TABLE INST, Here is a database schema( table schema);
What station has the call number K213cl.It is not neccessary to use all the tables.
SELECT fuel_system FROM table_name_95 WHERE years = "1960-62"
CREATE TABLE INST, Here is a database schema( table schema);
What fuel system was used in 1960-62?It is not neccessary to use all the tables.
SELECT visitor FROM table_name_77 WHERE series = "2 – 3"
CREATE TABLE INST, Here is a database schema( table schema);
Who has Series of 2 3?It is not neccessary to use all the tables.
SELECT centennial FROM table_name_4 WHERE altadeña = "panthers"
CREATE TABLE INST, Here is a database schema( table schema);
Which Centennial has a Altade a of panthers?It is not neccessary to use all the tables.