instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_4259 (
"Rank" real,
"Country/Territory" text,
"Mister International" real,
"1st runner-up" real,
"2nd runner-up" real,
"3rd runner-up" real,
"4th runner-up" real,
"Semifinalists" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the t... | SELECT MIN("Mister International") FROM table_4259 | wikisql |
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Tags (
Id number,
TagName text,
C... | SELECT TIME_TO_STR(CreationDate, '%Y') AS "year", TIME_TO_STR(CreationDate, '%-M') AS "month", SUM(CASE WHEN NOT AcceptedAnswerId IS NULL THEN 1 ELSE 0 END) AS "accepted", SUM(CASE WHEN AcceptedAnswerId IS NULL THEN 1 ELSE 0 END) AS "not_accepted", CAST(ROUND(CAST(COUNT(AcceptedAnswerId) AS FLOAT) / CAST(COUNT(*) AS FL... | sede |
CREATE TABLE table_name_50 (
high_assists VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the highest assists of the game on March 5?
| SELECT high_assists FROM table_name_50 WHERE date = "march 5" | sql_create_context |
CREATE TABLE table_name_46 (
location VARCHAR,
unit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is two medicine formation?
| SELECT location FROM table_name_46 WHERE unit = "two medicine formation" | sql_create_context |
CREATE TABLE table_74655 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total" real,
"Number of dances" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest average that has 6 dances and a total of over 128... | SELECT MAX("Average") FROM table_74655 WHERE "Number of dances" = '6' AND "Total" > '128' | wikisql |
CREATE TABLE table_204_91 (
id number,
"year" number,
"original title" text,
"english title" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was henrick malberg 's last film ?
| SELECT "original title" FROM table_204_91 ORDER BY "year" DESC LIMIT 1 | squall |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT demographic.admission_type FROM demographic WHERE demographic.subject_id = "42963" | mimicsql_data |
CREATE TABLE table_16180 (
"Institution" text,
"Location" text,
"Men\u2019s Nickname" text,
"Women\u2019s Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" text,
"Left" text,
"Current Conference" text,
"Classification" text
)
-- Using valid SQLite, an... | SELECT "Left" FROM table_16180 WHERE "Women\u2019s Nickname" = 'Lady Pilots' | wikisql |
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 classroom (
building text,
room_number text,
capacity number
)
CREATE... | SELECT name FROM instructor WHERE dept_name = 'Statistics' ORDER BY salary LIMIT 1 | spider |
CREATE TABLE perpetrator (
perpetrator_id number,
people_id number,
date text,
year number,
location text,
country text,
killed number,
injured number
)
CREATE TABLE people (
people_id number,
name text,
height number,
weight number,
home town text
)
-- Using valid... | SELECT T1.name FROM people AS T1 JOIN perpetrator AS T2 ON T1.people_id = T2.people_id WHERE T2.country <> "China" | spider |
CREATE TABLE table_26708105_5 (
nt_identity VARCHAR,
species VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nt identity when the species is drosophilia melanogaster?
| SELECT nt_identity FROM table_26708105_5 WHERE species = "Drosophilia melanogaster" | sql_create_context |
CREATE TABLE customer_events (
customer_event_id number,
customer_id number,
date_moved_in time,
property_id number,
resident_id number,
thing_id number
)
CREATE TABLE organizations (
organization_id number,
parent_organization_id number,
organization_details text
)
CREATE TABLE ti... | SELECT T1.resident_id, T1.other_details, COUNT(*) FROM residents AS T1 JOIN residents_services AS T2 ON T1.resident_id = T2.resident_id GROUP BY T1.resident_id ORDER BY COUNT(*) DESC | spider |
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCH... | SELECT Fname, COUNT(Fname) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM Has_amenity AS T3 JOIN Dorm_amenity AS T4 ON T3.amenid = T4.amenid WHERE T4.amenity_name = 'TV Lounge') GROUP BY Fname ORDER BY Fname DESC | nvbench |
CREATE TABLE table_name_56 (
player VARCHAR,
country VARCHAR,
money___$__ VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Player, when Country is 'United States', when Money ( $ ) is greater than 387, and when Score is '75-74-74... | SELECT player FROM table_name_56 WHERE country = "united states" AND money___$__ > 387 AND score = 75 - 74 - 74 - 70 = 293 | sql_create_context |
CREATE TABLE gwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT * FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '3713663' AND gwyjzb.IN_HOSP_DATE BETWEEN '2008-07-24' AND '2015-01-04' UNION SELECT * FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '3713663' AND fgwyjzb.IN_HOSP_DATE BETWEEN '2008-07-24' AND '2015-01-04' EXCEPT SELECT * FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '371366... | css |
CREATE TABLE table_51985 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Constructor has the Winning Driver, Jo Siffert?
| SELECT "Constructor" FROM table_51985 WHERE "Winning driver" = 'jo siffert' | wikisql |
CREATE TABLE table_name_6 (
lane VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which lane did the athlete from Zambia swim in?
| SELECT lane FROM table_name_6 WHERE nationality = "zambia" | sql_create_context |
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 microlab (
microlabid ... | SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'anuri... | eicu |
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 COUNT(*) FROM t_kc21 JOIN t_kc22 JOIN t_kc21_t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc22.MED_CLINIC_ID AND t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID WHERE t_kc21.MED_SER_ORG_NO = '5664551' AND t_kc22.SOC_SRT_DIRE_NM = '叶酸片' | css |
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
... | SELECT DISTINCT ground_service.transport_type FROM airport, airport_service, city AS CITY_0, city AS CITY_1, ground_service WHERE airport.airport_code = airport_service.airport_code AND CITY_0.city_code = airport_service.city_code AND CITY_0.city_name = 'PITTSBURGH' AND CITY_1.city_name = 'PITTSBURGH' AND ground_servic... | atis |
CREATE TABLE table_77971 (
"Player" text,
"Team" text,
"Date" text,
"Opposition" text,
"Game" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What game did Eoin Holohan play in?
| SELECT "Game" FROM table_77971 WHERE "Player" = 'eoin holohan' | wikisql |
CREATE TABLE table_name_99 (
location VARCHAR,
country VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the location of the Havaianas Beachley Classic, held in Australia?
| SELECT location FROM table_name_99 WHERE country = "australia" AND event = "havaianas beachley classic" | sql_create_context |
CREATE TABLE table_name_94 (
opponent VARCHAR,
week VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Opponent before Week 11 with an Attendance of 63,571?
| SELECT opponent FROM table_name_94 WHERE week < 11 AND attendance = "63,571" | sql_create_context |
CREATE TABLE table_37738 (
"Tournament" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
)
-- Using valid SQLite, answer the following qu... | SELECT "2000" FROM table_37738 WHERE "2002" = 'not tier i' AND "2006" = '2r' | wikisql |
CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
... | (SELECT jybgb.SHSJ 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 = '蒋锐锋' AND jyb... | css |
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_20... | SELECT meter_700, ID FROM swimmer ORDER BY meter_700 | nvbench |
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_kc21.MED_AMOUT) FROM t_kc21 WHERE t_kc21.MED_ORG_DEPT_CD = '96256' AND t_kc21.IN_HOSP_DATE BETWEEN '2008-10-19' AND '2019-06-15' AND t_kc21.IN_DIAG_DIS_CD = 'Y97.841' AND t_kc21.CLINIC_TYPE = '住院' | css |
CREATE TABLE table_5602 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party is Charles Van Wyck part of?
| SELECT "Party" FROM table_5602 WHERE "Incumbent" = 'charles van wyck' | wikisql |
CREATE TABLE table_3005915_3 (
poles INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum number of poles?
| SELECT MAX(poles) FROM table_3005915_3 | sql_create_context |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_ID = '85839461' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT >= 9856.88) UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '85839461' AND fgwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID ... | css |
CREATE TABLE table_31533 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has position in year 1996-97 in Toronto?
| SELECT "Position" FROM table_31533 WHERE "Years in Toronto" = '1996-97' | wikisql |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid numb... | SELECT COUNT(*) > 0 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-13920')) AND STRFTIME('%y', lab.labresulttime) >= '2104' | eicu |
CREATE TABLE table_66785 (
"Place" text,
"Name" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country has a To par of +1 and the score of 71-76-70=217?
| SELECT "Country" FROM table_66785 WHERE "To par" = '+1' AND "Score" = '71-76-70=217' | wikisql |
CREATE TABLE table_18486 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many party with candidates being john m. vorys (r) 61.5% jacob f. my... | SELECT COUNT("Party") FROM table_18486 WHERE "Candidates" = 'John M. Vorys (R) 61.5% Jacob F. Myers (D) 38.5%' | wikisql |
CREATE TABLE table_name_70 (
games INTEGER,
rating VARCHAR,
yards VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the games average with less than 3.8 in rating and less than 9 yards?
| SELECT AVG(games) FROM table_name_70 WHERE rating < 3.8 AND yards < 9 | 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 prescriptions (
subject_id text,
hadm_id... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "29" AND procedures.short_title = "Other phototherapy" | mimicsql_data |
CREATE TABLE table_name_94 (
vineyard_surface__2010_ VARCHAR,
village VARCHAR,
grand_cru VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Vineyeard surface (2010) with a Village of Gevrey-Chambertin, and Grand Cru of Latrici res-Chambertin?
| SELECT vineyard_surface__2010_ FROM table_name_94 WHERE village = "gevrey-chambertin" AND grand_cru = "latricières-chambertin" | sql_create_context |
CREATE TABLE table_203_18 (
id number,
"year" number,
"film" text,
"role" text,
"co-star" text,
"director" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- before she was in dubshatar , which film did she make a special appearanc... | SELECT "film" FROM table_203_18 WHERE "notes" = 'special appearance' | squall |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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... | SELECT jybgb.BBCJBW 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 = '朱泰和' AND jy... | css |
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 SUM(t_kc21.MED_AMOUT) FROM t_kc21 WHERE t_kc21.PERSON_NM = '潘清宁' AND t_kc21.CLINIC_TYPE = '门诊' | css |
CREATE TABLE table_62440 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 2009, when 2011 is 'Q2'?
| SELECT "2009" FROM table_62440 WHERE "2011" = 'q2' | wikisql |
CREATE TABLE table_15162479_8 (
nominee VARCHAR,
net_vote VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What nominees had a net vote of 34.46%?
| SELECT nominee FROM table_15162479_8 WHERE net_vote = "34.46%" | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.language = "CAPE" AND demographic.diagnosis = "INFECTED RIGHT THIGH GRAFT" | mimicsql_data |
CREATE TABLE table_70326 (
"Year" real,
"Award" text,
"Category" text,
"Nominated Work" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What nominated work received a tony award in 2009?
| SELECT "Nominated Work" FROM table_70326 WHERE "Award" = 'tony award' AND "Year" = '2009' | wikisql |
CREATE TABLE table_59167 (
"Model Number" text,
"Clock Speed" text,
"L1 Cache" text,
"L2 Cache" text,
"FSB Speed" text,
"Clock Multiplier" text,
"Idle Power" text,
"Socket" text,
"Cores" real,
"Release Date" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "L1 Cache" FROM table_59167 WHERE "FSB Speed" = '800mhz' AND "Clock Speed" = '1.2ghz' | wikisql |
CREATE TABLE table_name_31 (
visiting_team VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the visiting team on December 6?
| SELECT visiting_team FROM table_name_31 WHERE date = "december 6" | sql_create_context |
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM text,
SHRGH ... | (SELECT jyjgzbb.JCFF FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_i... | css |
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 MIN(t_kc24.MED_AMOUT), MAX(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '0652199' AND t_kc21.OUT_DIAG_DIS_CD = 'H88.444') | css |
CREATE TABLE table_26556 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people directed '... | SELECT COUNT("Directed by") FROM table_26556 WHERE "Title" = 'Odd Man In' | wikisql |
CREATE TABLE table_name_13 (
speed VARCHAR,
rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Speed for Chris Swallow?
| SELECT speed FROM table_name_13 WHERE rider = "chris swallow" | sql_create_context |
CREATE TABLE Customers (
customer_id INTEGER,
customer_type_code VARCHAR(20),
address_line_1 VARCHAR(80),
address_line_2 VARCHAR(80),
town_city VARCHAR(80),
state VARCHAR(80),
email_address VARCHAR(255),
phone_number VARCHAR(80)
)
CREATE TABLE Staff (
staff_id INTEGER,
gender VA... | SELECT product_category_code, AVG(product_price) FROM Products GROUP BY product_category_code ORDER BY AVG(product_price) | nvbench |
CREATE TABLE table_11071897_1 (
interregnum_ended VARCHAR,
duration VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of interregnum for duration 3 months, 6 days?
| SELECT COUNT(interregnum_ended) FROM table_11071897_1 WHERE duration = "3 months, 6 days" | sql_create_context |
CREATE TABLE table_name_94 (
date VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date for the tournament acapulco?
| SELECT date FROM table_name_94 WHERE tournament = "acapulco" | sql_create_context |
CREATE TABLE table_44185 (
"Club" text,
"Location" text,
"Stadium" text,
"Capacity" real,
"Manager" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Location of the Hietalahti Stadium?
| SELECT "Location" FROM table_44185 WHERE "Stadium" = 'hietalahti stadium' | wikisql |
CREATE TABLE table_28745 (
"Year" real,
"Races" real,
"Wins" real,
"Poles" real,
"Top 5" real,
"Top 10" real,
"DNF" real,
"Finish" text,
"Start" text,
"Winnings" text,
"Season Rank" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions for the tab... | SELECT COUNT("Finish") FROM table_28745 WHERE "Start" = '21.6' | wikisql |
CREATE TABLE table_name_21 (
democratic_votes VARCHAR,
other_votes VARCHAR,
_percentage_of_r_votes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of democratic votes when the other votes are less than 18 and the percentage of R vote... | SELECT COUNT(democratic_votes) FROM table_name_21 WHERE other_votes < 18 AND _percentage_of_r_votes = "52.63% ANd_votes_since_1856 < 38" | sql_create_context |
CREATE TABLE table_75037 (
"Rank" real,
"Player" text,
"Goals" real,
"Games" real,
"Goal Ratio" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest value for goals in rank over 3 with goal ration of 0.54?
| SELECT MAX("Goals") FROM table_75037 WHERE "Rank" > '3' AND "Goal Ratio" = '0.54' | wikisql |
CREATE TABLE table_10812293_4 (
high_points VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For games on December 20, how many points did the scoring leaders get?
| SELECT high_points FROM table_10812293_4 WHERE date = "December 20" | 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 T1.Code, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter | nvbench |
CREATE TABLE table_64479 (
"Rank" real,
"Name" text,
"1st run" text,
"2nd run" text,
"3rd run" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rank has a 2nd run of 1:17.170 (8)?
| SELECT MAX("Rank") FROM table_64479 WHERE "2nd run" = '1:17.170 (8)' | wikisql |
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 jyjgzbb.JCZBMC, jyjgzbb.JCZBJGDW, AVG(jyjgzbb.JCZBJGDL) FROM jyjgzbb JOIN jybgb_jyjgzbb JOIN jybgb ON jybgb_jyjgzbb.JYZBLSH = jyjgzbb.JYZBLSH AND jybgb_jyjgzbb.jyjgzbb_id = jyjgzbb.jyjgzbb_id AND jybgb_jyjgzbb.YLJGDM = jybgb.YLJGDM WHERE jybgb.YLJGDM = '4893807' AND jyjgzbb.BGRQ BETWEEN '2008-12-29' AND '2009-02... | css |
CREATE TABLE table_name_19 (
opponent VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponent for 9 november 1991
| SELECT opponent FROM table_name_19 WHERE date = "9 november 1991" | 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 wdmzjzjlb.ZYBMLX, wdmzjzjlb.ZYZDBM, wdmzjzjlb.ZYZDMC FROM wdmzjzjlb WHERE wdmzjzjlb.JZLSH = '02193612306' UNION SELECT bdmzjzjlb.ZYBMLX, bdmzjzjlb.ZYZDBM, bdmzjzjlb.ZYZDMC FROM bdmzjzjlb WHERE bdmzjzjlb.JZLSH = '02193612306' | css |
CREATE TABLE table_204_992 (
id number,
"team" text,
"manager" text,
"city" text,
"stadium" text,
"capacity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many more people can sit in the alajuela 's stadium than puntarenas ?
| SELECT (SELECT "capacity" FROM table_204_992 WHERE "city" = 'alajuela') - (SELECT "capacity" FROM table_204_992 WHERE "city" = 'puntarenas') | squall |
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 demographic ... | SELECT prescriptions.drug FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Stephanie Suchan" | mimicsql_data |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT SUM(t_kc24.PER_ACC_PAY) FROM gwyjzb JOIN t_kc24 ON gwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '张和暖' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2002-10-02' AND '2006-11-03' UNION SELECT SUM(t_kc24.PER_ACC_PAY) FROM fgwyjzb JOIN t_kc24 ON fgwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE fgwyjz... | css |
CREATE TABLE table_70875 (
"Model" text,
"Seats" text,
"Period" text,
"Built" real,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Model had 37-78 seats?
| SELECT "Model" FROM table_70875 WHERE "Seats" = '37-78' | wikisql |
CREATE TABLE table_40932 (
"Place" real,
"Rider" text,
"Country" text,
"Machine" text,
"Speed" text,
"Time" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many places have yamaha as the machine, and 89.85mph as the speed?
| SELECT SUM("Place") FROM table_40932 WHERE "Machine" = 'yamaha' AND "Speed" = '89.85mph' | wikisql |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuo... | SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 69895) AND DATETIME(microbiologyevents.charttime) >= DATETIME(CURRENT_TIME(), '-177 month') ORDER BY microbiologyevents.charttime LIMIT 1 | mimic_iii |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT SUM(t_kc24.MED_AMOUT), SUM(t_kc24.OVE_PAY) FROM gwyjzb JOIN t_kc24 ON gwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '4812361' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2001-09-22' AND '2008-02-23' UNION SELECT SUM(t_kc24.MED_AMOUT), SUM(t_kc24.OVE_PAY) FROM fgwyjzb JOIN t_kc24 ON fgwyjzb.ME... | css |
CREATE TABLE table_34641 (
"Year" text,
"Venue" text,
"Winner" text,
"Country" text,
"Score" text,
"Runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the 1966 competition with a winner of Gary Cowan held?
| SELECT "Venue" FROM table_34641 WHERE "Winner" = 'gary cowan' AND "Year" = '1966' | wikisql |
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
... | SELECT AVG(p.Score) FROM Posts AS p JOIN PostTags AS pt ON p.Id = pt.PostId JOIN Tags AS t ON pt.TagId = t.Id JOIN Posts AS a ON p.AcceptedAnswerId = a.Id WHERE (t.TagName = '##TagName:string##') AND (NOT p.AcceptedAnswerId IS NULL) AND (p.CreationDate >= '##Date1?2016-01-01##') AND (p.CreationDate <= '##Date2?2019-12-... | sede |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE microbiologyevents (
... | SELECT transfers.careunit FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 97733) AND NOT transfers.careunit IS NULL AND DATETIME(transfers.intime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY transfers.intime DESC LIM... | mimic_iii |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.icd9_code = "43491" | mimicsql_data |
CREATE TABLE table_37676 (
"Category" text,
"Type" text,
"Attribute" text,
"Bubbles" text,
"Cancelable" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Cancelable of yes, bubble of yes and a Category of keyboard, what was the Attribute?
| SELECT "Attribute" FROM table_37676 WHERE "Cancelable" = 'yes' AND "Bubbles" = 'yes' AND "Category" = 'keyboard' | wikisql |
CREATE TABLE table_name_15 (
tournament VARCHAR,
opponents_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Tournament with a Opponents in the final with rod laver fred stolle?
| SELECT tournament FROM table_name_15 WHERE opponents_in_the_final = "rod laver fred stolle" | 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 t_kc24.t_kc21_MED_ORG_DEPT_NM, t_kc24.t_kc21_OUT_DIAG_DIS_CD, MIN(t_kc24.PER_EXP) FROM t_kc24 WHERE t_kc24.t_kc21_MED_SER_ORG_NO = '8925142' GROUP BY t_kc24.t_kc21_MED_ORG_DEPT_NM, t_kc24.t_kc21_OUT_DIAG_DIS_CD ORDER BY MIN(t_kc24.PER_EXP / t_kc24.MED_AMOUT) | css |
CREATE TABLE table_48816 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who ha... | SELECT "High assists" FROM table_48816 WHERE "Team" = 'memphis' | wikisql |
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime ... | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20000 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) | mimic_iii |
CREATE TABLE table_75083 (
"Outcome" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score for the match with a partnering of Tessa Price?
| SELECT "Score in the final" FROM table_75083 WHERE "Partnering" = 'tessa price' | wikisql |
CREATE TABLE table_48527 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Part 1, when Part 2 is 'fraus'?
| SELECT "Part 1" FROM table_48527 WHERE "Part 2" = 'fraus' | wikisql |
CREATE TABLE table_name_25 (
tries INTEGER,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of tries of player israel folau?
| SELECT AVG(tries) FROM table_name_25 WHERE player = "israel folau" | 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 COUNT(*) FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_ID = '18154604' AND t_kc22.STA_DATE BETWEEN '2005-01-07' AND '2016-10-05' AND t_kc22.t_kc21_MED_SER_ORG_NO = '4531182' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' | css |
CREATE TABLE farm (
Farm_ID int,
Year int,
Total_Horses real,
Working_Horses real,
Total_Cattle real,
Oxen real,
Bulls real,
Cows real,
Pigs real,
Sheep_and_Goats real
)
CREATE TABLE city (
City_ID int,
Official_Name text,
Status text,
Area_km_2 real,
Populat... | SELECT Official_Name, COUNT(Official_Name) FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID GROUP BY Official_Name ORDER BY Official_Name DESC | nvbench |
CREATE TABLE table_3223 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position was the number 6 draft pick?
| SELECT "Position" FROM table_3223 WHERE "Pick #" = '6' | wikisql |
CREATE TABLE table_11677100_12 (
mlb_draft VARCHAR,
hometown VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the MLB draft with the hometown Opa-locka, Fl?
| SELECT mlb_draft FROM table_11677100_12 WHERE hometown = "Opa-locka, FL" | sql_create_context |
CREATE TABLE table_1341663_14 (
party VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Phil Crane, democrat or republican
| SELECT party FROM table_1341663_14 WHERE incumbent = "Phil Crane" | sql_create_context |
CREATE TABLE table_2969 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record if the location is Clarke Stadium?
| SELECT "Record" FROM table_2969 WHERE "Location" = 'Clarke Stadium' | wikisql |
CREATE TABLE table_9024 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is average December when game is 30?
| SELECT AVG("December") FROM table_9024 WHERE "Game" = '30' | wikisql |
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adul... | SELECT Room, COUNT(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_48973 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" text,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If 1967 is the winning year and a player has a total recorded as wd with a To par under 16, what's th... | SELECT "Player" FROM table_48973 WHERE "Total" = 'wd' AND "To par" < '16' AND "Year(s) won" = '1967' | wikisql |
CREATE TABLE table_name_9 (
titles INTEGER,
current_run_since VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of titles won by the J rve club before 2013?
| SELECT MAX(titles) FROM table_name_9 WHERE current_run_since < 2013 AND club = "järve" | sql_create_context |
CREATE TABLE table_name_14 (
conventional_plans VARCHAR,
pos_plans VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which conventional plan has a POS plan of 21%?
| SELECT conventional_plans FROM table_name_14 WHERE pos_plans = "21%" | sql_create_context |
CREATE TABLE table_78931 (
"Elector" text,
"Place of birth" text,
"Cardinalatial title" text,
"Elevated" text,
"Elevator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Elector has an Elevator of Alexander III and a Cardinalatial title of Bisho... | SELECT "Elector" FROM table_78931 WHERE "Elevator" = 'alexander iii' AND "Cardinalatial title" = 'bishop of palestrina' | wikisql |
CREATE TABLE table_1825751_4 (
second_runner_up VARCHAR,
binibining_pilipinas_world VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the second runner up when Janina San Miguel won binibining pilipinas-world?
| SELECT COUNT(second_runner_up) FROM table_1825751_4 WHERE binibining_pilipinas_world = "Janina San Miguel" | sql_create_context |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "27" AND prescriptions.route = "ID" | mimicsql_data |
CREATE TABLE table_17901155_3 (
no_in_series INTEGER,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the series # for the episode directed by Kelly Sandefur?
| SELECT MAX(no_in_series) FROM table_17901155_3 WHERE directed_by = "Kelly Sandefur" | sql_create_context |
CREATE TABLE table_13018116_1 (
pts_for INTEGER,
won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most points when the won is 9?
| SELECT MAX(pts_for) FROM table_13018116_1 WHERE won = 9 | sql_create_context |
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
)
CREATE TABLE Subject... | SELECT date_of_completion, COUNT(date_of_completion) FROM Student_Course_Enrolment | nvbench |
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,
... | SELECT COUNT(*) FROM medication WHERE medication.drugname = 'bisacodyl' AND STRFTIME('%y', medication.drugstarttime) = '2104' | eicu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.