answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'DENVER' AND ground_service.city_code = city.city_code
what ground transportation is available from the DENVER airport to downtown DENVER
CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE T...
SELECT result FROM table_name_31 WHERE week > 7 AND attendance = "66,251"
Where week is greater than 7 and attendance is 66,251 what is the result?
CREATE TABLE table_name_31 (result VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT surface FROM table_2112025_3 WHERE year = 1971
What was the court surface on year 1971?
CREATE TABLE table_2112025_3 (surface VARCHAR, year VARCHAR)
SELECT "Successor" FROM table_25100 WHERE "Date successor seated" = 'Not filled this congress'
Name the successor for not filled this congress
CREATE TABLE table_25100 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text )
SELECT date FROM table_name_61 WHERE attendance = "79,431"
Where attendance is 79,431 what is date?
CREATE TABLE table_name_61 (date VARCHAR, attendance VARCHAR)
SELECT MAX(top_10s) FROM table_2112220_6 WHERE best_finish = "2"
Name the most top 10s for 2 best finish
CREATE TABLE table_2112220_6 (top_10s INTEGER, best_finish VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.religion = "JEWISH" AND diagnoses.long_title = "Other postoperative infection"
give me the number of patients whose religion is jewish and diagnoses long title is other postoperative infection?
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
SELECT result FROM table_name_89 WHERE date = "september 13, 1998"
Where Date is september 13, 1998 what is result?
CREATE TABLE table_name_89 (result VARCHAR, date VARCHAR)
SELECT MIN(tournaments_played) FROM table_2112220_6 WHERE year = 2004
Name the tournaments played for 2004
CREATE TABLE table_2112220_6 (tournaments_played INTEGER, year VARCHAR)
SELECT decision FROM table_name_56 WHERE visitor = "canadiens"
What was the decision of the Lightning game when the Canadiens were the away team?
CREATE TABLE table_name_56 ( decision VARCHAR, visitor VARCHAR )
SELECT away_team AS score FROM table_name_30 WHERE venue = "junction oval"
What did the away team score at Junction oval?
CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)
SELECT MAX(submissions_of_the_night) FROM table_21114902_1 WHERE fighter = "Matt Wiman"
How many submission of the night occurred when the fighter was matt wiman?
CREATE TABLE table_21114902_1 (submissions_of_the_night INTEGER, fighter VARCHAR)
SELECT composition FROM table_name_33 WHERE weight = "3 g"
What is the coin that weighs 3 g made of?
CREATE TABLE table_name_33 ( composition VARCHAR, weight VARCHAR )
SELECT score FROM table_name_86 WHERE home = "ny islanders" AND visitor = "montreal"
Name the score when the home is ny islanders and the visitor is montreal
CREATE TABLE table_name_86 (score VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT knockouts_of_the_night FROM table_21114902_1 WHERE fighter = "Joe Lauzon"
How many knockout of the night occurred when joe lauzon fought.
CREATE TABLE table_21114902_1 (knockouts_of_the_night VARCHAR, fighter VARCHAR)
SELECT "Team" FROM table_51930 WHERE "Tournament" > '1' AND "Regular season" = '0' AND "Total" = '2'
What team has over 1 tournament title, 0 in the regular season, and 2 total?
CREATE TABLE table_51930 ( "Team" text, "Seasons" text, "Regular season" text, "Tournament" real, "Total" real )
SELECT score FROM table_name_76 WHERE decision = "dipietro" AND visitor = "philadelphia"
Name the score when the decision is dipietro and the visitor is philadelphia
CREATE TABLE table_name_76 (score VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT MIN(episodes) FROM table_2113721_7
What is the smallest number of episodes in a season?
CREATE TABLE table_2113721_7 (episodes INTEGER)
SELECT constructor FROM table_name_34 WHERE race_name = "vii race of champions"
What is the constructor for the VII Race of Champions?
CREATE TABLE table_name_34 ( constructor VARCHAR, race_name VARCHAR )
SELECT score FROM table_name_80 WHERE decision = "dipietro" AND visitor = "ny islanders" AND home = "colorado"
Name the score when it had a decision of dipietro and visitor of ny islanders with home of colorado
CREATE TABLE table_name_80 (score VARCHAR, home VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT region_2 FROM table_2113721_7 WHERE dvd_name = "Season Three"
When was Season Three premiered in region 2?
CREATE TABLE table_2113721_7 (region_2 VARCHAR, dvd_name VARCHAR)
SELECT MAX(place) FROM table_name_37 WHERE national_final = "4th" AND points < 139
what is the highest place when the national final is 4th and the points is less than 139?
CREATE TABLE table_name_37 ( place INTEGER, national_final VARCHAR, points VARCHAR )
SELECT MIN(attendance) FROM table_name_97 WHERE visitor = "carolina"
Name the least attendance with carolina visitor
CREATE TABLE table_name_97 (attendance INTEGER, visitor VARCHAR)
SELECT location FROM table_2112260_1 WHERE specialization = "Textile engineering"
Where is every location with specialization of textile engineering?
CREATE TABLE table_2112260_1 (location VARCHAR, specialization VARCHAR)
SELECT AVG(pole_positions) FROM table_name_33 WHERE percentage = "44.81%"
What's the average pole position for the driver that has a percentage of 44.81%?
CREATE TABLE table_name_33 ( pole_positions INTEGER, percentage VARCHAR )
SELECT venue FROM table_name_29 WHERE away_team = "carlton"
What Venue had Carlton has the Away team?
CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR)
SELECT website FROM table_2112260_1 WHERE specialization = "Engineering" AND division = "Dhaka division"
What is every website with specialization of engineering and division of dhaka division?
CREATE TABLE table_2112260_1 (website VARCHAR, specialization VARCHAR, division VARCHAR)
SELECT MAX("Round") FROM table_71220 WHERE "College" = 'nebraska' AND "Overall" < '190'
What is the highest round for College of Nebraska if the Overall is under 190?
CREATE TABLE table_71220 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT record FROM table_name_14 WHERE high_points = "clippers"
What is the record when Clippers have the high points?
CREATE TABLE table_name_14 (record VARCHAR, high_points VARCHAR)
SELECT location FROM table_2112260_1 WHERE nick = "BRU"
Where is every location where Nick is Bru?
CREATE TABLE table_2112260_1 (location VARCHAR, nick VARCHAR)
SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.cit...
show me airlines with flights from PITTSBURGH to BOSTON please
CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE code_description ( code varchar, description text ) CREATE...
SELECT high_points FROM table_name_51 WHERE high_rebounds = "ot"
What had the high points when OT had high rebounds?
CREATE TABLE table_name_51 (high_points VARCHAR, high_rebounds VARCHAR)
SELECT specialization FROM table_2112260_1 WHERE website = "jstu.edu.bd"
What is every specialization with the website Jstu.edu.bd
CREATE TABLE table_2112260_1 (specialization VARCHAR, website VARCHAR)
SELECT T1.Height FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Injured DESC
What are the heights of perpetrators in descending order of the number of people they injured?
CREATE TABLE people ( Height VARCHAR, People_ID VARCHAR ) CREATE TABLE perpetrator ( People_ID VARCHAR, Injured VARCHAR )
SELECT date FROM table_name_8 WHERE high_points = "suns" AND record = "33–13"
On what date did the Suns have high points with a record of 33–13?
CREATE TABLE table_name_8 (date VARCHAR, high_points VARCHAR, record VARCHAR)
SELECT languages FROM table_21133193_1 WHERE member_countries = "Cyprus"
Name the languages for cyprus
CREATE TABLE table_21133193_1 (languages VARCHAR, member_countries VARCHAR)
SELECT heat_ & _lane FROM table_name_25 WHERE name = "thi hue pham"
What heat and what lane is thi hue pham in?
CREATE TABLE table_name_25 ( heat_ VARCHAR, _lane VARCHAR, name VARCHAR )
SELECT high_assists FROM table_name_20 WHERE location_attendance = "20,562"
Who has the high assists when location attendance is 20,562?
CREATE TABLE table_name_20 (high_assists VARCHAR, location_attendance VARCHAR)
SELECT languages FROM table_21133193_1 WHERE member_countries = "Estonia"
Name the languages for estonia
CREATE TABLE table_21133193_1 (languages VARCHAR, member_countries VARCHAR)
SELECT COUNT("Total") FROM table_22944 WHERE "Last/current driver(s)" = 'Narain Karthikeyan ( 2010 )'
how many total where last/current driver(s) is narain karthikeyan ( 2010 )
CREATE TABLE table_22944 ( "Country" text, "Total" real, "Champions" real, "Current" real, "First driver(s)" text, "Last/current driver(s)" text )
SELECT AVG(bronze) FROM table_name_94 WHERE silver < 1 AND total > 3
Which Bronze has a Silver smaller than 1, and a Total larger than 3?
CREATE TABLE table_name_94 (bronze INTEGER, silver VARCHAR, total VARCHAR)
SELECT MAX(gdp_per_capita__us) AS $_ FROM table_21133193_1 WHERE languages = "Latvian"
Name the most gdp per capita latvian
CREATE TABLE table_21133193_1 (gdp_per_capita__us INTEGER, languages VARCHAR)
SELECT COUNT(DISTINCT patient.patientunitstayid) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '022-163354') AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')
how many times has patient 022-163354 gone to the icu a year before?
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TA...
SELECT MIN(gold) FROM table_name_60 WHERE nation = "united states" AND total > 5
Which Gold has a Nation of united states, and a Total larger than 5?
CREATE TABLE table_name_60 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT archive FROM table_2112766_1 WHERE run_time = "24:34"
how many archive were when run time is 24:34
CREATE TABLE table_2112766_1 (archive VARCHAR, run_time VARCHAR)
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT procedures_icd.icd9_code FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 83894) AND DATETIME(procedures_icd.charttime) <= DATETIME(CURRENT_TI...
what procedure did patient 83894 undergo for the first time until 2 years ago?
CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE diagnoses_icd ( row_id number, subject_i...
SELECT AVG(bronze) FROM table_name_28 WHERE nation = "argentina" AND silver < 0
Which Bronze has a Nation of argentina, and a Silver smaller than 0?
CREATE TABLE table_name_28 (bronze INTEGER, nation VARCHAR, silver VARCHAR)
SELECT COUNT(broadcast_date) FROM table_2112766_1 WHERE viewers__in_millions_ = "8.4"
what is all the broadcast date when viewers were 8.4 millions
CREATE TABLE table_2112766_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR)
SELECT type FROM table_1973842_1 WHERE nickname = "Spirits"
What's the type of the school whose students' name is spirits?
CREATE TABLE table_1973842_1 ( type VARCHAR, nickname VARCHAR )
SELECT AVG(bronze) FROM table_name_15 WHERE silver = 2 AND total < 5
Which Bronze has a Silver of 2, and a Total smaller than 5?
CREATE TABLE table_name_15 (bronze INTEGER, silver VARCHAR, total VARCHAR)
SELECT COUNT(episode) FROM table_2112766_1 WHERE viewers__in_millions_ = "8.4"
how many episode have 8.4 millions viewer.
CREATE TABLE table_2112766_1 (episode VARCHAR, viewers__in_millions_ VARCHAR)
SELECT account_id, customer_id FROM Accounts
What is the relationship between customer id and account id? Show me a scatter chart.
CREATE TABLE Customers_Cards ( card_id INTEGER, customer_id INTEGER, card_type_code VARCHAR(15), card_number VARCHAR(80), date_valid_from DATETIME, date_valid_to DATETIME, other_card_details VARCHAR(255) ) CREATE TABLE Financial_Transactions ( transaction_id INTEGER, previous_transa...
SELECT crowd FROM table_name_14 WHERE away_team = "carlton"
How many spectators were at the away team Carlton?
CREATE TABLE table_name_14 (crowd VARCHAR, away_team VARCHAR)
SELECT title FROM table_21146729_6 WHERE season__number = 8
What was the title in season #8?
CREATE TABLE table_21146729_6 (title VARCHAR, season__number VARCHAR)
SELECT MAX("township") FROM table_203_729
alphabetically , what is the last township in ellsworth county , kansas ?
CREATE TABLE table_203_729 ( id number, "township" text, "fips" number, "population\ncenter" text, "population" number, "population\ndensity\n/km2 (/sq mi)" text, "land area\nkm2 (sq mi)" text, "water area\nkm2 (sq mi)" text, "water %" text, "geographic coordinates" text )
SELECT school AS Colors FROM table_name_70 WHERE enrolment > 1000 AND school = "the friends' school"
What school colors for the friends' school with over 1000 enrolled?
CREATE TABLE table_name_70 (school VARCHAR, enrolment VARCHAR)
SELECT director FROM table_21146729_6 WHERE writer_s_ = "John W. Bloch"
Who was the director when the writer(s) was John W. Bloch?
CREATE TABLE table_21146729_6 (director VARCHAR, writer_s_ VARCHAR)
SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'annuloplasty') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 69289 AND NOT admissions.dischtime...
has patient 69289 undergone a annuloplasty treatment in their first hospital visit?
CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE...
SELECT MIN(enrolment) FROM table_name_67 WHERE founded > 1995
What is the low enrolment for schools founded after 1995?
CREATE TABLE table_name_67 (enrolment INTEGER, founded INTEGER)
SELECT MAX(series__number) FROM table_21146729_6 WHERE original_airdate = "October 23, 1967"
What was the series# with the original airdate of october 23, 1967?
CREATE TABLE table_21146729_6 (series__number INTEGER, original_airdate VARCHAR)
SELECT "player" FROM table_203_697 WHERE "nickname" = '"tom terrific"' INTERSECT SELECT "player" FROM table_203_697 WHERE "nickname" = '"the franchise"'
tom terrific and the franchise are nicknames of this same player
CREATE TABLE table_203_697 ( id number, "player" text, "career" text, "nickname" text, "team inducted as" text )
SELECT location FROM table_name_65 WHERE school = "the friends' school"
WHere is the friends' school?
CREATE TABLE table_name_65 (location VARCHAR, school VARCHAR)
SELECT title FROM table_21146729_6 WHERE writer_s_ = "Jack Turley"
what is the title when the writer(s) is jack turley?
CREATE TABLE table_21146729_6 (title VARCHAR, writer_s_ VARCHAR)
SELECT DISTINCT course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (course.number = 503 OR course.number = 489) AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 INNER JOIN course AS COURSEalias1 ON ...
Which of the two are easier , EECS 503 , or EECS 489 ?
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_proje...
SELECT system FROM table_name_58 WHERE current_version = "3.0.0"
What is the System with the Current version 3.0.0?
CREATE TABLE table_name_58 (system VARCHAR, current_version VARCHAR)
SELECT COUNT(series__number) FROM table_21146729_6 WHERE original_airdate = "September 25, 1967"
How many of the series # when the original airdate is september 25, 1967?
CREATE TABLE table_21146729_6 (series__number VARCHAR, original_airdate VARCHAR)
SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 86786 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label ...
compared to second measured on the first hospital visit was the white blood cells value of patient 86786 greater than first measured on the first hospital visit?
CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, ...
SELECT name FROM table_name_35 WHERE license = "gpl" AND current_version = "1.72"
What is the Name when the License is gpl and the Current Version is 1.72?
CREATE TABLE table_name_35 (name VARCHAR, license VARCHAR, current_version VARCHAR)
SELECT episode FROM table_2114308_1 WHERE run_time = "22:50"
Name the episode for run time of 22:50
CREATE TABLE table_2114308_1 (episode VARCHAR, run_time VARCHAR)
SELECT MAX("Crude death rate (per 1000)") FROM table_6690 WHERE "Natural change (per 1000)" < '-1' AND "Crude birth rate (per 1000)" < '10.5' AND "Deaths" = '102 400'
Natural change (per 1000) smaller than -1, and a Crude birth rate (per 1000) smaller than 10.5, and a Deaths of 102 400 has what highest crude death rate per 1000?
CREATE TABLE table_6690 ( "Average population (x 1000)" text, "Live births" text, "Deaths" text, "Natural change" text, "Crude birth rate (per 1000)" real, "Crude death rate (per 1000)" real, "Natural change (per 1000)" real )
SELECT system FROM table_name_63 WHERE license = "gpl" AND current_version = "1.72"
What is the System when the Licence is gpl and the Current Version is 1.72?
CREATE TABLE table_name_63 (system VARCHAR, license VARCHAR, current_version VARCHAR)
SELECT broadcast_date FROM table_2114308_1 WHERE viewers__in_millions_ = "6.9"
Name the broadcast date of 6.9 million viewers
CREATE TABLE table_2114308_1 (broadcast_date VARCHAR, viewers__in_millions_ VARCHAR)
SELECT COUNT("Lane") FROM table_7521 WHERE "Country" = 'united states' AND "Mark" = '6.62' AND "Heat" > '8'
What is the total lane number for the United States when the mark is 6.62 and the heat is greater than 8?
CREATE TABLE table_7521 ( "Heat" real, "Lane" real, "Name" text, "Country" text, "Mark" text )
SELECT system FROM table_name_9 WHERE license = "freeware"
What is the System with a freeware License?
CREATE TABLE table_name_9 (system VARCHAR, license VARCHAR)
SELECT broadcast_date FROM table_2114308_1 WHERE run_time = "24:14"
Name the broadcast date of run time being 24:14
CREATE TABLE table_2114308_1 (broadcast_date VARCHAR, run_time VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "GUILLAIN BARRE SYNDROME" AND demographic.dod_year <= "2164.0"
How many of the patients with guillain barre syndrome as their primary disease died in or before 2164?
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 demographic ( subject_id text, hadm_id t...
SELECT license FROM table_name_98 WHERE platform = "windows" AND name = "altirra"
What is the License when the Platform is windows and the Name is Altirra?
CREATE TABLE table_name_98 (license VARCHAR, platform VARCHAR, name VARCHAR)
SELECT archive FROM table_2114238_1 WHERE run_time = "23:48"
Which archive has a run time of 23:48?
CREATE TABLE table_2114238_1 (archive VARCHAR, run_time VARCHAR)
SELECT COUNT(withdrawn) FROM table_name_93 WHERE number > 5
How many items withdrawn had numbers over 5?
CREATE TABLE table_name_93 ( withdrawn VARCHAR, number INTEGER )
SELECT platform FROM table_name_55 WHERE current_version = "0.6.2"
What Platform has a Current Version 0.6.2?
CREATE TABLE table_name_55 (platform VARCHAR, current_version VARCHAR)
SELECT broadcast_date FROM table_2114238_1 WHERE viewers__in_millions_ = "6.8"
Which broadcast date has 6.8 million viewers?
CREATE TABLE table_2114238_1 (broadcast_date VARCHAR, viewers__in_millions_ 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 (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND date_day.day_number = 29 AND date_day.month_number = 7 AND da...
may i have a list of flights going from BOSTON to DENVER on the 29 of 7
CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE state ( state_code text, ...
SELECT AVG(attendance) FROM table_name_11 WHERE date = "october 9, 1983"
What is the average attendance on October 9, 1983?
CREATE TABLE table_name_11 (attendance INTEGER, date VARCHAR)
SELECT model FROM table_21154679_1 WHERE max_power = "PS (kW; bhp)@5400-6500"
What Petrol engine has total power of ps (kw; bhp)@5400-6500?
CREATE TABLE table_21154679_1 (model VARCHAR, max_power VARCHAR)
SELECT song_choice FROM table_15796054_3 WHERE week__number = "Hollywood"
Name the song choice when week number is hollywood
CREATE TABLE table_15796054_3 ( song_choice VARCHAR, week__number VARCHAR )
SELECT MIN(attendance) FROM table_name_19 WHERE date = "september 4, 1983"
What is the lowest attendance on September 4, 1983?
CREATE TABLE table_name_19 (attendance INTEGER, date VARCHAR)
SELECT top_speed FROM table_21154679_1 WHERE max_power = "PS (kW; bhp)@5250-6250"
What is top speed of a petrol engine at ps (kw; bhp)@5250-6250?
CREATE TABLE table_21154679_1 (top_speed VARCHAR, max_power VARCHAR)
SELECT opponent FROM table_name_32 WHERE attendance = "73,428"
Which opponent had 73,428 in attendance?
CREATE TABLE table_name_32 ( opponent VARCHAR, attendance VARCHAR )
SELECT mascot FROM table_name_51 WHERE year_opened = "1970"
What is the mascot whose school opened in 1970?
CREATE TABLE table_name_51 (mascot VARCHAR, year_opened VARCHAR)
SELECT top_speed FROM table_21154679_1 WHERE max_power = "PS (kW; bhp)"
What is the maximum speed for total power of ps (kw; bhp)?
CREATE TABLE table_21154679_1 (top_speed VARCHAR, max_power VARCHAR)
SELECT MIN("Series Number") FROM table_45282 WHERE "Original Air Date" < '2009' AND "DVD Region 2 release date" = '26 july 2004' AND "Number of Episodes" > '7'
What's the lowest series number that originally aired before 2009 with more than 7 episodes and had a DVD Region 2 release date of 26 july 2004?
CREATE TABLE table_45282 ( "Series Number" real, "Number of Episodes" real, "Original Air Date" real, "DVD Region 2 release date" text, "DVD Region 1 release date" text )
SELECT principal FROM table_name_92 WHERE mascot = "patriots"
What principal has a school mascot of the patriots?
CREATE TABLE table_name_92 (principal VARCHAR, mascot VARCHAR)
SELECT torque FROM table_21154679_1 WHERE model = "S7 4.0 TFSI quattro"
What is the s7 4.0 tfsi quattro engine torque?
CREATE TABLE table_21154679_1 (torque VARCHAR, model VARCHAR)
SELECT "Record" FROM table_73459 WHERE "Team" = 'Memphis'
What was the record in the game against Memphis?
CREATE TABLE table_73459 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT venue FROM table_name_43 WHERE score = "24–28"
What was the venue when the score was 24–28?
CREATE TABLE table_name_43 (venue VARCHAR, score VARCHAR)
SELECT MAX(no_in_season) FROM table_21165255_1 WHERE production_code = 4300062
Name the number in season for 4300062
CREATE TABLE table_21165255_1 (no_in_season INTEGER, production_code VARCHAR)
SELECT license FROM table_19495707_1 WHERE latest_release_date_and_version = "2009-05-25 v 7.61"
Name the license for 2009-05-25 v 7.61
CREATE TABLE table_19495707_1 ( license VARCHAR, latest_release_date_and_version VARCHAR )
SELECT MIN(pick) FROM table_name_96 WHERE school = "stanford university"
What is the lowest pick when the School is Stanford University?
CREATE TABLE table_name_96 (pick INTEGER, school VARCHAR)
SELECT COUNT(cancelled) FROM table_211615_2 WHERE station = "Turnham Green"
Name the number of cancelled for turnham green
CREATE TABLE table_211615_2 (cancelled VARCHAR, station VARCHAR)
SELECT t2.drugname FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid =...
what was the name of the drug which patient 007-15837 was prescribed within the same hospital visit after being diagnosed with metabolic acidosis - moderate in 02/this year?
CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, h...