sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT("Points") FROM table_75363 WHERE "January" = '18'
CREATE TABLE INST, Here is a database schema( table schema);
How many Points have a January of 18?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Venue = china
CREATE TABLE INST, Here is a database schema( table schema);
Which date has china as the venue?.It is not neccessary to use all the tables.
SELECT MIN October FROM table WHERE Record = 1–0–0
CREATE TABLE INST, Here is a database schema( table schema);
WHich October has a Record of 1–0–0?.It is not neccessary to use all the tables.
SELECT Total FROM table WHERE Silver < 65 AND Bronze > 4 AND Rank = 4
CREATE TABLE INST, Here is a database schema( table schema);
What is Total, when Silver is less than 65, when Bronze is greater than 4, and when Rank is "4"?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Venue = lake oval
CREATE TABLE INST, Here is a database schema( table schema);
When the game was played at the Venue of Lake Oval, what was the home team score?.It is not neccessary to use all the tables.
SELECT school_club_team FROM table_name_7 WHERE pick = 198
CREATE TABLE INST, Here is a database schema( table schema);
Which School/Club Team has a Pick of 198?It is not neccessary to use all the tables.
SELECT MAX(year) FROM table_name_81 WHERE result = "16-14"
CREATE TABLE INST, Here is a database schema( table schema);
In what Year was the Result of the game 16-14?It is not neccessary to use all the tables.
SELECT DISTINCT booking_class FROM class_of_service WHERE booking_class = 'Q'
CREATE TABLE INST, Here is a database schema( table schema);
explain the fare code QIt is not neccessary to use all the tables.
SELECT Category FROM table WHERE Film title used in nomination = Working Girl
CREATE TABLE INST, Here is a database schema( table schema);
What category was the movie Working Girl nominated?.It is not neccessary to use all the tables.
SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "21796"
CREATE TABLE INST, Here is a database schema( table schema);
for patient id 21796, specify the type of admission.It is not neccessary to use all the tables.
SELECT Chosen by FROM table WHERE Couple = katee shean joshua allen AND Choreographer(s) = nakul dev mahajan
CREATE TABLE INST, Here is a database schema( table schema);
What is Chosen By, when Couple is Katee Shean Joshua Allen, and when Choreographer(s) is Nakul Dev Mahajan?.It is not neccessary to use all the tables.
SELECT Balls FROM table WHERE Strike Rate = 70.10
CREATE TABLE INST, Here is a database schema( table schema);
When the strike rate is 70.10, what is the balls?.It is not neccessary to use all the tables.
SELECT NFL Team FROM table WHERE College = Norfolk State
CREATE TABLE INST, Here is a database schema( table schema);
What is the NFL team for the player who's college was Norfolk State?.It is not neccessary to use all the tables.
SELECT Episode FROM table WHERE Broadcast date = 11July1964
CREATE TABLE INST, Here is a database schema( table schema);
What episode aired on 11july1964?.It is not neccessary to use all the tables.
SELECT MIN(draft) FROM table_name_94 WHERE pick = 48
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest draft number with a 48 pick?It is not neccessary to use all the tables.
SELECT Series FROM table WHERE Release date = 1946-01-05
CREATE TABLE INST, Here is a database schema( table schema);
What is the Series of the Filmography with Release date of 1946-01-05?.It is not neccessary to use all the tables.
SELECT original_air_date FROM table_17355820_1 WHERE directed_by = "TR Babu Subramaniam"
CREATE TABLE INST, Here is a database schema( table schema);
On which dates did the episodes directed by TR Babu Subramaniam air?It is not neccessary to use all the tables.
SELECT Location FROM table WHERE Method = tko
CREATE TABLE INST, Here is a database schema( table schema);
Where was the method of tko?.It is not neccessary to use all the tables.
SELECT date FROM table_name_33 WHERE record = "3-1"
CREATE TABLE INST, Here is a database schema( table schema);
Name the date with record of 3-1It is not neccessary to use all the tables.
SELECT COUNT(shot_pct) FROM table_1505809_2 WHERE blank_ends = 8
CREATE TABLE INST, Here is a database schema( table schema);
What is the total of all Shot PCT occurrences when the value of Blank Ends is 8?It is not neccessary to use all the tables.
SELECT Segment C FROM table WHERE Segment B = refrigerators
CREATE TABLE INST, Here is a database schema( table schema);
Which segment c's segment b is refrigerators?.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.short_title = "Acute pancreatitis" AND prescriptions.drug_type = "ADDITIVE"
CREATE TABLE INST, Here is a database schema( table schema);
Provide the number of patients who have been diagnosed with acute pancreatitis and have a prescription for additive drug types.It is not neccessary to use all the tables.
SELECT year_opened FROM table_name_76 WHERE students = "na" AND size = "10 acres"
CREATE TABLE INST, Here is a database schema( table schema);
What year was the school opened that has a size of 10 acres and students of na?It is not neccessary to use all the tables.
SELECT AVG(week) FROM table_name_4 WHERE result = "l 10-7" AND attendance < 37 OFFSET 500
CREATE TABLE INST, Here is a database schema( table schema);
What was the average week of a game with a result of l 10-7 attended by 37500?It is not neccessary to use all the tables.
SELECT SUM Area (km 2 ) FROM table WHERE Population (2011) = 110
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the area in km with a population of 110 in 2011?.It is not neccessary to use all the tables.
SELECT COUNT(county) FROM table_1350350_2 WHERE per_capita_income = "$20,101"
CREATE TABLE INST, Here is a database schema( table schema);
how many county with per capita income being $20101It is not neccessary to use all the tables.
SELECT COUNT("year") FROM table_204_672 WHERE "label" = 'philips'
CREATE TABLE INST, Here is a database schema( table schema);
what is the total number of years for singles by philips label ?It is not neccessary to use all the tables.
SELECT qual FROM table_name_64 WHERE finish = "16" AND year = "1968"
CREATE TABLE INST, Here is a database schema( table schema);
What qual had a finish of 16 in 1968?It is not neccessary to use all the tables.
SELECT MAX Aircraft kilometers FROM table WHERE Departures = 17096
CREATE TABLE INST, Here is a database schema( table schema);
Of the years that had exactly 17096 departures, what is the greatest number of aircraft kilometers flown?.It is not neccessary to use all the tables.
SELECT new_channel_s_ FROM table_name_19 WHERE programme = "gladiators"
CREATE TABLE INST, Here is a database schema( table schema);
What channel is Gladiators on?It is not neccessary to use all the tables.
SELECT time FROM table_name_3 WHERE date = "december 15, 2010"
CREATE TABLE INST, Here is a database schema( table schema);
What was the time of December 15 2010?It is not neccessary to use all the tables.
SELECT new_pageant FROM table_14308895_2 WHERE country_territory = "Spain"
CREATE TABLE INST, Here is a database schema( table schema);
which is the new pageant from spain?It is not neccessary to use all the tables.
SELECT Railway FROM table WHERE Class = J15
CREATE TABLE INST, Here is a database schema( table schema);
Name the railway when class is j15.It is not neccessary to use all the tables.
SELECT AVG(week) FROM table_name_14 WHERE opponent = "philadelphia eagles" AND attendance < 31 OFFSET 066
CREATE TABLE INST, Here is a database schema( table schema);
What was the average week for the gaime against the philadelphia eagles with less than 31066 in attendance?It is not neccessary to use all the tables.
SELECT to_par FROM table_name_94 WHERE score = 71 - 71 - 70 - 70 = 282
CREATE TABLE INST, Here is a database schema( table schema);
When the score was 71-71-70-70=282 what was the To par recorded?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE Touchdowns = 1
CREATE TABLE INST, Here is a database schema( table schema);
Name the player for 1 touchdowns.It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Podiums = 4
CREATE TABLE INST, Here is a database schema( table schema);
What team had 4 podiums?.It is not neccessary to use all the tables.
SELECT MIN Clubs remaining FROM table WHERE Round = Fourth round
CREATE TABLE INST, Here is a database schema( table schema);
How many clubs remain in the fourth round?.It is not neccessary to use all the tables.
SELECT COUNT Total FROM table WHERE Bronze > 13 AND Rank = 8 AND Silver < 11
CREATE TABLE INST, Here is a database schema( table schema);
How many Total(s) are there, when the number of Bronze is greater than 13, when the Rank is 8, and when the number of Silver is less than 11?.It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Goal = 3
CREATE TABLE INST, Here is a database schema( table schema);
Which venue has a Goal of 3?.It is not neccessary to use all the tables.
SELECT AVG Year FROM table WHERE Inglewood < 2,575
CREATE TABLE INST, Here is a database schema( table schema);
What is the average year that had a value less than 2,575 in Inglewood?.It is not neccessary to use all the tables.
SELECT title FROM table_2343740_1 WHERE original_air_date = "February 9, 1979"
CREATE TABLE INST, Here is a database schema( table schema);
What was the title of the episode that aired February 9 1979?It is not neccessary to use all the tables.
SELECT COUNT Club FROM table WHERE Lost = 16
CREATE TABLE INST, Here is a database schema( table schema);
Name the total number of club for lost being 16.It is not neccessary to use all the tables.
SELECT date FROM table_name_20 WHERE game > 17
CREATE TABLE INST, Here is a database schema( table schema);
What date was there a game larger than 17?It is not neccessary to use all the tables.
SELECT player FROM table_name_12 WHERE to_par = "+5" AND score = 70 - 70 - 71 - 74 = 285
CREATE TABLE INST, Here is a database schema( table schema);
What Player has a To par of +5 with a Score of 70-70-71-74=285?It is not neccessary to use all the tables.
SELECT runners_up FROM table_name_84 WHERE team = "espartanos de margarita"
CREATE TABLE INST, Here is a database schema( table schema);
How many runners-up did Espartanos de Margarita have?It is not neccessary to use all the tables.
SELECT Opponent FROM table WHERE Attendance = 68,264
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the opponent for attendance of 68,264.It is not neccessary to use all the tables.
SELECT AVG Attendance FROM table WHERE Record = 17-18
CREATE TABLE INST, Here is a database schema( table schema);
What was the average attendance when the record was 17-18?.It is not neccessary to use all the tables.
SELECT T2.department_name, COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY T2.department_name
CREATE TABLE INST, Here is a database schema( table schema);
display the department name and number of employees in each of the department.It is not neccessary to use all the tables.
SELECT constructor FROM table_name_29 WHERE grid = "6"
CREATE TABLE INST, Here is a database schema( table schema);
Who constructed the car that had a grid of 6?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Date = june 5
CREATE TABLE INST, Here is a database schema( table schema);
Which Result that is on june 5?.It is not neccessary to use all the tables.
SELECT score FROM table_name_16 WHERE record = "31–28–3"
CREATE TABLE INST, Here is a database schema( table schema);
WHich Score has a Record of 31–28–3?It is not neccessary to use all the tables.
SELECT MAX(points) FROM table_name_71 WHERE class = "500cc" AND year > 1962 AND wins < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest points value for the 500cc class in years after 1962 with 0 wins?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "AORTIC VALVE INSUFFIENCY\AORTIC VALVE REPLACEMENT /SDA" AND lab.fluid = "Blood"
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients whose primary disease is aortic valve insuffiency\aortic valve replacement /sda and lab test fluid is blood?It is not neccessary to use all the tables.
SELECT No. range FROM table WHERE Type = 4vip
CREATE TABLE INST, Here is a database schema( table schema);
Tell me the number range for 4vip.It is not neccessary to use all the tables.
SELECT Built FROM table WHERE Location = la vista
CREATE TABLE INST, Here is a database schema( table schema);
When was la vista built?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'gastric tube irrigat nec') AND STRFTIME('%y', procedures_icd.charttime) = '2102' GROUP BY admissions.subject_id) AS t1 WHERE t1.c1 = 2
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients who have already received the gastric tube irrigat nec two times in 2102.It is not neccessary to use all the tables.
SELECT MIN Shirt No FROM table WHERE Birth Date = april 12, 1986 (age27)
CREATE TABLE INST, Here is a database schema( table schema);
What shirt No has a Birth Date of April 12, 1986 (age27)?.It is not neccessary to use all the tables.
SELECT MIN(year) FROM table_name_24 WHERE notes = "5.19km, 18controls"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Year when Notes is "5.19km 18controls"?It is not neccessary to use all the tables.
SELECT "High rebounds" FROM table_51164 WHERE "Game" > '65' AND "Date" = 'march 28'
CREATE TABLE INST, Here is a database schema( table schema);
Who had the highest rebounds of the game with a game number higher than 65 on March 28?It is not neccessary to use all the tables.
SELECT crime FROM table_2861364_1 WHERE place_of_execution = "Metz" AND executed_person = "Gunther Volz"
CREATE TABLE INST, Here is a database schema( table schema);
for what crime was gunther volz executed at metz?It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Player = justin leonard
CREATE TABLE INST, Here is a database schema( table schema);
What is Justin Leonard's To par?.It is not neccessary to use all the tables.
SELECT Location Attendance FROM table WHERE High assists = raymond felton (5) AND Record = 35–44
CREATE TABLE INST, Here is a database schema( table schema);
Which Location Attendance has a High assists of raymond felton (5), and a Record of 35–44?.It is not neccessary to use all the tables.
SELECT MIN Cuts made FROM table WHERE Events < 4
CREATE TABLE INST, Here is a database schema( table schema);
What are the lowest cuts made that have events less than 4?.It is not neccessary to use all the tables.
SELECT record FROM table_name_82 WHERE home = "ottawa senators" AND date = "december 21"
CREATE TABLE INST, Here is a database schema( table schema);
which Record has a Home of ottawa senators on Date of december 21?It is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Laps > 50 AND Grid = 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the constructor who has more than 50 laps and a grid of 7?.It is not neccessary to use all the tables.
SELECT COUNT(stadium) FROM table_29250534_1 WHERE club = "Haka"
CREATE TABLE INST, Here is a database schema( table schema);
How many stadiums have haka as the club?It is not neccessary to use all the tables.
SELECT Losses FROM table WHERE Jersey No. = 2 AND Games Started < 7.0
CREATE TABLE INST, Here is a database schema( table schema);
How many lost games for jersey number 2 and games started is less than 7.0?.It is not neccessary to use all the tables.
SELECT frequency FROM table_name_67 WHERE first_published = "april 27, 2010"
CREATE TABLE INST, Here is a database schema( table schema);
What is the frequency that the magazine issues that was first published on april 27, 2010?It is not neccessary to use all the tables.
SELECT no_1 FROM table_name_26 WHERE no_2 = "john"
CREATE TABLE INST, Here is a database schema( table schema);
What is the No. 1 of the person with a No. 2 of John?It is not neccessary to use all the tables.
SELECT SUM Silver FROM table WHERE Nation = cuba AND Gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of silver medals of the nation Cuba, which has less than 0 gold?.It is not neccessary to use all the tables.
SELECT 8:00 am FROM table WHERE 11:00 am = local programs
CREATE TABLE INST, Here is a database schema( table schema);
What is 8:00 am, when 11:00 am is "Local Programs"?.It is not neccessary to use all the tables.
SELECT Album FROM table WHERE Number = 10
CREATE TABLE INST, Here is a database schema( table schema);
Which album is #10?.It is not neccessary to use all the tables.
SELECT NFL Recap FROM table WHERE Record = 1–3
CREATE TABLE INST, Here is a database schema( table schema);
Which NFL Recap had a Record of 1–3?.It is not neccessary to use all the tables.
SELECT playoffs FROM table_name_27 WHERE year = "1924/25"
CREATE TABLE INST, Here is a database schema( table schema);
In 1924/25 who was in the playoffs?It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Score = 3–0 AND Set 1 = 25–22
CREATE TABLE INST, Here is a database schema( table schema);
What date was the score 3–0, and set 1 was 25–22?.It is not neccessary to use all the tables.
SELECT airline FROM table_name_51 WHERE notes = "aoc 135"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Airline when the notes show aoc 135?It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.drug = "DiphenhydrAMINE HCl"
CREATE TABLE INST, Here is a database schema( table schema);
count the number of patients whose admission type is urgent and drug name is diphenhydramine hcl?It is not neccessary to use all the tables.
SELECT SUM(total) FROM table_name_68 WHERE club = "darlington" AND league_goals = "13" AND league_cup_goals = "1"
CREATE TABLE INST, Here is a database schema( table schema);
Which Total has a Club of darlington and a League goals of 13 and a League Cup goals of 1?It is not neccessary to use all the tables.
SELECT year FROM table_name_13 WHERE superlative = "oldest winner"
CREATE TABLE INST, Here is a database schema( table schema);
In what year had the oldest winner?It is not neccessary to use all the tables.
SELECT opponent FROM table_name_35 WHERE date = "july 7"
CREATE TABLE INST, Here is a database schema( table schema);
Which opponent has a date of July 7?It is not neccessary to use all the tables.
SELECT SUM Silver FROM table WHERE Nation = turkey AND Total < 2
CREATE TABLE INST, Here is a database schema( table schema);
How many Silver medals for the Nation of Turkey with a Total of less than 2?.It is not neccessary to use all the tables.
SELECT "Turbine Vendor" FROM table_39541 WHERE "Turbines" < '6' AND "County" = 'donegal' AND "Size (MW)" = '0.85' AND "Wind Farm" = 'meenadreen'
CREATE TABLE INST, Here is a database schema( table schema);
Who is the turbine vendor for Meenadreen in Donegal county with less than 6 turbines with a size of 0.85 MW?It is not neccessary to use all the tables.
SELECT name FROM table_19487922_1 WHERE country = "France" AND race_entries__starts_ = "10"
CREATE TABLE INST, Here is a database schema( table schema);
Who is the competitor from France with 10 starts?It is not neccessary to use all the tables.
SELECT nation FROM table_name_65 WHERE silver > 2 AND gold < 4
CREATE TABLE INST, Here is a database schema( table schema);
Which country had more than 2 silvers and less than 4 golds?It is not neccessary to use all the tables.
SELECT driver FROM table_name_12 WHERE race_3 = "10"
CREATE TABLE INST, Here is a database schema( table schema);
What is Driver when Race 2 is "10"?It is not neccessary to use all the tables.
SELECT source FROM table_name_52 WHERE internet_explorer = "60.2%"
CREATE TABLE INST, Here is a database schema( table schema);
Which source date has an Internet Explorer usage of 60.2%?It is not neccessary to use all the tables.
SELECT tamil_months FROM table_1740431_3 WHERE season_in_english = "Monsoon"
CREATE TABLE INST, Here is a database schema( table schema);
What are all Tamil months when the season in English is monsoon?It is not neccessary to use all the tables.
SELECT Opponent# FROM table WHERE Attendance = 48,165
CREATE TABLE INST, Here is a database schema( table schema);
Who were the opponents when there was an attendance of 48,165?.It is not neccessary to use all the tables.
SELECT Opponent in the final FROM table WHERE Partner = dustin brown
CREATE TABLE INST, Here is a database schema( table schema);
Which Opponent in the final has a Partner of dustin brown?.It is not neccessary to use all the tables.
SELECT Home FROM table WHERE Visitor = chicago
CREATE TABLE INST, Here is a database schema( table schema);
Name the home with chicago visiting.It is not neccessary to use all the tables.
SELECT outcome FROM table_name_98 WHERE opponent = "rik de voest"
CREATE TABLE INST, Here is a database schema( table schema);
What was the outcome for Rik de Voest as opponent?It is not neccessary to use all the tables.
SELECT to_par FROM table_name_71 WHERE player = "tom kite"
CREATE TABLE INST, Here is a database schema( table schema);
What was Tom Kite's to par?It is not neccessary to use all the tables.
SELECT COUNT Round FROM table WHERE Opponents = Haugar
CREATE TABLE INST, Here is a database schema( table schema);
what is the total number of round where opponents is haugar.It is not neccessary to use all the tables.
SELECT MAX Quantity FROM table WHERE K.B.Sts.B. Class = b ix
CREATE TABLE INST, Here is a database schema( table schema);
What is the highest quantity of the b ix k.b.sts.b.?.It is not neccessary to use all the tables.
SELECT first_performance FROM table_19189856_1 WHERE last_performance = "03/29/1957"
CREATE TABLE INST, Here is a database schema( table schema);
what is the first performance of the last performance on 03/29/1957It is not neccessary to use all the tables.
SELECT Height in Ft. FROM table WHERE Years for Rockets = 2005-06
CREATE TABLE INST, Here is a database schema( table schema);
What is the Height for Years of Rockets of 2005-06?.It is not neccessary to use all the tables.
SELECT SUM Assists FROM table WHERE Venue = ulsan AND Competition = k-league AND Name = kang jae-soon
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the assists kang jae-soon had in the k-league competition in ulsan?.It is not neccessary to use all the tables.
SELECT COUNT(grid) FROM table_name_87 WHERE team = "italy"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Grid number for the Team from Italy?It is not neccessary to use all the tables.
SELECT hometown FROM table_name_22 WHERE legislatures = "twenty-sixth"
CREATE TABLE INST, Here is a database schema( table schema);
What is the hometown of the representative that served the twenty-sixth legislature?It is not neccessary to use all the tables.