instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_14984126_1 (
game_site VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the game site with result being l 24 34
| SELECT game_site FROM table_14984126_1 WHERE result = "L 24–34" | sql_create_context |
CREATE TABLE table_23303 (
"English Name" text,
"Chinese Name (Simplified / Traditional)" text,
"Pinyin" text,
"Population" real,
"Post Code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the post code of the county with the Chinese name / ?... | SELECT MIN("Post Code") FROM table_23303 WHERE "Chinese Name (Simplified / Traditional)" = '潜山县 / 潛山縣' | wikisql |
CREATE TABLE Ref_Incident_Type (
incident_type_code VARCHAR(10),
incident_type_description VARCHAR(80)
)
CREATE TABLE Behavior_Incident (
incident_id INTEGER,
incident_type_code VARCHAR(10),
student_id INTEGER,
date_incident_start DATETIME,
date_incident_end DATETIME,
incident_summary V... | SELECT date_incident_start, COUNT(date_incident_start) FROM Behavior_Incident WHERE incident_type_code = "NOISE" ORDER BY COUNT(date_incident_start) DESC | nvbench |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "SDH" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | mimicsql_data |
CREATE TABLE table_34974 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the attendance of the game on week 4?
| SELECT "Attendance" FROM table_34974 WHERE "Week" = '4' | wikisql |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_ID = '01420537' AND gwyjzb.MED_SER_ORG_NO = '2864800' AND NOT gwyjzb.IN_DIAG_DIS_NM LIKE '%脑瘫%' UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '01420537' AND fgwyjzb.MED_SER_ORG_NO = '2864800' AND NOT fgwyjzb.IN_DIAG_DIS_NM LIKE '%脑瘫... | css |
CREATE TABLE table_48967 (
"Team #1" text,
"Agg." text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Team #1 had a 2nd leg score of 88-83?
| SELECT "Team #1" FROM table_48967 WHERE "2nd leg" = '88-83' | 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.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_ID = '70820807' AND t_kc22.MED_INV_ITEM_TYPE = '治疗费' | css |
CREATE TABLE table_49289 (
"Winner" text,
"Country" text,
"Winter Olympics" real,
"FIS Nordic World Ski Championships" real,
"Holmenkollen" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has a FIS Nordic World Ski Championship before 1... | SELECT "Country" FROM table_49289 WHERE "FIS Nordic World Ski Championships" < '1989' AND "Winter Olympics" < '1980' AND "Holmenkollen" = '1956' | wikisql |
CREATE TABLE table_77376 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue had an against score smaller than 18 when the opposing team was North Auckland?
| SELECT "Venue" FROM table_77376 WHERE "Against" < '18' AND "Opposing Team" = 'north auckland' | wikisql |
CREATE TABLE table_name_83 (
pole_position VARCHAR,
grand_prix VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Pole Position for the German Grand Prix
| SELECT pole_position FROM table_name_83 WHERE grand_prix = "german grand prix" | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
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,... | (SELECT jybgb.KSBM, jybgb.KSMC FROM hz_info JOIN mzjzjlb JOIN jybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '79373971' AND jybgb.BGRQ BETWEEN '2004-04-25' AND '2019... | css |
CREATE TABLE table_79511 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Opponent on November 27, 2005?
| SELECT "Opponent" FROM table_79511 WHERE "Date" = 'november 27, 2005' | wikisql |
CREATE TABLE table_23249 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 8 is the public what are the results?
| SELECT "Result" FROM table_23249 WHERE "Public" = '8' | wikisql |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
... | SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'extracran-intracr bypass') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 46528 AND NOT admissions.d... | mimic_iii |
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score num... | SELECT p.Id, p.Title, u.Id, u.Reputation FROM Posts AS p INNER JOIN Users AS u ON p.OwnerUserId = u.Id WHERE u.Reputation > 300 | sede |
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
... | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 89202) AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-28 month') ORDER BY prescriptions.startdate LIMIT 1 | mimic_iii |
CREATE TABLE table_name_39 (
pole_position VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the pole position for jerez?
| SELECT pole_position FROM table_name_39 WHERE location = "jerez" | sql_create_context |
CREATE TABLE table_203_253 (
id number,
"model" text,
"frame" text,
"years mfg'd" text,
"caliber(s)" text,
"production" text,
"barrel" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name the models that had the same caliber... | SELECT "model" FROM table_203_253 WHERE "model" <> 'remington-beals navy model revolver' AND "caliber(s)" = (SELECT "caliber(s)" FROM table_203_253 WHERE "model" = 'remington-beals navy model revolver') | squall |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
h... | SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14467)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [dias... | mimic_iii |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM txmzjzjlb JOIN jybgb JOIN jyjgzbb ON txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE txmzjzjlb.JZZDBM = 'N61.918' AND jyjgzbb.JCZBMC = '... | css |
CREATE TABLE table_name_50 (
group_position VARCHAR,
result_f_a VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Group position has Result F A of 0 1 on 1 november 2006?
| SELECT group_position FROM table_name_50 WHERE result_f_a = "0–1" AND date = "1 november 2006" | sql_create_context |
CREATE TABLE table_name_9 (
home VARCHAR,
decision VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which home has a Decision of kolzig, and a Date of november 5?
| SELECT home FROM table_name_9 WHERE decision = "kolzig" AND date = "november 5" | sql_create_context |
CREATE TABLE table_79662 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in final" text,
"Score" text,
"Prize Money" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the surface for the Volos tournament?
| SELECT "Surface" FROM table_79662 WHERE "Tournament" = 'volos' | wikisql |
CREATE TABLE table_34297 (
"Grand Cru" text,
"Region" text,
"Village" text,
"Wine style" text,
"Vineyard surface (2010)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Village has a Region of C te De Nuits, Wine Styles of Red Wine, and a Grand... | SELECT "Village" FROM table_34297 WHERE "Region" = 'côte de nuits' AND "Wine style" = 'red wine' AND "Grand Cru" = 'latricières-chambertin' | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT demographic.gender, procedures.long_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE table_name_61 (
stepping VARCHAR,
part_number_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the stepping amount for adh4450iaa5do?
| SELECT stepping FROM table_name_61 WHERE part_number_s_ = "adh4450iaa5do" | sql_create_context |
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 t_kc21.MED_CLINIC_ID FROM t_kc24 JOIN t_kc21_t_kc24 JOIN t_kc21 ON t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID AND t_kc21_t_kc24.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc24.PERSON_ID = '26713291' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2013-09-02' AND '2016-05-24' | css |
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,
JCZBJGDX text,
JCZBJGDL number,
JCZBJGDW text,
SBBM text,
YQBH text... | SELECT * FROM jyjgzbb WHERE JCZBMC = (SELECT JCZBMC FROM jyjgzbb WHERE JYZBLSH = '63771807598') AND JCZBJGDW = (SELECT JCZBJGDW FROM jyjgzbb WHERE JYZBLSH = '63771807598') AND JCZBJGDL <= (SELECT JCZBJGDL FROM jyjgzbb WHERE JYZBLSH = '63771807598') | css |
CREATE TABLE company (
company_id number,
rank number,
company text,
headquarters text,
main_industry text,
sales_billion number,
profits_billion number,
assets_billion number,
market_value number
)
CREATE TABLE station_company (
station_id number,
company_id number,
ran... | SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.company = 'ExxonMobil' | spider |
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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... | SELECT MIN(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17667) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.itemid ... | mimic_iii |
CREATE TABLE table_76451 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round was it when the method was TKO (would no... | SELECT AVG("Round") FROM table_76451 WHERE "Method" = 'tko (would not stand up from butt scoot)' | wikisql |
CREATE TABLE table_76354 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the away team against the home team Sheffield United?
| SELECT "Away team" FROM table_76354 WHERE "Home team" = 'sheffield united' | wikisql |
CREATE TABLE table_name_43 (
date VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the record 21-11?
| SELECT date FROM table_name_43 WHERE record = "21-11" | sql_create_context |
CREATE TABLE table_name_28 (
year INTEGER,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest year when Phil Anderson won?
| SELECT MAX(year) FROM table_name_28 WHERE winner = "phil anderson" | sql_create_context |
CREATE TABLE table_name_24 (
to_par VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the to par for the game with a score of 74-69-66=209?
| SELECT to_par FROM table_name_24 WHERE score = 74 - 69 - 66 = 209 | sql_create_context |
CREATE TABLE table_name_2 (
date VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was gabriela paz-franco the opponent?
| SELECT date FROM table_name_2 WHERE opponent = "gabriela paz-franco" | sql_create_context |
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semes... | SELECT DISTINCT course.name, course.number, program_course.workload FROM course, program_course WHERE course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND program_course.course_id = course.course_id AND program_course.workload < 3 ORDER BY program_course.workload | advising |
CREATE TABLE table_2072 (
"#" real,
"Volume line" text,
"Volume title" text,
"Creators" text,
"Material collected" text,
"Publication date" text,
"ISBN" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the umbr of creators for flash of tw... | SELECT COUNT("Creators") FROM table_2072 WHERE "Volume title" = 'Flash of Two Worlds' | wikisql |
CREATE TABLE table_name_98 (
_kah__atau_tidak_ VARCHAR,
language_dialect VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is -kah (atau tidak when basikal is basikal and language dialect is malay language (informal)?
| SELECT _kah__atau_tidak_ FROM table_name_98 WHERE "basikal" = "basikal" AND language_dialect = "malay language (informal)" | sql_create_context |
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 prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time... | SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 41132) AND prescriptions.drug = 'miconazole powder 2%' AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-38 month') ORDER BY prescriptions.startda... | mimic_iii |
CREATE TABLE table_25814 (
"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 di... | SELECT "High assists" FROM table_25814 WHERE "Date" = 'February 6' | wikisql |
CREATE TABLE table_78871 (
"Team" text,
"City" text,
"Venue" text,
"Capacity" real,
"Head Coach" text,
"Team Captain" text,
"Past Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Capacity of the Venue of Head Coach Ali Asgh... | SELECT MAX("Capacity") FROM table_78871 WHERE "Head Coach" = 'ali asghar modir roosta' | wikisql |
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 MED_CLINIC_ID FROM t_kc21 WHERE PERSON_NM = '云曼冬' AND MED_SER_ORG_NO = '7485822' AND IN_DIAG_DIS_NM LIKE '%楔状缺损%' | css |
CREATE TABLE table_41095 (
"Ship" text,
"13.5-inch/1400lb" real,
"13.5-inch/1250lb" real,
"12-inch" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest 13.5-inch/1400lb with a 13.5-inch/1250lb of more than 1, and a 12-inc... | SELECT MIN("13.5-inch/1400lb") FROM table_41095 WHERE "13.5-inch/1250lb" > '1' AND "12-inch" < '8' | wikisql |
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TAB... | SELECT COUNT(DISTINCT course_offering.course_id) FROM course_offering, semester WHERE semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | advising |
CREATE TABLE table_14634 (
"Team" text,
"Manager" text,
"Captain" text,
"Kit manufacturer" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the captain of the manchester city team?
| SELECT "Captain" FROM table_14634 WHERE "Team" = 'manchester city' | wikisql |
CREATE TABLE table_70414 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Performance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the earliest year in which long jump was performed in the world indoor Championships in ... | SELECT MIN("Year") FROM table_70414 WHERE "Performance" = 'long jump' AND "Competition" = 'world indoor championships' AND "Position" = '5th' | wikisql |
CREATE TABLE table_1099080_1 (
bleeding_time VARCHAR,
condition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the bleeding time for the factor x deficiency as seen in amyloid purpura
| SELECT bleeding_time FROM table_1099080_1 WHERE condition = "Factor X deficiency as seen in amyloid purpura" | sql_create_context |
CREATE TABLE table_name_21 (
position VARCHAR,
round VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position of the player from round 2 from Sweden?
| SELECT position FROM table_name_21 WHERE round = 2 AND nationality = "sweden" | sql_create_context |
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 * FROM person_info JOIN hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jy... | css |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT MIN(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.age >= "20" | mimicsql_data |
CREATE TABLE table_name_21 (
to_par VARCHAR,
year_s__won VARCHAR,
country VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the To par of the United States, when the Total was 145, in 2004?
| SELECT to_par FROM table_name_21 WHERE country = "united states" AND total = 145 AND year_s__won = "2004" | sql_create_context |
CREATE TABLE zyjybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH number,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
... | SELECT zyjybgb.JYJSGH, zyjybgb.JYJSQM FROM zyjybgb WHERE zyjybgb.BGDH = '54790820335' UNION SELECT mzjybgb.JYJSGH, mzjybgb.JYJSQM FROM mzjybgb WHERE mzjybgb.BGDH = '54790820335' | css |
CREATE TABLE table_37962 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result for the best musical revival category?
| SELECT "Result" FROM table_37962 WHERE "Category" = 'best musical revival' | wikisql |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | SELECT AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzbb.YLJGDM AND zyjybgb.BGDH = jyjgzbb.BGDH WHERE mzjzjlb.JZZDBM = 'K19.872' AND jyjgzbb.JCZBDM =... | css |
CREATE TABLE table_37470 (
"Airdate" text,
"Celebrities" text,
"Rating" real,
"Share" real,
"18\u201349" text,
"Viewers (millions)" real,
"Weekly rank" text,
"Prod. code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which rating larger... | SELECT MIN("Viewers (millions)") FROM table_37470 WHERE "Weekly rank" = '#3' AND "Share" = '9' AND "Rating" > '5' | wikisql |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT demographic.admission_type, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "74032" | mimicsql_data |
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 t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 30 AND 39) GROUP BY treatment.treatmentname) AS t1 WHERE t1.c1 <= 5 | eicu |
CREATE TABLE table_name_76 (
machine VARCHAR,
rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What machine did Keith T. Gawler ride?
| SELECT machine FROM table_name_76 WHERE rider = "keith t. gawler" | sql_create_context |
CREATE TABLE table_name_17 (
national_university_of_ireland VARCHAR,
industrial_and_commercial_panel VARCHAR,
cultural_and_educational_panel VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total for National University of Ireland with an indus... | SELECT COUNT(national_university_of_ireland) FROM table_name_17 WHERE industrial_and_commercial_panel < 1 AND cultural_and_educational_panel > 0 | sql_create_context |
CREATE TABLE table_11900773_4 (
paper_type VARCHAR,
theme VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What kind of paper were the stamps with the theme duck decoys, barrow's golden eye printed on?
| SELECT paper_type FROM table_11900773_4 WHERE theme = "Duck Decoys, Barrow's Golden Eye" | 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 jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJ... | css |
CREATE TABLE table_name_6 (
bronze VARCHAR,
nation VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many bronzes have a Nation of jamaica (jam), and a Total smaller than 7?
| SELECT COUNT(bronze) FROM table_name_6 WHERE nation = "jamaica (jam)" AND total < 7 | sql_create_context |
CREATE TABLE table_13785 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which athlete represented the country of egypt?
| SELECT "Athlete" FROM table_13785 WHERE "Country" = 'egypt' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "ATRIAL FIBRILLATION\THORACOSCOPIC MAZE PROCEDURE BILATERAL/SDA" AND demographic.dod_year <= "2115.0" | mimicsql_data |
CREATE TABLE table_22645714_5 (
regular_season_winner VARCHAR,
tournament_winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the best regular season in the contest won by Arkansas-Pine Bluff?
| SELECT regular_season_winner FROM table_22645714_5 WHERE tournament_winner = "Arkansas-Pine Bluff" | sql_create_context |
CREATE TABLE table_name_23 (
leader_at_the_summit VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the leader at the summit for the race in 2005?
| SELECT leader_at_the_summit FROM table_name_23 WHERE year = 2005 | 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 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "ST-SEGMENT ELEVATION MYOCARDIAL INFARCTION\CARDIAC CATH" AND prescriptions.route = "IM" | mimicsql_data |
CREATE TABLE table_15491596_1 (
chassis VARCHAR,
no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many chassis used number 34?
| SELECT COUNT(chassis) FROM table_15491596_1 WHERE no = 34 | sql_create_context |
CREATE TABLE table_9310 (
"Player" text,
"Team" text,
"Matches" real,
"Innings" real,
"Runs" real,
"Average" real,
"Highest Score" text,
"100s" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player has less than 2 in the 100s categ... | SELECT "Player" FROM table_9310 WHERE "100s" < '2' AND "Average" > '42.75' AND "Matches" > '4' | wikisql |
CREATE TABLE table_79911 (
"Name" text,
"Period" text,
"League" real,
"FA Cup" real,
"League Cup" real,
"Other" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of League Cups a player with a 434 league ... | SELECT MIN("League Cup") FROM table_79911 WHERE "League" = '434' | wikisql |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT AVG(MED_AMOUT) FROM t_kc24 WHERE MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_AGE > 14) | css |
CREATE TABLE table_63442 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank for the team that had a time of 6:41.45 and note FA?
| SELECT SUM("Rank") FROM table_63442 WHERE "Notes" = 'fa' AND "Time" = '6:41.45' | wikisql |
CREATE TABLE table_name_57 (
motor VARCHAR,
quantity VARCHAR,
class VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which motor's quantity was more than 8, and a class of bs 1915?
| SELECT motor FROM table_name_57 WHERE quantity > 8 AND class = "bs 1915" | 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 COUNT(mzjzjlb.ZZYSGH) 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.YLJ... | css |
CREATE TABLE table_16667 (
"Round" real,
"Grand Prix" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT "Date" FROM table_16667 WHERE "Location" = 'Circuit Gilles Villeneuve' | wikisql |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | SELECT AVG(MED_AMOUT) FROM t_kc24 WHERE MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_AGE >= 9) | css |
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
... | SELECT Id AS "post_link", OwnerUserId AS "user_link", ViewCount FROM Posts WHERE PostTypeId = 1 ORDER BY ViewCount DESC LIMIT 100 | sede |
CREATE TABLE table_name_34 (
total_matches INTEGER,
competition VARCHAR,
draw VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many average total matches have league cup as the competition, with a draw greater than 0?
| SELECT AVG(total_matches) FROM table_name_34 WHERE competition = "league cup" AND draw > 0 | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.marital_status = "DIVORCED" AND lab.label = "Cholesterol, HDL" | mimicsql_data |
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 Name, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Name DESC | nvbench |
CREATE TABLE bdmzjzjlb (
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 COUNT(*) FROM wdmzjzjlb WHERE wdmzjzjlb.JZKSBM = '310' AND wdmzjzjlb.JZKSRQ BETWEEN '2000-11-09' AND '2015-03-17' UNION SELECT COUNT(*) FROM bdmzjzjlb WHERE bdmzjzjlb.JZKSBM = '310' AND bdmzjzjlb.JZKSRQ BETWEEN '2000-11-09' AND '2015-03-17' | css |
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,... | SELECT UserId, UserId AS "user_link", COUNT(PostId) FROM PostHistory WHERE PostHistoryTypeId = 10 GROUP BY UserId | sede |
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, COUNT(Creation) FROM department GROUP BY Creation ORDER BY Creation | nvbench |
CREATE TABLE table_name_27 (
gdp__ppp__per_capita_2012_eu27_ VARCHAR,
_100 VARCHAR,
gdp_2012_millions_of_euro VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is GDP (PPP) Per Capita 2012 EU27 = 100, when GDP 2012 Millions Of Euro is 309,900?
| SELECT gdp__ppp__per_capita_2012_eu27_ = _100 FROM table_name_27 WHERE gdp_2012_millions_of_euro = "309,900" | sql_create_context |
CREATE TABLE table_22597626_17 (
surface VARCHAR,
opponents_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the surface for the opponents in the final with fitzgerald vilas?
| SELECT surface FROM table_22597626_17 WHERE opponents_in_the_final = "Fitzgerald Vilas" | sql_create_context |
CREATE TABLE table_70111 (
"City of license" text,
"Identifier" text,
"Frequency" text,
"Power" text,
"Class" text,
"RECNet" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which class has an identifier of CBUA-FM?
| SELECT "Class" FROM table_70111 WHERE "Identifier" = 'cbua-fm' | wikisql |
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnon... | SELECT Id AS "post_link", CreationDate, Tags, Score, AnswerCount, CommentCount FROM Posts WHERE Posts.Title LIKE '%classroom%' AND CreationDate BETWEEN @StartDate AND @EndDate ORDER BY CreationDate | sede |
CREATE TABLE table_name_25 (
crowd INTEGER,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the smallest crowd size for away team st kilda?
| SELECT MIN(crowd) FROM table_name_25 WHERE away_team = "st kilda" | sql_create_context |
CREATE TABLE table_name_22 (
tournament VARCHAR,
runner_s__up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What races were Chi-Chi Rodriguez the runner-up in?
| SELECT tournament FROM table_name_22 WHERE runner_s__up = "chi-chi rodriguez" | sql_create_context |
CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
date_account_opened DATETIME,
account_name VARCHAR(50),
other_account_details VARCHAR(255)
)
CREATE TABLE Orders (
order_id INTEGER,
customer_id INTEGER,
date_order_placed DATETIME,
order_details VARCHAR(255)
)
CREATE... | SELECT customer_first_name, COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY customer_first_name DESC | nvbench |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number... | SELECT COUNT(*) > 0 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-9767')) AND vitalperiodic.heartrate > 116.0 AND NOT vitalperiodi... | eicu |
CREATE TABLE table_5497 (
"Rank" text,
"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 average total with a nation of thailand with a gold smaller than 17?
| SELECT AVG("Total") FROM table_5497 WHERE "Nation" = 'thailand' AND "Gold" < '17' | wikisql |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT Affiliation, SUM(Enrollment) FROM university GROUP BY Affiliation ORDER BY SUM(Enrollment) | nvbench |
CREATE TABLE table_26358264_2 (
location VARCHAR,
fastest_qualifying VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When cancelled is the fastest qualifying where is the location?
| SELECT location FROM table_26358264_2 WHERE fastest_qualifying = "Cancelled" | sql_create_context |
CREATE TABLE table_name_49 (
home_team VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team's score at mcg?
| SELECT home_team AS score FROM table_name_49 WHERE venue = "mcg" | sql_create_context |
CREATE TABLE table_69434 (
"School" text,
"Location" text,
"Mascot" text,
"# / County" text,
"IHSAA Class" text,
"Year Joined" real,
"Previous Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the correct year for # / county... | SELECT "Year Joined" FROM table_69434 WHERE "# / County" = '09 cass' | wikisql |
CREATE TABLE table_38694 (
"Career Card" text,
"Starting career/salary" text,
"2nd career/salary" text,
"3rd career/salary" text,
"4th career/salary" text,
"5th career/salary" text,
"6th career/salary" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "2nd career/salary" FROM table_38694 WHERE "5th career/salary" = 'restaurant manager ($250,000)' | wikisql |
CREATE TABLE Projects (
project_id VARCHAR,
project_details VARCHAR
)
CREATE TABLE Project_outcomes (
outcome_code VARCHAR,
project_id VARCHAR
)
CREATE TABLE Research_outcomes (
outcome_description VARCHAR,
outcome_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the ... | SELECT T1.outcome_description FROM Research_outcomes AS T1 JOIN Project_outcomes AS T2 ON T1.outcome_code = T2.outcome_code JOIN Projects AS T3 ON T2.project_id = T3.project_id WHERE T3.project_details = 'sint' | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.