instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_45577 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which transfer window ends after 2006?
| SELECT "Transfer window" FROM table_45577 WHERE "Ends" > '2006' | wikisql |
CREATE TABLE table_69185 (
"Year" real,
"Category" text,
"Film" text,
"Winner/Nominee(s)" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which film was Eddie Murphy nominated for?
| SELECT "Film" FROM table_69185 WHERE "Winner/Nominee(s)" = 'eddie murphy' AND "Result" = 'nominated' | wikisql |
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num_Employees real
)
CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE head (
head_ID int,
name text,
born_state tex... | SELECT Creation, SUM(Budget_in_Billions) FROM department ORDER BY Creation DESC | nvbench |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,... | SELECT COUNT(*) > 0 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 = 9566 AND admissions.dischtime IS NULL)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items... | mimic_iii |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
... | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT procedures_icd.hadm_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 = 'exc pituit les-transphen') AND STRFTIME('%y', proced... | mimic_iii |
CREATE TABLE table_31893 (
"Heat Rank" real,
"Lane" real,
"Swimmer" text,
"Country" text,
"Time" real,
"Overall Rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the average heat rank with a lane of 2 and time less than 27.66
| SELECT AVG("Heat Rank") FROM table_31893 WHERE "Lane" = '2' AND "Time" < '27.66' | wikisql |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "7" AND lab.label = "Carboxyhemoglobin" | mimicsql_data |
CREATE TABLE table_name_72 (
date VARCHAR,
attendance INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When hasn an Attendance larger than 66,926?
| SELECT date FROM table_name_72 WHERE attendance > 66 OFFSET 926 | sql_create_context |
CREATE TABLE takes (
id text,
course_id text,
sec_id text,
semester text,
year number,
grade text
)
CREATE TABLE course (
course_id text,
title text,
dept_name text,
credits number
)
CREATE TABLE time_slot (
time_slot_id text,
day text,
start_hr number,
start_mi... | SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE year = 2009 OR year = 2010 | spider |
CREATE TABLE table_name_82 (
laps INTEGER,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of laps for 12 grids
| SELECT SUM(laps) FROM table_name_82 WHERE grid = 12 | sql_create_context |
CREATE TABLE table_72345 (
"Submitting country" text,
"Film title used in nomination" text,
"Original title" text,
"Language(s)" text,
"Director(s)" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country submitted the movie t... | SELECT "Submitting country" FROM table_72345 WHERE "Film title used in nomination" = 'The Orphanage' | wikisql |
CREATE TABLE table_name_86 (
team VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Team has a Position of linebacker?
| SELECT team FROM table_name_86 WHERE position = "linebacker" | sql_create_context |
CREATE TABLE table_name_99 (
date VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the record 3-3?
| SELECT date FROM table_name_99 WHERE record = "3-3" | sql_create_context |
CREATE TABLE wdmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW 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.JZ... | css |
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 WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND demographic.admityear < "2157" | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2064" AND prescriptions.drug_type = "ADDITIVE" | mimicsql_data |
CREATE TABLE table_11028 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the 2011 Concacaf Gold Cup competition?
| SELECT "Result" FROM table_11028 WHERE "Competition" = '2011 concacaf gold cup' | wikisql |
CREATE TABLE table_7546 (
"Name" text,
"Date of Birth" text,
"Height" real,
"Weight" real,
"Spike" real,
"Block" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Spike, when Name is Gustavo Porporatto, and when Block is greater... | SELECT AVG("Spike") FROM table_7546 WHERE "Name" = 'gustavo porporatto' AND "Block" > '323' | 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... | SELECT t_kc22.CHA_ITEM_LEV FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '95009022202' AND t_kc22.SOC_SRT_DIRE_CD = '039019' | css |
CREATE TABLE table_name_24 (
year VARCHAR,
third VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which year did Kati Klinzing finish 3rd?
| SELECT year FROM table_name_24 WHERE third = "kati klinzing" | sql_create_context |
CREATE TABLE table_625 (
"Tag ID" text,
"Application" text,
"Torque Rating" real,
"1st" text,
"2nd" text,
"3rd" text,
"4th" text,
"5th" text,
"6th" text,
"Rev" text,
"Input Splines" real,
"Output Splines" real
)
-- Using valid SQLite, answer the following questions for ... | SELECT "Rev" FROM table_625 WHERE "Application" = '2003-2004 Mustang Cobra' | wikisql |
CREATE TABLE club (
club_id number,
club_name text,
region text,
start_year number
)
CREATE TABLE match_result (
rank number,
club_id number,
gold number,
big_silver number,
small_silver number,
bronze number,
points number
)
CREATE TABLE player (
player_id number,
... | SELECT T3.player_name, T2.coach_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.coach_id = T2.coach_id JOIN player AS T3 ON T1.player_id = T3.player_id | spider |
CREATE TABLE table_1661124_1 (
brand_name VARCHAR,
antibody VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the brand name for the antibody Brentuximab Vedotin?
| SELECT brand_name FROM table_1661124_1 WHERE antibody = "Brentuximab vedotin" | sql_create_context |
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 jybgb.KSBM, jybgb.KSMC FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb 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 WHERE person_info.XM = '俞... | 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,
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.age >= "24" AND demographic.admityear >= "2176" | mimicsql_data |
CREATE TABLE table_name_1 (
score VARCHAR,
game VARCHAR,
october VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What score has a game greater than 11 on October 30?
| SELECT score FROM table_name_1 WHERE game > 11 AND october = 30 | sql_create_context |
CREATE TABLE table_name_41 (
pick INTEGER,
year VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest pick for a year after 2010 and a round larger than 1?
| SELECT MAX(pick) FROM table_name_41 WHERE year > 2010 AND round > 1 | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.short_title = "Contrast arteriogram-leg" | mimicsql_data |
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... | SELECT DISTINCT course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (course.number = 442 OR course.number = 552) AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 INNER JOIN course AS COURSEalias1 ON ... | advising |
CREATE TABLE table_67594 (
"Coach" text,
"Team" text,
"Wins" real,
"Loss" real,
"PCT." real,
"PTS." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of PTS when there is a PCT smaller than 0.1?
| SELECT SUM("PTS.") FROM table_67594 WHERE "PCT." < '0.1' | wikisql |
CREATE TABLE company (
Company_ID real,
Name text,
Headquarters text,
Industry text,
Sales_in_Billion real,
Profits_in_Billion real,
Assets_in_Billion real,
Market_Value_in_Billion real
)
CREATE TABLE people (
People_ID int,
Age int,
Name text,
Nationality text,
Grad... | SELECT Headquarters, COUNT(Headquarters) FROM company GROUP BY Industry, Headquarters | nvbench |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE intakeoutput (
intakeo... | SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t2.diagnosistime) > 4 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOI... | eicu |
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Give me a b... | SELECT Class, COUNT(*) FROM race GROUP BY Class ORDER BY Class DESC | nvbench |
CREATE TABLE table_15412381_5 (
lms_nos VARCHAR,
builder VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the LMS number of the trains built by G&SWR Kilmarnock?
| SELECT lms_nos FROM table_15412381_5 WHERE builder = "G&SWR Kilmarnock" | 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... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.QTY, t_kc22.UNIVALENT, t_kc22.AMOUNT 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_NM = '蒋天干' AND t_kc21.IN_HOSP_DATE BETWEEN '200... | css |
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE trip (
id INTEGER,
d... | SELECT date, COUNT(date) FROM weather WHERE min_dew_point_f < (SELECT MIN(min_dew_point_f) FROM weather WHERE zip_code = 94107) ORDER BY COUNT(date) DESC | nvbench |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
... | SELECT p.Id, p.Body, p.Title, p.Tags FROM Posts AS p LEFT OUTER JOIN PostTypes AS ptypes ON p.Id = ptypes.Id AND ptypes.Id = 1 WHERE p.ParentId IS NULL AND NOT p.Tags IS NULL AND p.Score >= 3 AND p.Id >= 0 AND p.Id < 500000 ORDER BY p.Id | sede |
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
... | 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 = 270) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILADEL... | atis |
CREATE TABLE table_46197 (
"Date" text,
"Opponent" text,
"Site" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At what Site was the Result W13-7?
| SELECT "Site" FROM table_46197 WHERE "Result" = 'w13-7' | wikisql |
CREATE TABLE table_28900 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times was the incumbent is john b. yates?
| SELECT COUNT("Party") FROM table_28900 WHERE "Incumbent" = 'John B. Yates' | wikisql |
CREATE TABLE table_15068 (
"Tournament" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the tournament when 2011 is qf and 2012 is sf?
| SELECT "Tournament" FROM table_15068 WHERE "2011" = 'qf' AND "2012" = 'sf' | 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... | SELECT AVG(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.PERSON_AGE < 28) | css |
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 lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.language = "ENGL" AND procedures.long_title = "Infusion of vasopressor agent" | mimicsql_data |
CREATE TABLE table_11872 (
"Name" text,
"Premiere" text,
"Finale" text,
"Original teams" text,
"The Biggest Loser" text,
"At-Home Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the original teams for The Biggest Loser (Season 1... | SELECT "Original teams" FROM table_11872 WHERE "Name" = 'the biggest loser (season 1)' | wikisql |
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
avail... | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id ORDER BY COUNT(booking_start_date) | nvbench |
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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2056" AND prescriptions.drug_type = "BASE" | mimicsql_data |
CREATE TABLE table_21210 (
"No." real,
"Hanyu" text,
"Tongyong" text,
"Pe\u030dh-\u014de-j\u012b" text,
"Chinese" text,
"Area (km\u00b2)" text,
"No. of villages" real,
"Population (2010)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Na... | SELECT "No." FROM table_21210 WHERE "Population (2010)" = '171906' | wikisql |
CREATE TABLE country (
Country_id VARCHAR,
Capital VARCHAR
)
CREATE TABLE match_season (
Position VARCHAR,
Country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the distinct positions of the players from a country whose capital is Dublin?
| SELECT DISTINCT T2.Position FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country WHERE T1.Capital = "Dublin" | sql_create_context |
CREATE TABLE Timed_Status_of_Things (
thing_id INTEGER,
Date_and_Date DATETIME,
Status_of_Thing_Code CHAR(15)
)
CREATE TABLE Services (
service_id INTEGER,
organization_id INTEGER,
service_type_code CHAR(15),
service_details VARCHAR(255)
)
CREATE TABLE Timed_Locations_of_Things (
thing... | SELECT date_moved_in, COUNT(date_moved_in) FROM Customer_Events ORDER BY COUNT(date_moved_in) | nvbench |
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConce... | SELECT Id, OwnerUserId, CreationDate, ClosedDate FROM Posts WHERE PostTypeId = 1 AND NOT ClosedDate IS NULL AND CreationDate >= '2013-01-01' ORDER BY Id | sede |
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 SUM(t_kc24.PER_ACC_PAY) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '张和暖' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2002-10-02' AND '2006-11-03' | css |
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 ... | SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'potassium chloride replacement (oncology)' AND DATETIME(prescript... | mimic_iii |
CREATE TABLE table_9993 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Round, when College is 'Norfolk State'?
| SELECT SUM("Round") FROM table_9993 WHERE "College" = 'norfolk state' | wikisql |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmoun... | WITH Raw AS (SELECT Id, DATEADD(day, 7 * (DATEDIFF(day, '1970-01-05', CreationDate) / 7), '1970-01-05') AS Week, OwnerUserId AS UserId FROM Posts WHERE PostTypeId = 2 AND OwnerUserId > 0), Raw2 AS (SELECT Week, UserId, COUNT(*) AS PostCount FROM Raw GROUP BY Week, UserId) SELECT Week, COUNT(*) AS UserCount FROM Raw2 WH... | sede |
CREATE TABLE table_36815 (
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Matches" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a Total of less than 29, what is Ian Ryan's most Matches?
| SELECT MAX("Matches") FROM table_36815 WHERE "Player" = 'ian ryan' AND "Total" < '29' | wikisql |
CREATE TABLE table_name_25 (
venue VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue featured essendon as home team?
| SELECT venue FROM table_name_25 WHERE home_team = "essendon" | sql_create_context |
CREATE TABLE table_32988 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Essendon Home Team's venue?
| SELECT "Venue" FROM table_32988 WHERE "Home team" = 'essendon' | wikisql |
CREATE TABLE table_59024 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least silvers where there are 39 bronzes and the total is less than 120?
| SELECT MIN("Silver") FROM table_59024 WHERE "Bronze" = '39' AND "Total" < '120' | wikisql |
CREATE TABLE Customers (
customer_id INTEGER,
payment_method VARCHAR(15),
customer_name VARCHAR(80),
date_became_customer DATETIME,
other_customer_details VARCHAR(255)
)
CREATE TABLE Order_Items (
order_id INTEGER,
product_id INTEGER,
order_quantity VARCHAR(15)
)
CREATE TABLE Customer_... | SELECT date_became_customer, COUNT(date_became_customer) FROM Customers WHERE customer_id BETWEEN 10 AND 20 ORDER BY COUNT(date_became_customer) | nvbench |
CREATE TABLE table_23248940_9 (
location_attendance VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was game number 55 played?
| SELECT location_attendance FROM table_23248940_9 WHERE game = 55 | sql_create_context |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ tim... | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.Y... | css |
CREATE TABLE table_10187 (
"Rank" real,
"Gymnast" text,
"Floor Exercise" real,
"Pommel Horse" real,
"Rings" real,
"Vault" real,
"Parallel Bars" real,
"Horizontal Bar" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name ... | SELECT MIN("Floor Exercise") FROM table_10187 WHERE "Pommel Horse" < '8.45' AND "Parallel Bars" > '9.687' | wikisql |
CREATE TABLE table_22820 (
"Programme" text,
"Date(s) of original removal" text,
"Original channel" text,
"Date of return" text,
"New channel(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When bbc two is the new channel what is the date of retu... | SELECT "Date of return" FROM table_22820 WHERE "New channel(s)" = 'BBC Two' | wikisql |
CREATE TABLE table_45045 (
"Year" real,
"Top Fuel" text,
"Funny Car" text,
"Pro Stock" text,
"Pro Stock Motorcycle" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won Pro Stock Motorcycle the year Tom Martino won Pro Stock?
| SELECT "Pro Stock Motorcycle" FROM table_45045 WHERE "Pro Stock" = 'tom martino' | wikisql |
CREATE TABLE table_200_33 (
id number,
"district" text,
"area size\n(km2)" text,
"population" text,
"density\nper km2" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the population of the yamato flat inland plain
| SELECT "population" FROM table_200_33 WHERE "district" = 'yamato flat inland plain' | squall |
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... | SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '钱梦菲' AND t_kc22.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT >= 7537.13) | css |
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT JOB_ID, MANAGER_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID DESC | nvbench |
CREATE TABLE table_55755 (
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the episode with a production code of ad1b04?
| SELECT "Title" FROM table_55755 WHERE "Production code" = 'ad1b04' | wikisql |
CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_ID number
)
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,
... | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '33964912' AND t_kc21.MED_SER_ORG_NO = '6431931' AND NOT t_kc21.IN_DIAG_DIS_NM LIKE '%咽炎%' | css |
CREATE TABLE table_204_72 (
id number,
"election year" number,
"# of\nconstituency votes" number,
"# of\nparty list votes" number,
"% of\nparty list votes" number,
"# of\noverall seats won" text,
"+/-" number
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "election year" FROM table_204_72 ORDER BY "# of\noverall seats won" LIMIT 1 | squall |
CREATE TABLE table_73409 (
"State (class)" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date of successors formal installation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the successor for elected january 26, 1837
| SELECT COUNT("Successor") FROM table_73409 WHERE "Date of successors formal installation" = 'Elected January 26, 1837' | wikisql |
CREATE TABLE table_67675 (
"Position" real,
"Club" text,
"Played" real,
"Points" text,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT AVG("Wins") FROM table_67675 WHERE "Points" = '42-2' AND "Goals against" = '67' AND "Played" < '44' | wikisql |
CREATE TABLE table_33367 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the home team of the game against Essendo... | SELECT "Home team" FROM table_33367 WHERE "Away team" = 'essendon' | wikisql |
CREATE TABLE table_203_673 (
id number,
"#" number,
"date" text,
"opponent" text,
"score" text,
"win" text,
"loss" text,
"save" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many saves did... | SELECT "save" FROM table_203_673 WHERE "date" = 'july 3' | squall |
CREATE TABLE minor_in (
stuid number,
dno number
)
CREATE TABLE gradeconversion (
lettergrade text,
gradepoint number
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE facult... | SELECT dname FROM department EXCEPT SELECT T1.dname FROM department AS T1 JOIN minor_in AS T2 ON T1.dno = T2.dno | spider |
CREATE TABLE table_74688 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game when the away team... | SELECT "Date" FROM table_74688 WHERE "Away team" = 'south melbourne' | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "NEWBORN" AND prescriptions.route = "REPLACE" | mimicsql_data |
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 zyjzjlb.JZLSH FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE hz_info.RYBH = '01912667' AND NOT zyjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ <= '2009-05-30') | css |
CREATE TABLE table_name_7 (
venue VARCHAR,
home_team VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the venue of season 1983, which had alianza lima as the home team?
| SELECT venue FROM table_name_7 WHERE home_team = "alianza lima" AND season = 1983 | sql_create_context |
CREATE TABLE table_50426 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is list... | SELECT "Points 1" FROM table_50426 WHERE "Position" > '4' AND "Goals For" = '54' AND "Lost" > '11' | wikisql |
CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM text,
RZBQMC text,
RYCWH text,
CYKSDM text,
CYKSMC text,
CYBQDM tex... | SELECT person_info.XM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb 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 WHERE jybgb.BGDH = '18617943504' | css |
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... | SELECT * FROM qtb WHERE qtb.PERSON_NM = '何德本' AND qtb.MED_SER_ORG_NO = '2931380' AND NOT qtb.MED_ORG_DEPT_NM LIKE '%美容%' UNION SELECT * FROM gyb WHERE gyb.PERSON_NM = '何德本' AND gyb.MED_SER_ORG_NO = '2931380' AND NOT gyb.MED_ORG_DEPT_NM LIKE '%美容%' UNION SELECT * FROM zyb WHERE zyb.PERSON_NM = '何德本' AND zyb.MED_SER_ORG_... | css |
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
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 INTEGER,
ci... | SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY city_code | nvbench |
CREATE TABLE table_25042332_22 (
primary__6_13_years_ VARCHAR,
preschool__0_5_years_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the enrollment ration in primary in the region where the enrollment ratio in preschool is 50.23?
| SELECT primary__6_13_years_ FROM table_25042332_22 WHERE preschool__0_5_years_ = "50.23" | sql_create_context |
CREATE TABLE table_name_63 (
prince_xml VARCHAR,
gecko VARCHAR,
webkit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Prince XML value for the engine that has a Gecko value of 'no' and webkit value of 'nightly build'?
| SELECT prince_xml FROM table_name_63 WHERE gecko = "no" AND webkit = "nightly build" | sql_create_context |
CREATE TABLE table_42864 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country has a television service with Cartello Promozionale ... | SELECT "Country" FROM table_42864 WHERE "Television service" = 'cartello promozionale sky hd' | wikisql |
CREATE TABLE table_29375 (
"Year" real,
"Network(s)" text,
"Bowl" text,
"Play-by-play announcer" text,
"Color analyst(s)" text,
"Sideline reporter(s)" text,
"Studio host(s)" text,
"Studio analyst(s)" text,
"TV Rating" text
)
-- Using valid SQLite, answer the following questions for... | SELECT "Studio analyst(s)" FROM table_29375 WHERE "Network(s)" = 'ESPN' AND "Sideline reporter(s)" = 'Erin Andrews and Tom Rinaldi' | wikisql |
CREATE TABLE table_51300 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the laps are over 53, what's the average grid?
| SELECT AVG("Grid") FROM table_51300 WHERE "Laps" > '53' | wikisql |
CREATE TABLE table_36529 (
"HyperTransport version" real,
"Year" real,
"Max. HT frequency" text,
"Max. link width" text,
"Max. aggregate bandwidth (bi-directional)" text,
"Max. bandwidth at 16-bit unidirectional" text,
"Max. bandwidth at 32-bit unidirectional*" text
)
-- Using valid SQLite... | SELECT "Max. aggregate bandwidth (bi-directional)" FROM table_36529 WHERE "HyperTransport version" = '2' | wikisql |
CREATE TABLE gymnast (
Gymnast_ID int,
Floor_Exercise_Points real,
Pommel_Horse_Points real,
Rings_Points real,
Vault_Points real,
Parallel_Bars_Points real,
Horizontal_Bar_Points real,
Total_Points real
)
CREATE TABLE people (
People_ID int,
Name text,
Age real,
Height ... | SELECT Hometown, COUNT(*) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown ORDER BY Hometown DESC | nvbench |
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Sc... | SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS rank, Badges.UserId AS "user_link", COUNT(*) AS "Badge Count", Users.Reputation AS "Total user reputation", Users.Reputation / COUNT(*) AS "Ratio" FROM Badges INNER JOIN Users ON Users.Id = Badges.UserId AND Badges.Name = 'Necromancer' AND Badges.Date < '##Date?9999-... | sede |
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Create a ba... | SELECT Class, COUNT(Class) FROM race GROUP BY Class ORDER BY COUNT(Class) | nvbench |
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimme... | SELECT meter_300, ID FROM swimmer ORDER BY meter_300 DESC | nvbench |
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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.age < "36" | mimicsql_data |
CREATE TABLE table_train_207 (
"id" int,
"anemia" bool,
"hemoglobin_a1c_hba1c" float,
"diabetic" string,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- type i diabetes
| SELECT * FROM table_train_207 WHERE diabetic = 'i' | criteria2sql |
CREATE TABLE culture_company (
Company_name text,
Type text,
Incorporated_in text,
Group_Equity_Shareholding real,
book_club_id text,
movie_id text
)
CREATE TABLE movie (
movie_id int,
Title text,
Year int,
Director text,
Budget_million real,
Gross_worldwide int
)
CREAT... | SELECT Category, COUNT(*) FROM book_club GROUP BY Category ORDER BY Category | nvbench |
CREATE TABLE table_14242137_11 (
regionalliga_nord VARCHAR,
regionalliga_süd VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the regionalliga nord with regionalliga s d being 1. fc nuremberg spvgg greuther f rth
| SELECT regionalliga_nord FROM table_14242137_11 WHERE regionalliga_süd = "1. FC Nuremberg SpVgg Greuther Fürth" | sql_create_context |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
row_id numbe... | SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 23224 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1 | mimic_iii |
CREATE TABLE table_name_93 (
time_retired VARCHAR,
constructor VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time/retired with a toyota constructor and a 5 grid?
| SELECT time_retired FROM table_name_93 WHERE constructor = "toyota" AND grid = 5 | sql_create_context |
CREATE TABLE table_67697 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Date of december 29 has what visitor?
| SELECT "Visitor" FROM table_67697 WHERE "Date" = 'december 29' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.