context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_name_15 (
week INTEGER,
opponent VARCHAR
) | What is the earliest week with an opponent of cincinnati bengals? | SELECT MIN(week) FROM table_name_15 WHERE opponent = "cincinnati bengals" | sql_create_context |
CREATE TABLE table_49542 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
) | What is the score of the game against the baltimore bullets on March 14? | SELECT "Score" FROM table_49542 WHERE "Opponent" = 'baltimore bullets' AND "Date" = 'march 14' | wikisql |
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 d_icd_procedures (
row_id number,
icd9_code text,
s... | what is the daily maximum value of patient 59473's base excess since 6 years ago? | SELECT MAX(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 59473) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'base excess') AND DATETIME(labevents.charttime) >= DATETIME(CURRENT_TIME(),... | mimic_iii |
CREATE TABLE table_2284 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in millions)" text
) | Which episode aired on august19,2012? | SELECT "Title" FROM table_2284 WHERE "Original air date" = 'August19,2012' | wikisql |
CREATE TABLE table_name_85 (
set_2 VARCHAR,
total VARCHAR
) | What set 2 has a total of 97 74? | SELECT set_2 FROM table_name_85 WHERE total = "97–74" | sql_create_context |
CREATE TABLE table_name_30 (
length VARCHAR,
character_name VARCHAR
) | What is the length of the film with Burleigh Sullivan as the character? | SELECT length FROM table_name_30 WHERE character_name = "burleigh sullivan" | sql_create_context |
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
)... | how many hours have elapsed since the first time that patient 030-52327 had a continuous infusion meds intake on the current intensive care unit visit? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid ... | eicu |
CREATE TABLE table_name_15 (
place VARCHAR,
weapon VARCHAR,
date VARCHAR
) | What is Place, when Weapon is '35mm fire', and when Date is '27 May 1982'? | SELECT place FROM table_name_15 WHERE weapon = "35mm fire" AND date = "27 may 1982" | sql_create_context |
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 patient (
uniquep... | had patient 006-35134 in this year been admitted to an er? | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '006-35134' AND patient.hospitaladmitsource = 'emergency department' AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | eicu |
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
)
CREATE TABLE Subject... | Give me the comparison about author_id over the middle_name by a bar chart. | SELECT middle_name, author_id FROM Course_Authors_and_Tutors ORDER BY personal_name | nvbench |
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 offering_instructor (
offering_instructor_id int,
offering_id int,
... | WOMENSTD 323 has how many lecture sections next semester ? | SELECT COUNT(*) FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'WOMENSTD' AND course.number = 323 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | advising |
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE restriction (
restriction_c... | what is fare code Y mean | SELECT DISTINCT booking_class FROM class_of_service WHERE booking_class = 'Y' | atis |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
Dele... | Get post with popular tags. | SELECT Count, TagName FROM Tags WHERE Count > 50000 ORDER BY Count | sede |
CREATE TABLE table_35735 (
"Word" text,
"Pronunciation a" text,
"Meaning a" text,
"Pronunciation b" text,
"Meaning b" text
) | Name the word with pronunciation b of *s ks | SELECT "Word" FROM table_35735 WHERE "Pronunciation b" = '*sɨks' | wikisql |
CREATE TABLE table_204_466 (
id number,
"rank" number,
"bib" number,
"country" text,
"time" text,
"penalties (p+s)" text,
"deficit" text
) | what is france and germany 's deficit combined ? | SELECT SUM("deficit") FROM table_204_466 WHERE "country" IN ('france', 'germany') | squall |
CREATE TABLE table_17244483_1 (
time_retired VARCHAR,
car_no VARCHAR
) | Car number 15 earned what time? | SELECT time_retired FROM table_17244483_1 WHERE car_no = 15 | sql_create_context |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime 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 ... | when did patient 90165 enter the hospital first time until 4 years ago via the emergency room admit? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 90165 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime) <= DATETIME(CURRENT_TIME(), '-4 year') ORDER BY admissions.admittime LIMIT 1 | mimic_iii |
CREATE TABLE table_1452 (
"Official #" real,
"TF1 #" real,
"French title" text,
"English title" text,
"Air date (France)" text,
"Original Beechwood Bunny Tale / Source material" text
) | Name the french title for english title of 'inventor bunnies | SELECT "French title" FROM table_1452 WHERE "English title" = 'Inventor Bunnies' | wikisql |
CREATE TABLE table_48395 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
) | What is Result, when Venue is G tzis , Austria? | SELECT "Result" FROM table_48395 WHERE "Venue" = 'götzis , austria' | wikisql |
CREATE TABLE table_50300 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the total number of Bronze, when Gold is greater than 0, when Rank is 4, and when Total is greater than 4? | SELECT COUNT("Bronze") FROM table_50300 WHERE "Gold" > '0' AND "Rank" = '4' AND "Total" > '4' | wikisql |
CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Code CHAR(15),
Start_Date DATE,
End_Date DATE
)
CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGE... | Give me a bar chart that bins the payment date into the Year interval and then shows the amount of each payment categorized by the payment method code, and then sort the bars in ascending order of date. | SELECT Date_Payment_Made, COUNT(Date_Payment_Made) FROM Payments GROUP BY Payment_Method_Code ORDER BY Date_Payment_Made | nvbench |
CREATE TABLE table_71880 (
"Representative" text,
"Title" text,
"Presentation of Credentials" text,
"Termination of Mission" text,
"Appointed by" text
) | Who is the representative with a presentation of credentials date on February 23, 1854? | SELECT "Representative" FROM table_71880 WHERE "Presentation of Credentials" = 'february 23, 1854' | wikisql |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
... | did patient 18866 have a respiratory rate that was greater than 12.0 in 12/2105? | SELECT COUNT(*) > 0 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 = 18866)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'respiratory rate'... | mimic_iii |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod 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,
... | indicate the monthly minimum heart rate of patient 6196 since 164 months ago. | SELECT MIN(chartevents.valuenum) 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 = 6196)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart... | mimic_iii |
CREATE TABLE table_204_659 (
id number,
"seat" text,
"state" text,
"majority" number,
"member" text,
"party" text
) | what was the total majority that the dobell seat had ? | SELECT "majority" FROM table_204_659 WHERE "seat" = 'dobell' | squall |
CREATE TABLE table_name_21 (
country VARCHAR,
city VARCHAR
) | What country is Yerevan located in? | SELECT country FROM table_name_21 WHERE city = "yerevan" | sql_create_context |
CREATE TABLE table_69481 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
) | Which class's call sign is wokg? | SELECT "Class" FROM table_69481 WHERE "Call sign" = 'wokg' | wikisql |
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimme... | Bar chart x axis time y axis id, and order by the x axis in asc. | SELECT Time, ID FROM swimmer ORDER BY Time | nvbench |
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(... | For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of phone_number and manager_id , list by the Y from high to low. | SELECT PHONE_NUMBER, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY MANAGER_ID DESC | nvbench |
CREATE TABLE table_61298 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What average gold has China (chn) as the nation with a bronze greater than 1? | SELECT AVG("Gold") FROM table_61298 WHERE "Nation" = 'china (chn)' AND "Bronze" > '1' | wikisql |
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_items (
row_id num... | calculate the total or urine production for patient 6705 on the last icu visit. | SELECT SUM(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 6705) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND outputevents.it... | mimic_iii |
CREATE TABLE table_name_92 (
_jerk VARCHAR,
clean_ INTEGER,
total__kg_ VARCHAR,
snatch VARCHAR
) | what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5? | SELECT MAX(clean_) & _jerk FROM table_name_92 WHERE total__kg_ = "200.0" AND snatch > 87.5 | sql_create_context |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | 药品493365633在医疗就诊13021575114里面的使用频次和每次用量都分别都是多少呢? | SELECT t_kc22.USE_FRE, t_kc22.EACH_DOSAGE FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '13021575114' AND t_kc22.SOC_SRT_DIRE_CD = '493365633' | css |
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 t... | count the number of patients whose diagnoses long title is cyst and pseudocyst of pancreas and drug type is main? | 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.long_title = "Cyst and pseudocyst of pancreas" AND prescriptions.drug_type = "MAIN" | mimicsql_data |
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 te... | provide the number of patients whose procedure long title is other closed [endoscopic] biopsy of biliary duct or sphincter of oddi and lab test category is chemistry? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Other closed [endoscopic] biopsy of biliary duct or sphincter of Oddi" AND lab."CATEGORY" = "Chemistry" | mimicsql_data |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | 自2000年3月8日起,到2019年1月15日,医院2640814涉及医疗费总额不多于3787.33元的科室有多少 | SELECT COUNT(*) FROM (SELECT t_kc24.t_kc21_MED_ORG_DEPT_CD FROM t_kc24 WHERE t_kc24.t_kc21_MED_SER_ORG_NO = '2640814' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2000-03-08' AND '2019-01-15' GROUP BY t_kc24.t_kc21_MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) <= 3787.33) AS T | css |
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 vitalperiodic (
... | what drugs are being added to patient 021-80293 today as compared to those yesterday? | SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.uniquepid = '021-80293') AND DATETIME(medication.drugstarttime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT medication.drugname FROM medica... | eicu |
CREATE TABLE table_7305 (
"Place" real,
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals Scored" real,
"Goals Conceded" real,
"Points" real
) | What is the highest games Played where the Place is 10 and Points are less than 17? | SELECT MAX("Played") FROM table_7305 WHERE "Place" = '10' AND "Points" < '17' | wikisql |
CREATE TABLE table_name_89 (
team__number2 VARCHAR,
team__number1 VARCHAR
) | Who played against Hapoel tel aviv when they were team #1? | SELECT team__number2 FROM table_name_89 WHERE team__number1 = "hapoel tel aviv" | sql_create_context |
CREATE TABLE table_2182170_1 (
car_s_ VARCHAR,
listed_owner_s_ VARCHAR
) | How many cars does Gregg Mixon own? | SELECT COUNT(car_s_) FROM table_2182170_1 WHERE listed_owner_s_ = "Gregg Mixon" | sql_create_context |
CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
OVE_PAY numb... | 把科室81867从一一年十二月三十一日到一五年五月二十二日因煤尘肺(炭末肺)需要住院治疗的平均费用给我看 | SELECT AVG(MED_AMOUT) FROM t_kc21 WHERE MED_ORG_DEPT_CD = '81867' AND IN_HOSP_DATE BETWEEN '2011-12-31' AND '2015-05-22' AND IN_DIAG_DIS_NM = '煤尘肺(炭末肺)' AND CLINIC_TYPE = '住院' | css |
CREATE TABLE table_21436 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
) | What is the car number driven by Darren Manning? | SELECT "Car No." FROM table_21436 WHERE "Driver" = 'Darren Manning' | wikisql |
CREATE TABLE table_204_670 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"record" text,
"attendance" number
) | what is the difference in attendance for week 5 and 9 | SELECT ABS((SELECT "attendance" FROM table_204_670 WHERE "week" = 5) - (SELECT "attendance" FROM table_204_670 WHERE "week" = 9)) | squall |
CREATE TABLE table_61688 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | What was the attendance on September 19, 1971, after week 1? | SELECT AVG("Attendance") FROM table_61688 WHERE "Date" = 'september 19, 1971' AND "Week" > '1' | wikisql |
CREATE TABLE table_57570 (
"Coach" text,
"Season" text,
"Record" text,
"Home" text,
"Away" text,
"Win %" real,
"Average (Total) Home Attendance" text
) | What is the lowest win% in the 1999-2013 season? | SELECT MIN("Win %") FROM table_57570 WHERE "Season" = '1999-2013' | wikisql |
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,
... | calculate the maximum days for which patients who died before 2164 stayed in hospital. | SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.dod_year < "2164.0" | mimicsql_data |
CREATE TABLE table_11391954_3 (
Half VARCHAR,
country VARCHAR
) | Whatis the total number of half marathon (mens) that represented kazakhstan? | SELECT COUNT(Half) AS marathon__mens_ FROM table_11391954_3 WHERE country = "Kazakhstan" | sql_create_context |
CREATE TABLE gas_station (
LOCATION VARCHAR
) | Show all locations and the number of gas stations in each location ordered by the count. | SELECT LOCATION, COUNT(*) FROM gas_station GROUP BY LOCATION ORDER BY COUNT(*) | sql_create_context |
CREATE TABLE table_11964154_9 (
game INTEGER,
high_points VARCHAR
) | what is the maximum game where high points is micka l gelabale (21) | SELECT MAX(game) FROM table_11964154_9 WHERE high_points = "Mickaël Gelabale (21)" | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | what is average age of patients whose insurance is private and discharge location is rehab/distinct part hosp? | SELECT AVG(demographic.age) FROM demographic WHERE demographic.insurance = "Private" AND demographic.discharge_location = "REHAB/DISTINCT PART HOSP" | mimicsql_data |
CREATE TABLE table_29283 (
"Position" real,
"Building" text,
"City" text,
"Height" text,
"Number of floors" real,
"Completion" real
) | How many positions does building Costanera Center Torre 1 have? | SELECT COUNT("Position") FROM table_29283 WHERE "Building" = 'Costanera Center Torre 1' | wikisql |
CREATE TABLE table_2517159_1 (
record VARCHAR,
name_of_bowl VARCHAR
) | Name the record for cotton bowl classic | SELECT record FROM table_2517159_1 WHERE name_of_bowl = "Cotton Bowl Classic" | sql_create_context |
CREATE TABLE table_204_102 (
id number,
"name" text,
"location served" text,
"governorate" text,
"utilization" text,
"helipads" number,
"runways" number,
"shelters" number,
"squadrons" text,
"coordinates" text
) | the total number of helipads at hama military airport ? | SELECT "helipads" FROM table_204_102 WHERE "name" = 'hama military airport' | squall |
CREATE TABLE table_16767 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
) | What is the name of the race in the Modena circuit? | SELECT "Race Name" FROM table_16767 WHERE "Circuit" = 'Modena' | wikisql |
CREATE TABLE table_2062148_3 (
race VARCHAR,
distance VARCHAR
) | What race has a distance of 1200 m? | SELECT race FROM table_2062148_3 WHERE distance = "1200 m" | sql_create_context |
CREATE TABLE table_66431 (
"Millewa" text,
"Wins" real,
"Forfeits" real,
"Losses" real,
"Draws" real,
"Against" real
) | How many Losses have Draws larger than 0? | SELECT MAX("Losses") FROM table_66431 WHERE "Draws" > '0' | wikisql |
CREATE TABLE table_28453 (
"Episode #" text,
"Season Episode #" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" text
) | How many directors were there for season 3 episode 1? | SELECT COUNT("Directed by") FROM table_28453 WHERE "Season Episode #" = '1' | wikisql |
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
)
CREATE TABLE i... | when did patient 010-32698 have his or her last surgical procedure? | 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 = '010-32698')) ORDER BY treatment.treatmenttime DESC LIMIT 1 | eicu |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | Give me the comparison about All_Games_Percent over the ACC_Regular_Season , and I want to display by the Y in desc. | SELECT ACC_Regular_Season, All_Games_Percent FROM basketball_match ORDER BY All_Games_Percent DESC | nvbench |
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
... | Fastest users to get to X rep. Fastest user to reach a certain rep score. | SELECT * FROM VoteTypes | sede |
CREATE TABLE table_51595 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | Which city has the ICAO of LIRF? | SELECT "City" FROM table_51595 WHERE "ICAO" = 'lirf' | wikisql |
CREATE TABLE table_46426 (
"Finished" real,
"Time/ Behind" text,
"Post" real,
"Horse" text,
"Jockey" text,
"Trainer" text,
"Owner" text
) | What is Owner, when Finished is less than 15, when Trainer is 'Steve Asmussen', and when Horse is 'Z Fortune'? | SELECT "Owner" FROM table_46426 WHERE "Finished" < '15' AND "Trainer" = 'steve asmussen' AND "Horse" = 'z fortune' | wikisql |
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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | find out the number of greek orthodox religious background patients with lab test item id 51288. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.religion = "GREEK ORTHODOX" AND lab.itemid = "51288" | mimicsql_data |
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
... | i would like to book an early morning flight from TAMPA to CHARLOTTE on 4 6 | 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 = 'CHARLOTTE' AND date_day.day_number = 6 AND date_day.month_number = 4 AND... | atis |
CREATE TABLE table_60820 (
"Player" text,
"Position" text,
"Ekstraklasa" real,
"Polish Cup" real,
"Puchat Ligi" real,
"UEFA Cup" real,
"Total" real
) | Which Puchat Ligi has a UEFA Cup smaller than 2, and a Player of takesure chinyama? | SELECT MIN("Puchat Ligi") FROM table_60820 WHERE "UEFA Cup" < '2' AND "Player" = 'takesure chinyama' | wikisql |
CREATE TABLE table_44082 (
"School" text,
"Conference" text,
"Games" real,
"Wins" real,
"Losses" real,
"Winning Pct." real
) | What is the total number of losses of the team with games less than 14, wins less than 3, in the Maac Conference at Fairfield School? | SELECT COUNT("Losses") FROM table_44082 WHERE "Games" < '14' AND "Wins" < '3' AND "Conference" = 'maac' AND "School" = 'fairfield' | wikisql |
CREATE TABLE mzjybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH number,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
... | 哪位患者在住院就诊中开出了编号为66920522667的检验报告单? | SELECT person_info.XM FROM person_info JOIN hz_info JOIN zyjzjlb JOIN zyjybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND zyjzjlb.YLJGDM = zyjybgb.YLJGDM_ZYJZJLB AND zyjzjlb.JZLSH = zyjybgb.JZLSH_ZYJZJLB WHERE zyjybgb.BGDH = '66920... | css |
CREATE TABLE election (
Election_ID int,
Representative_ID int,
Date text,
Votes real,
Vote_Percent real,
Seats real,
Place real
)
CREATE TABLE representative (
Representative_ID int,
Name text,
State text,
Party text,
Lifespan text
) | Give me a histogram for what are the different parties of representative? Show the party name and the number of representatives in each party. | SELECT Party, COUNT(*) FROM representative GROUP BY Party | nvbench |
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,
... | is the heart rate in patient 22973 last measured on the first icu visit less than first measured on the first icu visit? | SELECT (SELECT chartevents.valuenum 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 = 22973) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.item... | mimic_iii |
CREATE TABLE table_2259285_1 (
standing VARCHAR,
goals_against VARCHAR
) | What was the standing when goal against were 279? | SELECT standing FROM table_2259285_1 WHERE goals_against = 279 | sql_create_context |
CREATE TABLE table_name_36 (
game INTEGER,
team VARCHAR
) | What game was played at Philadelphia? | SELECT AVG(game) FROM table_name_36 WHERE team = "philadelphia" | sql_create_context |
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Course_Authors_and_Tutors (
author_id IN... | A bar chart for what are the number of the completion dates of all the tests that have result 'Fail'?, and list from high to low by the Y-axis. | SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Fail" GROUP BY date_of_completion ORDER BY COUNT(date_of_completion) DESC | nvbench |
CREATE TABLE table_21143 (
"Country" text,
"Name" text,
"Network" text,
"Premiere" text,
"Host(s)" text,
"Judges" text,
"Seasons and Winners" text
) | Name the host for prime | SELECT "Host(s)" FROM table_21143 WHERE "Network" = 'Prime' | wikisql |
CREATE TABLE gwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | 名字为戚文栋参保人年门诊医疗费总额是多些? | SELECT SUM(gwyjzb.MED_AMOUT) FROM gwyjzb WHERE gwyjzb.PERSON_NM = '戚文栋' AND gwyjzb.CLINIC_TYPE = '门诊' UNION SELECT SUM(fgwyjzb.MED_AMOUT) FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '戚文栋' AND fgwyjzb.CLINIC_TYPE = '门诊' | css |
CREATE TABLE table_20508 (
"Region of USSR" text,
"Number of families" real,
"Number of people" real,
"Average family size" text,
"% of total deportees" text
) | What is the most number of families in regions where average family size is 2.7? | SELECT MAX("Number of families") FROM table_20508 WHERE "Average family size" = '2.7' | wikisql |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId n... | Follow-up edits to my contributions. Shows all posts that I've contributed to, that have also been edited by someone else since my last contribution. Includes only certain types of edits (title/body/tag edits/rollbacks), and excludes edits by the Community user (which are mostly inserting/removing duplicate links and s... | SELECT ph.PostId AS "post_link", ph.CreationDate AS LastEditDate, u.DisplayName AS LastEditor, pht.Name AS LastEditType, ph.Comment FROM PostHistory AS ph JOIN PostHistoryTypes AS pht ON pht.Id = ph.PostHistoryTypeId JOIN Posts AS p ON p.Id = ph.PostId AND p.LastEditDate = ph.CreationDate JOIN Users AS u ON u.Id = ph.U... | sede |
CREATE TABLE table_12794 (
"Location" text,
"Year" real,
"Champion" text,
"Runner-up" text,
"Score" text
) | When John Mcenroe won at Montreal, what was the score? | SELECT "Score" FROM table_12794 WHERE "Location" = 'montreal' AND "Champion" = 'john mcenroe' | wikisql |
CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM text,
RZBQMC text,
RYCWH text,
CYKSDM text,
CYKSMC text,
CYBQDM tex... | 在门诊就诊04766244693中,诊断名是什么?对应的编码呢 | SELECT JZZDBM, JZZDSM FROM mzjzjlb WHERE JZLSH = '04766244693' | css |
CREATE TABLE building (
building_id text,
Name text,
Street_address text,
Years_as_tallest text,
Height_feet int,
Floors int
)
CREATE TABLE Institution (
Institution_id text,
Institution text,
Location text,
Founded real,
Type text,
Enrollment int,
Team text,
Pri... | Let institution types as the X-axis and the number of institutions for each type as Y-axis, the visualization type is bar chart, could you order in desc by the Y-axis? | SELECT Type, COUNT(*) FROM Institution GROUP BY Type ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE table_76540 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner" text,
"Finalist" text,
"Semifinalists" text
) | What week was the finalist Martina Hingis? | SELECT "Week" FROM table_76540 WHERE "Finalist" = 'martina hingis' | wikisql |
CREATE TABLE table_203_689 (
id number,
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
) | what was the total number of wins ? | SELECT COUNT(*) FROM table_203_689 WHERE "result" = 'win' | squall |
CREATE TABLE table_79760 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
) | What dates had matches at the venue Sabina Park? | SELECT "Date" FROM table_79760 WHERE "Venue" = 'sabina park' | wikisql |
CREATE TABLE table_59775 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
) | What is the broadcast date with 7.0 million viewers? | SELECT "Broadcast date" FROM table_59775 WHERE "Viewers (in millions)" = '7.0' | wikisql |
CREATE TABLE table_36645 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
) | How many tries for did the club with a 3 losing bonus and 45 points have? | SELECT "Tries for" FROM table_36645 WHERE "Losing bonus" = '3' AND "Points" = '45' | wikisql |
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 (... | how many patients admitted to emergency were aged below 71? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.age < "71" | mimicsql_data |
CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE region (
Region_id int,
Region_code text,
R... | List the name for storms and the number of affected regions for each storm, order bars from high to low order. | SELECT Name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.Storm_ID = T2.Storm_ID GROUP BY T1.Storm_ID ORDER BY Name DESC | nvbench |
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Faculty_Participates_in (
FacID IN... | Show me a bar chart for how many students are advised by each rank of faculty? List the rank and the number of students. | SELECT Rank, COUNT(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.Advisor GROUP BY T1.Rank | nvbench |
CREATE TABLE table_42499 (
"Year" real,
"Winner" text,
"School" text,
"Position" text,
"Points" text,
"% of Points Possible" text
) | What is the % of points possible of the winner from Penn State? | SELECT "% of Points Possible" FROM table_42499 WHERE "School" = 'penn state' | wikisql |
CREATE TABLE table_23493 (
"Ostrich" text,
"Hamerkop" text,
"Hadeda Ibis" text,
"African Spoonbill" text,
"Whitefaced Duck" text,
"Knobbilled Duck" text
) | What is the Hadeda Ibis when the Ostrich is Dark Chanting Goshawk? | SELECT "Hadeda Ibis" FROM table_23493 WHERE "Ostrich" = 'Dark Chanting Goshawk' | wikisql |
CREATE TABLE table_5198 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
) | What is the best time of the team that had a qualifying 1 time of 1:01.043? | SELECT "Best" FROM table_5198 WHERE "Qual 1" = '1:01.043' | wikisql |
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 t... | What is the number of patients who underwent (Aorto)coronary bypass of one coronary artery and died in or before 2138? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2138.0" AND procedures.short_title = "Aortocor bypas-1 cor art" | mimicsql_data |
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,
... | count the number of patients who since 4 years ago have been prescribed 1 ml vial : heparin sodium (porcine) 5000 unit/ml ij soln. | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = '1 ml vial : heparin sodium (porcine) 5000 unit/ml ij soln' AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-4 year')) | eicu |
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
)
... | calculate the average age of patients who were admitted in emergency room for s/p hanging. | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND demographic.diagnosis = "S/P HANGING" | mimicsql_data |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | 医疗机构6235721非本地的病人有多少 | SELECT COUNT(t_kc21.PERSON_ID) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '6235721' AND t_kc21.REMOTE_SETTLE_FLG = '异地1' OR t_kc21.REMOTE_SETTLE_FLG = '异地2' | css |
CREATE TABLE table_23563 (
"English Name" text,
"Simplified" text,
"Traditional" text,
"Pinyin" text,
"Foochow" text,
"Area" real,
"Population" real,
"Density" real
) | Name the traditional for area 544 | SELECT "Traditional" FROM table_23563 WHERE "Area" = '544' | wikisql |
CREATE TABLE table_5694 (
"Week 6 Oct 5" text,
"Week 7 Oct 12" text,
"Week 9 Oct 26" text,
"Week 10 Nov 2" text,
"Week 11 Nov 9" text,
"Week 13 Nov 23" text,
"Week 14 Nov 30" text,
"Week 15 (Final) Dec 7" text
) | Which Week 14 Nov 30 has a Week 6 Oct 5 of michigan state (5-1)? | SELECT "Week 14 Nov 30" FROM table_5694 WHERE "Week 6 Oct 5" = 'michigan state (5-1)' | wikisql |
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 cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id... | what were the three most frequently ordered microbiology tests for patients that had previous fiber-optic bronchoscopy during the same month in 2104? | SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FR... | mimic_iii |
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM text,
SHRGH ... | 在03年1月5日到10年11月6日期间,病患20286940的所有检验结果指标记录的检测人为58375381的检验指标流水号分别是多少? | (SELECT jyjgzbb.JYZBLSH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE h... | css |
CREATE TABLE table_1429629_1 (
episode VARCHAR,
run_time VARCHAR
) | What are all the episodes with an episode run time of 24:01? | SELECT episode FROM table_1429629_1 WHERE run_time = "24:01" | sql_create_context |
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE T... | show me the flights that leave on THURSDAY mornings from ATLANTA to WASHINGTON and include whether meals are offered and what the prices are | SELECT DISTINCT fare.fare_id, flight.flight_id, flight.meal_code FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_n... | atis |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.