answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT MAX(Age), MIN(Age) FROM STUDENT WHERE Major = 600
What are the maximum and minimum age of students with major 600?
CREATE TABLE STUDENT (Age INTEGER, Major VARCHAR)
SELECT location, circuitId FROM circuits WHERE country = "France" OR country = "Belgium" ORDER BY circuitId
What are the ids and locations of all circuits in France or Belgium Show bar chart, and order in asc by the Y.
CREATE TABLE constructors ( constructorId INTEGER, constructorRef TEXT, name TEXT, nationality TEXT, url TEXT ) CREATE TABLE lapTimes ( raceId INTEGER, driverId INTEGER, lap INTEGER, position INTEGER, time TEXT, milliseconds INTEGER ) CREATE TABLE driverStandings ( driv...
SELECT COUNT(season__number) FROM table_17356106_1 WHERE directed_by = "Joanna Kerns"
What was the number of seasons that was directed by Joanna Kerns?
CREATE TABLE table_17356106_1 (season__number VARCHAR, directed_by VARCHAR)
SELECT Advisor FROM STUDENT WHERE city_code = "BAL"
Who are the advisors for students that live in a city with city code "BAL"?
CREATE TABLE STUDENT (Advisor VARCHAR, city_code VARCHAR)
SELECT incumbent FROM table_1341663_44 WHERE district = "Texas 19"
What was the incumbent for texas 19?
CREATE TABLE table_1341663_44 ( incumbent VARCHAR, district VARCHAR )
SELECT original_air_date FROM table_17356106_1 WHERE series__number = 256
For series number 256, what was the original air date?
CREATE TABLE table_17356106_1 (original_air_date VARCHAR, series__number VARCHAR)
SELECT DISTINCT Secretary_Vote FROM VOTING_RECORD WHERE ELECTION_CYCLE = "Fall"
What are the distinct secretary votes in the fall election cycle?
CREATE TABLE VOTING_RECORD (Secretary_Vote VARCHAR, ELECTION_CYCLE VARCHAR)
SELECT "Runner(s)-up" FROM table_54299 WHERE "Winning score" = '−3 (71-74-66-66=277)'
Who is the runner(s)-up for a winning score of 3 (71-74-66-66=277)?
CREATE TABLE table_54299 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text )
SELECT season__number FROM table_17356205_1 WHERE directed_by = "Skipp Sudduth"
What season episode is directed by Skipp Sudduth?
CREATE TABLE table_17356205_1 (season__number VARCHAR, directed_by VARCHAR)
SELECT DISTINCT PRESIDENT_Vote FROM VOTING_RECORD WHERE Registration_Date = "08/30/2015"
What are the distinct president votes on 08/30/2015?
CREATE TABLE VOTING_RECORD (PRESIDENT_Vote VARCHAR, Registration_Date VARCHAR)
SELECT "OVERALL" FROM table_14558 WHERE "PLYFF" = '(0-0)' AND "HOME" = '(0-1)' AND "Opponent" = 'green bay blizzard'
Which team has an overall playoff of (0-0), a home record of (0-1) and played the Green Bay Blizzard team?
CREATE TABLE table_14558 ( "Opponent" text, "OVERALL" text, "HOME" text, "AWAY" text, "PLYFF" text )
SELECT COUNT(title) FROM table_17356205_1 WHERE directed_by = "Joanna Kerns"
How many titles are given for the episode directed by Joanna Kerns?
CREATE TABLE table_17356205_1 (title VARCHAR, directed_by VARCHAR)
SELECT DISTINCT Registration_Date, Election_Cycle FROM VOTING_RECORD
Report the distinct registration date and the election cycle.
CREATE TABLE VOTING_RECORD (Registration_Date VARCHAR, Election_Cycle VARCHAR)
SELECT competition_type FROM competition GROUP BY competition_type HAVING COUNT(*) <= 5
List the types of competition that have at most five competitions of that type.
CREATE TABLE competition ( competition_id number, year number, competition_type text, country text ) CREATE TABLE competition_result ( competition_id number, club_id_1 number, club_id_2 number, score text ) CREATE TABLE player ( player_id number, name text, position text, ...
SELECT original_air_date FROM table_17356205_1 WHERE directed_by = "Terrence Nightingall"
What is the original air date of the episode directed by Terrence Nightingall?
CREATE TABLE table_17356205_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT DISTINCT President_Vote, VICE_President_Vote FROM VOTING_RECORD
Report the distinct president vote and the vice president vote.
CREATE TABLE VOTING_RECORD (President_Vote VARCHAR, VICE_President_Vote VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.route = "IH"
count the number of patients whose admission type is emergency and drug route is ih?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
SELECT title FROM table_17355933_1 WHERE directed_by = "Nelson McCormick"
Which seasons were directed by Nelson McCormick?
CREATE TABLE table_17355933_1 (title VARCHAR, directed_by VARCHAR)
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE
Find the distinct last names of the students who have class president votes.
CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (CLASS_President_VOTE VARCHAR)
SELECT MAX(attendance) FROM table_name_35 WHERE loss = "darling (0–1)"
What is the largest Attendance with a Loss of darling (0 1)?
CREATE TABLE table_name_35 ( attendance INTEGER, loss VARCHAR )
SELECT title FROM table_17355933_1 WHERE directed_by = "Laura Innes"
Which season titles were directed by Laura Innes?
CREATE TABLE table_17355933_1 (title VARCHAR, directed_by VARCHAR)
SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_Senator_VOTE
Find the distinct first names of the students who have class senator votes.
CREATE TABLE STUDENT (Fname VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (CLASS_Senator_VOTE VARCHAR)
SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 6536 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1)) AND cha...
how big is the difference in patient 6536's weight second measured on the last hospital visit compared to the first value measured on the last hospital visit?
CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE ...
SELECT written_by FROM table_17355820_1 WHERE directed_by = "Nelson McCormick"
Which episodes did Nelson McCormick direct?
CREATE TABLE table_17355820_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT DISTINCT T1.Age FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Secretary_Vote WHERE T2.Election_Cycle = "Fall"
Find the distinct ages of students who have secretary votes in the fall election cycle.
CREATE TABLE VOTING_RECORD (Secretary_Vote VARCHAR, Election_Cycle VARCHAR); CREATE TABLE STUDENT (Age VARCHAR, StuID VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Self Pay" AND demographic.days_stay > "26"
how many patients whose insurance is self pay and days of hospital stay is greater than 26?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( ...
SELECT COUNT(title) FROM table_17355820_1 WHERE season__number = 19
How many episodes were there in season 19?
CREATE TABLE table_17355820_1 (title VARCHAR, season__number VARCHAR)
SELECT DISTINCT T1.Advisor FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote WHERE T2.Election_Cycle = "Spring"
Find the distinct Advisor of students who have treasurer votes in the spring election cycle.
CREATE TABLE STUDENT (Advisor VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Treasurer_Vote VARCHAR, Election_Cycle VARCHAR)
SELECT try_bonus FROM table_name_61 WHERE points_against = "488"
What Try bonus has a Points against of 488?
CREATE TABLE table_name_61 ( try_bonus VARCHAR, points_against VARCHAR )
SELECT MIN(season__number) FROM table_17355820_1 WHERE directed_by = "Paul McCrane"
In which season did Paul McCrane first direct an episode?
CREATE TABLE table_17355820_1 (season__number INTEGER, directed_by VARCHAR)
SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote
Find the distinct majors of students who have treasurer votes.
CREATE TABLE VOTING_RECORD (Treasurer_Vote VARCHAR); CREATE TABLE STUDENT (Major VARCHAR, StuID VARCHAR)
SELECT coach FROM table_name_18 WHERE conference_titles = "0" AND seasons > 2 AND losses > 87 AND ncaa = "0"
Which coach has 0 conference titles, more than 2 seasons, higher than 87 losses and 0 NCAA?
CREATE TABLE table_name_18 ( coach VARCHAR, ncaa VARCHAR, losses VARCHAR, conference_titles VARCHAR, seasons VARCHAR )
SELECT original_air_date FROM table_17355820_1 WHERE directed_by = "TR Babu Subramaniam"
On which dates did the episodes directed by TR Babu Subramaniam air?
CREATE TABLE table_17355820_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.President_VOTE WHERE T1.sex = "F"
Find the first and last names of all the female (sex is F) students who have president votes.
CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR, sex VARCHAR); CREATE TABLE VOTING_RECORD (President_VOTE VARCHAR)
SELECT county FROM table_24329520_8 WHERE members = 1 AND franchise_type = "Corporation" AND borough = "Ennis"
Which county has a membership of 1, a franchise type of corporation and a borough of Ennis?
CREATE TABLE table_24329520_8 ( county VARCHAR, borough VARCHAR, members VARCHAR, franchise_type VARCHAR )
SELECT MIN(lost) FROM table_17357929_1
What is the fewest number of games lost?
CREATE TABLE table_17357929_1 (lost INTEGER)
SELECT DISTINCT T1.Fname, T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_President_VOTE WHERE T1.age = 18
Find the first and last name of all the students of age 18 who have vice president votes.
CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR, age VARCHAR); CREATE TABLE VOTING_RECORD (VICE_President_VOTE VARCHAR)
SELECT * FROM TagSynonyms WHERE Score >= 4
Synonims created via 4 votes.
CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTask...
SELECT goal_average_1 FROM table_17357929_1 WHERE lost = 9
What is the goal average 1 for teams that lost 9 games?
CREATE TABLE table_17357929_1 (goal_average_1 VARCHAR, lost VARCHAR)
SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.Sex = "M" AND T2.Election_Cycle = "Fall"
How many male (sex is M) students have class senator votes in the fall election cycle?
CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR); CREATE TABLE STUDENT (StuID VARCHAR, Sex VARCHAR)
SELECT player FROM table_name_67 WHERE money___$__ = "450" AND score = 76 - 74 - 74 - 72 = 296
Which player has $450 and a score of 76-74-74-72=296?
CREATE TABLE table_name_67 ( player VARCHAR, money___$__ VARCHAR, score VARCHAR )
SELECT COUNT(position) FROM table_17357929_1 WHERE points_2 = 31
How many teams finished with a 2nd points total of 31?
CREATE TABLE table_17357929_1 (position VARCHAR, points_2 VARCHAR)
SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring"
Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle.
CREATE TABLE STUDENT (StuID VARCHAR, city_code VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)
SELECT city FROM table_1397655_1 WHERE station = "CITV"
where is citv located
CREATE TABLE table_1397655_1 ( city VARCHAR, station VARCHAR )
SELECT MAX(drawn) FROM table_17357929_1 WHERE goals_for = 72
How many games drawn for the team that had 72 goals for?
CREATE TABLE table_17357929_1 (drawn INTEGER, goals_for VARCHAR)
SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring"
Find the average age of students who live in the city with code "NYC" and have secretary votes in the spring election cycle.
CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR, city_code VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)
SELECT "Date" FROM table_55487 WHERE "Opponent" = 'andrea gámiz'
When was andrea g miz the opponent?
CREATE TABLE table_55487 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text )
SELECT COUNT(game) FROM table_17360840_4 WHERE record = "1-3-3"
How many games with record 1-3-3
CREATE TABLE table_17360840_4 (game VARCHAR, record VARCHAR)
SELECT AVG(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = SECRETARY_Vote WHERE T1.Sex = "F" AND T2.Election_Cycle = "Spring"
Find the average age of female (sex is F) students who have secretary votes in the spring election cycle.
CREATE TABLE STUDENT (Age INTEGER, StuID VARCHAR, Sex VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)
SELECT opponent FROM table_name_7 WHERE score = "1–6, 6–4, 6–4"
Name the opponent with score of 1 6, 6 4, 6 4
CREATE TABLE table_name_7 ( opponent VARCHAR, score VARCHAR )
SELECT COUNT(attendance) FROM table_17360840_4 WHERE opponent = "Atlanta Thrashers"
How many attended on mathches against atlanta thrashers
CREATE TABLE table_17360840_4 (attendance VARCHAR, opponent VARCHAR)
SELECT DISTINCT T1.Fname FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.VICE_PRESIDENT_Vote EXCEPT SELECT DISTINCT Fname FROM STUDENT WHERE city_code = "PIT"
Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.
CREATE TABLE STUDENT (Fname VARCHAR, city_code VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (VICE_PRESIDENT_Vote VARCHAR)
SELECT AVG("Laps") FROM table_10428 WHERE "Time/Retired" = '+1:05.564'
What is the mean number of laps where time/retired was +1:05.564?
CREATE TABLE table_10428 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT date FROM table_17360840_4 WHERE opponent = "Minnesota Wild"
Give the date of games against minnesota wild
CREATE TABLE table_17360840_4 (date VARCHAR, opponent VARCHAR)
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote EXCEPT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "2192"
Find the distinct last names of all the students who have president votes and whose advisor is not 2192.
CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)
SELECT us_viewers__million_ FROM table_27116696_1 WHERE directed_by = "Allison Liddi-Brown"
How many U.S. viewers (million) watched the episode directed by Allison Liddi-Brown?
CREATE TABLE table_27116696_1 ( us_viewers__million_ VARCHAR, directed_by VARCHAR )
SELECT date FROM table_17360840_4 WHERE record = "1-2-3"
State the dates of games with record 1-2-3
CREATE TABLE table_17360840_4 (date VARCHAR, record VARCHAR)
SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = PRESIDENT_Vote INTERSECT SELECT DISTINCT LName FROM STUDENT WHERE Advisor = "8741"
Find the distinct last names of all the students who have president votes and whose advisor is 8741.
CREATE TABLE STUDENT (LName VARCHAR, PRESIDENT_Vote VARCHAR, Advisor VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (Id VARCHAR)
SELECT "Home team score" FROM table_11634 WHERE "Venue" = 'kardinia park'
When playing at the Kardinia Park; what was the home teams score?
CREATE TABLE table_11634 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT MIN(attendance) FROM table_17360840_4 WHERE record = "0-2-1"
What is the minimum attendance on games of record 0-2-1
CREATE TABLE table_17360840_4 (attendance INTEGER, record VARCHAR)
SELECT Advisor, COUNT(*) FROM STUDENT GROUP BY Advisor
For each advisor, report the total number of students advised by him or her.
CREATE TABLE STUDENT (Advisor VARCHAR)
SELECT rank FROM captain EXCEPT SELECT rank FROM captain WHERE class = 'Third-rate ship of the line'
Find the captain rank that has no captain in Third-rate ship of the line class.
CREATE TABLE ship ( ship_id number, name text, type text, built_year number, class text, flag text ) CREATE TABLE captain ( captain_id number, name text, ship_id number, age text, class text, rank text )
SELECT venue FROM table_17356873_1 WHERE shirt_sponsor = "Mardan"
Which venue does Mardan sponsor?
CREATE TABLE table_17356873_1 (venue VARCHAR, shirt_sponsor VARCHAR)
SELECT Advisor FROM STUDENT GROUP BY Advisor HAVING COUNT(*) > 2
Report all advisors that advise more than 2 students.
CREATE TABLE STUDENT (Advisor VARCHAR)
SELECT total_prize_pool FROM table_2715355_1 WHERE location = "New Orleans"
What was the prize pool in New Orleans?
CREATE TABLE table_2715355_1 ( total_prize_pool VARCHAR, location VARCHAR )
SELECT venue FROM table_17356873_1 WHERE head_coach = "Erdoğan Arıca"
Erdoğan Arıca is the head coach at what venue?
CREATE TABLE table_17356873_1 (venue VARCHAR, head_coach VARCHAR)
SELECT Major FROM STUDENT GROUP BY Major HAVING COUNT(*) < 3
Report all majors that have less than 3 students.
CREATE TABLE STUDENT (Major VARCHAR)
SELECT Order_Date, COUNT(Order_Date) FROM Customer_Orders AS T1 JOIN Order_Items AS T2 ON T1.Order_ID = T2.Order_ID JOIN Products AS T3 ON T2.Product_ID = T3.Product_ID WHERE T3.Product_Price > 1000
A bar chart for what are the number of the order dates of orders with price higher than 1000?
CREATE TABLE Addresses ( Address_ID VARCHAR(100), Line_1 VARCHAR(255), Line_2 VARCHAR(255), City_Town VARCHAR(255), State_County VARCHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Ref_Service_Types ( Service_Type_Code CHAR(15), Parent_Service_Type_Code CHAR(15), Service_Type_De...
SELECT COUNT(points) FROM table_17360840_5 WHERE record = "6-8-6"
How many points were scored when the record was 6-8-6?
CREATE TABLE table_17360840_5 (points VARCHAR, record VARCHAR)
SELECT Election_Cycle, COUNT(*) FROM VOTING_RECORD GROUP BY Election_Cycle
For each election cycle, report the number of voting records.
CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)
SELECT FIRST_NAME, MANAGER_ID FROM employees ORDER BY MANAGER_ID DESC
Draw a bar chart of first name versus manager_id, could you rank in desc by the y-axis?
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), ...
SELECT game FROM table_17360840_5 WHERE record = "6-9-7"
Which game had a record of 6-9-7?
CREATE TABLE table_17360840_5 (game VARCHAR, record VARCHAR)
SELECT Major FROM STUDENT GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1
Which major has the most students?
CREATE TABLE STUDENT (Major VARCHAR, major VARCHAR)
SELECT "Best" FROM table_33527 WHERE "Team" = 'cte racing-hvm' AND "Qual 2" = '50.312'
What was CTE Racing-hvm's Best with a Qual 2 of 50.312?
CREATE TABLE table_33527 ( "Name" text, "Team" text, "Qual 1" text, "Qual 2" text, "Best" real )
SELECT record FROM table_17360840_5 WHERE location = "BankAtlantic Center"
When they played at the Bankatlantic Center, what was their record?
CREATE TABLE table_17360840_5 (record VARCHAR, location VARCHAR)
SELECT Major FROM STUDENT WHERE Sex = "F" GROUP BY major ORDER BY COUNT(*) DESC LIMIT 1
What is the most common major among female (sex is F) students?
CREATE TABLE STUDENT (Major VARCHAR, major VARCHAR, Sex VARCHAR)
SELECT points FROM table_25352324_5 WHERE rebounds = 6 AND blocks = 0
What is every value for points if rebounds is 6 and blocks is 0?
CREATE TABLE table_25352324_5 ( points VARCHAR, rebounds VARCHAR, blocks VARCHAR )
SELECT opponent FROM table_17360840_6 WHERE date = "December 27"
Who was the opponent on December 27?
CREATE TABLE table_17360840_6 (opponent VARCHAR, date VARCHAR)
SELECT city_code FROM STUDENT GROUP BY city_code ORDER BY COUNT(*) DESC LIMIT 1
What is the city_code of the city that the most students live in?
CREATE TABLE STUDENT (city_code VARCHAR)
SELECT "To par" FROM table_77328 WHERE "Finish" = 't11' AND "Player" = 'david graham'
WHAT IS THE TO PAR WITH A FINISH OF T11, FOR DAVID GRAHAM?
CREATE TABLE table_77328 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" real, "Finish" text )
SELECT score FROM table_17360840_6 WHERE date = "December 11"
What was the score of the game on December 11?
CREATE TABLE table_17360840_6 (score VARCHAR, date VARCHAR)
SELECT COUNT(*) FROM products
How many products are there?
CREATE TABLE products (Id VARCHAR)
SELECT COUNT("Total") FROM table_76537 WHERE "Club" = 'leeds united' AND "League goals" = '13'
What is the total number of Total, when Club is Leeds United, and when League Goals is 13?
CREATE TABLE table_76537 ( "Scorer" text, "Club" text, "League goals" text, "FA Cup goals" text, "League Cup goals" real, "Texaco Cup goals" text, "Euro competitions" text, "Total" real )
SELECT record FROM table_17360840_9 WHERE location = "St. Pete Times Forum" AND opponent = "Columbus Blue Jackets"
What was the record when the opposing team was the Columbus Blue Jackets at St. Pete Times Forum?
CREATE TABLE table_17360840_9 (record VARCHAR, location VARCHAR, opponent VARCHAR)
SELECT COUNT(*) FROM ref_colors
How many colors are there?
CREATE TABLE ref_colors (Id VARCHAR)
SELECT "Owner" FROM table_54804 WHERE "Frequency" = '103.3 fm'
Which owner has the frequency of 103.3 FM?
CREATE TABLE table_54804 ( "Frequency" text, "Call sign" text, "Name" text, "Format" text, "Owner" text )
SELECT score FROM table_17360840_9 WHERE record = "21-31-13"
What was the score when the record was 21-31-13?
CREATE TABLE table_17360840_9 (score VARCHAR, record VARCHAR)
SELECT COUNT(*) FROM CHARACTERISTICS
How many characteristics are there?
CREATE TABLE CHARACTERISTICS (Id VARCHAR)
SELECT "Competition" FROM table_7905 WHERE "Venue" = 'away' AND "Result" = 'lost 2-4'
What Away Competition had a Result of lost 2-4?
CREATE TABLE table_7905 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" text, "Competition" text, "Man of the Match" text )
SELECT COUNT(location) FROM table_17360840_9 WHERE opponent = "Columbus Blue Jackets"
How many locations were recorded when the opponent Columbus Blue Jackets?
CREATE TABLE table_17360840_9 (location VARCHAR, opponent VARCHAR)
SELECT product_name, typical_buying_price FROM products
What are the names and buying prices of all the products?
CREATE TABLE products (product_name VARCHAR, typical_buying_price VARCHAR)
SELECT "Mens singles" FROM table_17582 WHERE "Mixed doubles" = 'Stellan Mohlin Kerstin Ståhl , AIK'
Who won the Mens Singles when the Mixed doubles went to Stellan Mohlin Kerstin St hl , Aik?
CREATE TABLE table_17582 ( "Season" text, "Mens singles" text, "Womens singles" text, "Mens doubles" text, "Womens doubles" text, "Mixed doubles" text )
SELECT MAX(attendance) FROM table_17360840_9 WHERE opponent = "Ottawa Senators" AND record = "24-35-17"
What was the attendance when the opposing team was the Ottawa Senators and the record was 24-35-17?
CREATE TABLE table_17360840_9 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
SELECT color_description FROM ref_colors
List the description of all the colors.
CREATE TABLE ref_colors (color_description VARCHAR)
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'potassium chloride inj' AND DATETIME(medication.drugstarttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year'))
tell me the number of patients who had been prescribed potassium chloride inj this year.
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number...
SELECT college_junior_club_team__league_ FROM table_17371135_30 WHERE position = "Left Wing"
The player who plays left wing is from what college/junior/club team?
CREATE TABLE table_17371135_30 (college_junior_club_team__league_ VARCHAR, position VARCHAR)
SELECT DISTINCT characteristic_name FROM CHARACTERISTICS
Find the names of all the product characteristics.
CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR)
SELECT * FROM table_train_198 WHERE type_1_patients = 0
no type i patients
CREATE TABLE table_train_198 ( "id" int, "hemoglobin_a1c_hba1c" float, "fasting_plasma_glucose" int, "diabetes" bool, "body_mass_index_bmi" float, "type_1_patients" bool, "NOUSE" float )
SELECT college_junior_club_team__league_ FROM table_17371135_30 WHERE position = "Goaltender"
The player who plays goaltender is from what college/junior/club team?
CREATE TABLE table_17371135_30 (college_junior_club_team__league_ VARCHAR, position VARCHAR)
SELECT product_name FROM products WHERE product_category_code = "Spices"
What are the names of products with category "Spices"?
CREATE TABLE products (product_name VARCHAR, product_category_code VARCHAR)