answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT high_assists FROM table_name_98 WHERE high_points = "dorell wright (20)"
What was the high assists from a high points of dorell wright (20)?
CREATE TABLE table_name_98 ( high_assists VARCHAR, high_points VARCHAR )
SELECT decision FROM table_27501030_7 WHERE opponent = "Atlanta Thrashers"
What is the decision when the opponents are atlanta thrashers?
CREATE TABLE table_27501030_7 (decision VARCHAR, opponent VARCHAR)
SELECT highest_finish FROM table_name_48 WHERE most_recent_finish = "2nd"
What is the Highest finish with a Most recent finish that was 2nd?
CREATE TABLE table_name_48 (highest_finish VARCHAR, most_recent_finish VARCHAR)
SELECT HIRE_DATE, AVG(SALARY) FROM employees ORDER BY AVG(SALARY) DESC
Show the average salary by each hire date of employees, and please bin the hire date into the day of week interval for showing a bar chart, could you order by the Y from high to low?
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 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 jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,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) )
SELECT COUNT(game) FROM table_27501030_7 WHERE points = 57
How many game entries are there when the points are 57?
CREATE TABLE table_27501030_7 (game VARCHAR, points VARCHAR)
SELECT result FROM table_name_94 WHERE time___et__ = "12:30pm" AND location = "shea stadium"
What is the result of the game at the Shea Stadium at 12:30pm (ET)?
CREATE TABLE table_name_94 (result VARCHAR, time___et__ VARCHAR, location VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND prescriptions.drug_type = "BASE"
count the number of black/cape verdean patients who have base type drug prescription.
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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text )
SELECT MIN(año) FROM table_27501971_2
What is the smallest año?
CREATE TABLE table_27501971_2 (año INTEGER)
SELECT MIN(played) FROM table_name_57 WHERE blackpool < 0
Which Played is the lowest one that has a Blackpool smaller than 0?
CREATE TABLE table_name_57 (played INTEGER, blackpool INTEGER)
SELECT chartevents.charttime FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14990) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'respiratory rate' AND d_items.linksto = 'chartevents') AND chartevents.valuenum < 25.0 ORDER BY chartevents.charttime LIMIT 1
when was the first time patient 14990 respiratory rate was measured less than 25.0 on the first icu visit.
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 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 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 d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) 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 diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime 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 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 patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number )
SELECT COUNT(premio) FROM table_27501971_2 WHERE categoría = "Artist of the Year"
How many premio are there when "Artist of the Year" was the categoria?
CREATE TABLE table_27501971_2 (premio VARCHAR, categoría VARCHAR)
SELECT MAX(blackpool) FROM table_name_82 WHERE draw > 18
Which Blackpool is the highest one that has a Draw larger than 18?
CREATE TABLE table_name_82 (blackpool INTEGER, draw INTEGER)
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-52327')) AND vitalperiodic.sao2 < 80.0 AND NOT vitalperiodic.sao2 IS NULL AND DATETIME(vitalperiodic.observationtime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-1 day') ORDER BY vitalperiodic.observationtime DESC LIMIT 1
when was the last time patient 030-52327 was having less than 80.0 sao2 yesterday?
CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) 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 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 treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime 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 resultado FROM table_27501971_2 WHERE country = "E.E.U.U"
What was the resultado when E.E.U.U was the country?
CREATE TABLE table_27501971_2 (resultado VARCHAR, country VARCHAR)
SELECT COUNT(preston_north_end) FROM table_name_90 WHERE blackpool < 0
How much Preston North End has a Blackpool smaller than 0?
CREATE TABLE table_name_90 (preston_north_end VARCHAR, blackpool INTEGER)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND lab.itemid = "51363"
how many black/african american patients had the item id 51363?
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE 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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid 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 categoría FROM table_27501971_2 WHERE country = "E.E.U.U"
What was the categoria when E.E.U.U was the country?
CREATE TABLE table_27501971_2 (categoría VARCHAR, country VARCHAR)
SELECT SUM(blackpool) FROM table_name_94 WHERE preston_north_end < 46 AND competition = "other" AND draw > 1
Which Blackpool has a Preston North End smaller than 46, and a Competition of other, and a Draw larger than 1?
CREATE TABLE table_name_94 (blackpool INTEGER, draw VARCHAR, preston_north_end VARCHAR, competition VARCHAR)
SELECT format FROM table_name_61 WHERE catalog = "11 135"
What shows as the format for catalog 11 135?
CREATE TABLE table_name_61 ( format VARCHAR, catalog VARCHAR )
SELECT country FROM table_27501971_2 WHERE año = 2012
When the año was 2012, who was the county?
CREATE TABLE table_27501971_2 (country VARCHAR, año VARCHAR)
SELECT finish FROM table_name_82 WHERE team = "chip ganassi racing" AND year > 2010 AND start = "17"
What is the finish for the chip ganassi racing team that was later than 2010 and a Start of 17?
CREATE TABLE table_name_82 (finish VARCHAR, start VARCHAR, team VARCHAR, year VARCHAR)
SELECT "Opponent" FROM table_30071 WHERE "Game site" = 'Waldstadion' AND "Week" = '6'
what was the opposition where the field is waldstadion during time 6
CREATE TABLE table_30071 ( "Week" real, "Date" text, "Kickoff" text, "Opponent" text, "Final score" text, "Team record" text, "Game site" text, "Attendance" real )
SELECT written_by FROM table_27504682_1 WHERE directed_by = "Lawrence Trilling"
Name who wrote the episode by lawrence trilling
CREATE TABLE table_27504682_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT chassis FROM table_name_70 WHERE year = 2007
What is shown for Chassis for the year of 2007?
CREATE TABLE table_name_70 (chassis VARCHAR, year VARCHAR)
SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t2.diagnosistime) > 5 * 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 = 'upper gi bleeding' GROUP BY patient.uniquepid HAVING MIN(diagnosis.diagnosistime) = diagnosis.diagnosistime) AS t1 WHERE STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', t1.diagnosistime) > 5 * 365) AS t2 JOIN patient ON t2.uniquepid = patient.uniquepid
what is five year survival rate of patients diagnosed with upper gi bleeding?
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime 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 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 vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) 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 )
SELECT original_air_date FROM table_27504682_1 WHERE written_by = "Alex Taub"
Name the air date for alex taub
CREATE TABLE table_27504682_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT team FROM table_name_48 WHERE finish = "19"
What is the name of the team with a finish of 19?
CREATE TABLE table_name_48 (team VARCHAR, finish VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "0" AND diagnoses.short_title = "Hx-rectal & anal malign"
provide the number of patients with a diagnoses of personal history of other malignant neoplasm of rectum, rectosigmoid junction and anus and are still alive.
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(opponent) FROM table_27501030_8 WHERE game = 69
How many games were numbered 69?
CREATE TABLE table_27501030_8 (opponent VARCHAR, game VARCHAR)
SELECT finish FROM table_name_74 WHERE start = "3" AND year = 2010
What is the Finish when the start shows 3 in the year of 2010?
CREATE TABLE table_name_74 (finish VARCHAR, start VARCHAR, year VARCHAR)
SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history)
For those employees who did not have any job in the past, a bar chart shows the distribution of hire_date and the average of employee_id bin hire_date by weekday.
CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) 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 regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) 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) )
SELECT COUNT(march) FROM table_27501030_8 WHERE opponent = "Pittsburgh Penguins"
How many times did they play the pittsburgh penguins?
CREATE TABLE table_27501030_8 (march VARCHAR, opponent VARCHAR)
SELECT engine FROM table_name_8 WHERE start = "3" AND year = 2007
What is the Engine with 3 as the start in the year of 2007?
CREATE TABLE table_name_8 (engine VARCHAR, start VARCHAR, year VARCHAR)
SELECT MAX("Silver") FROM table_79795 WHERE "Gold" < '12' AND "Total" < '8'
What is the maximum number of silvers for a country with fewer than 12 golds and a total less than 8?
CREATE TABLE table_79795 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT MIN(qtr_final__week_) FROM table_27529608_21 WHERE genre = "Dancing" AND age_s_ = "32"
What is the earliest quarterfinal week when the genre is dancing and the act is 32?
CREATE TABLE table_27529608_21 (qtr_final__week_ INTEGER, genre VARCHAR, age_s_ VARCHAR)
SELECT score FROM table_name_60 WHERE tournament = "tokyo, japan" AND date = "october 24, 1982"
What was the Score on October 24, 1982 in Tokyo, Japan?
CREATE TABLE table_name_60 (score VARCHAR, tournament VARCHAR, date VARCHAR)
SELECT MIN(vitalperiodic.sao2) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-15') AND NOT patient.unitdischargetime IS NULL ORDER BY patient.unitadmittime LIMIT 1) AND NOT vitalperiodic.sao2 IS NULL
on the first icu visit what was the minimum value of sao2 of patient 009-15?
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 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 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 intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime 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 cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time )
SELECT MIN(qtr_final__week_) FROM table_27529608_21 WHERE name_name_of_act = "Austin Anderson"
What is the quarterfinal week for Austin Anderson?
CREATE TABLE table_27529608_21 (qtr_final__week_ INTEGER, name_name_of_act VARCHAR)
SELECT tournament FROM table_name_23 WHERE date = "october 24, 1982" AND partner = "alycia moulton"
What Tournament on October 24, 1982 had Alycia Moulton as the Partner?
CREATE TABLE table_name_23 (tournament VARCHAR, date VARCHAR, partner VARCHAR)
SELECT office FROM table_20246201_9 WHERE candidate = "Jon Huntsman"
What office is Jon Huntsman a candidate for?
CREATE TABLE table_20246201_9 ( office VARCHAR, candidate VARCHAR )
SELECT genre FROM table_27529608_21 WHERE age_s_ = "29-30"
What is the genre for the group with ages 29-30?
CREATE TABLE table_27529608_21 (genre VARCHAR, age_s_ VARCHAR)
SELECT opponents FROM table_name_10 WHERE partner = "pam shriver" AND score = "6-3, 6-3"
Who were the Opponents when Laura DuPont had Pam Shriver as Partner with a Score of 6-3, 6-3?
CREATE TABLE table_name_10 (opponents VARCHAR, partner VARCHAR, score VARCHAR)
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 40059 AND admissions.dischtime IS NULL
how many hours have passed since patient 40059 was admitted to the hospital.
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 cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) 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 patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value 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 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 )
SELECT age_s_ FROM table_27529608_21 WHERE act = "Rapper"
What is the age of the act who is a rapper?
CREATE TABLE table_27529608_21 (age_s_ VARCHAR, act VARCHAR)
SELECT surface FROM table_name_99 WHERE score = "3-6, 1-6"
On what Surface was the match with a Score of 3-6, 1-6 played?
CREATE TABLE table_name_99 (surface VARCHAR, score VARCHAR)
SELECT school FROM university WHERE founded > 1850 OR affiliation = 'Public'
What are the schools that were either founded before 1850 or are public?
CREATE TABLE basketball_match ( team_id number, school_id number, team_name text, acc_regular_season text, acc_percent text, acc_home text, acc_road text, all_games text, all_games_percent number, all_home text, all_road text, all_neutral text ) CREATE TABLE university ( school_id number, school text, location text, founded number, affiliation text, enrollment number, nickname text, primary_conference text )
SELECT hometown FROM table_27529608_21 WHERE name_name_of_act = "PLUtonic"
What is the hometown of Plutonic?
CREATE TABLE table_27529608_21 (hometown VARCHAR, name_name_of_act VARCHAR)
SELECT tournament FROM table_name_85 WHERE partner = "barbara jordan" AND score = "6-2, 3-6, 3-6"
In what Tournament was Barbara Jordan a Partner with a Score of 6-2, 3-6, 3-6?
CREATE TABLE table_name_85 (tournament VARCHAR, partner VARCHAR, score VARCHAR)
SELECT PostId AS "post_link", Score, Text FROM Comments WHERE UserId = '##UserId##' ORDER BY Score DESC LIMIT 250
Top Comments of a user.
CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time )
SELECT COUNT(semi_final__week_) FROM table_27529608_21 WHERE hometown = "Pittsburgh, Pennsylvania"
How many semi-final weeks are there for acts from Pittsburgh, Pennsylvania?
CREATE TABLE table_27529608_21 (semi_final__week_ VARCHAR, hometown VARCHAR)
SELECT points_for FROM table_name_62 WHERE tries_for = "40"
Name the points with tries for of 40
CREATE TABLE table_name_62 (points_for VARCHAR, tries_for VARCHAR)
SELECT T1.Project_Details, T1.Project_ID FROM Projects AS T1 JOIN Documents AS T2 ON T1.Project_ID = T2.Project_ID ORDER BY T1.Project_Details DESC
What is the project id and detail for the project with at least two documents Plot them as bar chart, and list x-axis in descending order.
CREATE TABLE Documents ( Document_ID INTEGER, Document_Type_Code CHAR(15), Project_ID INTEGER, Document_Date DATETIME, Document_Name VARCHAR(255), Document_Description VARCHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Statements ( Statement_ID INTEGER, Statement_Details VARCHAR(255) ) CREATE TABLE Accounts ( Account_ID INTEGER, Statement_ID INTEGER, Account_Details VARCHAR(255) ) CREATE TABLE Projects ( Project_ID INTEGER, Project_Details VARCHAR(255) ) CREATE TABLE Documents_with_Expenses ( Document_ID INTEGER, Budget_Type_Code CHAR(15), Document_Details VARCHAR(255) ) CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), Document_Type_Description VARCHAR(255) ) CREATE TABLE Ref_Budget_Codes ( Budget_Type_Code CHAR(15), Budget_Type_Description VARCHAR(255) )
SELECT margin_of_victory FROM table_275162_1 WHERE location = "Lake Forest, Illinois"
What was the margin of victory for the event in lake forest, illinois?
CREATE TABLE table_275162_1 (margin_of_victory VARCHAR, location VARCHAR)
SELECT played FROM table_name_37 WHERE losing_bonus = "3" AND points_against = "426"
Name the played with losing bonus of 3 and points against of 426
CREATE TABLE table_name_37 (played VARCHAR, losing_bonus VARCHAR, points_against VARCHAR)
SELECT report FROM table_name_43 WHERE venue = "state sports centre"
What was the report at State Sports Centre?
CREATE TABLE table_name_43 ( report VARCHAR, venue VARCHAR )
SELECT to_par FROM table_275162_1 WHERE player = "Zach Johnson"
What was zach johnson's score to par?
CREATE TABLE table_275162_1 (to_par VARCHAR, player VARCHAR)
SELECT club FROM table_name_9 WHERE points = "56"
Name the club with points of 56
CREATE TABLE table_name_9 (club VARCHAR, points VARCHAR)
SELECT MIN("Crowd") FROM table_54314 WHERE "Away team" = 'north melbourne'
In which of North Melbourne's away games was there the lowest crowd?
CREATE TABLE table_54314 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT score FROM table_275162_1 WHERE course = "Bellerive country Club"
What was the winning score at bellerive country club?
CREATE TABLE table_275162_1 (score VARCHAR, course VARCHAR)
SELECT points_against FROM table_name_87 WHERE club = "porthcawl rfc"
Name the points against for porthcawl rfc
CREATE TABLE table_name_87 (points_against VARCHAR, club VARCHAR)
SELECT Location, COUNT(*) FROM cinema GROUP BY Location ORDER BY Location
Show each location and the number of cinemas there Show bar chart, I want to display in ascending by the X-axis.
CREATE TABLE schedule ( Cinema_ID int, Film_ID int, Date text, Show_times_per_day int, Price float ) CREATE TABLE film ( Film_ID int, Rank_in_series int, Number_in_season int, Title text, Directed_by text, Original_air_date text, Production_code text ) CREATE TABLE cinema ( Cinema_ID int, Name text, Openning_year int, Capacity int, Location text )
SELECT COUNT(course) FROM table_275162_1 WHERE location = "Carmel, Indiana"
How many courses are located in carmel, indiana?
CREATE TABLE table_275162_1 (course VARCHAR, location VARCHAR)
SELECT club FROM table_name_92 WHERE drawn = "0" AND lost = "0"
Name the club for drawn of 0 and lost of 0
CREATE TABLE table_name_92 (club VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '17:15' AND course.course_id = course_offering.course_id AND course.department = 'HISTORY' AND course.number = 497 AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016
In HISTORY 497 which section is after 17:15 A.M. ?
CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) 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 requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar )
SELECT COUNT(status) FROM table_27514362_7 WHERE entrant = "James Finch"
How many status figures does James Finch have?
CREATE TABLE table_27514362_7 (status VARCHAR, entrant VARCHAR)
SELECT points FROM table_name_96 WHERE lost = "19"
Name the points with lost of 19
CREATE TABLE table_name_96 (points VARCHAR, lost VARCHAR)
SELECT "Mixed Veteran" FROM table_74251 WHERE "Womens Singles" = 'Naomi Owen' AND "Mens singles" = 'Ricardo Walther'
When Naomi Owen won the Womens Singles and Ricardo Walther won the Mens Singles, who won the mixed veteran?
CREATE TABLE table_74251 ( "Date/Location" text, "Mens singles" text, "Womens Singles" text, "U21 Mens" text, "U21 Womens" text, "Mixed Restricted" text, "Mixed Veteran" text )
SELECT car_make FROM table_27514362_7 WHERE driver = "Sterling Marlin"
What is the car make for Sterling Marlin?
CREATE TABLE table_27514362_7 (car_make VARCHAR, driver VARCHAR)
SELECT district FROM table_name_48 WHERE result = "lost re-election republican gain"
result is lost re-election republican gain, what is the district?
CREATE TABLE table_name_48 (district VARCHAR, result VARCHAR)
SELECT after_debt FROM table_name_11 WHERE cash_on_hand = "$651,300"
How much is after debt when cash on hand is $651,300?
CREATE TABLE table_name_11 ( after_debt VARCHAR, cash_on_hand VARCHAR )
SELECT pos FROM table_27514362_7 WHERE car_make = "Pontiac" AND driver = "Bobby Hamilton"
What is the finish position for cars by Pontiac driven by Bobby Hamilton?
CREATE TABLE table_27514362_7 (pos VARCHAR, car_make VARCHAR, driver VARCHAR)
SELECT winning_constructor FROM table_name_52 WHERE winning_driver = "felice nazzaro"
Which Winning constructor has a Winning driver of felice nazzaro?
CREATE TABLE table_name_52 (winning_constructor VARCHAR, winning_driver VARCHAR)
SELECT DISTINCT department, name, number FROM course WHERE course_id IN (SELECT PROGRAM_COURSE_ID FROM program_course AS PROGRAM_COURSE WHERE PROGRAM_WORKLOAD = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 WHERE PROGRAM_COURSEalias1.category LIKE '%ULCS%')) AND num_enrolled = (SELECT MAX(COURSEalias1.num_enrolled) FROM course AS COURSEalias1 WHERE COURSEalias1.course_id IN (SELECT PROGRAM_COURSEalias2.course_id FROM program_course AS PROGRAM_COURSEalias2 WHERE PROGRAM_COURSEalias2.workload = (SELECT MIN(PROGRAM_COURSEalias3.workload) FROM program_course AS PROGRAM_COURSEalias3 WHERE PROGRAM_COURSEalias3.category = 'ULCS')))
What is the least difficult ULCS course with the largest class size ?
CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int )
SELECT contestant FROM table_27515452_3 WHERE sizes = "33-23-36"
who are the participants that wear clothing in 33-23-36
CREATE TABLE table_27515452_3 (contestant VARCHAR, sizes VARCHAR)
SELECT winning_driver FROM table_name_30 WHERE date = "18 may"
Who is Winning driver on 18 may?
CREATE TABLE table_name_30 (winning_driver VARCHAR, date VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "20" AND prescriptions.route = "ORAL"
among patients who remained admitted in hospital for more than 20 days, calculate the number of those on po therapy.
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 ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT MAX(age) FROM table_27515452_3 WHERE hometown = "Veraguas"
what is the oldest and lives in veraguas
CREATE TABLE table_27515452_3 (age INTEGER, hometown VARCHAR)
SELECT winning_driver FROM table_name_73 WHERE name = "st. petersburg - moscow"
WHo is Winning driver that is in st. petersburg - moscow?
CREATE TABLE table_name_73 (winning_driver VARCHAR, name VARCHAR)
SELECT "Venue" FROM table_49256 WHERE "Score" = '120-108'
What venue had a Score of 120-108?
CREATE TABLE table_49256 ( "Date" text, "Home team" text, "Score" text, "Away team" text, "Venue" text, "Box Score" text, "Report" text )
SELECT hometown FROM table_27515452_3 WHERE contestant = "Marelissa Him"
where is the participant marelissa him from
CREATE TABLE table_27515452_3 (hometown VARCHAR, contestant VARCHAR)
SELECT date FROM table_name_34 WHERE winning_constructor = "fiat" AND winning_driver = "louis wagner"
Which Date has a Winning constructor of fiat and a Winning driver of louis wagner?
CREATE TABLE table_name_34 (date VARCHAR, winning_constructor VARCHAR, winning_driver VARCHAR)
SELECT SUM("Money ( $ )") FROM table_76217 WHERE "To par" > '6' AND "Player" = 'johnny palmer'
What is the Johnny Palmer with a To larger than 6 Money sum?
CREATE TABLE table_76217 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real, "Money ( $ )" real )
SELECT agency FROM table_27515452_3 WHERE sizes = "33-23-36"
which company has a person that can wear clothing in 33-23-36
CREATE TABLE table_27515452_3 (agency VARCHAR, sizes VARCHAR)
SELECT report FROM table_name_13 WHERE date = "1 june"
Which Report is on 1 june?
CREATE TABLE table_name_13 (report VARCHAR, date VARCHAR)
SELECT month FROM happy_hour GROUP BY month ORDER BY COUNT(*) DESC LIMIT 1
Which month has the most happy hours?
CREATE TABLE happy_hour ( hh_id number, shop_id number, month text, num_of_shaff_in_charge number ) CREATE TABLE member ( member_id number, name text, membership_card text, age number, time_of_purchase number, level_of_membership number, address text ) CREATE TABLE shop ( shop_id number, address text, num_of_staff text, score number, open_year text ) CREATE TABLE happy_hour_member ( hh_id number, member_id number, total_amount number )
SELECT height FROM table_27515452_3 WHERE sizes = "33-24-35"
how tall is someone who is able to wear 33-24-35
CREATE TABLE table_27515452_3 (height VARCHAR, sizes VARCHAR)
SELECT date FROM table_name_55 WHERE name = "vanderbilt cup"
When is vanderbilt cup in?
CREATE TABLE table_name_55 (date VARCHAR, name VARCHAR)
SELECT "Manager" FROM table_48341 WHERE "Year" < '1994' AND "Finish" = '5th'
who is the manager when the year is before 1994 and finish is 5th?
CREATE TABLE table_48341 ( "Year" real, "MLB Club" text, "Record" text, "Finish" text, "Manager" text )
SELECT MIN(total_points) FROM table_27533947_1 WHERE best_winning_average = "7.3-71"
If the best winning average is 7.3-71, what are the total points?
CREATE TABLE table_27533947_1 (total_points INTEGER, best_winning_average VARCHAR)
SELECT event FROM table_name_28 WHERE round = 1 AND record = "5-1"
Which event is in round 1 with a record at 5-1?
CREATE TABLE table_name_28 (event VARCHAR, round VARCHAR, record VARCHAR)
SELECT date FROM table_name_7 WHERE home_team = "north melbourne"
When did the north melbourne team play?
CREATE TABLE table_name_7 ( date VARCHAR, home_team VARCHAR )
SELECT games_lost FROM table_27533947_1 WHERE best_run = 138
if the best run was 138, what is the amount of games lost?
CREATE TABLE table_27533947_1 (games_lost VARCHAR, best_run VARCHAR)
SELECT MIN(silver) FROM table_name_42 WHERE country = "cambodia" AND total < 1
When the country is Cambodia and the total is smaller than 1 what's the lowest silver?
CREATE TABLE table_name_42 (silver INTEGER, country VARCHAR, total VARCHAR)
SELECT interview FROM table_11884814_3 WHERE country = "Hawaii"
What was the interview score for Hawaii?
CREATE TABLE table_11884814_3 ( interview VARCHAR, country VARCHAR )
SELECT best_winning_average FROM table_27533947_1 WHERE games_won = 5
If the games won are 5, what is the best winning average?
CREATE TABLE table_27533947_1 (best_winning_average VARCHAR, games_won VARCHAR)
SELECT MAX(gold) FROM table_name_94 WHERE country = "cambodia" AND total < 1
What is the highest gold for Cambodia when the total is less than 1?
CREATE TABLE table_name_94 (gold INTEGER, country VARCHAR, total VARCHAR)
SELECT college FROM table_20649850_1 WHERE position = "OL"
Where did the ol go to college?
CREATE TABLE table_20649850_1 ( college VARCHAR, position VARCHAR )
SELECT MIN(total_points) FROM table_27533947_1 WHERE players = "William Jakes"
If the player is William Jakes, what are the total points?
CREATE TABLE table_27533947_1 (total_points INTEGER, players VARCHAR)
SELECT COUNT(silver) FROM table_name_92 WHERE bronze < 0
What is the total silver when bronze is smaller than 0?
CREATE TABLE table_name_92 (silver VARCHAR, bronze INTEGER)
SELECT type FROM table_name_71 WHERE name__wade_giles_ = "kuang-hsing"
What is the type of Kuang-Hsing?
CREATE TABLE table_name_71 ( type VARCHAR, name__wade_giles_ VARCHAR )