answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT area_president__quorum_ FROM table_name_44 WHERE area_name = "south america south" | Name the area president when the area name is south america south | CREATE TABLE table_name_44 (area_president__quorum_ VARCHAR, area_name VARCHAR) |
SELECT COUNT(judges) FROM table_16884579_1 WHERE host_s_ = "Dré Steemans Ann Van Elsen" | Name the number of judges for dré steemans ann van elsen | CREATE TABLE table_16884579_1 (judges VARCHAR, host_s_ VARCHAR) |
SELECT finalists FROM table_name_40 WHERE week__number < 2 | Tell me the finalists for week # less than 2 | CREATE TABLE table_name_40 (
finalists VARCHAR,
week__number INTEGER
) |
SELECT COUNT(grid) FROM table_name_66 WHERE time_retired = "+2 laps" AND laps < 70 | Tell me the total number of Grid for Time/Retired of +2 Laps and Laps less than 70 | CREATE TABLE table_name_66 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR) |
SELECT website FROM table_1688640_4 WHERE car__number = "92" | Name the website for car number of 92 | CREATE TABLE table_1688640_4 (website VARCHAR, car__number VARCHAR) |
SELECT DISTINCT keyphrase.keyphraseid FROM author, keyphrase, paper, paperkeyphrase, writes WHERE author.authorname = 'Magdalena Balazinska' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | keyphrases used by Magdalena Balazinska | CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrase... |
SELECT year FROM table_name_13 WHERE actress = "shelley winters" | What year did Shelley Winters win? | CREATE TABLE table_name_13 (year VARCHAR, actress VARCHAR) |
SELECT MAX(year_started) FROM table_1688640_4 WHERE car__number = "55" | Name the year started where car number is 55 | CREATE TABLE table_1688640_4 (year_started INTEGER, car__number VARCHAR) |
SELECT "Date in Service" FROM table_27129 WHERE "Installed capacity (MW)" = '135' | When did this wind farm started service with a capacity of 135 MW? | CREATE TABLE table_27129 (
"Wind farm" text,
"Installed capacity (MW)" text,
"Turbine Manufacturer" text,
"County" text,
"Date in Service" text
) |
SELECT superlative FROM table_name_92 WHERE year > 1984 AND actress = "gloria stuart" | Which award was won by Gloria Stuart after 1984? | CREATE TABLE table_name_92 (superlative VARCHAR, year VARCHAR, actress VARCHAR) |
SELECT car__number FROM table_1688640_4 WHERE year_started = 1997 | Name the car number for 1997 | CREATE TABLE table_1688640_4 (car__number VARCHAR, year_started VARCHAR) |
SELECT SUM("Year") FROM table_61155 WHERE "Competition" = 'european championships' AND "Notes" = '66.81 m' | Which Year has a Competition of european championships, and Notes of 66.81 m? | CREATE TABLE table_61155 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) |
SELECT superlative FROM table_name_56 WHERE actress = "thelma ritter" | Which award has Thelma Ritter won? | CREATE TABLE table_name_56 (superlative VARCHAR, actress VARCHAR) |
SELECT COUNT(nickerie) FROM table_16886076_1 WHERE marowijne = "4.7%" | Name the nickerie for marowijne being 4.7% | CREATE TABLE table_16886076_1 (nickerie VARCHAR, marowijne VARCHAR) |
SELECT season, home_team, away_team FROM game | List the season, home team, away team of all the games. | CREATE TABLE injury_accident (
game_id number,
id number,
player text,
injury text,
number_of_matches text,
source text
)
CREATE TABLE game (
stadium_id number,
id number,
season number,
date text,
home_team text,
away_team text,
score text,
competition text
)
C... |
SELECT MIN(points_diff) FROM table_name_37 WHERE against < 578 AND lost = 15 AND points > 26 | I want the lowest points diff for against being less than 578 and lost being 15 and points more than 26 | CREATE TABLE table_name_37 (points_diff INTEGER, points VARCHAR, against VARCHAR, lost VARCHAR) |
SELECT coronie FROM table_16886076_1 WHERE marowijne = "6.8%" | Name the coronie for marowijne being 6.8% | CREATE TABLE table_16886076_1 (coronie VARCHAR, marowijne VARCHAR) |
SELECT pinyin FROM table_1204998_2 WHERE population = 374047 | Which pinyin have a population of 374047? | CREATE TABLE table_1204998_2 (
pinyin VARCHAR,
population VARCHAR
) |
SELECT COUNT(points) FROM table_name_75 WHERE against = 753 AND points_diff > -114 | I want the total number of points for against of 753 and points diff more than -114 | CREATE TABLE table_name_75 (points VARCHAR, against VARCHAR, points_diff VARCHAR) |
SELECT para FROM table_16886076_1 WHERE commewijne = "1.5%" | Name the para for 1.5% commewijne | CREATE TABLE table_16886076_1 (para VARCHAR, commewijne VARCHAR) |
SELECT "Heir" FROM table_28714 WHERE "Monarch" = 'Wareru' | Who was the heir when the monarch was Wareru? | CREATE TABLE table_28714 (
"Monarch" text,
"Heir" text,
"Status" text,
"Relationship to Monarch" text,
"Became heir; reason" text,
"Ceased to be heir; reason" text,
"Next in succession" text
) |
SELECT week FROM table_name_59 WHERE attendance = "75,866" | In What Week was the Attendance 75,866? | CREATE TABLE table_name_59 (week VARCHAR, attendance VARCHAR) |
SELECT MIN(races) FROM table_16908657_1 WHERE poles = 2 | Name the least amount of races for 2 poles | CREATE TABLE table_16908657_1 (races INTEGER, poles VARCHAR) |
SELECT "Report" FROM table_16284 WHERE "Pole position" = 'Michael Andretti' AND "Winning team" = 'Galles-Kraco Racing' | In which reports does Michael Andretti have the pole position and Galles-Kraco Racing is the winning team? | CREATE TABLE table_16284 (
"Rnd" text,
"Race Name" text,
"Circuit" text,
"City/Location" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
) |
SELECT opponent FROM table_name_49 WHERE attendance = "74,246" | What Opponent has an Attendance of 74,246? | CREATE TABLE table_name_49 (opponent VARCHAR, attendance VARCHAR) |
SELECT motorcycle FROM table_16908657_1 WHERE season = 2012 | Name the motorcycle for season 2012 | CREATE TABLE table_16908657_1 (motorcycle VARCHAR, season VARCHAR) |
SELECT "Team" FROM table_47898 WHERE "Manner of departure" = 'end of tenure as caretaker' | What team did the manager come from who departed due to an end of tenure as caretaker? | CREATE TABLE table_47898 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) |
SELECT date FROM table_name_54 WHERE week = 1 | What Date is Week 1? | CREATE TABLE table_name_54 (date VARCHAR, week VARCHAR) |
SELECT COUNT(flaps) FROM table_16908657_1 WHERE points = "63" | Name the number of flaps for 63 points | CREATE TABLE table_16908657_1 (flaps VARCHAR, points VARCHAR) |
SELECT COUNT(DISTINCT "party") FROM table_201_25 GROUP BY "leader" HAVING COUNT("leader") = 2 | how many parties had the same leader in office twice ? | CREATE TABLE table_201_25 (
id number,
"party" text,
"leader" text,
"from" text,
"to" text
) |
SELECT team FROM table_name_80 WHERE losses = "7" AND goals_for = 55 | Which team had 7 losses and 55 goals? | CREATE TABLE table_name_80 (team VARCHAR, losses VARCHAR, goals_for VARCHAR) |
SELECT MIN(flaps) FROM table_16908657_1 | Name the least flaps | CREATE TABLE table_16908657_1 (flaps INTEGER) |
SELECT virtues FROM table_name_48 WHERE psycho_social_crisis = "intimacy vs. isolation" | What Virtue looks at the intimacy vs. isolation crisis? | CREATE TABLE table_name_48 (
virtues VARCHAR,
psycho_social_crisis VARCHAR
) |
SELECT MIN(1995) FROM table_name_14 WHERE 1990 = 441 AND 1985 < 359 | What is the 1995 GDP when 1990 GDP is 441 and 1985 GDP is less than 359? | CREATE TABLE table_name_14 (Id VARCHAR) |
SELECT COUNT(p_ret) FROM table_16912000_13 WHERE kr_avg = "11.3" | How many p.ret are there when kr avg is 11.3 ? | CREATE TABLE table_16912000_13 (p_ret VARCHAR, kr_avg VARCHAR) |
SELECT 2 AS nd_leg FROM table_name_62 WHERE team__number1 = "ldu quito" | What is the 2nd leg with ldu quito as team 1? | CREATE TABLE table_name_62 (
team__number1 VARCHAR
) |
SELECT MAX(1985) FROM table_name_88 WHERE 1990 < 267 AND 2000 = 333 AND 2005 < 658 | What is the maximum 1985 GDP for the region where 1990 GDP is less than 267, 2000 GDP is 333 and 2005 GDP is less than 658? | CREATE TABLE table_name_88 (Id VARCHAR) |
SELECT kr_td FROM table_16912000_13 WHERE mfg_lg = 64 | What is the kr td when mfg lg is 64? | CREATE TABLE table_16912000_13 (kr_td VARCHAR, mfg_lg VARCHAR) |
SELECT "Aper. in" FROM table_2961 WHERE "Built/Used" = '1987-2001' | Which aperture were built or used between 1987-2001? | CREATE TABLE table_2961 (
"Name" text,
"Aperture m" text,
"Aper. in" text,
"Mirror/type" text,
"Nationality/Sponsors" text,
"Site" text,
"Built/Used" text
) |
SELECT COUNT(code) FROM table_name_99 WHERE type = "v" AND population > 7 OFFSET 747 | When populatioin is greater than 7,747 and the type is V, what is the sum of code? | CREATE TABLE table_name_99 (code VARCHAR, type VARCHAR, population VARCHAR) |
SELECT player FROM table_16912000_13 WHERE kr_avg = "24.8" | Who's average is 24.8? | CREATE TABLE table_16912000_13 (player VARCHAR, kr_avg VARCHAR) |
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '027-85328' AND patient.wardid = 996 AND patient.hospitaldischargetime IS NULL ORDER BY patient.unitadmittime DESC LIMIT 1 | how many days have passed since the last time that patient 027-85328 stayed on the current hospital encounter in the ward 996? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE microlab (
microl... |
SELECT name FROM table_name_24 WHERE ties = 5 | Who has ties of 5? | CREATE TABLE table_name_24 (name VARCHAR, ties VARCHAR) |
SELECT pr_avg FROM table_16912000_13 WHERE kr_lg = 49 | What is the pr avg, when kr lg is 49? | CREATE TABLE table_16912000_13 (pr_avg VARCHAR, kr_lg VARCHAR) |
SELECT "February 2010" FROM table_3248 WHERE "June 2010" = '6.5%' | Name the bed 2010 for 6.5% | CREATE TABLE table_3248 (
"Party" text,
"January 2010" text,
"February 2010" text,
"March 2010" text,
"April 2010" text,
"May 2010" text,
"June 2010" text
) |
SELECT venue FROM table_name_95 WHERE away_team = "st kilda" | Where did st kilda play as the away team? | CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR) |
SELECT population__2010_ FROM table_1691800_2 WHERE municipality = "San Jacinto" | what is the population where municipality is san jacinto? | CREATE TABLE table_1691800_2 (population__2010_ VARCHAR, municipality VARCHAR) |
SELECT team FROM table_name_2 WHERE grid = "11" | What team started in grid 11? | CREATE TABLE table_name_2 (
team VARCHAR,
grid VARCHAR
) |
SELECT crowd FROM table_name_66 WHERE home_team = "essendon" | How big of a crowd does the home team of essendon have? | CREATE TABLE table_name_66 (crowd VARCHAR, home_team VARCHAR) |
SELECT income_class FROM table_1691800_2 WHERE area__km²_ = 75 | what is the income class for area 75? | CREATE TABLE table_1691800_2 (income_class VARCHAR, area__km²_ VARCHAR) |
SELECT "Long scale" FROM table_45078 WHERE "Power notation" = '10 12' | For a power notation of 10 12, what is the long scale? | CREATE TABLE table_45078 (
"Number notation" real,
"Power notation" text,
"Short scale" text,
"Long scale" text,
"Indian (or South Asian) English" text
) |
SELECT mlb_draft FROM table_name_80 WHERE school = "seton hall preparatory school" | What is the MLB Draft status of the person who attended Seton Hall Preparatory School? | CREATE TABLE table_name_80 (mlb_draft VARCHAR, school VARCHAR) |
SELECT area__km²_ FROM table_1691800_2 WHERE municipality = "Labrador" | what is th area where the municipaity is labrador? | CREATE TABLE table_1691800_2 (area__km²_ VARCHAR, municipality VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "SINGLE" AND procedures.short_title = "CV cath plcmt w guidance" | provide the number of patients whose marital status is single and procedure short title is cv cath plcmt w guidance? | 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 prescriptions... |
SELECT hometown FROM table_name_64 WHERE school = "kennedy-kenrick catholic high school" | Where is the Hometown of the person that attended Kennedy-Kenrick Catholic High School? | CREATE TABLE table_name_64 (hometown VARCHAR, school VARCHAR) |
SELECT municipality FROM table_1691800_2 WHERE area__km²_ = 73 | what is the municipality where the area is 73? | CREATE TABLE table_1691800_2 (municipality VARCHAR, area__km²_ VARCHAR) |
SELECT method_of_elimination FROM table_24628683_2 WHERE time = "24:02" | What was the method of elimination in the chamber with a time of 24:02? | CREATE TABLE table_24628683_2 (
method_of_elimination VARCHAR,
time VARCHAR
) |
SELECT player FROM table_name_8 WHERE school = "george washington high school" | Which Player attended George Washington High School? | CREATE TABLE table_name_8 (player VARCHAR, school VARCHAR) |
SELECT equipment FROM table_16941304_4 WHERE bike_no = 6 | Name the equipment for bike number 6 | CREATE TABLE table_16941304_4 (equipment VARCHAR, bike_no VARCHAR) |
SELECT l2_cache FROM table_18823880_10 WHERE release_date = "September 2009" AND part_number_s_ = "BY80607002529AF" | When by80607002529af is the part number and september 2009 is the release date what is the l2 cache? | CREATE TABLE table_18823880_10 (
l2_cache VARCHAR,
release_date VARCHAR,
part_number_s_ VARCHAR
) |
SELECT hometown FROM table_name_40 WHERE school = "camarillo high school" | Where is the Hometown that the person who attended Camarillo High School is from? | CREATE TABLE table_name_40 (hometown VARCHAR, school VARCHAR) |
SELECT driver___passenger FROM table_16941304_4 WHERE points = 394 | Name the driver passenger for 394 points | CREATE TABLE table_16941304_4 (driver___passenger VARCHAR, points VARCHAR) |
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissi... | what are the five most commonly performed procedures for patients who were previously diagnosed with heparin-indu thrombocyto within 2 months, in 2104? | CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_... |
SELECT COUNT(crowd) FROM table_name_99 WHERE away_team = "carlton" | How many people in total have attended games where carlton played as away? | CREATE TABLE table_name_99 (crowd VARCHAR, away_team VARCHAR) |
SELECT equipment FROM table_16941304_4 WHERE bike_no = 3 | Name the equipment for bike number being 3 | CREATE TABLE table_16941304_4 (equipment VARCHAR, bike_no VARCHAR) |
SELECT record FROM table_name_62 WHERE time = "3:05" | What was his record when the match went for 3:05? | CREATE TABLE table_name_62 (
record VARCHAR,
time VARCHAR
) |
SELECT player FROM table_name_73 WHERE long < 15 AND avg = 6 | Which player has a long of less than 15 and an average of 6 yards. | CREATE TABLE table_name_73 (player VARCHAR, long VARCHAR, avg VARCHAR) |
SELECT reason_for_change FROM table_1694492_2 WHERE district = "New York 10th" | In district New York 10th, what was the reason for change? | CREATE TABLE table_1694492_2 (reason_for_change VARCHAR, district VARCHAR) |
SELECT "opponents" FROM table_203_590 WHERE "score" = 0 | against which opponent did scotland have no scorers ? | CREATE TABLE table_203_590 (
id number,
"date" text,
"venue" text,
"opponents" text,
"score" text,
"competition" text,
"scotland scorer(s)" text
) |
SELECT years_for_jazz FROM table_name_29 WHERE player = "troy hudson" | What years did Troy Hudson play for the Jazz? | CREATE TABLE table_name_29 (years_for_jazz VARCHAR, player VARCHAR) |
SELECT reason_for_change FROM table_1694505_4 WHERE district = "Wisconsin 2nd" | In the district Wisconsin 2nd, what was the reason for change? | CREATE TABLE table_1694505_4 (reason_for_change VARCHAR, district VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.itemid = "51221" AND lab.flag = "abnormal" | count the number of patients with lab test item id 51221 who have abnormal lab test status. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... |
SELECT nationality FROM table_name_69 WHERE school_club_team = "iowa state" | What Nationality is the Iowa State team? | CREATE TABLE table_name_69 (nationality VARCHAR, school_club_team VARCHAR) |
SELECT MIN(age_30_39) FROM table_169693_1 WHERE age_20_29 = 593 | Name the least age 30-39 where age 20-29 is 593 | CREATE TABLE table_169693_1 (age_30_39 INTEGER, age_20_29 VARCHAR) |
SELECT player FROM table_name_60 WHERE score > 67 | Can you tell me the Player that has the Score larger than 67? | CREATE TABLE table_name_60 (
player VARCHAR,
score INTEGER
) |
SELECT nationality FROM table_name_14 WHERE player = "jeff hornacek" | What Nationality is Jeff Hornacek? | CREATE TABLE table_name_14 (nationality VARCHAR, player VARCHAR) |
SELECT MIN(age_40_49) FROM table_169693_1 | Name the least age 40-49 | CREATE TABLE table_169693_1 (age_40_49 INTEGER) |
SELECT "name" FROM table_204_945 WHERE "sent home" = 2 ORDER BY "episode" DESC LIMIT 1 | what was the last episode with two people sent home ? | CREATE TABLE table_204_945 (
id number,
"episode" number,
"name" text,
"synopsis" text,
"sent home" text,
"highest seller" text
) |
SELECT nationality FROM table_name_16 WHERE school_club_team = "colorado" | What Nationality is the Colorado State team? | CREATE TABLE table_name_16 (nationality VARCHAR, school_club_team VARCHAR) |
SELECT age_30_39 FROM table_169693_1 WHERE age_10_19 = 380 | Name the age 30-39 and age 10-19 380 | CREATE TABLE table_169693_1 (age_30_39 VARCHAR, age_10_19 VARCHAR) |
SELECT original_air_date FROM table_15431959_1 WHERE written_by = "Peter DeLuise" | What was the original air date of Stargate SG-1 written by Peter Deluise? | CREATE TABLE table_15431959_1 (
original_air_date VARCHAR,
written_by VARCHAR
) |
SELECT player FROM table_name_96 WHERE school_club_team = "southern illinois" | What Player is from the Southern Illinois team? | CREATE TABLE table_name_96 (player VARCHAR, school_club_team VARCHAR) |
SELECT score FROM table_16967990_1 WHERE _number = "4" | Name the score for number 4 | CREATE TABLE table_16967990_1 (score VARCHAR, _number VARCHAR) |
SELECT SUM(bronze) FROM table_name_42 WHERE silver < 0 | What is the sum of the bronze medals of the nation with less than 0 silvers? | CREATE TABLE table_name_42 (
bronze INTEGER,
silver INTEGER
) |
SELECT years_for_jazz FROM table_name_53 WHERE player = "eddie hughes" | What years did Eddie Hughes play for the Jazz? | CREATE TABLE table_name_53 (years_for_jazz VARCHAR, player VARCHAR) |
SELECT COUNT(chester) FROM table_16974228_1 WHERE religion = "Hindu" | How many numbers were recorded for Chester when the religion was Hindu? | CREATE TABLE table_16974228_1 (chester VARCHAR, religion VARCHAR) |
SELECT "Opponents in the final" FROM table_71910 WHERE "Surface" = 'carpet (i)' | Who were the Opponents in the final that played on a carpet (i) Surface? | CREATE TABLE table_71910 (
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
) |
SELECT species FROM table_name_63 WHERE threat_level = "medium" | Which Species has a medium Threat Level? | CREATE TABLE table_name_63 (species VARCHAR, threat_level VARCHAR) |
SELECT MIN(earnings___) AS $__ FROM table_1697190_2 | what was Casey Martin's minimum yearly earnings? | CREATE TABLE table_1697190_2 (earnings___ INTEGER) |
SELECT COUNT(pick) FROM table_name_46 WHERE round > 17 AND name = "gene stewart" | Which Pick has a Round larger than 17, and a Name of gene stewart? | CREATE TABLE table_name_46 (
pick VARCHAR,
round VARCHAR,
name VARCHAR
) |
SELECT overview FROM table_name_79 WHERE threat_level = "medium" | What is the Overview with a medium Threat Level? | CREATE TABLE table_name_79 (overview VARCHAR, threat_level VARCHAR) |
SELECT money_list_rank FROM table_1697190_2 WHERE best_finish = "T-65" | when Casey Martin's best finish was t-65, where did he land in the money list rankings? | CREATE TABLE table_1697190_2 (money_list_rank VARCHAR, best_finish VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((date_day.day_number = 24 AND date_day.month_number = 5 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time... | list all flights going from BOSTON to ATLANTA before 500 o'clock am on thursday | CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE equipment_... |
SELECT threat_level FROM table_name_72 WHERE overview = "rabbits in australia" | What is the Threat Levels with Rabbits in Australia? | CREATE TABLE table_name_72 (threat_level VARCHAR, overview VARCHAR) |
SELECT MAX(wins) FROM table_1697190_2 | how many times did Casey Martin win? | CREATE TABLE table_1697190_2 (wins INTEGER) |
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age >= 60) ... | since 2 years ago for the patients of age 60 or above, what were the top three most frequent diagnoses? | CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
val... |
SELECT nominee FROM table_name_81 WHERE award = "drama desk award" AND result = "won" AND category = "outstanding choreography" | Which nominee won the Drama Desk Award for outstanding choreography? | CREATE TABLE table_name_81 (nominee VARCHAR, category VARCHAR, award VARCHAR, result VARCHAR) |
SELECT COUNT(air_dates) FROM table_16976547_2 WHERE cycle_no = "05" | Name the total number of air dates for 05 cycle | CREATE TABLE table_16976547_2 (air_dates VARCHAR, cycle_no VARCHAR) |
SELECT "Time" FROM table_12210 WHERE "Record" = '10-1' | What is the time where the record is 10-1? | CREATE TABLE table_12210 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) |
SELECT MAX(year) FROM table_name_98 WHERE nominee = "best revival of a musical" | When was the last time a nominee for Best Revival of a Musical was selected? | CREATE TABLE table_name_98 (year INTEGER, nominee VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.