context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_26661 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
) | Which contestant is from the province of baoruco | SELECT "Contestant" FROM table_26661 WHERE "Province, Community" = 'Baoruco' | wikisql |
CREATE TABLE table_name_42 (
points INTEGER,
artist VARCHAR,
place VARCHAR
) | What is the average Points when the artist is kamil mikul k and nela, and the Place is larger than 18? | SELECT AVG(points) FROM table_name_42 WHERE artist = "kamil mikulčík and nela" AND place > 18 | sql_create_context |
CREATE TABLE table_204_467 (
id number,
"date" text,
"opponents" text,
"h/a" text,
"result\nf-a" text,
"scorers" text,
"attendance" number
) | in how many games was sapsford a scorer ? | SELECT COUNT(*) FROM table_204_467 WHERE "scorers" = 'sapsford' | squall |
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, visualize a bar chart about the distribution of name and revenue , and group by attribute headquarter, and display bars in descending order. | SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter, T1.Name ORDER BY T1.Name DESC | nvbench |
CREATE TABLE table_30872 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | What position did Roseau High School (USHS-MN) play? | SELECT "Position" FROM table_30872 WHERE "College/junior/club team" = 'Roseau High School (USHS-MN)' | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | How many patients aged below 63 years had the drug pneumococcal vac polyvalent? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "63" AND prescriptions.drug = "PNEUMOcoccal Vac Polyvalent" | mimicsql_data |
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 (
... | give me the number of patients whose procedure long title is fiber-optic bronchoscopy? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Fiber-optic bronchoscopy" | mimicsql_data |
CREATE TABLE table_66565 (
"Year" text,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
) | What location did david mccann receive a siver and morgan fox win the gold? | SELECT "Location" FROM table_66565 WHERE "Silver" = 'david mccann' AND "Gold" = 'morgan fox' | wikisql |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeou... | when did patient 030-52327 have the minimum value of heartrate for the last time a day before? | 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 NOT vitalperiodic.heartrate IS NUL... | eicu |
CREATE TABLE zyb (
CLINIC_ID 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,
INSU_TYPE text,
IN... | 2155704这个医院在零三年十一月十日到零九年二月二十四日期间治疗过多少异地患者 | SELECT COUNT(*) FROM qtb WHERE qtb.MED_SER_ORG_NO = '2155704' AND qtb.IN_HOSP_DATE BETWEEN '2003-11-10' AND '2009-02-24' AND qtb.REMOTE_SETTLE_FLG = '异地1' OR qtb.REMOTE_SETTLE_FLG = '异地2' UNION SELECT COUNT(*) FROM gyb WHERE gyb.MED_SER_ORG_NO = '2155704' AND gyb.IN_HOSP_DATE BETWEEN '2003-11-10' AND '2009-02-24' AND g... | css |
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,
wa... | what was the first test which patient 002-4486 received since 12/2100? | SELECT lab.labname FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-4486')) AND STRFTIME('%y-%m', lab.labresulttime) >= '2100-12' ORDER BY lab.labresultt... | eicu |
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... | 病患柏哲茂在2019-02-14以后做过的检验报告在哪些门诊?列出这些门诊就诊的流水编码 | SELECT txmzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN txmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE person_info.XM = '柏哲茂' AND NOT txmzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ <= '2019-02-1... | css |
CREATE TABLE table_26295 (
"Bowl Game" text,
"Date" text,
"Stadium" text,
"City" text,
"Television" text,
"Matchup/Results" text,
"Attendance" real,
"Payout (US$)" text
) | What was the television that was dated December 28, 2009? | SELECT "Television" FROM table_26295 WHERE "Date" = 'December 28, 2009' | wikisql |
CREATE TABLE table_25538763_1 (
poles VARCHAR,
season VARCHAR,
points VARCHAR
) | How many pole data were given on season 2012 with 252 points? | SELECT COUNT(poles) FROM table_25538763_1 WHERE season = 2012 AND points = "252" | sql_create_context |
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 procedures_icd (
row_id number,
subject_id number,
... | when patient 85895 received a microbiology test for a urine for the last time during a month before? | SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 85895) AND microbiologyevents.spec_type_desc = 'urine' AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start o... | mimic_iii |
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Documents_with_Expenses (
Document_ID INTEG... | Show the average of account details for different statement details in a bar chart. | SELECT Statement_Details, AVG(Account_Details) FROM Accounts AS T1 JOIN Statements AS T2 ON T1.Statement_ID = T2.Statement_ID GROUP BY Statement_Details | nvbench |
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 the amount of All_Home over the All_Home , and group by attribute All_Home by a bar chart, I want to sort by the how many all home in desc please. | SELECT All_Home, COUNT(All_Home) FROM basketball_match GROUP BY All_Home ORDER BY COUNT(All_Home) DESC | nvbench |
CREATE TABLE table_17080868_7 (
location_attendance VARCHAR,
team VARCHAR
) | What was the attendance of the Indiana game? | SELECT location_attendance FROM table_17080868_7 WHERE team = "Indiana" | sql_create_context |
CREATE TABLE tryout (
cName VARCHAR,
pPos VARCHAR
) | Find the names of schools that have some players in the mid position but not in the goalie position. | SELECT cName FROM tryout WHERE pPos = 'mid' EXCEPT SELECT cName FROM tryout WHERE pPos = 'goalie' | sql_create_context |
CREATE TABLE table_name_62 (
title VARCHAR,
presentation_of_credentials VARCHAR
) | Name the title with presentation of credentials of april 10, 1907 | SELECT title FROM table_name_62 WHERE presentation_of_credentials = "april 10, 1907" | sql_create_context |
CREATE TABLE table_name_50 (
fastest_lap VARCHAR,
winning_driver VARCHAR,
pole_position VARCHAR
) | Who had the fastest lap when adam christodoulou was the winning driver and had the pole position? | SELECT fastest_lap FROM table_name_50 WHERE winning_driver = "adam christodoulou" AND pole_position = "adam christodoulou" | sql_create_context |
CREATE TABLE table_25220 (
"Rnd" real,
"Date" text,
"Race Name" text,
"Length" text,
"Track" text,
"Location" text,
"Pole Position" text,
"Winning Driver" text
) | Name the location for trenton 300 | SELECT "Location" FROM table_25220 WHERE "Race Name" = 'Trenton 300' | 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,... | 在04年7月13日到2012年6月26日之间患者65683500自费花多于6686.51元的药品总量为多少? | SELECT COUNT(*) 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.PERSON_ID = '65683500' AND t_kc22.STA_DATE BETWEEN '2004-07-13' AND '2012-06-26' AND t_kc22.SELF_PAY_AMO > 6686.51 | css |
CREATE TABLE table_65715 (
"Player" text,
"Round" real,
"Pick" real,
"Position" text,
"NFL Club" text
) | Which Round has a Pick larger than 179? | SELECT MAX("Round") FROM table_65715 WHERE "Pick" > '179' | wikisql |
CREATE TABLE table_76408 (
"Particle name" text,
"Particle symbol" text,
"Antiparticle symbol" text,
"Quark content" text,
"Rest mass ( MeV / c 2 )" text,
"J P C" text,
"Mean lifetime ( s )" text,
"Commonly decays to (>5% of decays)" text
) | What is the antiparticle symbol with a rest mess (mev/c2) of .47 .33? | SELECT "Antiparticle symbol" FROM table_76408 WHERE "Rest mass ( MeV / c 2 )" = '.47 ± .33' | wikisql |
CREATE TABLE table_75118 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | What was the score of the game with a loss of Maholm (2 4)? | SELECT "Score" FROM table_75118 WHERE "Loss" = 'maholm (2–4)' | wikisql |
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
)
... | what is admission type and discharge location of subject id 990? | SELECT demographic.admission_type, demographic.discharge_location FROM demographic WHERE demographic.subject_id = "990" | mimicsql_data |
CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stock int
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price... | For each phone, show its names and total number of stocks Visualize by bar chart, and could you sort in ascending by the names? | SELECT Name, SUM(T1.Num_of_stock) FROM phone_market AS T1 JOIN phone AS T2 ON T1.Phone_ID = T2.Phone_ID GROUP BY T2.Name ORDER BY Name | nvbench |
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... | 在两千零二年一月七日到二零一零年一月二日期间,魏嘉云这个病患在医院7989526被开的所有的药的编码和药物名称都列出来 | SELECT SOC_SRT_DIRE_CD, SOC_SRT_DIRE_NM FROM t_kc22 WHERE MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_NM = '魏嘉云' AND MED_SER_ORG_NO = '7989526' AND IN_HOSP_DATE BETWEEN '2002-01-07' AND '2010-01-02') | css |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE... | Find Questions with No Answers by Users with 1 Reputation. | SELECT q.Id, q.Title, q.CreationDate, q.Body, q.Tags FROM Posts AS q, Users AS u WHERE q.AnswerCount = 0 AND q.OwnerUserId = u.Id AND u.Reputation = 1 AND NOT q.PostTypeId = 2 ORDER BY CreationDate DESC | sede |
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... | 以往,患者71329181的门诊诊断结果怎么样? | SELECT mzjzjlb.JZZDBM, mzjzjlb.JZZDSM FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '71329181' | css |
CREATE TABLE table_41153 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | Which Points has a Difference of 3, and a Played smaller than 10? | SELECT AVG("Points") FROM table_41153 WHERE "Difference" = '3' AND "Played" < '10' | wikisql |
CREATE TABLE table_204_229 (
id number,
"property" text,
"test method" text,
"units" text,
"4275" text,
"4301" text,
"4435" text,
"4630" text,
"4645" text
) | how many times does mpa -lrb- kpsi -rrb- appear under the units column ? | SELECT COUNT(*) FROM table_204_229 WHERE "units" = 'mpa (kpsi)' | squall |
CREATE TABLE table_name_19 (
result VARCHAR,
opponent VARCHAR
) | What is Result, when Opponent is 'Rochester Royals'? | SELECT result FROM table_name_19 WHERE opponent = "rochester royals" | sql_create_context |
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... | Visualize a bar chart about the distribution of All_Home and the sum of Team_ID , and group by attribute All_Home, and I want to show in ascending by the x axis please. | SELECT All_Home, SUM(Team_ID) FROM basketball_match GROUP BY All_Home ORDER BY All_Home | nvbench |
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_re... | are there any flights on US from PITTSBURGH to ATLANTA on wednesday | 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 = 'ATLANTA' AND date_day.day_number = 23 AND date_day.month_number = 4 AND ... | atis |
CREATE TABLE table_13606924_1 (
kerry__number VARCHAR,
county VARCHAR
) | what's the kerry # with county being ness county, kansas | SELECT kerry__number FROM table_13606924_1 WHERE county = "Ness county, Kansas" | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | how many patients are diagnosed with other anomalies of larnyx, trachea and bronchus? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Other anomalies of larynx, trachea, and bronchus" | 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... | how many patients whose insurance is medicaid and diagnoses long title is other chronic pain? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicaid" AND diagnoses.long_title = "Other chronic pain" | mimicsql_data |
CREATE TABLE table_55136 (
"Year" real,
"Award" text,
"Category" text,
"Nominated work" text,
"Result" text
) | Did the nominated work of white valentine win an award? | SELECT "Result" FROM table_55136 WHERE "Nominated work" = 'white valentine' | wikisql |
CREATE TABLE table_77859 (
"Code" real,
"Type" text,
"Name" text,
"Area (km 2 )" real,
"Population" real,
"Regional County Municipality" text,
"Metropolitan area" text,
"Region" real
) | What is the largest region with a Code smaller than 66112, and a Name of l' le-dorval? | SELECT MAX("Region") FROM table_77859 WHERE "Code" < '66112' AND "Name" = 'l''île-dorval' | 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... | 列出患者何丽姿的医疗记录中每一次药品消费金额不低于8447.75元的医疗就诊编号 | SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_NM = '何丽姿' AND NOT MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc22 WHERE AMOUNT < 8447.75) | css |
CREATE TABLE table_204_381 (
id number,
"sum" number,
"mongolian" number,
"population\n(2005)" number,
"population\n(2008)" number,
"population\n(2009)" number,
"area\nkm2" number,
"density\n/km2" number,
"sum centre\npopulation" number
) | what is the least population of 2009 ? | SELECT MIN("population\n(2009)") FROM table_204_381 | squall |
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
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,
depart... | what is the fare from BOSTON to SAN FRANCISCO on UA flight 21 | 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 (((flight.airline_code = 'UA') AND flight.flight_number = 21) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANC... | atis |
CREATE TABLE table_21500850_1 (
song_title VARCHAR,
year VARCHAR
) | What is every song title for 2007? | SELECT song_title FROM table_21500850_1 WHERE year = 2007 | sql_create_context |
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone... | flights from CINCINNATI 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 = 'CINCINNATI' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAL... | atis |
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... | 有多少医生在2001年12月6日到2019年12月13日期间给39252424号患者看过病? | SELECT COUNT(wdmzjzjlb.ZZYSGH) FROM hz_info JOIN wdmzjzjlb ON hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX WHERE hz_info.RYBH = '39252424' AND wdmzjzjlb.JZKSRQ BETWEEN '2001-12-06' AND '2019-12-13' UNION SELECT COUNT(bdmzjzjlb.ZZYSGH) FROM hz_info JOIN bdmzjzjlb ON hz_... | css |
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,
... | what is the number of patients whose age is less than 61 and drug route is im? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "61" AND prescriptions.route = "IM" | mimicsql_data |
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,
... | count the number of patients who have a diagnoses of other respiratory problems after birth. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Resp prob after brth NEC" | mimicsql_data |
CREATE TABLE certificate (
eid number(9,0),
aid number(9,0)
)
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE employee (
ei... | Show name and distance for all aircrafts Visualize by bar chart, order names from low to high order please. | SELECT name, distance FROM aircraft ORDER BY name | nvbench |
CREATE TABLE table_57522 (
"Team" text,
"Games Played" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Goals For" real,
"Goals Against" real
) | How many goals for were scored for the team(s) that won fewer than 4 games and lost more than 6? | SELECT SUM("Goals For") FROM table_57522 WHERE "Wins" < '4' AND "Losses" > '6' | wikisql |
CREATE TABLE table_62414 (
"Date" text,
"Round" text,
"Opponents" text,
"H / A" text,
"Result F\u2013A" text,
"Attendance" real
) | What is the Result F-A that was the quarter-final first leg round with a H/A of h? | SELECT "Result F\u2013A" FROM table_62414 WHERE "H / A" = 'h' AND "Round" = 'quarter-final first leg' | wikisql |
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_proje... | Which upper elective courses can CS students take ? | SELECT DISTINCT course.department, course.name, course.number FROM course, program_course WHERE program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id | advising |
CREATE TABLE table_39880 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | In what format was the release from the Nebt068 catalog on April 11, 2005 in? | SELECT "Format" FROM table_39880 WHERE "Date" = 'april 11, 2005' AND "Catalog" = 'nebt068' | wikisql |
CREATE TABLE table_67465 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points Classification" text,
"Team Classification" text
) | Name the points classification for quick step-innergetic with stage 7 | SELECT "Points Classification" FROM table_67465 WHERE "Team Classification" = 'quick step-innergetic' AND "Stage" = '7' | wikisql |
CREATE TABLE table_name_93 (
club_province VARCHAR,
player VARCHAR,
position VARCHAR,
caps VARCHAR
) | What is the club/province of Sireli Bobo, who plays wing and has less than 24 caps? | SELECT club_province FROM table_name_93 WHERE position = "wing" AND caps < 24 AND player = "sireli bobo" | sql_create_context |
CREATE TABLE table_16936 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
) | what's the date with tournament value of ford senior players championship | SELECT "Date" FROM table_16936 WHERE "Tournament" = 'Ford Senior Players Championship' | wikisql |
CREATE TABLE table_1574968_1 (
viewer VARCHAR,
language VARCHAR
) | Which viewers have the language of troff (typesetter runoff) , groff (gnu runoff)? | SELECT viewer FROM table_1574968_1 WHERE language = "troff (typesetter runoff) , groff (GNU runoff)" | 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... | how many patients are diagnosed for abnormal coagulation profile and tested under the chemistry lab category? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Abnormal coagulation profile" AND lab."CATEGORY" = "Chemistry" | mimicsql_data |
CREATE TABLE table_29920800_1 (
written_by VARCHAR,
us_viewers__million_ VARCHAR
) | Who wrote the episode that was watched by 2.97 million U.S. viewers? | SELECT written_by FROM table_29920800_1 WHERE us_viewers__million_ = "2.97" | sql_create_context |
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE time_zone (
time_zone_cod... | is there a UA flight from BALTIMORE to SAN FRANCISCO on the morning of 8 27 | 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 = 'SAN FRANCISCO' AND date_day.day_number = 27 AND date_day.month_number =... | atis |
CREATE TABLE table_name_95 (
position VARCHAR,
round VARCHAR
) | What Position has a Round of 27? | SELECT position FROM table_name_95 WHERE round = 27 | sql_create_context |
CREATE TABLE table_58929 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the rank of a country with more than 2 gold, less than 5 silver, and less than 31 total medals? | SELECT SUM("Rank") FROM table_58929 WHERE "Gold" > '2' AND "Total" < '31' AND "Silver" < '5' | wikisql |
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 locations (
LOCATION_ID decimal(4,0),... | Show each employee's salary using a bar chart, note that use the last name of each employee. | SELECT LAST_NAME, SALARY FROM employees | nvbench |
CREATE TABLE table_21363 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | What was the record against Washington? | SELECT COUNT("Record") FROM table_21363 WHERE "Team" = 'Washington' | wikisql |
CREATE TABLE table_name_50 (
water VARCHAR,
wood VARCHAR
) | Which water has green wood? | SELECT water FROM table_name_50 WHERE wood = "green" | sql_create_context |
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE pap... | how many papers does nicola dell have at chi | SELECT DISTINCT COUNT(paper.paperid) FROM author, paper, venue, writes WHERE author.authorname = 'nicola dell' AND venue.venueid = paper.venueid AND venue.venuename = 'chi' AND writes.authorid = author.authorid AND writes.paperid = paper.paperid | scholar |
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... | how many male patients had the procedure icd9 code 9703? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "M" AND procedures.icd9_code = "9703" | mimicsql_data |
CREATE TABLE table_50568 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | What country is Gary Player from in T9 place? | SELECT "Country" FROM table_50568 WHERE "Place" = 't9' AND "Player" = 'gary player' | wikisql |
CREATE TABLE table_name_13 (
regionalliga_süd VARCHAR,
season VARCHAR
) | What is the Regionalliga Sud for 1995-96? | SELECT regionalliga_süd FROM table_name_13 WHERE season = "1995-96" | sql_create_context |
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEG... | Find the number of students whose age is younger than the average age and group by students' first name in a bar chart, could you show in descending by the y axis? | SELECT Fname, COUNT(Fname) FROM Student WHERE Age < (SELECT AVG(Age) FROM Student) GROUP BY Fname ORDER BY COUNT(Fname) DESC | nvbench |
CREATE TABLE table_4597 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
) | What position does the player from Oklahoma who was drafted in round 7 play? | SELECT "Position" FROM table_4597 WHERE "Round" = '7' AND "College" = 'oklahoma' | 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,
... | 医院2507652在11年1月26日到10月9日这段时间里的所有的医疗就诊记录中有哪些科室02592没有负责? | SELECT * FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '2507652' AND gwyjzb.IN_HOSP_DATE BETWEEN '2011-06-26' AND '2011-10-09' UNION SELECT * FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '2507652' AND fgwyjzb.IN_HOSP_DATE BETWEEN '2011-06-26' AND '2011-10-09' EXCEPT SELECT * FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '250765... | css |
CREATE TABLE table_10568553_1 (
milepost VARCHAR,
street_names VARCHAR
) | How many mileposts are there on Anne Street? | SELECT COUNT(milepost) FROM table_10568553_1 WHERE street_names = "Anne Street" | sql_create_context |
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE airline (
airline_code... | i would like to plan a flight on AA from BOSTON to DENVER | 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 = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON... | atis |
CREATE TABLE table_2897457_7 (
position VARCHAR,
college_junior_club_team VARCHAR
) | What position did Roseau High School (USHS-MN) play? | SELECT position FROM table_2897457_7 WHERE college_junior_club_team = "Roseau High School (USHS-MN)" | sql_create_context |
CREATE TABLE table_21564794_3 (
championships_in_st_louis VARCHAR,
began_in_st_louis VARCHAR
) | How may championships were won by the team that started in 1950? | SELECT championships_in_st_louis FROM table_21564794_3 WHERE began_in_st_louis = 1950 | sql_create_context |
CREATE TABLE table_43267 (
"Date" text,
"Label" text,
"Format" text,
"Country" text,
"Catalog" text
) | What Date was the Country of japan, and a Label of sony? | SELECT "Date" FROM table_43267 WHERE "Country" = 'japan' AND "Label" = 'sony' | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | what is death status of subject id 6983? | SELECT demographic.expire_flag FROM demographic WHERE demographic.subject_id = "6983" | mimicsql_data |
CREATE TABLE table_name_7 (
score VARCHAR,
partnering VARCHAR
) | What was the score of the game with Nathalie Tauziat as a partner? | SELECT score FROM table_name_7 WHERE partnering = "nathalie tauziat" | sql_create_context |
CREATE TABLE table_31730 (
"Hangul" text,
"Hanja" text,
"Revised" text,
"McCune-Reischauer" text,
"Estimated distribution (2000)*" real
) | Name the hanja for hangul of | SELECT "Hanja" FROM table_31730 WHERE "Hangul" = '주' | wikisql |
CREATE TABLE table_name_36 (
year INTEGER,
points VARCHAR,
chassis VARCHAR
) | What was the earliest year for a car with 3 points and Cooper t20 chassis? | SELECT MIN(year) FROM table_name_36 WHERE points = 3 AND chassis = "cooper t20" | sql_create_context |
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE time_zone (
time_zone_cod... | please show me again the FIRST class fares from BALTIMORE to DALLAS | 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, fare_basis, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BALTIMORE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code A... | atis |
CREATE TABLE table_58194 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | How large was the crowd when North Melbourne played as the away team? | SELECT "Crowd" FROM table_58194 WHERE "Away team" = 'north melbourne' | wikisql |
CREATE TABLE table_12637 (
"Clubs" text,
"Seasons at this level" text,
"Settlements" text,
"Season joined league" text,
"Position in 1960/1961" text
) | Which club has played for 27 seasons at this level? | SELECT "Clubs" FROM table_12637 WHERE "Seasons at this level" = '27 seasons' | wikisql |
CREATE TABLE table_name_31 (
team__number2 VARCHAR,
team__number1 VARCHAR
) | What is the team #2 with Deport as team #1? | SELECT team__number2 FROM table_name_31 WHERE team__number1 = "deport" | 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... | how many patients with ventricular tachycardia had medicaid insurance? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicaid" AND demographic.diagnosis = "VENTRICULAR TACHYCARDIA" | mimicsql_data |
CREATE TABLE table_name_35 (
opponent VARCHAR,
date VARCHAR
) | Who was the opponent for the game on November 20, 1955? | SELECT opponent FROM table_name_35 WHERE date = "november 20, 1955" | sql_create_context |
CREATE TABLE Lessons (
lesson_id INTEGER,
customer_id INTEGER,
lesson_status_code VARCHAR(15),
staff_id INTEGER,
vehicle_id INTEGER,
lesson_date DATETIME,
lesson_time VARCHAR(10),
price DOUBLE
)
CREATE TABLE Staff (
staff_id INTEGER,
staff_address_id INTEGER,
nickname VARCHA... | What is the date of birth of every customer whose status code is 'Good Customer', and count them by a bar chart, I want to rank by the total number from low to high. | SELECT date_of_birth, COUNT(date_of_birth) FROM Customers WHERE customer_status_code = 'Good Customer' ORDER BY COUNT(date_of_birth) | nvbench |
CREATE TABLE PostTypes (
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,
ProfileImage... | Posts whose titles are prefixed with one of its tags. Posts whose titles are of the form 'Tag: Blah blah blah', where 'Tag' is already one of the tags on that post. | SELECT Id AS "post_link", Title FROM Posts WHERE Title LIKE '%:%' AND LEFT(Title, STR_POSITION(Title, ':') - 1) IN (SELECT Tags.TagName FROM PostTags INNER JOIN Tags ON PostTags.TagId = Tags.Id WHERE PostTags.PostId = Posts.Id) ORDER BY CreationDate DESC | sede |
CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
) | Display a pie chart for how many climbers are from each country? | SELECT Country, COUNT(*) FROM climber GROUP BY Country | nvbench |
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... | tell me the type of admission and the prescription drug for the patient with patient id 2560. | SELECT demographic.admission_type, prescriptions.drug FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE table_52842 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | Who drove the car with a grid of 7? | SELECT "Driver" FROM table_52842 WHERE "Grid" = '7' | wikisql |
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar... | i want to fly from BALTIMORE to DALLAS round trip | 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, fare, flight, flight_fare WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND NOT fare.round_trip_cost IS NULL AND flight_fare.fare_id =... | atis |
CREATE TABLE table_name_32 (
year_s__retired VARCHAR,
serial_numbers VARCHAR
) | What year were the retired serial numbers 27317 27336? | SELECT year_s__retired FROM table_name_32 WHERE serial_numbers = "27317–27336" | sql_create_context |
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE program (
program_id int,
name varchar,
... | Provide me with some easy 300 -level courses ? | SELECT DISTINCT course.name, course.number, program_course.workload FROM course, program_course WHERE course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND program_course.course_id = course.course_id AND program_course.workload < 3 ORDER BY program_course.workload | advising |
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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
... | For those employees whose first name does not containing the letter M, display their average salary by binning the hire date into Month interval for visualizing a bar chart, and list from high to low by the y axis. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT FIRST_NAME LIKE '%M%' ORDER BY AVG(SALARY) DESC | nvbench |
CREATE TABLE table_63871 (
"Contestant" text,
"Starting Weight (kg)" real,
"Final Weight (kg)" real,
"Weight Lost (kg)" real,
"Percentage Lost" text,
"Position (out of Eliminated Contestants)" text
) | What is the Percentage Lost for the contestant with a starting weight above 102 kg who lost 46.9 kg? | SELECT "Percentage Lost" FROM table_63871 WHERE "Starting Weight (kg)" > '102' AND "Weight Lost (kg)" = '46.9' | wikisql |
CREATE TABLE table_204_541 (
id number,
"name" text,
"area" text,
"height" text,
"floors" number,
"year" number
) | which building had the least number of floors ? | SELECT "name" FROM table_204_541 ORDER BY "floors" LIMIT 1 | squall |
CREATE TABLE table_6928 (
"Name" text,
"Overs Bowled" real,
"Maidens" real,
"Runs Conceded" real,
"Wickets" real,
"Extras" real,
"E.R." real
) | What is the lowest Extras for Chamara Kapugedera, with an E.R. less than 4.59? | SELECT MIN("Extras") FROM table_6928 WHERE "Name" = 'chamara kapugedera' AND "E.R." < '4.59' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.