answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT luma_samples_s FROM table_237036_2 WHERE level = "1.3"
What are the luma samples at level 1.3?
CREATE TABLE table_237036_2 (luma_samples_s VARCHAR, level VARCHAR)
SELECT points AS defending FROM table_24431264_17 WHERE player = "Caroline Wozniacki"
List the total number of defense points for caroline wozniacki.
CREATE TABLE table_24431264_17 (points VARCHAR, player VARCHAR)
SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 88191 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 = 'hemoglobin') ORDER BY labevents.charttime LIMIT 1 OFFSET 1) - (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 88191 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 = 'hemoglobin') ORDER BY labevents.charttime LIMIT 1)
what is the change in the hemoglobin of patient 88191's value second measured on the first hospital visit compared to the value first measured on the first hospital visit?
CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) 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 patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE d_icd_procedures ( 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, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text )
SELECT high_10_profile FROM table_237036_2 WHERE high_profile = 160
What is the high 10 profile when high profile is 160?
CREATE TABLE table_237036_2 (high_10_profile VARCHAR, high_profile VARCHAR)
SELECT points AS defending FROM table_24431264_17 WHERE player = "Marion Bartoli"
List the total defensive points for marion bartoli.
CREATE TABLE table_24431264_17 (points VARCHAR, player VARCHAR)
SELECT "name" FROM table_204_649 WHERE "year" < 1991 ORDER BY "height\nft (m)" DESC LIMIT 1
when the key tower was built in 1991 , what was the previous tallest building constructed ?
CREATE TABLE table_204_649 ( id number, "rank" number, "name" text, "image" number, "height\nft (m)" text, "floors" number, "year" number, "notes" text )
SELECT original_air_date FROM table_23705843_1 WHERE ratings__millions_ = "1.92"
What is the original air date if the ratings is 1.92 million?
CREATE TABLE table_23705843_1 (original_air_date VARCHAR, ratings__millions_ VARCHAR)
SELECT MAX(points) AS won FROM table_24431348_20 WHERE player = "Aravane Rezaï"
What is the highest points won when the player is aravane rezaï?
CREATE TABLE table_24431348_20 (points INTEGER, player VARCHAR)
SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-59871' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime DESC LIMIT 1)) ORDER BY treatment.treatmenttime LIMIT 1
when did patient 015-59871 receive procedures for the first time during their last hospital visit?
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) 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 ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time )
SELECT writer FROM table_23705843_1 WHERE ratings__millions_ = "2.61"
What is the name of the writer when the ratings was 2.61 million?
CREATE TABLE table_23705843_1 (writer VARCHAR, ratings__millions_ VARCHAR)
SELECT COUNT(status) FROM table_24431348_20 WHERE new_points = 2690
How many times is the new points 2690?
CREATE TABLE table_24431348_20 (status VARCHAR, new_points VARCHAR)
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-250695')) AND intakeoutput.celllabel = 'output amt-jackson pratt drain' AND intakeoutput.cellpath LIKE '%output%' AND DATETIME(intakeoutput.intakeoutputtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m-%d', intakeoutput.intakeoutputtime) = '11-18'
what was the total amount of output amt-jackson pratt drain patient 021-250695 produced on 11/18/last year?
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) 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 intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time )
SELECT directed_by FROM table_2370579_1 WHERE written_by = "Tony O'Grady (pseudonym of Brian Clemens)"
Who directed the episode written by Tony O'Grady (pseudonym of brian clemens)?
CREATE TABLE table_2370579_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT player FROM table_24431264_18 WHERE new_points = 1285
List the players with 1285 new points?
CREATE TABLE table_24431264_18 (player VARCHAR, new_points VARCHAR)
SELECT score FROM table_name_92 WHERE date = "april 24"
What scored is recorded on April 24?
CREATE TABLE table_name_92 ( score VARCHAR, date VARCHAR )
SELECT MIN(prod__number) FROM table_2370579_1 WHERE episode__number = 23
What is the production number for episode 23?
CREATE TABLE table_2370579_1 (prod__number INTEGER, episode__number VARCHAR)
SELECT MAX(points) AS defending FROM table_24431264_18 WHERE player = "Radek Štěpánek"
How many defending points did radek štěpánek have?
CREATE TABLE table_24431264_18 (points INTEGER, player VARCHAR)
SELECT COUNT(matches) FROM table_name_14 WHERE draw < 7 AND lost_point = 16 AND lose > 4
I want the total number of matches for draw less than 7 and lost point of 16 with lose more than 4
CREATE TABLE table_name_14 ( matches VARCHAR, lose VARCHAR, draw VARCHAR, lost_point VARCHAR )
SELECT romanian__colloquial_ FROM table_23710609_2 WHERE english = "(s)he will sing"
What is the colloquial translation of (s)he will sing?
CREATE TABLE table_23710609_2 (romanian__colloquial_ VARCHAR, english VARCHAR)
SELECT COUNT(rank) FROM table_24431264_18 WHERE withdrew_due_to = "right foot injury"
List the rank of the player that left the tournament due to right foot injury
CREATE TABLE table_24431264_18 (rank VARCHAR, withdrew_due_to VARCHAR)
SELECT "Thursday Fourth Day" FROM table_17780 WHERE "Day (see Irregularities )" = 'Slovene'
What's the Slovene word for Thursday?
CREATE TABLE table_17780 ( "Day (see Irregularities )" text, "Monday First Day" text, "Tuesday Second Day" text, "Wednesday Third Day" text, "Thursday Fourth Day" text, "Friday Fifth Day" text, "Saturday Sixth Day" text, "Sunday Seventh Day" text )
SELECT date FROM table_23718905_6 WHERE city = "El Paso, Texas"
What was the date of the game played in El Paso, Texas?
CREATE TABLE table_23718905_6 (date VARCHAR, city VARCHAR)
SELECT MIN(points) AS defending FROM table_24431264_18 WHERE player = "Radek Štěpánek"
List the total number of defensive points for radek štěpánek?
CREATE TABLE table_24431264_18 (points INTEGER, player VARCHAR)
SELECT AVG(overall) FROM table_name_38 WHERE name = "john ayres" AND pick__number > 4
What is the average overall of John Ayres, who had a pick # greater than 4?
CREATE TABLE table_name_38 ( overall INTEGER, name VARCHAR, pick__number VARCHAR )
SELECT COUNT(matchup_results) FROM table_23718905_6 WHERE city = "San Diego, California"
How many different matchup/results appear in San Diego, California?
CREATE TABLE table_23718905_6 (matchup_results VARCHAR, city VARCHAR)
SELECT rank FROM table_24431264_18 WHERE withdrew_due_to = "right wrist surgery"
List the rank of the player that left due to right wrist surgery?
CREATE TABLE table_24431264_18 (rank VARCHAR, withdrew_due_to VARCHAR)
SELECT date FROM table_1137707_2 WHERE location = "Circuit Gilles Villeneuve"
What is the date of the circuit gilles villeneuve?
CREATE TABLE table_1137707_2 ( date VARCHAR, location VARCHAR )
SELECT COUNT(television) FROM table_23718905_6 WHERE matchup_results = "Iowa State 14, Minnesota 13"
How many different items appear in the television column when the results where Iowa State 14, Minnesota 13?
CREATE TABLE table_23718905_6 (television VARCHAR, matchup_results VARCHAR)
SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_award = "Best Special Effects"
Name the awardees for best special effects
CREATE TABLE table_24446718_3 (awardee_s_ VARCHAR, name_of_award VARCHAR)
SELECT position FROM table_11545282_11 WHERE years_for_jazz = "1998-99"
What is the position for the years 1998-99
CREATE TABLE table_11545282_11 ( position VARCHAR, years_for_jazz VARCHAR )
SELECT COUNT(attendance) FROM table_23718905_6 WHERE stadium = "Sun Devil stadium"
How many different items appear in he attendance column at Sun Devil Stadium?
CREATE TABLE table_23718905_6 (attendance VARCHAR, stadium VARCHAR)
SELECT COUNT(awardee_s_) FROM table_24446718_3 WHERE name_of_award = "Best Screenplay"
Name the total number of awardees for best screenplay
CREATE TABLE table_24446718_3 (awardee_s_ VARCHAR, name_of_award VARCHAR)
SELECT theme FROM table_name_54 WHERE artist = "christie paquet" AND issue_price = "$34.95" AND year > 2004
What is the Theme of Christie Paquet after 2004 with an Issue Price of $34.95?
CREATE TABLE table_name_54 ( theme VARCHAR, year VARCHAR, artist VARCHAR, issue_price VARCHAR )
SELECT bowl_game FROM table_23718905_6 WHERE matchup_results = "Oklahoma 31, Stanford 27"
In what bowl game was the result Oklahoma 31, Stanford 27?
CREATE TABLE table_23718905_6 (bowl_game VARCHAR, matchup_results VARCHAR)
SELECT name_of_award FROM table_24446718_3 WHERE language = "Marathi"
Name the name of award for marathi
CREATE TABLE table_24446718_3 (name_of_award VARCHAR, language VARCHAR)
SELECT demographic.admittime FROM demographic WHERE demographic.name = "Jerry Deberry"
find the admission time of jerry deberry.
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 ) 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 ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT television FROM table_23718905_6 WHERE date = "December 28, 2009"
What was the television that was dated December 28, 2009?
CREATE TABLE table_23718905_6 (television VARCHAR, date VARCHAR)
SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_film = "Tingya"
Name the awardee for tingya
CREATE TABLE table_24446718_3 (awardee_s_ VARCHAR, name_of_film VARCHAR)
SELECT SUM("Against") FROM table_12641 WHERE "Wins" > '8' AND "Losses" > '6'
What is the sum of Against, when Wins is greater than 8, and when Losses is greater than 6?
CREATE TABLE table_12641 ( "South West DFL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real )
SELECT country FROM table_237199_1 WHERE company_name = "Doosan Infracore"
Which country has doosan infracore as then company name?
CREATE TABLE table_237199_1 (country VARCHAR, company_name VARCHAR)
SELECT language FROM table_24446718_3 WHERE awardee_s_ = "B. Ajith Kumar"
Name the language for b. ajith kumar
CREATE TABLE table_24446718_3 (language VARCHAR, awardee_s_ VARCHAR)
SELECT "Owner/operator" FROM table_59730 WHERE "Licence number" = 'pl 59'
Who is the owner operator who has license number PL 59?
CREATE TABLE table_59730 ( "Name (year commissioned)" text, "Owner/operator" text, "Length" text, "Maximum diameter" text, "From/to" text, "Licence number" text )
SELECT COUNT(north_american_brands) FROM table_237199_1 WHERE world_headquarters = "Sagamihara"
How many north american brands have world headquarters in sagamihara?
CREATE TABLE table_237199_1 (north_american_brands VARCHAR, world_headquarters VARCHAR)
SELECT date FROM table_24453847_2 WHERE game_site = "AOL Arena"
What game date was the game at AOL Arena?
CREATE TABLE table_24453847_2 (date VARCHAR, game_site VARCHAR)
SELECT EMAIL, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY DEPARTMENT_ID DESC
For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of email and department_id , display from high to low by the DEPARTMENT_ID.
CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,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 regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) 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 countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,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 departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) )
SELECT company_name FROM table_237199_1 WHERE world_headquarters = "Nagaokakyo, Kyoto"
Which company name has headquarters in nagaokakyo, kyoto?
CREATE TABLE table_237199_1 (company_name VARCHAR, world_headquarters VARCHAR)
SELECT team_record FROM table_24453847_2 WHERE week = 8
What was the Rhein Fire team record on week 8?
CREATE TABLE table_24453847_2 (team_record VARCHAR, week VARCHAR)
SELECT institution FROM table_18483171_1 WHERE team_nickname = "Cardinals"
List all institutions with a team name of the Cardinals.
CREATE TABLE table_18483171_1 ( institution VARCHAR, team_nickname VARCHAR )
SELECT bore__mm_ FROM table_23722304_2 WHERE vehicle_code = "T214"
what is the bore where the vehicle code is t214?
CREATE TABLE table_23722304_2 (bore__mm_ VARCHAR, vehicle_code VARCHAR)
SELECT circuit FROM table_2446333_2 WHERE main_winner = "France" AND country = "Portugal"
Name the circuit for france and portugal
CREATE TABLE table_2446333_2 (circuit VARCHAR, main_winner VARCHAR, country VARCHAR)
SELECT "U.S. Acres Episode" FROM table_22390 WHERE "Garfield Episode 1" = 'Robodie II'
What is the name of the US Acres episode following the Garfield episode titled Robodie II?
CREATE TABLE table_22390 ( "Episode" text, "Garfield Episode 1" text, "U.S. Acres Episode" text, "Garfield Episode 2" text, "Original Airdate" text )
SELECT compression_ratio FROM table_23722304_2 WHERE torque__n_m_ = 208
what is the compression ratio whre the torque is 208?
CREATE TABLE table_23722304_2 (compression_ratio VARCHAR, torque__n_m_ VARCHAR)
SELECT date FROM table_2446333_2 WHERE sprint_winner = "Mexico"
Name the date for sprint winner mexico
CREATE TABLE table_2446333_2 (date VARCHAR, sprint_winner VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "59080" AND prescriptions.route = "NEB"
how many patients whose diagnoses icd9 code is 59080 and drug route is neb?
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, 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 ) 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 )
SELECT vehicle_code FROM table_23722304_2 WHERE bore__mm_ = "79.4"
what is the vehicle code where the bore is 79.4?
CREATE TABLE table_23722304_2 (vehicle_code VARCHAR, bore__mm_ VARCHAR)
SELECT date FROM table_2446333_2 WHERE circuit = "Eastern Creek Raceway"
Name the date for eastern creek raceway
CREATE TABLE table_2446333_2 (date VARCHAR, circuit VARCHAR)
SELECT school_club_team FROM table_15463188_17 WHERE name = "Mark Sanford"
Which school/club team has a player named Mark Sanford?
CREATE TABLE table_15463188_17 ( school_club_team VARCHAR, name VARCHAR )
SELECT stroke__mm_ FROM table_23722304_2 WHERE vehicle_code = "T211"
what is the stroke where the vehicle code is t211?
CREATE TABLE table_23722304_2 (stroke__mm_ VARCHAR, vehicle_code VARCHAR)
SELECT circuit FROM table_2446333_2 WHERE country = "United Arab Emirates"
Name the circuit for united arab emirates
CREATE TABLE table_2446333_2 (circuit VARCHAR, country VARCHAR)
SELECT prize__eur_ FROM table_20195922_3 WHERE number_of_winning_tickets = 1
What are the prizes when 1 is the number of winning tickets?
CREATE TABLE table_20195922_3 ( prize__eur_ VARCHAR, number_of_winning_tickets VARCHAR )
SELECT rating / SHARE(18 - 49) FROM table_23730973_5 WHERE viewers__millions_ = "5.90"
What was the rating/share for 18-49 for the episode that had 5.90 million viewers?
CREATE TABLE table_23730973_5 (rating VARCHAR, viewers__millions_ VARCHAR)
SELECT COUNT(date) FROM table_2446333_2 WHERE round = 10
Name the total number of date for 10
CREATE TABLE table_2446333_2 (date VARCHAR, round VARCHAR)
SELECT "Long-term gain on collectibles" FROM table_55789 WHERE "Ordinary income rate" = '15%'
What long-term gain for collectibles coincides with ordinary income rate 15%?
CREATE TABLE table_55789 ( "Ordinary income rate" text, "Long-term capital gain rate" text, "Short-term capital gain rate" text, "Long-term gain on commercial buildings*" text, "Long-term gain on collectibles" text )
SELECT episode FROM table_23730973_5 WHERE no = 3
What was the title of episode 3?
CREATE TABLE table_23730973_5 (episode VARCHAR, no VARCHAR)
SELECT MIN(game) FROM table_24464253_1
What is the number of the first game?
CREATE TABLE table_24464253_1 (game INTEGER)
SELECT player FROM table_name_67 WHERE place = "t8"
Who is the player with a t8 place?
CREATE TABLE table_name_67 ( player VARCHAR, place VARCHAR )
SELECT MIN(no) FROM table_23730973_5 WHERE rating = "4.7"
What number episode had a rating of 4.7?
CREATE TABLE table_23730973_5 (no INTEGER, rating VARCHAR)
SELECT opponent FROM table_24464253_1 WHERE record = "5-4"
Against what opponent did the Wildcats have a record of 5-4?
CREATE TABLE table_24464253_1 (opponent VARCHAR, record VARCHAR)
SELECT MAX("Total") FROM table_23248 WHERE "Couple" = 'Ellery and Frankie'
When ellery and frankie are the couple what is the highest total?
CREATE TABLE table_23248 ( "Rank" real, "Couple" text, "Judges" real, "Public" real, "Total" real, "Vote percentage" text, "Result" text )
SELECT rating FROM table_23730973_5 WHERE viewers__millions_ = "5.90"
What was the rating for the episode that had 5.90 million viewers?
CREATE TABLE table_23730973_5 (rating VARCHAR, viewers__millions_ VARCHAR)
SELECT COUNT(pa) FROM table_24475186_2 WHERE blank_ends = 7 AND l = 5
How many pa were blank ends 7 and 5?
CREATE TABLE table_24475186_2 (pa VARCHAR, blank_ends VARCHAR, l VARCHAR)
SELECT "Label" FROM table_46824 WHERE "Region" = 'canada'
What was the label in the region of Canada?
CREATE TABLE table_46824 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text )
SELECT MIN(no) FROM table_23730973_5 WHERE rating = "4.2"
What number episode had a 4.2 rating?
CREATE TABLE table_23730973_5 (no INTEGER, rating VARCHAR)
SELECT conductor FROM table_24521345_1 WHERE record_label = "Multisonic"
Who is the conductor on the Multisonic label?
CREATE TABLE table_24521345_1 (conductor VARCHAR, record_label VARCHAR)
SELECT MIN(density_per_km²) FROM table_name_21 WHERE number__map_ < 13 AND area_in_km² = 11.1
Which Density per km is the lowest one that has a Number (map) smaller than 13, and an Area in km of 11.1?
CREATE TABLE table_name_21 ( density_per_km² INTEGER, number__map_ VARCHAR, area_in_km² VARCHAR )
SELECT COUNT(winning_coach) FROM table_237757_3 WHERE top_team_in_regular_season__points_ = "Kansas City Spurs (110 points)"
What is the winning coach total number if the top team in regular season (points) is the Kansas City Spurs (110 points)?
CREATE TABLE table_237757_3 (winning_coach VARCHAR, top_team_in_regular_season__points_ VARCHAR)
SELECT conductor FROM table_24521345_1 WHERE work_title = "Rusalka"
Who is the conductor for Rusalka?
CREATE TABLE table_24521345_1 (conductor VARCHAR, work_title VARCHAR)
SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t2.diagnosistime) > 3 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'leukocytosis - leukemoid reaction' GROUP BY patient.uniquepid HAVING MIN(diagnosis.diagnosistime) = diagnosis.diagnosistime) AS t1 WHERE STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', t1.diagnosistime) > 3 * 365) AS t2 JOIN patient ON t2.uniquepid = patient.uniquepid
what is the three year survival probability for the leukocytosis - leukemoid reaction patients diagnosed?
CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) 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, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time )
SELECT winner__number_of_titles_ FROM table_237757_3 WHERE top_team_in_regular_season__points_ = "New York Cosmos (200 points)"
If the top team in regular season (points) is the New York Cosmos (200 points), what is the winner (number of titles)?
CREATE TABLE table_237757_3 (winner__number_of_titles_ VARCHAR, top_team_in_regular_season__points_ VARCHAR)
SELECT composer FROM table_24521345_1 WHERE conductor = "Jaroslav Vogel"
Who composed the work conducted by jaroslav Vogel?
CREATE TABLE table_24521345_1 (composer VARCHAR, conductor VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "50" AND diagnoses.long_title = "Coronary atherosclerosis of native coronary artery"
how many patients are below 50 years of age and diagnosed with coronary atherosclerosis of native coronary artery?
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, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE 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 ) 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 )
SELECT winner__number_of_titles_ FROM table_237757_3 WHERE runners_up = "Fort Lauderdale Strikers"
If the runner-up is the Fort Lauderdale Strikers, what is the winner (number of titles)?
CREATE TABLE table_237757_3 (winner__number_of_titles_ VARCHAR, runners_up VARCHAR)
SELECT title FROM table_2453243_5 WHERE production_code = "406"
What is the title of the episode with production code 406?
CREATE TABLE table_2453243_5 (title VARCHAR, production_code VARCHAR)
SELECT "title" FROM table_203_701 WHERE "#" = (SELECT "#" FROM table_203_701 WHERE "title" = '"all i got"') + 1
what track was next after all i got ?
CREATE TABLE table_203_701 ( id number, "#" number, "title" text, "featured guest(s)" text, "producer(s)" text, "length" text )
SELECT COUNT(other) FROM table_23777640_1 WHERE gn_divisions = 95
How many figures for Other in the district where the GN division is 95?
CREATE TABLE table_23777640_1 (other VARCHAR, gn_divisions VARCHAR)
SELECT written_by FROM table_2453243_5 WHERE no_in_series = "48"
Who write episode number 48 in the series?
CREATE TABLE table_2453243_5 (written_by VARCHAR, no_in_series VARCHAR)
SELECT "Score" FROM table_47364 WHERE "Visitor" = 'pittsburgh' AND "Points" > '18'
What is Score, when Visitor is 'Pittsburgh', and when Points is greater than 18?
CREATE TABLE table_47364 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Attendance" real, "Record" text, "Points" real )
SELECT market_share FROM table_23801721_1 WHERE technology = "CDMA EVDO GSM EDGE HSPA+"
What was the market share of the operator whose technology is CDMA EVDO GSM EDGE HSPA+?
CREATE TABLE table_23801721_1 (market_share VARCHAR, technology VARCHAR)
SELECT MAX(goals¹) FROM table_24565004_19 WHERE period = "1972 – 1975, 1976 – 1982"
Name the most goals for 1972 – 1975, 1976 – 1982
CREATE TABLE table_24565004_19 (goals¹ INTEGER, period VARCHAR)
SELECT manager FROM table_name_14 WHERE team = "manchester city"
Which manager has Manchester City as the team?
CREATE TABLE table_name_14 ( manager VARCHAR, team VARCHAR )
SELECT MIN(rank) FROM table_23801721_1 WHERE technology = "CDMA EVDO"
What was the rank of operator whose technology is CDMA EVDO?
CREATE TABLE table_23801721_1 (rank INTEGER, technology VARCHAR)
SELECT period FROM table_24565004_19 WHERE nationality² = "Uruguay"
Name the period for uruguay
CREATE TABLE table_24565004_19 (period VARCHAR, nationality² VARCHAR)
SELECT Sex, MIN(Weight) FROM people GROUP BY Sex ORDER BY Sex
Show me minimal weight by sex in a histogram, I want to order names in ascending order please.
CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, Unsure_rate real ) CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, Weight real )
SELECT MIN(production_code) FROM table_23793770_1 WHERE directed_by = "Michael Morris"
What was the production code for the episode directed by Michael Morris?
CREATE TABLE table_23793770_1 (production_code INTEGER, directed_by VARCHAR)
SELECT position FROM table_24565004_19 WHERE period = "1980 – 1987"
Name the position for 1980 – 1987
CREATE TABLE table_24565004_19 (position VARCHAR, period VARCHAR)
SELECT MIN(ends_lost) FROM table_name_16 WHERE stolen_ends_for < 13 AND stolen_ends_against = 6
What is the lowest ends lost when the stolen ends for is less than 13, and stolten ends against is 6?
CREATE TABLE table_name_16 ( ends_lost INTEGER, stolen_ends_for VARCHAR, stolen_ends_against VARCHAR )
SELECT title FROM table_23793770_1 WHERE directed_by = "Allison Liddi-Brown"
What is the title the episode directed by Allison Liddi-Brown?
CREATE TABLE table_23793770_1 (title VARCHAR, directed_by VARCHAR)
SELECT position FROM table_24565004_3 WHERE name = "Pierre Bajoc"
which position did pierre bajoc play?
CREATE TABLE table_24565004_3 (position VARCHAR, name VARCHAR)
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '021-111547' AND patient.unitdischargetime IS NULL
how many days has it been since patient 021-111547's admission to icu?
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmittime time, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) 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 ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number )
SELECT MAX(production_code) FROM table_23793770_1 WHERE us_viewers__millions_ = "16.10"
What the production code for the episode with 16.10 U.S. viewers?
CREATE TABLE table_23793770_1 (production_code INTEGER, us_viewers__millions_ VARCHAR)