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 (
Scho... |
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 (
... |
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... |
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,
ApprovalDa... |
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),
... |
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... |
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
)
C... |
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) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.