instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int... | SELECT T1.Date, T1.Attendance FROM exhibition_record AS T1 JOIN exhibition AS T2 ON T1.Exhibition_ID = T2.Exhibition_ID WHERE T2.Year = 2004 ORDER BY Attendance DESC | nvbench |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | SELECT * FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jy... | css |
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 COUNT(*) FROM t_kc21 JOIN t_kc24 JOIN t_kc21_t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc24.MED_CLINIC_ID AND t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID WHERE t_kc21.PERSON_NM = '戚丽文' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2003-12-20' AND '2011-07-25' AND t_kc24.MED_AMOUT <= 10 | css |
CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
OVE_PAY numb... | SELECT COUNT(*) FROM t_kc21 WHERE MED_SER_ORG_NO = '7301608' AND IN_HOSP_DATE BETWEEN '2004-10-30' AND '2011-09-16' AND IN_DIAG_DIS_CD <> OUT_DIAG_DIS_CD | css |
CREATE TABLE table_name_54 (
fat32 VARCHAR,
ntfs VARCHAR,
hpfs VARCHAR,
refs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which FAT32 has a no for HPFS, a no for ReFS, and a yes v3.0 fir NTFS?
| SELECT fat32 FROM table_name_54 WHERE hpfs = "no" AND refs = "no" AND ntfs = "yes v3.0" | sql_create_context |
CREATE TABLE hosting_city (
Year int,
Match_ID int,
Host_City text
)
CREATE TABLE city (
City_ID int,
City text,
Hanzi text,
Hanyu_Pinyin text,
Regional_Population int,
GDP real
)
CREATE TABLE match (
Match_ID int,
Date text,
Venue text,
Score text,
Result text,... | SELECT Competition, COUNT(*) FROM match GROUP BY Competition | nvbench |
CREATE TABLE table_name_74 (
term_in_office VARCHAR,
member VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was Hon Les Johnson in office?
| SELECT term_in_office FROM table_name_74 WHERE member = "hon les johnson" | sql_create_context |
CREATE TABLE table_17467147_1 (
series__number VARCHAR,
directed_by VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When debra j. fisher & erica messer are the writers and the director is patrick norris what is the series number?
| SELECT series__number FROM table_17467147_1 WHERE directed_by = "Patrick Norris" AND written_by = "Debra J. Fisher & Erica Messer" | 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 mzjybgb (
BBCJBW text,
BBDM t... | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM hz_info JOIN mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzbb.YLJGDM AND zyjybgb.BGDH ... | css |
CREATE TABLE table_56492 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the sum of laps when grid is less than 20 and johnny herbert is driving?
| SELECT SUM("Laps") FROM table_56492 WHERE "Grid" < '20' AND "Driver" = 'johnny herbert' | wikisql |
CREATE TABLE table_2562572_52 (
largest_ethnic_group__2002_ VARCHAR,
cyrillic_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest ethnic group (2002) when cyrillic name is ?
| SELECT largest_ethnic_group__2002_ FROM table_2562572_52 WHERE cyrillic_name = "Брестач" | sql_create_context |
CREATE TABLE table_1503 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Falcons points" real,
"Opponents" real,
"Record" text,
"Streak" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times in ... | SELECT COUNT("Opponents") FROM table_1503 WHERE "Opponent" = 'Los Angeles Rams' | wikisql |
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50)
)
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5)
)
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10),
D... | SELECT CRS_DESCRIPTION, COUNT(CRS_DESCRIPTION) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE JOIN PROFESSOR AS T4 ON T2.EMP_NUM = T4.EMP_NUM GROUP BY EMP_FNAME, CRS_DESCRIPTION ORDER BY CRS_DESCRIPTION DESC | nvbench |
CREATE TABLE table_24132 (
"Rank" real,
"Average" text,
"Player" text,
"Runs" real,
"Innings" real,
"Not Out" real,
"Period" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During what period did Ricky Ponting play?
| SELECT "Period" FROM table_24132 WHERE "Player" = 'Ricky Ponting' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
... | SELECT JYLX FROM jybgb WHERE BGDH = '54720580552' | css |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
Ta... | SELECT Title, ViewCount, 1.197 * ViewCount, ROUND(1.197 * ViewCount, 0), FLOOR(1.197 * ViewCount), CEIL(1.197 * ViewCount) FROM Posts LIMIT 20 | sede |
CREATE TABLE table_74541 (
"Class" text,
"Date" text,
"Race" text,
"Driver" text,
"Position" real,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what team has a drive name emmanuel de graffenried and a position larger than 1 as well as t... | SELECT "Team" FROM table_74541 WHERE "Position" > '1' AND "Date" = '9/1953' AND "Driver" = 'emmanuel de graffenried' | wikisql |
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varch... | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN course ON course.course_id = course_offering.course_id INNER JOIN semester... | advising |
CREATE TABLE table_204_753 (
id number,
"no." number,
"name" text,
"position" text,
"date of birth (age)" text,
"signed from" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the oldest player on the squad in the 2011-12 ... | SELECT "name" FROM table_204_753 ORDER BY "date of birth (age)" LIMIT 1 | squall |
CREATE TABLE table_17085724_1 (
sarasota VARCHAR,
indianapolis_concerts VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sarasota samantha sharpe
| SELECT sarasota FROM table_17085724_1 WHERE indianapolis_concerts = "Samantha Sharpe" | sql_create_context |
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What i... | SELECT SUM(revenue) FROM manufacturers WHERE headquarter = 'Austin' | spider |
CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge bool
)
CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
Number_of_host... | SELECT Nationality, COUNT(*) FROM host GROUP BY Nationality | nvbench |
CREATE TABLE table_name_76 (
mintage VARCHAR,
theme VARCHAR,
issue_price VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95?
| SELECT mintage FROM table_name_76 WHERE theme = "toronto maple leafs" AND issue_price < 24.95 | sql_create_context |
CREATE TABLE table_55699 (
"D 41" text,
"D 42" text,
"D 43" text,
"D 44" text,
"D 45" text,
"D 46" text,
"D 47" text,
"R 53" text,
"R 52" text,
"R 51" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the D 42 with R 51 of r ... | SELECT "D 42" FROM table_55699 WHERE "R 51" = 'r 11' | wikisql |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE food_service (
mea... | 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_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND flight.arrival_time = 1900 AND flight.to_airport = AIRPORT_SERVICE_1.airpo... | atis |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost numbe... | SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 30 AND 39) AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT... | eicu |
CREATE TABLE instructor (
id text,
name text,
dept_name text,
salary number
)
CREATE TABLE teaches (
id text,
course_id text,
sec_id text,
semester text,
year number
)
CREATE TABLE section (
course_id text,
sec_id text,
semester text,
year number,
building text,... | SELECT COUNT(*), building FROM classroom WHERE capacity > 50 GROUP BY building | spider |
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 ... | SELECT hz_info_mzjzjlb.YLJGDM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM = hz_info_mzjzjlb.YL... | css |
CREATE TABLE table_name_81 (
lead VARCHAR,
home VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the lead of the team from Lockerbie?
| SELECT lead FROM table_name_81 WHERE home = "lockerbie" | sql_create_context |
CREATE TABLE table_55641 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" real,
"Club/province" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position for jj gagiano?
| SELECT "Position" FROM table_55641 WHERE "Player" = 'jj gagiano' | wikisql |
CREATE TABLE table_name_62 (
rank INTEGER,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of the person with a time of 1:44.757?
| SELECT MAX(rank) FROM table_name_62 WHERE time = "1:44.757" | sql_create_context |
CREATE TABLE table_2217 (
"Poll source" text,
"Dates administered" text,
"Tom Emmer (R)" text,
"Matt Entenza (DFL)" text,
"Tom Horner (I)" text,
"Undecided" text,
"Sampling error" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What poll sour... | SELECT "Poll source" FROM table_2217 WHERE "Dates administered" = 'June 14-16, 2010' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
... | SELECT jybgb.JYKSBM, jybgb.JYKSMC FROM jybgb WHERE jybgb.JZLSH = '77422400113' | css |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "LEFT INTERNAL JUGULAR VEIN THROMBOSIS;LEFT ARM EDEMA" AND demographic.dod_year <= "2115.0" | mimicsql_data |
CREATE TABLE table_name_65 (
driver VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had to retire due to suspension?
| SELECT driver FROM table_name_65 WHERE time_retired = "suspension" | sql_create_context |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
... | SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-15363')) AND intakeoutput.cellpath LIKE '%intake%... | eicu |
CREATE TABLE table_name_95 (
player VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player has the score 72-67-69=208?
| SELECT player FROM table_name_95 WHERE score = 72 - 67 - 69 = 208 | sql_create_context |
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
)
-- Using valid SQLite, answer the following questions for the... | SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T1.Code | nvbench |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dod_year <= "2138.0" AND prescriptions.formulary_drug_cd = "HYDR20/100NS" | mimicsql_data |
CREATE TABLE table_1373542_1 (
reported_cost VARCHAR,
acquired_from VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the reported cost of the asset acquired from Standard & Poor's?
| SELECT reported_cost FROM table_1373542_1 WHERE acquired_from = "Standard & Poor's" | sql_create_context |
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_fli... | 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRA... | atis |
CREATE TABLE table_61955 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had Best Actor in a Musical as a category?
| SELECT SUM("Year") FROM table_61955 WHERE "Category" = 'best actor in a musical' | wikisql |
CREATE TABLE table_70978 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What To par scored 72-71-68=211?
| SELECT "To par" FROM table_70978 WHERE "Score" = '72-71-68=211' | wikisql |
CREATE TABLE table_47440 (
"Year" real,
"Nominated/Won" text,
"Award/category" text,
"Festival/organization" text,
"Role" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first year that there was a Satellite Award?
| SELECT MIN("Year") FROM table_47440 WHERE "Festival/organization" = 'satellite award' | wikisql |
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE ta (
campus_job_id int,
... | SELECT DISTINCT course.department, course.name, course.number, instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.name LIKE '%A History of Modern Psychology%' AND NOT instructor.name LIKE '%Hull%' AND offering_instructor.instructor... | advising |
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... | SELECT jyjgzbb.JYZBLSH FROM hz_info JOIN mzjzjlb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE hz_info.RYBH = '76177334' AND jyjgzbb.JYRQ BETWEEN '2008-07-1... | css |
CREATE TABLE table_29087004_2 (
written_by VARCHAR,
united_states_original_airdate VARCHAR,
directed_by VARCHAR,
canada_original_airdate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episode directed by Jos Humphrey that had an origina... | SELECT written_by FROM table_29087004_2 WHERE directed_by = "Jos Humphrey" AND canada_original_airdate = "Unknown" AND united_states_original_airdate = "August 27, 2011" | sql_create_context |
CREATE TABLE building (
building_id text,
name text,
street_address text,
years_as_tallest text,
height_feet number,
floors number
)
CREATE TABLE protein (
common_name text,
protein_name text,
divergence_from_human_lineage number,
accession_number text,
sequence_length numbe... | SELECT institution, location FROM institution WHERE founded > 1990 AND type = 'Private' | spider |
CREATE TABLE table_204_101 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"performer (s)" text,
"sample(s)" text,
"length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long is the song likwit ?
| SELECT "length" FROM table_204_101 WHERE "title" = '"likwit"' | squall |
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE fare_basis (
fare_basis_cod... | 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 = 'WASHINGTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.c... | atis |
CREATE TABLE table_203_716 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what country is the only country with at least 20 gold medals ?
| SELECT "nation" FROM table_203_716 WHERE "gold" >= 20 | squall |
CREATE TABLE table_10088 (
"Number" real,
"Name" text,
"Year Built" text,
"Boat Builder" text,
"Current Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did J. Jones, trearddur bay build a boat with a current status of tbsc?
| SELECT "Year Built" FROM table_10088 WHERE "Current Status" = 'tbsc' AND "Boat Builder" = 'j. jones, trearddur bay' | wikisql |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | 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 = "Schizophrenia NOS-unspec" AND lab.flag = "abnormal" | mimicsql_data |
CREATE TABLE table_name_33 (
name VARCHAR,
qual_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What name has a qual 2 of 1:46.025?
| SELECT name FROM table_name_33 WHERE qual_2 = "1:46.025" | sql_create_context |
CREATE TABLE table_78604 (
"Letter" text,
"Pronunciation spelled free" text,
"Pronunciation spelled checked" text,
"Example spelled free" text,
"Example spelled checked" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Pronunciation Spelled Fr... | SELECT "Pronunciation spelled free" FROM table_78604 WHERE "Pronunciation spelled checked" = 'ʏ' | 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
)
-- Using valid SQLite, answer the following questions for the... | SELECT T2.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter ORDER BY T1.Code DESC | nvbench |
CREATE TABLE table_name_21 (
first_elected VARCHAR,
state VARCHAR,
member VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year First elected, when the State is vic, and when the Member is Hon Don Chipp?
| SELECT first_elected FROM table_name_21 WHERE state = "vic" AND member = "hon don chipp" | sql_create_context |
CREATE TABLE table_17056 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school did the player attend who's hometown was Montvale, NJ?
| SELECT "School" FROM table_17056 WHERE "Hometown" = 'Montvale, NJ' | wikisql |
CREATE TABLE table_13685 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was there a playoff on the margin of victory during the Shirley Engleh... | SELECT "Date" FROM table_13685 WHERE "Margin of victory" = 'playoff' AND "Tournament" = 'shirley englehorn invitational' | wikisql |
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE program (
program_id int,
name varchar... | 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 PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Cou... | SELECT VoteTypes.Id AS "Type Id", VoteTypes.Name AS "Type Name", COUNT(*) AS "Amount" FROM Votes INNER JOIN Posts ON Votes.PostId = Posts.Id INNER JOIN VoteTypes ON VoteTypes.Id = Votes.VoteTypeId WHERE Posts.PostTypeId = 1 AND Posts.Tags LIKE '<##Lang?kotlin##>' GROUP BY VoteTypes.Id, VoteTypes.Name ORDER BY VoteTypes... | sede |
CREATE TABLE table_72688 (
"Conflict" text,
"United Nations Mission" text,
"Sexual abuse 1" real,
"Murder 2" real,
"Extortion/Theft 3" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sexual abuse rate where the conflict is the Burundi Civ... | SELECT MIN("Sexual abuse 1") FROM table_72688 WHERE "Conflict" = 'Burundi Civil War' | wikisql |
CREATE TABLE table_17080868_8 (
location_attendance VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- February 12 is the date for all location attendance.
| SELECT location_attendance FROM table_17080868_8 WHERE date = "February 12" | sql_create_context |
CREATE TABLE table_65818 (
"Part Number" text,
"Pins" text,
"Body Width/mm" real,
"Body Length/mm" real,
"Lead Pitch/mm" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Body Length/mm l... | SELECT MIN("Body Width/mm") FROM table_65818 WHERE "Lead Pitch/mm" < '0.55' AND "Body Length/mm" > '18.4' | wikisql |
CREATE TABLE table_15872814_4 (
score VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the score for december 28
| SELECT score FROM table_15872814_4 WHERE date = "December 28" | sql_create_context |
CREATE TABLE table_74307 (
"#" real,
"Episode" text,
"Directed by" text,
"Written by" text,
"U.S. Viewers (in millions)" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episode with 9.81 million US viewers?
| SELECT "Written by" FROM table_74307 WHERE "U.S. Viewers (in millions)" = '9.81' | wikisql |
CREATE TABLE table_name_73 (
score VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for Darren Clarke?
| SELECT score FROM table_name_73 WHERE player = "darren clarke" | sql_create_context |
CREATE TABLE table_10269427_3 (
episode__number VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the episode # for production code 227
| SELECT episode__number FROM table_10269427_3 WHERE production_code = 227 | 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... | SELECT gwyjzb.IN_DIAG_DIS_CD, gwyjzb.IN_DIAG_DIS_NM FROM gwyjzb WHERE gwyjzb.PERSON_ID = '88247382' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT >= 6145.72) UNION SELECT fgwyjzb.IN_DIAG_DIS_CD, fgwyjzb.IN_DIAG_DIS_NM FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '88247382' AND fg... | css |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id num... | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'procedures_icd' AND cost.event_id IN (SELECT procedures_icd.row_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'loc exc bone lesion nec')) | mimic_iii |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellv... | SELECT AVG(t1.c1) FROM (SELECT COUNT(DISTINCT diagnosis.patientunitstayid) AS c1 FROM diagnosis WHERE diagnosis.diagnosisname = 'pericardial tamponade - by echocardiogram' AND STRFTIME('%y', diagnosis.diagnosistime) <= '2104' GROUP BY STRFTIME('%y-%m-%d', diagnosis.diagnosistime)) AS t1 | eicu |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime t... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'treatment' AND cost.eventid IN (SELECT treatment.treatmentid FROM treatment WHERE treatment.treatmentname = 'treatment of hyperkalemia - insulin / glucose') | eicu |
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE comment_instructor (
instructor_id int,
... | SELECT COUNT(*) > 0 FROM course AS COURSE_0, course AS COURSE_1, program_course AS PROGRAM_COURSE_0, program_course AS PROGRAM_COURSE_1 WHERE COURSE_0.department = 'AAPTIS' AND COURSE_0.number = 419 AND COURSE_1.department = 'AAPTIS' AND COURSE_1.number = 153 AND PROGRAM_COURSE_0.course_id = COURSE_0.course_id AND PROG... | advising |
CREATE TABLE table_27686 (
"Casinos" real,
"County" text,
"Road" text,
"1-Jul-08" real,
"FY07 $millions" text,
"FY08 $millions" text,
"FY09 $millions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many casinos are associated with a FY20... | SELECT COUNT("Casinos") FROM table_27686 WHERE "FY09 $millions" = '$279' | wikisql |
CREATE TABLE table_14368332_1 (
average VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result in 91-92 for the team with a 1.053 average?
| SELECT 1991 AS _92 FROM table_14368332_1 WHERE average = "1.053" | sql_create_context |
CREATE TABLE table_name_57 (
genitive_1 VARCHAR,
genitive_3 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Genitive 1 has a Genitive 3 of *n(i)-ia?
| SELECT genitive_1 FROM table_name_57 WHERE genitive_3 = "*n(i)-ia" | sql_create_context |
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),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY SUM(EMPLOYEE_ID) DESC | nvbench |
CREATE TABLE film_market_estimation (
estimation_id number,
low_estimate number,
high_estimate number,
film_id number,
type text,
market_id number,
year number
)
CREATE TABLE market (
market_id number,
country text,
number_cities number
)
CREATE TABLE film (
film_id number,... | SELECT studio FROM film EXCEPT SELECT studio FROM film WHERE director = "Walter Hill" | spider |
CREATE TABLE aircraft (
aircraft_id number,
order_year number,
manufacturer text,
model text,
fleet_series text,
powertrain text,
fuel_propulsion text
)
CREATE TABLE pilot_record (
record_id number,
pilot_id number,
aircraft_id number,
date text
)
CREATE TABLE pilot (
p... | SELECT DISTINCT position FROM pilot WHERE age > 30 | spider |
CREATE TABLE table_79565 (
"Year" real,
"Competition Description" text,
"Location" text,
"Apparatus" text,
"Rank-Final" text,
"Score-Final" real,
"Rank-Qualifying" text,
"Score-Qualifying" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT "Score-Final" FROM table_79565 WHERE "Apparatus" = 'ribbon' | wikisql |
CREATE TABLE table_name_80 (
jump_3 VARCHAR,
jump_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a Jump 2 of 7.06, and what is this person's Jump 3?
| SELECT jump_3 FROM table_name_80 WHERE jump_2 = "7.06" | sql_create_context |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDa... | SELECT TIME_TO_STR(P.CreationDate, '%W'), COUNT(P.Id) FROM Posts AS P WHERE 1 = 1 AND P.CreationDate >= '2018-03-15' GROUP BY TIME_TO_STR(P.CreationDate, '%W') | sede |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND procedures.short_title = "Closed bx skin/subq tiss" | mimicsql_data |
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational... | SELECT DISTINCT name, number FROM course WHERE credits = 5 AND department = 'EECS' | advising |
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... | SELECT COUNT(*) FROM (SELECT t_kc21.MED_ORG_DEPT_CD FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '0169842' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2001-12-21' AND '2004-06-02' GROUP BY t_kc21.MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) >= 7232.0) AS T | css |
CREATE TABLE table_49057 (
"Year" real,
"Dates" text,
"Champion" text,
"Country" text,
"Score" real,
"To par" text,
"Margin of victory" text,
"Purse ( US $ )" real,
"Winner's share" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What... | SELECT SUM("Purse ( US $ )") FROM table_49057 WHERE "Country" = 'sweden' | wikisql |
CREATE TABLE table_56494 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the driver when grid is 11?
| SELECT "Driver" FROM table_56494 WHERE "Grid" = '11' | wikisql |
CREATE TABLE table_name_53 (
base_pairs INTEGER,
genes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of base pairs with 784 genes?
| SELECT AVG(base_pairs) FROM table_name_53 WHERE genes = 784 | sql_create_context |
CREATE TABLE Addresses (
address_id INTEGER,
address_content VARCHAR(80),
city VARCHAR(50),
zip_postcode VARCHAR(20),
state_province_county VARCHAR(50),
country VARCHAR(50),
other_address_details VARCHAR(255)
)
CREATE TABLE Products (
product_id INTEGER,
product_details VARCHAR(255)... | SELECT date_became_customer, COUNT(date_became_customer) FROM Customers WHERE customer_id BETWEEN 10 AND 20 ORDER BY COUNT(date_became_customer) DESC | nvbench |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
a... | SELECT SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t4.charttime) > 1 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.subject_id, t2.charttime FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd... | mimic_iii |
CREATE TABLE table_35901 (
"Year" real,
"Album" text,
"Oricon position" real,
"1st week sales" text,
"Copies sold" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many copies were sold where the position is lager than 1 in 1988?
| SELECT "Copies sold" FROM table_35901 WHERE "Oricon position" > '1' AND "Year" = '1988' | wikisql |
CREATE TABLE table_26520 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the playoff result where the league did not qualify in the Open Cu... | SELECT "Playoffs" FROM table_26520 WHERE "Open Cup" = 'Did not qualify' AND "Year" = '1998' | wikisql |
CREATE TABLE table_53827 (
"Tournament" text,
"Winner" text,
"Runner-up" text,
"Score" text,
"Third Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score with third place of stefan edberg?
| SELECT "Score" FROM table_53827 WHERE "Third Place" = 'stefan edberg' | wikisql |
CREATE TABLE table_name_81 (
games INTEGER,
year INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- After the 2013 season, what was the fewest number of games that Willis McGahee played in a single season?
| SELECT MIN(games) FROM table_name_81 WHERE year > 2013 | sql_create_context |
CREATE TABLE table_10646790_2 (
week VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many weeks are there that include the date November 9, 1969.
| SELECT COUNT(week) FROM table_10646790_2 WHERE date = "November 9, 1969" | sql_create_context |
CREATE TABLE table_name_89 (
userpics_free VARCHAR,
monthly_cost_for_paid_account VARCHAR,
s_registered_user VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Userpics Free, when Monthly Cost For Paid Account is 'unknown', and when S Registered User... | SELECT userpics_free FROM table_name_89 WHERE monthly_cost_for_paid_account = "unknown" AND s_registered_user = "2340" | sql_create_context |
CREATE TABLE table_name_30 (
bronze INTEGER,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the bronze number when the total is 54/
| SELECT AVG(bronze) FROM table_name_30 WHERE total = 54 | 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 prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
... | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT outputevents.itemid FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25796)) AND STRFTIME('%y-%m-%d', outputeve... | mimic_iii |
CREATE TABLE table_70428 (
"Player" text,
"Country" text,
"Year won" real,
"Total" real,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the to par for Paul Azinger from the United States after 1986 for a total bigger than 145?
| SELECT COUNT("To par") FROM table_70428 WHERE "Country" = 'united states' AND "Year won" > '1986' AND "Player" = 'paul azinger' AND "Total" > '145' | wikisql |
CREATE TABLE table_44726 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total when the score for set 2 is 25 22?
| SELECT "Total" FROM table_44726 WHERE "Set 2" = '25–22' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.