answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT population__2011_ FROM table_2168295_1 WHERE headquarters = "Chittorgarh"
What is the 2011 population if the headquarters is Chittorgarh?
CREATE TABLE table_2168295_1 (population__2011_ VARCHAR, headquarters VARCHAR)
SELECT "Investing Dragon(s)" FROM table_68485 WHERE "Company or product name" = 'razzamataz'
Name the investing dragon for razzamataz
CREATE TABLE table_68485 ( "Episode" text, "First aired" text, "Entrepreneur(s)" text, "Company or product name" text, "Money requested (\u00a3)" real, "Investing Dragon(s)" text )
SELECT SUM(interview) FROM table_name_64 WHERE evening_gown < 8.82 AND state = "kentucky" AND average > 8.85
What is the total number of interviews where the evening gown number is less than 8.82, the state is Kentucky, and the average is more than 8.85?
CREATE TABLE table_name_64 (interview INTEGER, average VARCHAR, evening_gown VARCHAR, state VARCHAR)
SELECT COUNT(municipal_mayor) FROM table_216776_2 WHERE area__km²_ = "42.66"
How many different municipal mayors were there in the municipality with an area of 42.66 km2?
CREATE TABLE table_216776_2 (municipal_mayor VARCHAR, area__km²_ VARCHAR)
SELECT COUNT(points) FROM table_14342592_7 WHERE position = "Right guard"
How many points did the player who was right guard score?
CREATE TABLE table_14342592_7 ( points VARCHAR, position VARCHAR )
SELECT SUM(average) FROM table_name_96 WHERE swimsuit = 8.42 AND evening_gown < 8.71
How many averages had a swimsuit number of 8.42 and an evening gown number that was less than 8.71?
CREATE TABLE table_name_96 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR)
SELECT municipality FROM table_216776_2 WHERE population__2010_ = 26839
What municipality had 26839 people living in it in 2010?
CREATE TABLE table_216776_2 (municipality VARCHAR, population__2010_ VARCHAR)
SELECT All_Road, All_Games_Percent FROM basketball_match ORDER BY All_Games_Percent
Bar chart of all_games_percent from each all road, and show in asc by the Y.
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text )
SELECT state FROM table_name_70 WHERE average < 8.67 AND swimsuit = 8.27 AND evening_gown = 8.78 AND interview = 8.52
Which state had an average of less than 8.67, a swimsuit score of 8.27, an evening gown score of 8.78, and an interview number of 8.52?
CREATE TABLE table_name_70 (state VARCHAR, interview VARCHAR, evening_gown VARCHAR, average VARCHAR, swimsuit VARCHAR)
SELECT municipality FROM table_216776_2 WHERE pop_density__per_km²_ = "757.5"
In what municipality were there 757.5 people per km2?
CREATE TABLE table_216776_2 (municipality VARCHAR, pop_density__per_km²_ VARCHAR)
SELECT demographic.admittime FROM demographic WHERE demographic.name = "Jerry Deberry"
what is admission time of subject name jerry deberry?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT record FROM table_name_82 WHERE visitor = "nashville"
What is the record when the visitor was Nashville?
CREATE TABLE table_name_82 (record VARCHAR, visitor VARCHAR)
SELECT COUNT(population__2010_) FROM table_216776_2 WHERE municipality = "Cavinti"
How many different counts of the population in Cavinti in 2010 are there?
CREATE TABLE table_216776_2 (population__2010_ VARCHAR, municipality VARCHAR)
SELECT COUNT("Pick") FROM table_29989 WHERE "Player" = 'Vlastimil Kroupa'
How many values are displayed under pick for Vlastimil Kroupa?
CREATE TABLE table_29989 ( "Pick" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text )
SELECT date FROM table_name_83 WHERE venue = "pietermaritzburg"
When was a competition held at Pietermaritzburg?
CREATE TABLE table_name_83 (date VARCHAR, venue VARCHAR)
SELECT pop_density__per_km²_ FROM table_216776_2 WHERE municipal_mayor = "Boy Quiat"
How many people per km2 are there in the municipality whose mayor is Boy Quiat?
CREATE TABLE table_216776_2 (pop_density__per_km²_ VARCHAR, municipal_mayor VARCHAR)
SELECT MIN(score) FROM table_name_5 WHERE to_par = "+2" AND country = "japan"
What is the low score for TO par +2 in japan?
CREATE TABLE table_name_5 ( score INTEGER, to_par VARCHAR, country VARCHAR )
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_19 WHERE venue = "pietermaritzburg"
What were the bowling figures for the competition at Pietermaritzburg?
CREATE TABLE table_name_19 (bowling_figures_wickets_runs__overs_ VARCHAR, venue VARCHAR)
SELECT _number FROM table_21696800_1 WHERE us_viewers__million_ = "2.24"
What's the number of the episode seen by 2.24 million people in the US?
CREATE TABLE table_21696800_1 (_number VARCHAR, us_viewers__million_ VARCHAR)
SELECT "Party" FROM table_18690 WHERE "Incumbent" = 'Riley Joseph Wilson'
To which party does Riley Joseph Wilson belong?
CREATE TABLE table_18690 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT versus FROM table_name_82 WHERE bowling_figures_wickets_runs__overs_ = "5-33 (10)"
Who was the opponent during the competition in which the bowling figures were 5-33 (10)?
CREATE TABLE table_name_82 (versus VARCHAR, bowling_figures_wickets_runs__overs_ VARCHAR)
SELECT COUNT(_number) FROM table_21696800_1 WHERE directed_by = "Wayne Rose"
How many different episode numbers are there for episodes directed by Wayne Rose?
CREATE TABLE table_21696800_1 (_number VARCHAR, directed_by VARCHAR)
SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%'
For all employees who have the letters D or S in their first name, draw a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by weekday.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) 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), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) )
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_42 WHERE bowler = "gd mcgrath"
What were GD Mcgrath's bowling figures?
CREATE TABLE table_name_42 (bowling_figures_wickets_runs__overs_ VARCHAR, bowler VARCHAR)
SELECT wins FROM table_2169966_1 WHERE starts = 10
How many wins does he get when he starts at 10?
CREATE TABLE table_2169966_1 (wins VARCHAR, starts VARCHAR)
SELECT score FROM table_name_67 WHERE tie_no = "109"
What is Score, when Tie No is '109'?
CREATE TABLE table_name_67 ( score VARCHAR, tie_no VARCHAR )
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_43 WHERE venue = "port elizabeth" AND versus = "australia"
During the competition at Port Elizabeth, where the opponent was Australia, what were the bowling figures?
CREATE TABLE table_name_43 (bowling_figures_wickets_runs__overs_ VARCHAR, venue VARCHAR, versus VARCHAR)
SELECT MAX(wins) FROM table_2169966_1
How many wins does he have?
CREATE TABLE table_2169966_1 (wins INTEGER)
SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid JOIN inst AS t4 ON t2.instid = t4.instid WHERE t4.country = "Japan" AND t2.authorder = 1 AND t1.lname = "Ohori"
Find the titles of papers whose first author is affiliated with an institution in the country 'Japan' and has last name 'Ohori'?
CREATE TABLE authorship ( authid VARCHAR, paperid VARCHAR, instid VARCHAR, authorder VARCHAR ) CREATE TABLE authors ( authid VARCHAR, lname VARCHAR ) CREATE TABLE inst ( instid VARCHAR, country VARCHAR ) CREATE TABLE papers ( title VARCHAR, paperid VARCHAR )
SELECT MIN(floors) FROM table_name_33 WHERE rank > 1 AND building = "the trillium (residential)"
What is the lowest amount of floors after rank 1 in the Trillium (residential) building?
CREATE TABLE table_name_33 (floors INTEGER, rank VARCHAR, building VARCHAR)
SELECT _percentage_cut FROM table_21690339_1 WHERE gas_storage = "80% full"
What wast the percent cut for the nation with an 80% full gas storage?
CREATE TABLE table_21690339_1 (_percentage_cut VARCHAR, gas_storage VARCHAR)
SELECT result FROM table_name_14 WHERE week = 7
Name the result for week 7
CREATE TABLE table_name_14 ( result VARCHAR, week VARCHAR )
SELECT MIN(floors) FROM table_name_4 WHERE completed < 1970 AND rank > 14
What is the lowest amount of floors in the building completed before 1970 ranked more than 14?
CREATE TABLE table_name_4 (floors INTEGER, completed VARCHAR, rank VARCHAR)
SELECT gas_storage FROM table_21690339_1 WHERE alternative_fuel = "Yes"
What was the gas storage status for the nation that had "yes" for alternative fuel?
CREATE TABLE table_21690339_1 (gas_storage VARCHAR, alternative_fuel VARCHAR)
SELECT rID FROM Reviewer WHERE name = "Daniel Lewis"
What is the reviewer id of Daniel Lewis?
CREATE TABLE Reviewer ( rID VARCHAR, name VARCHAR )
SELECT MAX(floors) FROM table_name_11 WHERE height = "70m (233ft)" AND building = "tupper building (educational)"
What is the largest amount of floors in the 70m (233ft) Tupper building (educational)?
CREATE TABLE table_name_11 (floors INTEGER, height VARCHAR, building VARCHAR)
SELECT _percentage_cut FROM table_21690339_1 WHERE alternative_fuel = "Fuel oil stocks need only for industry"
What was the percent cunt for the nation that had fuel oil stocks need only for industry as their fuel alternative?
CREATE TABLE table_21690339_1 (_percentage_cut VARCHAR, alternative_fuel VARCHAR)
SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Code
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the average of code , and group by attribute name, and display y-axis in ascending order.
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT manufacturer FROM table_name_52 WHERE laps = 23 AND time_retired = "+45.195"
Which manufacturer has 23 laps and a time of +45.195?
CREATE TABLE table_name_52 (manufacturer VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT country FROM table_21690339_1 WHERE _percentage_of_imports_from_russia = "20%"
What country had 20% imports from russia?
CREATE TABLE table_21690339_1 (country VARCHAR, _percentage_of_imports_from_russia VARCHAR)
SELECT p.Title, p.Id, u.DisplayName, u.Reputation FROM Posts AS p JOIN Users AS u ON p.OwnerUserId = u.Id WHERE p.CreationDate BETWEEN '##StartDate:string##' AND '##EndDate:string##' AND p.PostTypeId = 1 AND u.Reputation < '##MaxReputation:int##'
Limiting Posts by Date and Rep, Parameterized (Tutorial).
CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number )
SELECT SUM(laps) FROM table_name_8 WHERE rider = "sylvain guintoli"
What is the sum of Sylvain Guintoli's laps?
CREATE TABLE table_name_8 (laps INTEGER, rider VARCHAR)
SELECT country FROM table_21690339_1 WHERE _percentage_cut = "100%"
What country had a 100% cut?
CREATE TABLE table_21690339_1 (country VARCHAR, _percentage_cut VARCHAR)
SELECT bleeding_time FROM table_1099080_1 WHERE partial_thromboplastin_time = "Unaffected" AND platelet_count = "Unaffected"
What were the bleeding times when both the platelet count was unaffected and the partial thromboplastin time was unaffected
CREATE TABLE table_1099080_1 ( bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR )
SELECT runs FROM table_name_75 WHERE strike_rate = "101.42"
How many runs were scored when the strike rate was 101.42?
CREATE TABLE table_name_75 (runs VARCHAR, strike_rate VARCHAR)
SELECT network FROM table_2170969_2 WHERE viewers_in_millions = "2.74"
What network garnered 2.74 million viewers for Supernatural?
CREATE TABLE table_2170969_2 (network VARCHAR, viewers_in_millions VARCHAR)
SELECT "Team #1" FROM table_24346 WHERE "Team #2" = 'Chalkida'
which team #1 played again chalkida
CREATE TABLE table_24346 ( "Team #1" text, "Agg. score" text, "Team #2" text, "1st leg" text, "2nd leg" text )
SELECT 2001 FROM table_name_4 WHERE product = "grain"
What was the amount of grain in 2001?
CREATE TABLE table_name_4 (product VARCHAR)
SELECT tv_season FROM table_2170969_2 WHERE viewers_in_millions = "2.52"
What season had 2.52 million viewers?
CREATE TABLE table_2170969_2 (tv_season VARCHAR, viewers_in_millions VARCHAR)
SELECT "Try bonus" FROM table_37840 WHERE "Club" = 'llangefni rfc'
What is the try bonus that has llangefni rfc as the club?
CREATE TABLE table_37840 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text )
SELECT 2004 FROM table_name_51 WHERE product = "oil terminal"
What is the amount of oil terminal in 2004?
CREATE TABLE table_name_51 (product VARCHAR)
SELECT category FROM table_21716139_1 WHERE train_no = "16609/16610"
What is the category for trains numbered 16609/16610?
CREATE TABLE table_21716139_1 (category VARCHAR, train_no VARCHAR)
SELECT MAX(episode) FROM table_15187735_4 WHERE segment_d = "Blown Glass"
What is the last episode which has segment d as blown glass?
CREATE TABLE table_15187735_4 ( episode INTEGER, segment_d VARCHAR )
SELECT 2003 FROM table_name_34 WHERE 2001 = "514,000 tonnes"
What is the 2003 statistic for the product that had 514,000 tonnes in 2001?
CREATE TABLE table_name_34 (Id VARCHAR)
SELECT train_name FROM table_21716139_1 WHERE category = "Express" AND frequency = "Weekly"
What trains have a category of express and a weekly frequency?
CREATE TABLE table_21716139_1 (train_name VARCHAR, category VARCHAR, frequency VARCHAR)
SELECT AVG(catalog) FROM table_name_73 WHERE date = "july 15, 2011"
Which Catalog has a Date of july 15, 2011?
CREATE TABLE table_name_73 ( catalog INTEGER, date VARCHAR )
SELECT 2002 FROM table_name_7 WHERE 2001 = "452,000 tonnes"
What is the 2002 statistic for the product that had 452,000 tonnes in 2001?
CREATE TABLE table_name_7 (Id VARCHAR)
SELECT train_name FROM table_21716139_1 WHERE destination = "Tuticorin"
What is the train name that has a destination of Tuticorin?
CREATE TABLE table_21716139_1 (train_name VARCHAR, destination VARCHAR)
SELECT PHONE_NUMBER, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COMMISSION_PCT DESC
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about commission_pct over the phone_number by a bar chart, list y-axis in desc order.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) )
SELECT 2001 FROM table_name_91 WHERE 2002 = "2,360,000 tonnes"
What is the 2001 statistic for the product that had 2,360,000 tonnes in 2002?
CREATE TABLE table_name_91 (Id VARCHAR)
SELECT frequency FROM table_21716139_1 WHERE train_no = "12671/12672"
What is the frequency of trains numbered 12671/12672?
CREATE TABLE table_21716139_1 (frequency VARCHAR, train_no VARCHAR)
SELECT overall FROM table_name_71 WHERE plyff = "(0-1)" AND away = "(1-1)"
Which Overall has a playoff record of (0-1) and an away record of (1-1)?
CREATE TABLE table_name_71 ( overall VARCHAR, plyff VARCHAR, away VARCHAR )
SELECT 2003 FROM table_name_94 WHERE product = "general cargo"
What is the 2003 statistic for general cargo?
CREATE TABLE table_name_94 (product VARCHAR)
SELECT COUNT(destination) FROM table_21716139_1 WHERE frequency = "Weekly" AND train_name = "AC Express"
How many destinations have a weekly frequency and are named AC Express?
CREATE TABLE table_21716139_1 (destination VARCHAR, frequency VARCHAR, train_name VARCHAR)
SELECT "H.T. Brewer" FROM table_639 WHERE "J.E. Armstrong" = 'C.P. Greeks'
Who is h.t. brewer when je armstrong is c.p. greeks?
CREATE TABLE table_639 ( "W.H. Archer" text, "J.E. Armstrong" text, "H.L. Birkett" text, "F.A. Brill" text, "H.T. Brewer" text )
SELECT home_team AS score FROM table_name_30 WHERE venue = "mcg"
What did the home team score at MCG?
CREATE TABLE table_name_30 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(frequency) FROM table_21716139_1 WHERE destination = "Jaipur"
What is the number of frequencies that have a destination of Jaipur?
CREATE TABLE table_21716139_1 (frequency VARCHAR, destination VARCHAR)
SELECT written_by FROM table_2468961_4 WHERE original_air_date = "April 29, 1994"
Who wrote the episode that originally aired April 29, 1994?
CREATE TABLE table_2468961_4 ( written_by VARCHAR, original_air_date VARCHAR )
SELECT away_team AS score FROM table_name_44 WHERE home_team = "south melbourne"
What did the away team score when playing South Melbourne?
CREATE TABLE table_name_44 (away_team VARCHAR, home_team VARCHAR)
SELECT MAX(pick__number) FROM table_21721351_18 WHERE player = "David Grannis"
What is the pick # for player david grannis?
CREATE TABLE table_21721351_18 (pick__number INTEGER, player VARCHAR)
SELECT opponents_conference FROM table_26240481_1 WHERE result = "L, 62-10"
Which opponents conference has the result L, 62-10?
CREATE TABLE table_26240481_1 ( opponents_conference VARCHAR, result VARCHAR )
SELECT date FROM table_name_89 WHERE away_team = "north melbourne"
When did the game with North Melbourne as the away team take place?
CREATE TABLE table_name_89 (date VARCHAR, away_team VARCHAR)
SELECT player FROM table_21721351_18 WHERE college_junior_club_team = "Deerfield Academy (Massachusetts)"
Which player belongs to deerfield academy (Massachusetts) college/junior/club team?
CREATE TABLE table_21721351_18 (player VARCHAR, college_junior_club_team VARCHAR)
SELECT * FROM table_train_179 WHERE triglyceride_tg > 150
elevated triglyceride level > 150 mg / dl
CREATE TABLE table_train_179 ( "id" int, "systolic_blood_pressure_sbp" int, "fasting_plasma_glucose_fpg" float, "diastolic_blood_pressure_dbp" int, "diabetes" bool, "body_mass_index_bmi" float, "triglyceride_tg" float, "hypertension" bool, "age" float, "NOUSE" float )
SELECT date FROM table_name_57 WHERE away_team = "south melbourne"
If the Away team was south melbourne what Date did they play?
CREATE TABLE table_name_57 (date VARCHAR, away_team VARCHAR)
SELECT nationality FROM table_21721351_18 WHERE college_junior_club_team = "Kitchener Rangers (OHL)"
Which nationality is kitchener rangers (ohl) college/junior/club team?
CREATE TABLE table_21721351_18 (nationality VARCHAR, college_junior_club_team VARCHAR)
SELECT "Institution" FROM table_73898 WHERE "Type" = 'Private/United Church of Christ'
which institutions can be categorized as private/united church of christ?
CREATE TABLE table_73898 ( "Institution" text, "Location" text, "Nickname" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" text )
SELECT away_team AS score FROM table_name_67 WHERE home_team = "essendon"
When the Home team of essendon is playing what is the Away team score?
CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR)
SELECT nationality FROM table_21721351_18 WHERE player = "Brian Wilks"
Which nationality is player Brian Wilks?
CREATE TABLE table_21721351_18 (nationality VARCHAR, player VARCHAR)
SELECT "Term ended" FROM table_2617 WHERE "Term began" = 'January 3, 2007'
When did the term end that began January 3, 2007?
CREATE TABLE table_2617 ( "Office" text, "Type" text, "Location" text, "Elected" text, "Term began" text, "Term ended" text )
SELECT date_of_vacancy FROM table_name_22 WHERE manner_of_departure = "resigned" AND outgoing_manager = "gordon wylde"
I wan the date of vacancy for departure of resigned and outgoing manager of gordon wylde
CREATE TABLE table_name_22 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT COUNT(position) FROM table_21721351_18 WHERE player = "Tom Glavine"
How many positions is player Tom Glavine?
CREATE TABLE table_21721351_18 (position VARCHAR, player VARCHAR)
SELECT "Leagues entering" FROM table_66852 WHERE "Clubs" = '8 → 4'
What is the item for Leagues entering, when the value for Clubs is 8 4?
CREATE TABLE table_66852 ( "Round" text, "Fixtures" real, "Clubs" text, "New entries" text, "Leagues entering" text )
SELECT replaced_by FROM table_name_73 WHERE date_of_appointment = "12 october 2007"
I want the replaced for date of appointment being 12 october 2007
CREATE TABLE table_name_73 (replaced_by VARCHAR, date_of_appointment VARCHAR)
SELECT directed_by FROM table_21726793_1 WHERE production_code = "2T5710"
who directed the production code 2t5710?
CREATE TABLE table_21726793_1 (directed_by VARCHAR, production_code VARCHAR)
SELECT DISTINCT advisory_requirement FROM course WHERE department = 'CDB' AND number = 685
What courses would be helpful before taking CDB 685 ?
CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varchar ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int )
SELECT team FROM table_name_52 WHERE date_of_vacancy = "28 february"
I want the team for date of vacancy being 28 february
CREATE TABLE table_name_52 (team VARCHAR, date_of_vacancy VARCHAR)
SELECT COUNT(production_code) FROM table_21726793_1 WHERE us_viewers__million_ = "2.76"
what is the total number o production code where us viewers is 2.76?
CREATE TABLE table_21726793_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT competition FROM table_name_62 WHERE venue = "away" AND man_of_the_match = "n/a"
For what competition was the venue away the n/a the man of the match?
CREATE TABLE table_name_62 ( competition VARCHAR, venue VARCHAR, man_of_the_match VARCHAR )
SELECT manner_of_departure FROM table_name_87 WHERE date_of_appointment = "12 october 2007"
I want the manner of departure for date of appointment being 12 october 2007
CREATE TABLE table_name_87 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT written_by FROM table_21726793_1 WHERE no = 2
who wrote the no 2?
CREATE TABLE table_21726793_1 (written_by VARCHAR, no VARCHAR)
SELECT "Album" FROM table_44780 WHERE "Year" < '1975' AND "Record label" = 'dawn' AND "Single" = 'lady lady lay'
What album came out before 1975 with the dawn record label and the single 'lady lady lay'?
CREATE TABLE table_44780 ( "Year" real, "Month" text, "Single" text, "Album" text, "Record label" text )
SELECT date FROM table_name_67 WHERE circuit = "syracuse"
Which date was the syracuse circuit?
CREATE TABLE table_name_67 (date VARCHAR, circuit VARCHAR)
SELECT maac FROM table_21756039_1 WHERE overall = "26-8"
What is the maac when the overall is 26-8?
CREATE TABLE table_21756039_1 (maac VARCHAR, overall VARCHAR)
SELECT AVG(demographic.age) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.days_stay = "3"
calculate the average age of white ethnic background patients who were hospitalized for 3 days.
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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 ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text )
SELECT date FROM table_name_7 WHERE race_name = "x gran premio di napoli"
Which date was the x gran premio di napoli?
CREATE TABLE table_name_7 (date VARCHAR, race_name VARCHAR)
SELECT COUNT(maac) FROM table_21756039_1 WHERE ncaa_seed = "14th" AND overall = "20-10"
How many maac are there that have 14th as the ncaa and the overall is 20-10?
CREATE TABLE table_21756039_1 (maac VARCHAR, ncaa_seed VARCHAR, overall VARCHAR)
SELECT "Runners-up" FROM table_14692 WHERE "Year" = '1996'
Who are the runners-up in 1996?
CREATE TABLE table_14692 ( "Location" text, "Year" text, "Champions" text, "Runners-up" text, "Score" text )
SELECT report FROM table_name_25 WHERE date = "22 september"
What report happened on 22 september?
CREATE TABLE table_name_25 (report VARCHAR, date VARCHAR)
SELECT COUNT(overall) FROM table_21756039_1 WHERE year = "2010-2011"
How many overall in the year 2010-2011?
CREATE TABLE table_21756039_1 (overall VARCHAR, year VARCHAR)