context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE aircraft (
Aircraft_ID int(11),
Aircraft varchar(50),
Description varchar(50),
Max_Gross_Weight varchar(50),
Total_disk_area varchar(50),
Max_disk_Loading varchar(50)
)
CREATE TABLE pilot (
Pilot_Id int(11),
Name varchar(50),
Age int(11)
)
CREATE TABLE match (
Roun... | What are the number of the descriptions for the aircrafts?, and rank by the Y-axis in desc please. | SELECT Description, COUNT(Description) FROM aircraft GROUP BY Description ORDER BY COUNT(Description) DESC | nvbench |
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
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE date_day (
mon... | list the cheapest one way flight from MIAMI FLORIDA to CHARLOTTE NORTH CAROLINA | 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, state AS STATE_0, state AS STATE_1 WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'MIAMI' AND CITY_1.city_code = AIRP... | atis |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugsto... | what are the four most commonly prescribed drugs that patients were prescribed in the same hospital visit after receiving a stress ulcer prophylaxis - esomeprazole procedure in a year before? | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'stress ulcer pr... | eicu |
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 prescription... | count the number of patients whose admission year is less than 2167 and diagnoses short title is heart valve replac nec? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2167" AND diagnoses.short_title = "Heart valve replac NEC" | mimicsql_data |
CREATE TABLE table_14631909_1 (
english_title VARCHAR,
author VARCHAR
) | What is the English version of Mariusz Szczygie book? | SELECT english_title FROM table_14631909_1 WHERE author = "Mariusz Szczygieł" | sql_create_context |
CREATE TABLE table_name_45 (
surface VARCHAR,
partner VARCHAR,
date VARCHAR
) | Which Surface has a Partner of jim thomas, and a Date of 2007? | SELECT surface FROM table_name_45 WHERE partner = "jim thomas" AND date = 2007 | sql_create_context |
CREATE TABLE table_204_288 (
id number,
"region" text,
"seed" number,
"team" text,
"coach" text,
"finished" text,
"final opponent" text,
"score" text
) | how many midwest teams played southwestern louisiana as their final opponent ? | SELECT COUNT("team") FROM table_204_288 WHERE "region" = 'midwest' AND "final opponent" = 'southwestern louisiana' | squall |
CREATE TABLE event (
stadium_id VARCHAR,
id VARCHAR
)
CREATE TABLE record (
event_id VARCHAR
)
CREATE TABLE stadium (
name VARCHAR,
id VARCHAR
) | Find the names of stadiums that the most swimmers have been to. | SELECT t3.name FROM record AS t1 JOIN event AS t2 ON t1.event_id = t2.id JOIN stadium AS t3 ON t3.id = t2.stadium_id GROUP BY t2.stadium_id ORDER BY COUNT(*) DESC LIMIT 1 | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
ic... | what was the first specimen test of patient 031-4423? | SELECT microlab.culturesite FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-4423')) ORDER BY microlab.culturetakentime LIMIT 1 | eicu |
CREATE TABLE table_name_3 (
tournament VARCHAR,
score VARCHAR
) | Which tournament had a score of 6 7 (0 7) , 6 2, 4 6? | SELECT tournament FROM table_name_3 WHERE score = "6–7 (0–7) , 6–2, 4–6" | sql_create_context |
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE PostHistoryTypes (
Id number,
Name te... | Closed questions tagged 'books' with more than one tag.. | SELECT * FROM Posts AS p WHERE p.PostTypeId = 1 AND p.Tags LIKE '%<advice>%' AND p.OwnerUserId = 43372 | sede |
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 mzjzjlb (
HXPLC number,
HZXM ... | 在门诊检查的邹元良患者在查出疾病F78.797时的检测指标290838的结果定量及其单位各是多少? | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND 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 ... | css |
CREATE TABLE table_name_63 (
general_classification VARCHAR,
stage VARCHAR
) | What is the general classification with a 13 stage? | SELECT general_classification FROM table_name_63 WHERE stage = "13" | sql_create_context |
CREATE TABLE table_2807 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | Who tied for the highest rebounds during the game against Orlando? | SELECT "High rebounds" FROM table_2807 WHERE "Team" = 'Orlando' | wikisql |
CREATE TABLE table_20278 (
"Name" text,
"Overs Bowled" text,
"Maidens" real,
"Runs Conceded" real,
"Wickets" real,
"Extras" real,
"E.R." text
) | How many runs conceded when the earned runs was 4.96? | SELECT "Runs Conceded" FROM table_20278 WHERE "E.R." = '4.96' | wikisql |
CREATE TABLE channel (
Channel_ID int,
Name text,
Owner text,
Share_in_percent real,
Rating_in_percent real
)
CREATE TABLE program (
Program_ID int,
Name text,
Origin text,
Launch real,
Owner text
)
CREATE TABLE broadcast_share (
Channel_ID int,
Program_ID int,
Date... | Count the number of programs broadcast for each time section of a day in a bar chart. | SELECT Time_of_day, COUNT(*) FROM broadcast GROUP BY Time_of_day | nvbench |
CREATE TABLE delivery_route_locations (
location_code text,
route_id number,
location_address_id number,
location_name text
)
CREATE TABLE customer_addresses (
customer_id number,
address_id number,
date_from time,
address_type text,
date_to time
)
CREATE TABLE regular_orders (
... | Find the payment method that is used most frequently. | SELECT payment_method FROM customers GROUP BY payment_method ORDER BY COUNT(*) DESC LIMIT 1 | spider |
CREATE TABLE Products_in_Events (
Product_Name VARCHAR,
Product_ID VARCHAR
)
CREATE TABLE Products (
Product_Name VARCHAR,
Product_ID VARCHAR
) | List the names of products that are not in any event. | SELECT Product_Name FROM Products WHERE NOT Product_ID IN (SELECT Product_ID FROM Products_in_Events) | sql_create_context |
CREATE TABLE table_9222 (
"Event" text,
"Time" text,
"Name" text,
"Nation" text,
"Games" text,
"Date" text
) | On what day was the record set at the 2002 Salt Lake City games with a time of 3:57.70? | SELECT "Date" FROM table_9222 WHERE "Games" = '2002 salt lake city' AND "Time" = '3:57.70' | wikisql |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid nu... | how many patients had been discharged from the hospital in a year before. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE NOT admissions.dischtime IS NULL AND DATETIME(admissions.dischtime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | mimic_iii |
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,
... | 这个检验报告单61753289782的审核人是谁担任的,他的工号以及姓名是什么? | SELECT zyjybgb.SHRGH, zyjybgb.SHRXM FROM zyjybgb WHERE zyjybgb.BGDH = '61753289782' UNION SELECT mzjybgb.SHRGH, mzjybgb.SHRXM FROM mzjybgb WHERE mzjybgb.BGDH = '61753289782' | css |
CREATE TABLE table_74067 (
"Episode No. Episode No. refers to the episodes number in the overall series, whereas Series No. refers to the episodes number in this particular series." real,
"Series No." real,
"Episode" text,
"Director" text,
"Writer" text,
"Original airdate" text
) | Name the least series number for episode number being 78 | SELECT MIN("Series No.") FROM table_74067 WHERE "Episode No. Episode No. refers to the episodes number in the overall series, whereas Series No. refers to the episodes number in this particular series." = '78' | 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... | find the number of patients with procedure icd9 code 46 who had inpatient hospital admission. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND procedures.icd9_code = "46" | mimicsql_data |
CREATE TABLE table_name_98 (
island VARCHAR,
density__per_km²_ VARCHAR
) | Which island has a density (per km ) of 1,368? | SELECT island FROM table_name_98 WHERE density__per_km²_ = "1,368" | sql_create_context |
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 prescriptions... | how many patients diagnosed with short title ac vasc insuff intestine have had lab test belonging to the category blood gas? | 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.short_title = "Ac vasc insuff intestine" AND lab."CATEGORY" = "Blood Gas" | mimicsql_data |
CREATE TABLE table_name_33 (
chassis VARCHAR,
year VARCHAR
) | Name the chassis of 1961 | SELECT chassis FROM table_name_33 WHERE year = 1961 | sql_create_context |
CREATE TABLE table_14996 (
"Wrestler" text,
"Reigns" text,
"Days held" real,
"Location" text,
"Successful defenses" text,
"Event" text
) | What successful defenses has 126 days held and a Reigns of 3? | SELECT "Successful defenses" FROM table_14996 WHERE "Days held" = '126' AND "Reigns" = '3' | wikisql |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | 请提供检验报告单21931181267的检验申请机构和检验机构这两家机构的名称 | SELECT jybgb.JYSQJGMC, jybgb.JYJGMC FROM jybgb WHERE jybgb.BGDH = '21931181267' | css |
CREATE TABLE table_name_30 (
_inches VARCHAR,
skin_depth INTEGER,
resistivity__10_−6_ohm_inches_ VARCHAR,
relative_permeability VARCHAR
) | What is the sum of skin depth with a resistivity of 1.12 and a relative permeability larger than 1? | SELECT SUM(skin_depth), _inches FROM table_name_30 WHERE resistivity__10_−6_ohm_inches_ = 1.12 AND relative_permeability > 1 | sql_create_context |
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_... | list flights and fares from TACOMA to ORLANDO round trip leaving saturday returning next saturday | SELECT DISTINCT flight.flight_id FROM fare, flight, flight_fare WHERE (((flight.from_airport IN (SELECT AIRPORT_SERVICEalias0.airport_code FROM airport_service AS AIRPORT_SERVICEalias0 WHERE AIRPORT_SERVICEalias0.city_code IN (SELECT CITYalias0.city_code FROM city AS CITYalias0 WHERE CITYalias0.city_name = 'TACOMA')) A... | atis |
CREATE TABLE table_2159571_2 (
vacator VARCHAR,
reason_for_change VARCHAR
) | Who is every vacator with reason for change as resigned December 31, 1959? | SELECT vacator FROM table_2159571_2 WHERE reason_for_change = "Resigned December 31, 1959" | sql_create_context |
CREATE TABLE table_name_40 (
place VARCHAR,
round_1 VARCHAR,
year VARCHAR
) | Round 1 of beat lee janzen 3&2, and a Year smaller than 1998 has what total number of place? | SELECT COUNT(place) FROM table_name_40 WHERE round_1 = "beat lee janzen 3&2" AND year < 1998 | sql_create_context |
CREATE TABLE table_name_54 (
points INTEGER,
year INTEGER
) | What are the average points after 1992? | SELECT AVG(points) FROM table_name_54 WHERE year > 1992 | sql_create_context |
CREATE TABLE table_name_9 (
location_attendance VARCHAR,
game VARCHAR
) | What Location Attendance has a Game of 4? | SELECT location_attendance FROM table_name_9 WHERE game = "4" | sql_create_context |
CREATE TABLE table_name_73 (
crew_chief VARCHAR,
team VARCHAR
) | Who was the crew chief for the team from Make Motorsports? | SELECT crew_chief FROM table_name_73 WHERE team = "make motorsports" | sql_create_context |
CREATE TABLE table_33604 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What was the score for the home team of essendon? | SELECT "Home team score" FROM table_33604 WHERE "Home team" = 'essendon' | wikisql |
CREATE TABLE table_204_586 (
id number,
"game" number,
"date" text,
"team" text,
"score" text,
"high points" text,
"high rebounds" text,
"high assists" text,
"location\nattendance" text,
"record" text
) | how many games were in the 2010 pre season schedule for the los angeles clippers ? | SELECT COUNT("game") FROM table_204_586 | squall |
CREATE TABLE table_60878 (
"English Name" text,
"Simplified" text,
"Traditional" text,
"Pinyin" text,
"Area" text,
"Population" text,
"Density" text
) | What shows for simplified when the density is 52? | SELECT "Simplified" FROM table_60878 WHERE "Density" = '52' | wikisql |
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departu... | show me all flights from SAN FRANCISCO to BOSTON on 11 10 | 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 = 'BOSTON' AND date_day.day_number = 10 AND date_day.month_number = 11 AND d... | atis |
CREATE TABLE table_32195 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | On what date did Brunswick Street Oval see more than 19,500 people? | SELECT "Date" FROM table_32195 WHERE "Crowd" > '19,500' AND "Venue" = 'brunswick street oval' | wikisql |
CREATE TABLE table_name_45 (
tie_no INTEGER,
home_team VARCHAR,
date VARCHAR
) | What was the highest Tie no when the home team was the Bolton Wanderers, and the date was Middlesbrough? | SELECT MAX(tie_no) FROM table_name_45 WHERE home_team = "bolton wanderers" AND date = "middlesbrough" | sql_create_context |
CREATE TABLE table_204_642 (
id number,
"team" text,
"domestic tournament" text,
"position" text,
"appearance" text,
"qualified" text
) | what is the total number of teams that qualified ? | SELECT COUNT("team") FROM table_204_642 | squall |
CREATE TABLE table_27277284_28 (
ht VARCHAR,
release_date VARCHAR
) | What's the ht for the model released on June 4, 2008? | SELECT ht FROM table_27277284_28 WHERE release_date = "June 4, 2008" | sql_create_context |
CREATE TABLE table_name_93 (
venue VARCHAR,
year VARCHAR,
competition VARCHAR,
event VARCHAR
) | what is the venue when the competition is asian games, the event is 4x400 m relay and the year is 2002? | SELECT venue FROM table_name_93 WHERE competition = "asian games" AND event = "4x400 m relay" AND year = 2002 | 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 cost (
row_id number,
subject_id number,
hadm_id nu... | when had patient 31169 come to the hospital for the first time since 2101 via er admit? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 31169 AND admissions.admission_location = 'emergency room admit' AND STRFTIME('%y', admissions.admittime) >= '2101' ORDER BY admissions.admittime LIMIT 1 | mimic_iii |
CREATE TABLE table_16314 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | Which player went to college at Saint Mary's? | SELECT "Player" FROM table_16314 WHERE "College" = 'Saint Mary''s' | 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... | 医疗机构6823656的统筹总金额和总金额是多少元在08年9月28日到11年5月10日内? | SELECT SUM(t_kc24.MED_AMOUT) FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '6823656' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2008-09-28' AND '2011-05-10' UNION SELECT SUM(t_kc24.MED_AMOUT) FROM gyb JOIN t_kc24 ON gyb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gyb.MED_SER_ORG_NO... | css |
CREATE TABLE hz_info_zyjzjlb (
JZLSH number,
YLJGDM number,
zyjzjlb_id number
)
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,
... | 在18年2月11日至18年6月8日内所有检验报告单中的标本采集部位患者78981064的是都在哪? | SELECT jybgb.BBCJBW FROM hz_info JOIN mzjzjlb JOIN jybgb 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 WHERE hz_info.RYBH = '78981064' AND jybgb.BGRQ BETWEEN '2018-02-11' AND '2018-06-08' UNI... | css |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
a... | what are the three most frequently given procedures for patients with an age of 20s a year before? | SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 20 AND 29) AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT... | eicu |
CREATE TABLE table_name_77 (
position_in_2006 VARCHAR,
team VARCHAR
) | What was Team Dnepr's position in 2006? | SELECT position_in_2006 FROM table_name_77 WHERE team = "dnepr" | sql_create_context |
CREATE TABLE table_name_5 (
date VARCHAR,
margin_of_victory VARCHAR,
tournament VARCHAR
) | What day was the margin of victory 1 stroke when the tournament was colonial national invitation? | SELECT date FROM table_name_5 WHERE margin_of_victory = "1 stroke" AND tournament = "colonial national invitation" | sql_create_context |
CREATE TABLE table_204_727 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | name the countries that did not win any gold medals . | SELECT "nation" FROM table_204_727 WHERE "gold" = 0 | squall |
CREATE TABLE table_62473 (
"Year" real,
"Network" text,
"Play-by-play" text,
"Colour commentator(s)" text,
"Sideline reporters" text,
"Pregame host" text,
"Pregame analysts" text
) | What's the average year that sara orlesky and farhan lalji are the sideline reporters? | SELECT AVG("Year") FROM table_62473 WHERE "Sideline reporters" = 'sara orlesky and farhan lalji' | wikisql |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number... | what drug was patient 62298 prescribed for within the same hospital visit after being diagnosed with hyperlipidemia nec/nos since 04/2103? | SELECT t2.drug FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 62298 AND diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.s... | mimic_iii |
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... | 706这个科室在二0一五年七月二十四日到二0一五年八月二十四日,这一个月内因疾病H52.059住院的平均费用有多少 | SELECT AVG(zyb.MED_CLINIC_ID) FROM zyb WHERE zyb.MED_ORG_DEPT_NM = '706' AND zyb.IN_HOSP_DAYS BETWEEN '2015-07-24' AND '2015-08-24' AND zyb.IN_DIAG_DIS_NM = 'H52.059' | css |
CREATE TABLE table_203_20 (
id number,
"player" text,
"year" number,
"round" text,
"result" text,
"opponent" text
) | other than kyle anderson , who else lost in 2014 ? | SELECT "player" FROM table_203_20 WHERE "player" <> 'kyle anderson' AND "result" = 'lost' AND "year" = 2014 | squall |
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,
... | what are the three most commonly ordered lab tests for patients who had previously been diagnosed with acquired absence kidney within 2 months, in this year? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.i... | mimic_iii |
CREATE TABLE table_train_120 (
"id" int,
"residual_neurologic_impairment" bool,
"mini_mental_state_examination_mmse" int,
"systolic_blood_pressure_sbp" int,
"memory_impairments" bool,
"progressive_neurologic_disease" bool,
"epilepsy" bool,
"head_injury" bool,
"stroke" bool,
"mult... | heart rates < 35 or > 125 beats per minute ( bpm ) at screening | SELECT * FROM table_train_120 WHERE heart_rate < 35 OR heart_rate > 125 | criteria2sql |
CREATE TABLE table_24163 (
"University" text,
"Nick" text,
"University status" real,
"Founded" real,
"Location" text,
"Division" text,
"Specialization" text,
"Website" text
) | What is every specialization with the website Jstu.edu.bd | SELECT "Specialization" FROM table_24163 WHERE "Website" = 'jstu.edu.bd' | wikisql |
CREATE TABLE table_26422 (
"Rank" real,
"WS Points" real,
"Name" text,
"Country" text,
"08-09 I/O best" real,
"08-09 GP/JGP best" real,
"08-09 GP/JGP 2nd" real,
"08-09 OI best" real,
"08-09 OI 2nd" real,
"07-08 I/O best" real,
"07-08 GP/JGP best" real,
"07-08 GP/JGP 2nd" ... | What is the least 08-09 i/o best? | SELECT MIN("08-09 I/O best") FROM table_26422 | wikisql |
CREATE TABLE table_28286776_50 (
cap_s_ VARCHAR,
goal_s_ VARCHAR,
player VARCHAR
) | When tommy smith category:articles with hcards is the player and 1 is the goal how many cap(s) are there? | SELECT COUNT(cap_s_) FROM table_28286776_50 WHERE goal_s_ = 1 AND player = "Tommy Smith Category:Articles with hCards" | sql_create_context |
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
) | Ignore movies whose director is NULL. For each director, what are the titles and the highest rating among all of their movies they reviewed? Draw the result by a bar chart. | SELECT title, MAX(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE director <> "null" GROUP BY title | nvbench |
CREATE TABLE table_1606824_1 (
area_km_2 VARCHAR,
pop_density_people_km_2 VARCHAR
) | Name the number of area km 2 for population density is 87 | SELECT COUNT(area_km_2) FROM table_1606824_1 WHERE pop_density_people_km_2 = "87" | sql_create_context |
CREATE TABLE table_name_6 (
jury VARCHAR,
singer VARCHAR
) | Singer Maria-Louiza & Not 4 Sale had what jury? | SELECT jury FROM table_name_6 WHERE singer = "maria-louiza & not 4 sale" | sql_create_context |
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... | 从2008年3月19日到2008年8月22日期间里,统计医院6314589的科室小儿肛肠外科涉及的医疗费总额一共是多少? | SELECT SUM(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc21_t_kc24.MED_CLINIC_ID IN (SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '6314589' AND t_kc21.MED_ORG_DEPT_NM = '小儿肛肠外科') AND t_kc24.CLINIC_SLT_DATE BETWEEN '2008-03-19' AND '2008-08-22' | css |
CREATE TABLE table_name_31 (
virtue VARCHAR,
_vice_ VARCHAR
) | Which Virtue has a (vice) of lust? | SELECT virtue FROM table_name_31 WHERE _vice_ = "lust" | sql_create_context |
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,
... | what was patient 031-4987's last found organism in blood, venipuncture since 12/2104? | SELECT microlab.organism FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-4987')) AND microlab.culturesite = 'blood, venipuncture' AND STRFTIME... | eicu |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime ... | how much fluticasone propionate 110mcg was prescribed to patient 71558 in total since 12/2105? | SELECT SUM(prescriptions.dose_val_rx) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 71558) AND prescriptions.drug = 'fluticasone propionate 110mcg' AND STRFTIME('%y-%m', prescriptions.startdate) >= '2105-12' | mimic_iii |
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... | Bar chart x axis team name y axis school_id, and sort by the Y-axis in asc. | SELECT Team_Name, School_ID FROM basketball_match ORDER BY School_ID | nvbench |
CREATE TABLE table_name_14 (
title VARCHAR,
name VARCHAR
) | What was Anthony D. Marshall's title? | SELECT title FROM table_name_14 WHERE name = "anthony d. marshall" | sql_create_context |
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 whose lab test abnormal status is abnormal and lab test name is troponin i? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.flag = "abnormal" AND lab.label = "Troponin I" | mimicsql_data |
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,
... | 查一下许虹颖这个病人在医院9484202的就诊记录中,被开出的药品中哪个药的单价是最高的?药品的编码和名称及其单价分别是啥 | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.UNIVALENT FROM t_kc22 WHERE t_kc21_t_kc22.MED_CLINIC_ID IN (SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_NM = '许虹颖' AND t_kc21.MED_SER_ORG_NO = '9484202') ORDER BY t_kc22.UNIVALENT DESC LIMIT 1 | css |
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,
... | what is the number of patients who have stayed in ward 1053 until 1 year ago? | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 1053 AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-1 year') | eicu |
CREATE TABLE table_68630 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | Name the least silver for nation of total when bronze is more than 24 | SELECT MIN("Silver") FROM table_68630 WHERE "Nation" = 'total' AND "Bronze" > '24' | wikisql |
CREATE TABLE table_68571 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
) | For a school with authority of state and a roll of 798, what is the decile? | SELECT "Decile" FROM table_68571 WHERE "Authority" = 'state' AND "Roll" = '798' | wikisql |
CREATE TABLE table_60147 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | What Status has Against of 12? | SELECT "Status" FROM table_60147 WHERE "Against" = '12' | wikisql |
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,
... | 门诊医疗参保人尤云梦一年费用总数有多少? | SELECT SUM(t_kc21.MED_AMOUT) FROM t_kc21 WHERE t_kc21.PERSON_NM = '尤云梦' AND t_kc21.CLINIC_TYPE = '门诊' | css |
CREATE TABLE table_name_78 (
tie_no VARCHAR,
home_team VARCHAR
) | What is the Tie no for Scunthorpe United? | SELECT tie_no FROM table_name_78 WHERE home_team = "scunthorpe united" | sql_create_context |
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... | 20027341的团伙成员最常开的药品的排序看一下 | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_ID = '20027341' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC | css |
CREATE TABLE table_33964 (
"Element" text,
"Wood" text,
"Fire" text,
"Earth" text,
"Metal" text,
"Water" text
) | Which fire has dry metal? | SELECT "Fire" FROM table_33964 WHERE "Metal" = 'dry' | 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,
... | what is the name and route of drug prismab22k45000? | SELECT prescriptions.drug, prescriptions.route FROM prescriptions WHERE prescriptions.formulary_drug_cd = "PRISMAB22K45000" | mimicsql_data |
CREATE TABLE table_name_39 (
silver INTEGER,
bronze INTEGER
) | What is the least amount of Silver medals that have more than 3 Bronze? | SELECT MIN(silver) FROM table_name_39 WHERE bronze > 3 | sql_create_context |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
... | when did patient 15794 have a first anion gap laboratory test during their current hospital visit? | SELECT labevents.charttime FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'anion gap') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15794 AND admissions.dischtime IS NULL) ORDER BY labevents.charttime LIMIT... | mimic_iii |
CREATE TABLE Engineer_Visits (
engineer_visit_id INTEGER,
contact_staff_id INTEGER,
engineer_id INTEGER,
fault_log_entry_id INTEGER,
fault_status VARCHAR(10),
visit_start_datetime DATETIME,
visit_end_datetime DATETIME,
other_visit_details VARCHAR(255)
)
CREATE TABLE Assets (
asset_i... | List the number of enginners in a stacked bar chart The x-axis is last name and group by skill description, display y axis from high to low order. | SELECT last_name, COUNT(last_name) FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id GROUP BY skill_description, last_name ORDER BY COUNT(last_name) DESC | nvbench |
CREATE TABLE table_name_64 (
h_a_n VARCHAR,
record VARCHAR
) | What is H/A/N, when Record is 20-48? | SELECT h_a_n FROM table_name_64 WHERE record = "20-48" | sql_create_context |
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 ... | the previous year, had patient 48706 receive a procedure? | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 48706) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | mimic_iii |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org... | give me the difference between the total of the input and the output of patient 24132 yesterday. | SELECT (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 = 24132)) AND DATETIME(inputevents_cv.charttime, 'start of day') = DATETIME(CURRENT_... | mimic_iii |
CREATE TABLE table_8736 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents in final" text,
"Score in final" text
) | What is Surface, when Score in Final is 3-6, 6-3, 6-2? | SELECT "Surface" FROM table_8736 WHERE "Score in final" = '3-6, 6-3, 6-2' | wikisql |
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 scatter chart shows the correlation between code and revenue , and group by attribute headquarter. | SELECT T1.Code, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | nvbench |
CREATE TABLE table_16169 (
"County" text,
"Location" text,
"Street Names" text,
"Milepost" text,
"Roads Intersected" text,
"Notes" text
) | Which street is 12.2 miles long? | SELECT "Street Names" FROM table_16169 WHERE "Milepost" = '12.2' | wikisql |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | Bar chart x axis name y axis the number of name, and list bars in descending order. | SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY Name DESC | nvbench |
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 are the flights available in the morning between DENVER and SAN FRANCISCO | 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 = 'SAN FR... | atis |
CREATE TABLE table_22402 (
"Episode" text,
"Garfield Episode 1" text,
"U.S. Acres Episode" text,
"Garfield Episode 2" text,
"Original Airdate" text
) | How many u.s. episodes have Garfield episode 2 the picnic panic? | SELECT COUNT("U.S. Acres Episode") FROM table_22402 WHERE "Garfield Episode 2" = 'The Picnic Panic' | wikisql |
CREATE TABLE table_25576 (
"Rank" real,
"Incorporated place" text,
"Metropolitan area" text,
"State" text,
"Population (2010 census)" real,
"Land area (mi 2 )" text,
"Population density (people per mi 2 )" text
) | Which major metropolitan area had a land area of 23.80? | SELECT "Metropolitan area" FROM table_25576 WHERE "Land area (mi 2 )" = '23.80' | wikisql |
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... | 2006-07-05到2011-05-15期间,张梦竹患者看过几次门诊在9146029医疗机构 | SELECT COUNT(*) FROM person_info JOIN hz_info JOIN mzjzjlb JOIN person_info_hz_info ON person_info.RYBH = person_info_hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_in... | css |
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... | Show me the next 6 semesters of classes . | SELECT DISTINCT course.name, course.number, semester.semester, semester.year FROM course, course_offering, semester WHERE ((semester.semester = 'FA' AND semester.year = 2016) OR (semester.semester = 'FA' AND semester.year = 2017) OR (semester.semester = 'FA' AND semester.year = 2018) OR (semester.semester = 'WN' AND se... | advising |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_... | also show me flights from SAN FRANCISCO to PITTSBURGH on tuesday | 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 = 'PITTSBURGH' AND date_day.day_number = 22 AND date_day.month_number = 3 AN... | atis |
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,
... | how many days have it been since the first time patient 65582 was prescribed albumin 5% on their current hospital encounter? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', prescriptions.startdate)) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 65582 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'albumin 5%' ORDER BY prescriptions.startdate ... | mimic_iii |
CREATE TABLE table_name_87 (
week VARCHAR,
date VARCHAR
) | What week was it on November 19, 1995? | SELECT week FROM table_name_87 WHERE date = "november 19, 1995" | sql_create_context |
CREATE TABLE table_70789 (
"Model" text,
"Specification" text,
"Build date" text,
"Total produced" real,
"Wheel arrangement" text,
"Prime mover" text,
"Power output" text
) | Which prime mover had a Model of rs-18? | SELECT "Prime mover" FROM table_70789 WHERE "Model" = 'rs-18' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.