context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_name_23 (
venue VARCHAR,
team VARCHAR
) | what is the venue of neman | SELECT venue FROM table_name_23 WHERE team = "neman" | sql_create_context |
CREATE TABLE table_33523 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | what is the week there were 41,604 people in attendance? | SELECT AVG("Week") FROM table_33523 WHERE "Attendance" = '41,604' | wikisql |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | 病患22945235在2001-12-09以前做过的检验报告在哪些门诊?列出这些门诊就诊的流水编码 | SELECT zzmzjzjlb.JZLSH FROM hz_info JOIN zzmzjzjlb ON hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX WHERE hz_info.RYBH = '22945235' AND NOT zzmzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ >= '2001-12-09') UNION SELECT fzzmzjzjlb.JZLSH FROM hz_info JOI... | css |
CREATE TABLE table_name_4 (
race VARCHAR,
notes VARCHAR,
venue VARCHAR
) | What was the race for the world championship formula 1 at a venue of hungaroring? | SELECT race FROM table_name_4 WHERE notes = "world championship formula 1" AND venue = "hungaroring" | sql_create_context |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE diagnoses_icd (
row_id ... | is there a microbiological test result for the rapid respiratory viral screen & culture of patient 458 in 2105? | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 458) AND microbiologyevents.spec_type_desc = 'rapid respiratory viral screen & culture' AND STRFTIME('%y', microbiologyevents.charttime) = '2105' | mimic_iii |
CREATE TABLE table_18600760_9 (
water__sqmi_ VARCHAR,
latitude VARCHAR
) | How many square miles of water does the township at latitude 48.064751 have? | SELECT water__sqmi_ FROM table_18600760_9 WHERE latitude = "48.064751" | sql_create_context |
CREATE TABLE table_name_71 (
ihsaa_class VARCHAR,
county INTEGER
) | What is the IHSAA class of the county that is less than 228? | SELECT ihsaa_class FROM table_name_71 WHERE county < 228 | sql_create_context |
CREATE TABLE table_77146 (
"Rank" real,
"Mountain Peak" text,
"Region" text,
"Mountain Range" text,
"Location" text
) | Name the Region with a Mountain Peak of dillingham high point? | SELECT "Region" FROM table_77146 WHERE "Mountain Peak" = 'dillingham high point' | wikisql |
CREATE TABLE table_14884844_2 (
record VARCHAR,
athletes VARCHAR
) | What are the records when Elzbieta Urbanczik competed? | SELECT record FROM table_14884844_2 WHERE athletes = "Elzbieta Urbanczik" | sql_create_context |
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... | get me the time of admission and primary disease of patient michael witt. | SELECT demographic.diagnosis, demographic.admittime FROM demographic WHERE demographic.name = "Michael Witt" | mimicsql_data |
CREATE TABLE table_name_32 (
result VARCHAR,
opponent VARCHAR
) | What is Result, when Opponent is Cincinnati Bengals? | SELECT result FROM table_name_32 WHERE opponent = "cincinnati bengals" | sql_create_context |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean... | See all posts from someone. | SELECT Id AS "post_link", OwnerDisplayName FROM Posts WHERE OwnerDisplayName = '##UserDisplayname##' | sede |
CREATE TABLE table_76432 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"TV Time" text,
"Attendance" text
) | WHAT IS THE RESULT WHEN THE OPPONENT WAS CHICAGO BEARS? | SELECT "Result" FROM table_76432 WHERE "Opponent" = 'chicago bears' | wikisql |
CREATE TABLE order_items (
order_item_id number,
order_id number,
product_id number,
order_quantity text
)
CREATE TABLE customer_orders (
order_id number,
customer_id number,
order_date time,
order_status_code text
)
CREATE TABLE customer_address_history (
customer_id number,
a... | Show the product type codes which have at least two products. | SELECT product_type_code FROM products GROUP BY product_type_code HAVING COUNT(*) >= 2 | spider |
CREATE TABLE table_name_7 (
attendance INTEGER,
date VARCHAR
) | Date of november 29, 1959 had what lowest attendance? | SELECT MIN(attendance) FROM table_name_7 WHERE date = "november 29, 1959" | sql_create_context |
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 microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,... | what was the amount of inputs patient 26286 had received on this month/12? | SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26286)) AND DATETIME(inputevents_cv.charttime, 'start of month') = DATETIME(CURRENT_TIME()... | mimic_iii |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | how many patients are admitted under phys referral/normal deli and tested with lab item id 51005? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND lab.itemid = "51005" | mimicsql_data |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
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,
JY... | 在病患61732704的检验报告单中哪些号码是检验结果指标全部不正常的? | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info... | css |
CREATE TABLE table_name_57 (
family VARCHAR,
name VARCHAR
) | What family has the name of eastern cottontail? | SELECT family FROM table_name_57 WHERE name = "eastern cottontail" | sql_create_context |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ tim... | 在检验报告单59906964486中体现的的标本代码以及名称和状态是啥? | SELECT zyjybgb.BBDM, zyjybgb.BBMC, zyjybgb.BBZT FROM zyjybgb WHERE zyjybgb.BGDH = '59906964486' UNION SELECT mzjybgb.BBDM, mzjybgb.BBMC, mzjybgb.BBZT FROM mzjybgb WHERE mzjybgb.BGDH = '59906964486' | css |
CREATE TABLE table_64424 (
"Player" text,
"Original Season" text,
"Gender" text,
"Eliminated" text,
"Placing" text
) | Who's the player that was eliminated on episode 4? | SELECT "Player" FROM table_64424 WHERE "Eliminated" = 'episode 4' | wikisql |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | Visualize the relationship between Team_ID and ACC_Percent , and group by attribute All_Home. | SELECT Team_ID, ACC_Percent FROM basketball_match GROUP BY All_Home | nvbench |
CREATE TABLE route (
train_id int,
station_id int
)
CREATE TABLE weekly_weather (
station_id int,
day_of_week text,
high_temperature int,
low_temperature int,
precipitation real,
wind_speed_mph int
)
CREATE TABLE train (
id int,
train_number int,
name text,
origin text,... | Compute the number of services by services and then split by local authorities Show the result with a stacked bar graph, and I want to show by the y-axis from high to low. | SELECT local_authority, COUNT(local_authority) FROM station GROUP BY services, local_authority ORDER BY COUNT(local_authority) DESC | nvbench |
CREATE TABLE table_38638 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | Name the ICAO for julius nyerere international airport | SELECT "ICAO" FROM table_38638 WHERE "Airport" = 'julius nyerere international airport' | wikisql |
CREATE TABLE table_71450 (
"Tournament" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
) | What is the 2005 value with 1r in 2013 and q2 in 2011? | SELECT "2005" FROM table_71450 WHERE "2013" = '1r' AND "2011" = 'q2' | wikisql |
CREATE TABLE table_name_88 (
zone INTEGER,
managed_by VARCHAR,
platforms VARCHAR
) | Which Zone is the lowest when Managed By Southern and has Platforms under 2? | SELECT MIN(zone) FROM table_name_88 WHERE managed_by = "southern" AND platforms < 2 | sql_create_context |
CREATE TABLE table_24908692_5 (
steals VARCHAR,
player VARCHAR
) | How many steals did Tamika Williams have? | SELECT steals FROM table_24908692_5 WHERE player = "Tamika Williams" | sql_create_context |
CREATE TABLE table_name_80 (
date VARCHAR,
opponent_in_the_final VARCHAR
) | What date was the match played where Amy Frazier was the opponent? | SELECT date FROM table_name_80 WHERE opponent_in_the_final = "amy frazier" | sql_create_context |
CREATE TABLE table_21139 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
) | Where was game 62 played? | SELECT "Location" FROM table_21139 WHERE "Game" = '62' | wikisql |
CREATE TABLE table_1965650_2 (
position VARCHAR,
player VARCHAR
) | Name the position of glenn goldup | SELECT position FROM table_1965650_2 WHERE player = "Glenn Goldup" | sql_create_context |
CREATE TABLE table_10369 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings( $ )" real,
"Wins" real
) | What's the most jim colbert got paid? | SELECT MAX("Earnings( $ )") FROM table_10369 WHERE "Player" = 'jim colbert' | wikisql |
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,... | 9250851的医疗机构哪些项目的使用次数排在前10名 | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.MED_SER_ORG_NO = '9250851' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC LIMIT 10 | css |
CREATE TABLE table_19696 (
"Songs" text,
"Paul McCartney" text,
"Stuart" text,
"McIntosh" text,
"Wix" text,
"Whitten" text,
"Linda McCartney" text
) | How many instruments did Stuart play on 'We Got Married'? | SELECT COUNT("Stuart") FROM table_19696 WHERE "Songs" = 'We Got Married' | wikisql |
CREATE TABLE table_38698 (
"Stage" text,
"Stage winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Malaysian rider classification" text,
"Team classification" text
) | What is the general classification when the team classification is japan? | SELECT "General classification" FROM table_38698 WHERE "Team classification" = 'japan' | wikisql |
CREATE TABLE table_36877 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Attendance" real
) | Which team was the visitor with a record of 5-2-0? | SELECT "Visitor" FROM table_36877 WHERE "Record" = '5-2-0' | wikisql |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemics... | how many patients went through a sputum, tracheal specimen test? | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT microlab.patientunitstayid FROM microlab WHERE microlab.culturesite = 'sputum, tracheal specimen') | eicu |
CREATE TABLE table_24302700_2 (
event_4_carwalk VARCHAR,
nationality VARCHAR
) | How many men from the Ukraine? | SELECT COUNT(event_4_carwalk) FROM table_24302700_2 WHERE nationality = "Ukraine" | sql_create_context |
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,
... | 列出患者74086370医疗记录中的入院诊断疾病编码和名称,主要针对医疗费总额超过4198.44元的 | SELECT gwyjzb.OUT_DIAG_DIS_CD, gwyjzb.OUT_DIAG_DIS_NM FROM gwyjzb WHERE gwyjzb.PERSON_ID = '74086370' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT > 4198.44) UNION SELECT fgwyjzb.OUT_DIAG_DIS_CD, fgwyjzb.OUT_DIAG_DIS_NM FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '74086370' AND... | css |
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 t... | count the number of patients over the age of 82 whose lab test item id is 51379. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "82" AND lab.itemid = "51379" | mimicsql_data |
CREATE TABLE table_40242 (
"Call sign" text,
"Frequency MHz" text,
"City of license" text,
"ERP W" real,
"FCC info" text
) | Call sign k216fo has what average ERP W? | SELECT AVG("ERP W") FROM table_40242 WHERE "Call sign" = 'k216fo' | wikisql |
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 ... | tell me the cost of a lab bilirubin, total, body fluid test? | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'labevents' AND cost.event_id IN (SELECT labevents.row_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'bilirubin, total, body fluid')) | mimic_iii |
CREATE TABLE table_73095 (
"Election" real,
"Leader" text,
"# of candidates" real,
"# of seats to be won" real,
"# of seats won" real,
"# of total votes" real,
"% of popular vote" text
) | Name the number of candidates for # of seats won being 43 | SELECT "# of candidates" FROM table_73095 WHERE "# of seats won" = '43' | wikisql |
CREATE TABLE table_238124_1 (
platelet_count VARCHAR,
bleeding_time VARCHAR,
prothrombin_time VARCHAR
) | When the bleeding time is unaffected and prothrombin time is prolonged, what are the platelet counts? | SELECT platelet_count FROM table_238124_1 WHERE bleeding_time = "Unaffected" AND prothrombin_time = "Prolonged" | sql_create_context |
CREATE TABLE table_79647 (
"Year" real,
"Player" text,
"Country" text,
"Score" text,
"To Par" text,
"Margin" real,
"Earnings ($)" real
) | Which Margin has a Country of united states, and a Score of 63-70-65-69=267? | SELECT "Margin" FROM table_79647 WHERE "Country" = 'united states' AND "Score" = '63-70-65-69=267' | wikisql |
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 Member_of (
FacID INTEGER,
DNO INTEGER,
Appt_Type VARCHAR(15)
)
CREATE TABLE Minor_in (
StuI... | Visualize a bar chart about the distribution of Days and the average of Instructor , and group by attribute Days. | SELECT Days, AVG(Instructor) FROM Course GROUP BY Days ORDER BY Credits | nvbench |
CREATE TABLE table_name_83 (
losses INTEGER,
goal_difference VARCHAR,
wins VARCHAR
) | Which Losses have a Goal Difference of -16, and less than 8 wins? | SELECT MIN(losses) FROM table_name_83 WHERE goal_difference = -16 AND wins < 8 | sql_create_context |
CREATE TABLE constructorstandings (
constructorstandingsid number,
raceid number,
constructorid number,
points number,
position number,
positiontext text,
wins number
)
CREATE TABLE circuits (
circuitid number,
circuitref text,
name text,
location text,
country text,
... | What is the average fastest lap speed for the Monaco Grand Prix in 2008? | SELECT AVG(T2.fastestlapspeed) FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year = 2008 AND T1.name = "Monaco Grand Prix" | spider |
CREATE TABLE table_5431 (
"Series Ep." text,
"Episode" real,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | Which Segment A has a Segment B of s awning? | SELECT "Segment A" FROM table_5431 WHERE "Segment B" = 's awning' | wikisql |
CREATE TABLE table_name_15 (
year INTEGER,
notes VARCHAR
) | What is the highest Year, when Notes is 'Celebrity Guest Alongside YG Family'? | SELECT MAX(year) FROM table_name_15 WHERE notes = "celebrity guest alongside yg family" | sql_create_context |
CREATE TABLE table_15802 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
) | What year was the Commonwealth Games? | SELECT SUM("Year") FROM table_15802 WHERE "Tournament" = 'commonwealth games' | 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 (... | count the number of patients whose year of birth is less than 2098 and drug code is csa50i? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2098" AND prescriptions.formulary_drug_cd = "CSA50I" | mimicsql_data |
CREATE TABLE table_203_685 (
id number,
"no. in\nseries" number,
"no. in\nseason" number,
"title" text,
"directed by" text,
"written by" text,
"original air date" text
) | who directed the first episode of psi factor : chronicles of the paranormal ? | SELECT "directed by" FROM table_203_685 WHERE "no. in\nseason" = 1 | squall |
CREATE TABLE WINE (
Name VARCHAR,
YEAR VARCHAR
) | Find the distinct names of wines produced before the year of 2000 or after the year of 2010. | SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010 | sql_create_context |
CREATE TABLE table_48807 (
"Name" text,
"Launched" text,
"Vehicle" text,
"Ceased operation" text,
"Notes" text
) | What was the ceased operation that launched June 29, 1961? | SELECT "Ceased operation" FROM table_48807 WHERE "Launched" = 'june 29, 1961' | wikisql |
CREATE TABLE table_3621 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | who was running in the section pennsylvania 5 | SELECT "Candidates" FROM table_3621 WHERE "District" = 'Pennsylvania 5' | wikisql |
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction 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 va... | The classes that I took before did any of them consist of Core classes ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN student_record ON student_record.course_id = course.course_id INNER JOIN program_course ON student_record.course_id = program_course.course_id WHERE program_course.category LIKE '%Core%' AND student_record.student_id = 1 | advising |
CREATE TABLE table_71878 (
"Representative" text,
"Title" text,
"Presentation of Credentials" text,
"Termination of Mission" text,
"Appointed by" text
) | What is the termination of mission date of the representative with a presentation of credentials date on July 4, 1898? | SELECT "Termination of Mission" FROM table_71878 WHERE "Presentation of Credentials" = 'july 4, 1898' | wikisql |
CREATE TABLE table_57272 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | Which date has an Away team of fitzroy? | SELECT "Date" FROM table_57272 WHERE "Away team" = 'fitzroy' | wikisql |
CREATE TABLE subjects (
subject_id number,
subject_name text
)
CREATE TABLE course_authors_and_tutors (
author_id number,
author_tutor_atb text,
login_name text,
password text,
personal_name text,
middle_name text,
family_name text,
gender_mf text,
address_line_1 text
)
CRE... | Which course is enrolled in by the most students? Give me the course name. | SELECT T1.course_name FROM courses AS T1 JOIN student_course_enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1 | spider |
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
)
... | count the number of patients whose age is less than 70 and diagnoses short title is perinat gi sys dis nec? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "70" AND diagnoses.short_title = "Perinat GI sys dis NEC" | mimicsql_data |
CREATE TABLE table_77007 (
"Date" text,
"City" text,
"Event" text,
"Winner" text,
"Prize" text
) | What is the date of the event with a $322,280 prize? | SELECT "Date" FROM table_77007 WHERE "Prize" = '$322,280' | wikisql |
CREATE TABLE table_name_52 (
class_aA VARCHAR,
class_a VARCHAR,
school_year VARCHAR
) | Name the class AA with class A of rule and school year of 1995-96 | SELECT class_aA FROM table_name_52 WHERE class_a = "rule" AND school_year = "1995-96" | sql_create_context |
CREATE TABLE fgwyjzb (
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,
... | 在编号为3731061的这家医院中,有多少科室的最长医疗住院时长低于8天 | SELECT COUNT(*) FROM (SELECT gwyjzb.MED_ORG_DEPT_CD FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '3731061' GROUP BY gwyjzb.MED_ORG_DEPT_CD HAVING MAX(gwyjzb.IN_HOSP_DAYS) < 8 UNION SELECT fgwyjzb.MED_ORG_DEPT_CD FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '3731061' GROUP BY fgwyjzb.MED_ORG_DEPT_CD HAVING MAX(fgwyjzb.IN_HO... | css |
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 outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... | are heart rate of patient 2518 measured at 2105-12-31 12:00:00 less than measured at 2105-12-31 09:00:00? | 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 = 2518)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'he... | mimic_iii |
CREATE TABLE table_43270 (
"Position" real,
"Artist" text,
"Song" text,
"Lyrics (l) / Music (m)" text,
"Place" text
) | What were the Lyrics (l) and Music (m) for the Artist who was in a Position higher than 3 and who earned 1st Place? | SELECT "Lyrics (l) / Music (m)" FROM table_43270 WHERE "Position" > '3' AND "Place" = '1st' | wikisql |
CREATE TABLE table_253 (
"Player" text,
"No." text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | Which forward player has the number 22? | SELECT "Player" FROM table_253 WHERE "No." = '22' AND "Position" = 'Forward' | wikisql |
CREATE TABLE table_32404 (
"Incident No." text,
"Date" text,
"Place" text,
"Killed" real,
"Injured" real
) | What was the highest number of people injured in incidents in Vaishali, Bihar? | SELECT MAX("Injured") FROM table_32404 WHERE "Place" = 'vaishali, bihar' | wikisql |
CREATE TABLE table_17144 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
) | What are all the names of the players who are 7-0 tall? | SELECT "Player" FROM table_17144 WHERE "Height in Ft." = '7-0' | wikisql |
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,
... | how many patients were diagnosed with anemia - anemia of renal disease and did not come back into the hospital within 2 months? | SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'anemia - anemia of renal disease') AS t1) - (SELECT COUNT(DISTINCT t2.uniquepid) FROM (SELECT patien... | eicu |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | 一六年一月二十七号到十二月二十五号医疗机构7364699就诊记录里有儿童医保的记录数量 | SELECT COUNT(*) FROM t_kc21 WHERE MED_SER_ORG_NO = '7364699' AND IN_HOSP_DATE BETWEEN '2016-01-27' AND '2016-12-25' AND INSU_TYPE = '儿童' | css |
CREATE TABLE table_47029 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the medal total of Denmark? | SELECT COUNT("Total") FROM table_47029 WHERE "Nation" = 'denmark' | wikisql |
CREATE TABLE table_name_41 (
airport VARCHAR,
city VARCHAR
) | what is the airport when the city is d sseldorf? | SELECT airport FROM table_name_41 WHERE city = "düsseldorf" | sql_create_context |
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_CLINIC_ID text,
MED_DIRE_CD tex... | 有多些盐酸倍他司汀片(糖衣)的检查记录在医疗机构5715997? | SELECT COUNT(*) FROM t_kc22 WHERE t_kc22.t_kc21_MED_SER_ORG_NO = '5715997' AND t_kc22.SOC_SRT_DIRE_NM = '盐酸倍他司汀片(糖衣)' | css |
CREATE TABLE table_name_12 (
rider VARCHAR,
grid VARCHAR
) | Which Rider is grid 7? | SELECT rider FROM table_name_12 WHERE grid = 7 | sql_create_context |
CREATE TABLE table_78266 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | On January 15, what was the most in attendance? | SELECT MAX("Attendance") FROM table_78266 WHERE "Date" = 'january 15' | wikisql |
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases IN... | Give me a scatter chart about the correlation between the average price and the score of wines grouped by appellation? | SELECT AVG(Price), AVG(Score) FROM wine GROUP BY AVG(Price) | nvbench |
CREATE TABLE table_34329 (
"Call sign" text,
"Frequency MHz" text,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
) | what is the class of w269ax | SELECT "Class" FROM table_34329 WHERE "Call sign" = 'w269ax' | wikisql |
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... | 列出患者蒋天干在00年8月12日到15年1月13日内被开出的所有药品的清单,清单内容包括药物的编码、名称、数量、单价和金额 | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.QTY, t_kc22.UNIVALENT, t_kc22.AMOUNT FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '蒋天干' AND gwyjzb.IN_HOSP_DATE BETWEEN '2000-08-12' AND '2015-01-13' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_... | css |
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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | Just show the first name and the manager id with a bar chart, and I want to display by the names in desc. | SELECT T1.FIRST_NAME, T1.MANAGER_ID FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID WHERE T1.EMPLOYEE_ID = T2.MANAGER_ID ORDER BY T1.FIRST_NAME DESC | nvbench |
CREATE TABLE table_62236 (
"South West DFL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | What is the wins average when 17 games were lost? | SELECT AVG("Wins") FROM table_62236 WHERE "Losses" = '17' | wikisql |
CREATE TABLE table_72305 (
"Strongs #" real,
"Hebrew word" text,
"Strongs Transliteration" text,
"Strongs Words Compounded" text,
"English Spelling" text
) | What is the strongs words compounded when the english spelling is jonadab? | SELECT "Strongs Words Compounded" FROM table_72305 WHERE "English Spelling" = 'Jonadab' | wikisql |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE hz_info (
KH text,
KLX number... | 检验报告单97022779675是哪个审核人审核的,工号是多少,把姓名也查一下 | SELECT jybgb.SHRGH, jybgb.SHRXM FROM jybgb WHERE jybgb.BGDH = '97022779675' | css |
CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
)
CREATE TABLE personfriend (
name text,
friend text,
year number
) | Find the name of the person who has no student friends. | SELECT name FROM person EXCEPT SELECT T2.name FROM person AS T1 JOIN personfriend AS T2 ON T1.name = T2.friend WHERE T1.job = 'student' | spider |
CREATE TABLE table_72171 (
"Round" real,
"Grand Prix" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
) | How many drivers won the Italian Grand Prix? | SELECT COUNT("Winning Driver") FROM table_72171 WHERE "Grand Prix" = 'Italian Grand Prix' | wikisql |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
... | For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about manager_id over the job_id . | SELECT JOB_ID, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | nvbench |
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_... | show DL flights from BOSTON to SALT LAKE CITY | 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, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SALT LAKE CITY' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name =... | atis |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE hz_info_mzjzjlb (
JZLSH number,
YLJGDM number,
mzjzjlb_id number
)
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
... | 患者03485032的检验报告单中有多少检验结果指标均异常?查询检验报告的单号 | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info... | css |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE diagnosis (
diagnosisid number... | tell me the top four of the most common procedures until 2101? | SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE STRFTIME('%y', treatment.treatmenttime) <= '2101' GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 4 | eicu |
CREATE TABLE table_22385461_6 (
start___utc__ VARCHAR,
end__utc_ VARCHAR
) | What is the start date and time of the walk that ends March 28, 2005, 11:31? | SELECT start___utc__ FROM table_22385461_6 WHERE end__utc_ = "March 28, 2005, 11:31" | sql_create_context |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | what is the diagnosis long title of diagnosis icd9 code e8786? | SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "E8786" | mimicsql_data |
CREATE TABLE d_icd_procedures (
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 patients (
row_id number,... | tell me the total dose of furosemide prescribed to patient 40059 since 150 months ago? | SELECT SUM(prescriptions.dose_val_rx) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 40059) AND prescriptions.drug = 'furosemide' AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-150 month') | mimic_iii |
CREATE TABLE bdmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | 病人在门诊被诊断为躁狂型精神病时,其检测指标503506数值的平均值是多少,最值是多少 | SELECT AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE wdmzjzjlb.JZZDSM = '躁狂型精神病' AND jyjgzbb.JCZBDM = '5... | css |
CREATE TABLE table_64104 (
"School" text,
"Location" text,
"Mascot" text,
"Size" real,
"IHSAA Class" text,
"# / County" text,
"Year Joined" real,
"Previous Conference" text
) | What's the size of Centerville in 89 Wayne county with an IHSAA class of AA in the year before 1974? | SELECT "Size" FROM table_64104 WHERE "Year Joined" < '1974' AND "IHSAA Class" = 'aa' AND "# / County" = '89 wayne' AND "School" = 'centerville' | wikisql |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | 在医疗机构2027203里,有多少患者做了项目1591的检查 | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '2027203' AND t_kc22.SOC_SRT_DIRE_CD = '1591' | css |
CREATE TABLE table_name_41 (
television_service VARCHAR,
content VARCHAR,
hdtv VARCHAR
) | Which television service has programmi per adulti 24h/24 content and no HDTV? | SELECT television_service FROM table_name_41 WHERE content = "programmi per adulti 24h/24" AND hdtv = "no" | sql_create_context |
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE date_day (
... | give me the saturday morning flights with meals from CHICAGO to MINNEAPOLIS | SELECT DISTINCT flight_id FROM flight WHERE ((((flight_days IN (SELECT DAYSalias0.days_code FROM days AS DAYSalias0 WHERE DAYSalias0.day_name IN (SELECT DATE_DAYalias0.day_name FROM date_day AS DATE_DAYalias0 WHERE DATE_DAYalias0.day_number = 26 AND DATE_DAYalias0.month_number = 7 AND DATE_DAYalias0.year = 1991)) AND m... | atis |
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 prescription... | provide the number of patients whose ethnicity is black/cape verdean and drug type is base? | 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" | mimicsql_data |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | For those records from the products and each product's manufacturer, a bar chart shows the distribution of founder and the sum of revenue , and group by attribute founder. | SELECT Founder, SUM(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder | nvbench |
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE date_day ... | what is the cheapest one way fare between BOSTON and OAKLAND | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_... | atis |
CREATE TABLE table_name_93 (
crowd INTEGER,
home_team VARCHAR
) | What was the smallest crowd at a home game of carlton? | SELECT MIN(crowd) FROM table_name_93 WHERE home_team = "carlton" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.