instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_74314 (
"Track no." real,
"Track" text,
"Original Artist" text,
"Soloist(s)" text,
"Vocal Percussionist" text,
"Arranger(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the vocal percussionist for Sex Bomb?
| SELECT "Vocal Percussionist" FROM table_74314 WHERE "Track" = 'Sex Bomb' | wikisql |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following questions for the... | SELECT T1.Price, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code | nvbench |
CREATE TABLE EMPLOYEE (
EMP_NUM int,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10),
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NU... | SELECT STU_FNAME, SUM(STU_GPA) FROM STUDENT WHERE STU_GPA < (SELECT AVG(STU_GPA) FROM STUDENT) GROUP BY STU_FNAME ORDER BY STU_FNAME DESC | nvbench |
CREATE TABLE table_26600 (
"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.
-- Name the number of dates for alouettes
| SELECT COUNT("Date") FROM table_26600 WHERE "Opponent" = 'Alouettes' | wikisql |
CREATE TABLE table_name_17 (
gold INTEGER,
bronze VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average gold with a bronze smaller than 5 with a rank of 8?
| SELECT AVG(gold) FROM table_name_17 WHERE bronze < 5 AND rank = "8" | sql_create_context |
CREATE TABLE table_73055 (
"Name" text,
"Nickname" text,
"First season" text,
"Location" text,
"Home ground(s)" text,
"Coach" text,
"Captain" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With the nickname the swans, what is the home ground... | SELECT "Home ground(s)" FROM table_73055 WHERE "Nickname" = 'Swans' | wikisql |
CREATE TABLE table_22753245_1 (
margin VARCHAR,
party VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many margin results are listed in the election that was won by L. Adaikalaraj C and the party was the Indian national congress?
| SELECT COUNT(margin) FROM table_22753245_1 WHERE party = "Indian National Congress" AND winner = "L. Adaikalaraj c" | sql_create_context |
CREATE TABLE table_204_153 (
id number,
"tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text,
"2014" text,
"w-l" text
... | SELECT "tournament" FROM table_204_153 WHERE "tournament" = '5-5' | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT /SDA" AND demographic.dob_year < "2097" | mimicsql_data |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
... | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'anemia-other chron... | mimic_iii |
CREATE TABLE table_75818 (
"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.
-- What i... | SELECT "Location Attendance" FROM table_75818 WHERE "Record" = '21–22' | wikisql |
CREATE TABLE table_dev_28 (
"id" int,
"gender" string,
"systolic_blood_pressure_sbp" int,
"consent" bool,
"hemoglobin_a1c_hba1c" float,
"hematocrit_hct" float,
"fasting_triglycerides" int,
"fasting_blood_glucose_fbg" float,
"diastolic_blood_pressure_dbp" int,
"hba1c" float,
"... | SELECT * FROM table_dev_28 WHERE hematocrit_hct <= 30 | criteria2sql |
CREATE TABLE table_name_42 (
date VARCHAR,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has an Away team of south melbourne?
| SELECT date FROM table_name_42 WHERE away_team = "south melbourne" | sql_create_context |
CREATE TABLE table_75550 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record of the game that has a result of w 45 17?
| SELECT "Record" FROM table_75550 WHERE "Result" = 'w 45–17' | wikisql |
CREATE TABLE table_train_229 (
"id" int,
"hemoglobin_a1c_hba1c" float,
"active_metabolic" bool,
"body_weight" float,
"hba1c" float,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- minimal weight of 40 kg
| SELECT * FROM table_train_229 WHERE body_weight >= 40 | criteria2sql |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
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,
... | SELECT BGRQ FROM jybgb WHERE BGDH = '04251278145' | css |
CREATE TABLE table_31653 (
"Year" real,
"Competition" text,
"Date" text,
"Location" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of Sopot (pol)?
| SELECT "Result" FROM table_31653 WHERE "Location" = 'sopot (pol)' | wikisql |
CREATE TABLE table_dev_20 (
"id" int,
"anemia" bool,
"gender" string,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"platelets" int,
"dyslipidemia" bool,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"neutropenia" int,
"estimated_glomerular_filtrat... | SELECT * FROM table_dev_20 WHERE anemia = 1 OR ((gender = 'male' AND hemoglobin_a1c_hba1c < 12) OR (gender = 'female' AND hemoglobin_a1c_hba1c < 11)) | criteria2sql |
CREATE TABLE table_4340 (
"Engine" text,
"Horsepower" text,
"Torque" text,
"Carburetor" text,
"Compression Ratio" text,
"Bore & Stroke" text,
"VIN Code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the VIN code for compression rati... | SELECT "VIN Code" FROM table_4340 WHERE "Compression Ratio" = '10.50:1' | wikisql |
CREATE TABLE table_name_89 (
competition VARCHAR,
position VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which competition held the 1st position in 2009?
| SELECT competition FROM table_name_89 WHERE position = "1st" AND year = 2009 | sql_create_context |
CREATE TABLE table_204_128 (
id number,
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which region was the last to release ?
| SELECT "region" FROM table_204_128 ORDER BY "date" DESC LIMIT 1 | squall |
CREATE TABLE table_23536 (
"Year" text,
"Winner" text,
"First Runner Up" text,
"Third Place" text,
"Consolation Winner/4th" text,
"Finals Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Austin Austin TX get the third place?
| SELECT "Year" FROM table_23536 WHERE "Third Place" = 'Austin Austin TX' | wikisql |
CREATE TABLE diagnoses (
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
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND lab.label = "Eosinophils" | mimicsql_data |
CREATE TABLE table_77091 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Nets points" real,
"Opponents" real,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many opponents were there in a game hig... | SELECT "Opponents" FROM table_77091 WHERE "Game" > '20' AND "Date" = 'january 28' | wikisql |
CREATE TABLE table_name_70 (
name VARCHAR,
college VARCHAR,
aafc_team VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Name has a AAFC Team of los angeles dons, and a Position of fb, and a College of oklahoma a&m?
| SELECT name FROM table_name_70 WHERE aafc_team = "los angeles dons" AND position = "fb" AND college = "oklahoma a&m" | sql_create_context |
CREATE TABLE table_56383 (
"Bowling figures Wickets-Runs (Overs)" text,
"Bowler" text,
"Versus" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During the competition at Port Elizabeth, where the opponent was Australia, wha... | SELECT "Bowling figures Wickets-Runs (Overs)" FROM table_56383 WHERE "Venue" = 'port elizabeth' AND "Versus" = 'australia' | 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 OUT_DIAG_DIS_CD, OUT_DIAG_DIS_NM FROM t_kc21 WHERE PERSON_NM = '孙子怡' AND MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc24 WHERE MED_AMOUT > 3407.67) | css |
CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50)
)
CREATE TABLE EMPLOYEE (
EMP_NUM int,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varchar(5),
EMP_HIREDATE datetime,
EMP_DOB datetime
)
CREATE TABLE DEPARTM... | SELECT DEPT_CODE, SUM(T1.CRS_CREDIT) FROM COURSE AS T1 JOIN CLASS AS T2 ON T1.CRS_CODE = T2.CRS_CODE GROUP BY T1.DEPT_CODE ORDER BY DEPT_CODE DESC | nvbench |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.diagnosis = "PITUITARY BLEED" | mimicsql_data |
CREATE TABLE table_69577 (
"Year" real,
"Team" text,
"Chassis" text,
"Engine" text,
"Rank" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which chassis is ranked 24th?
| SELECT "Chassis" FROM table_69577 WHERE "Rank" = '24th' | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Arthropathy NOS-unspec" AND lab.label = "Urobilinogen" | mimicsql_data |
CREATE TABLE table_54629 (
"Rank" real,
"English title" text,
"Chinese title" text,
"Average" real,
"Peak" real,
"Premiere" real,
"Finale" real,
"HK viewers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many entries have a HK viewe... | SELECT COUNT("Peak") FROM table_54629 WHERE "HK viewers" = '2.23 million' AND "Rank" > '2' | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND diagnoses.short_title = "Subarachnoid hemorrhage" | mimicsql_data |
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 COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_NM = '窦霞月' AND t_kc22.STA_DATE BETWEEN '2006-06-24' AND '2013-02-13' AND gwyjzb.MED_SER_ORG_NO = '1539337' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_... | css |
CREATE TABLE table_11783 (
"Date" text,
"Venue" text,
"Result" text,
"Competition" text,
"Scored" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number scored in a friendly at kryoia soveto, moscow?
| SELECT AVG("Scored") FROM table_11783 WHERE "Competition" = 'friendly' AND "Venue" = 'kryoia soveto, moscow' | wikisql |
CREATE TABLE table_27776 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was his m... | SELECT MIN("Wins") FROM table_27776 | wikisql |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number... | SELECT SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t4.diagnosistime) > 2 * 365 THEN 1 ELSE 0 END) * 100 / COUNT(*) FROM (SELECT t2.uniquepid, t2.diagnosistime FROM (SELECT t1.uniquepid, t1.diagnosistime FROM (SELECT patient.uniquepid... | eicu |
CREATE TABLE table_204_561 (
id number,
"fence" number,
"name" text,
"jockey" text,
"age" number,
"handicap (st-lb)" text,
"starting price" text,
"fate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the last horse on the list tha... | SELECT "name" FROM table_204_561 WHERE "fate" = 'pulled up' ORDER BY id DESC LIMIT 1 | squall |
CREATE TABLE qtb (
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 t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.PERSON_NM = '华鹏运' AND t_kc22.MED_INV_ITEM_TYPE = '治疗费' UNION SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.P... | css |
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.diagnosis = "ABDOMINAL ABSCESS" AND prescriptions.drug_type = "MAIN" | mimicsql_data |
CREATE TABLE table_name_66 (
lost VARCHAR,
matches VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the lost for matches of 1 928
| SELECT lost FROM table_name_66 WHERE matches = "1 928" | sql_create_context |
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 COUNT(hz_info.RYBH) FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE mzjzjlb.ZZYSGH = '87598615' AND mzjzjlb.JZKSRQ BETWEEN '2005-03-01' AND '2011-02-19' | css |
CREATE TABLE table_203_390 (
id number,
"year" number,
"venue" text,
"winners" text,
"runner-up" text,
"3rd place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- previous to 2008 how many times was sweden the runner up ?
| SELECT COUNT(*) FROM table_203_390 WHERE "year" < 2008 AND "runner-up" = 'sweden' | 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 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 procedures.icd9_code = "8659" | mimicsql_data |
CREATE TABLE Addresses (
address_id VARCHAR,
city VARCHAR
)
CREATE TABLE Staff (
first_name VARCHAR,
last_name VARCHAR,
staff_address_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find out the first name and last name of staff lived in city ... | SELECT T2.first_name, T2.last_name FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T1.city = "Damianfort" | sql_create_context |
CREATE TABLE table_63497 (
"Club" text,
"Wins" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of wins for the Terang Club, when there are less than 0 draws?
| SELECT AVG("Wins") FROM table_63497 WHERE "Club" = 'terang' AND "Draws" < '0' | wikisql |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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 ... | SELECT COUNT(*) FROM (SELECT t_kc21.MED_ORG_DEPT_CD FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '9519720' GROUP BY t_kc21.MED_ORG_DEPT_CD HAVING AVG(t_kc21.IN_HOSP_DAYS) > 4) AS T | 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 demographic.gender, demographic.dischtime FROM demographic WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE table_49967 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a method of tko (kick) what is the record of the match?
| SELECT "Record" FROM table_49967 WHERE "Method" = 'tko (kick)' | wikisql |
CREATE TABLE table_55385 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Distance/Duration" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years does Team wal-mart / tide participate?
| SELECT COUNT("Year") FROM table_55385 WHERE "Team" = 'wal-mart / tide' | wikisql |
CREATE TABLE table_name_38 (
home_team VARCHAR,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What did the team score when playing south melbourne at home?
| SELECT home_team AS score FROM table_name_38 WHERE away_team = "south melbourne" | sql_create_context |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemics... | SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-20464')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.ce... | eicu |
CREATE TABLE table_10606 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which engine was on a car with G tires, a chassis model of 003 ... | SELECT "Engine" FROM table_10606 WHERE "Tyre" = 'g' AND "Chassis" = '003 002 004 005 006' AND "Driver" = 'jackie stewart' | wikisql |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
... | SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'furosemide 10 mg/ml ij soln' AND patient.uniquepid = '002-41152' AND DATETIME(medication.drugstarttime, 'start of month')... | eicu |
CREATE TABLE table_204_836 (
id number,
"#" number,
"date" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which date and opponent is next after june 12,1989
| SELECT "date", "opponent" FROM table_204_836 WHERE "#" = (SELECT MAX("#") FROM table_204_836 WHERE "date" = 'june 12, 1989') + 1 | squall |
CREATE TABLE table_30702 (
"Constellation" text,
"IAU abbreviation" text,
"Other abbreviation" text,
"Genitive" text,
"Family" text,
"Origin" text,
"Meaning" text,
"Brightest star" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is t... | SELECT "Other abbreviation" FROM table_30702 WHERE "Genitive" = 'Hydrae /ˈhaɪdriː/' | 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 COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "RUQ PAIN" AND demographic.admityear < "2146" | mimicsql_data |
CREATE TABLE table_14847 (
"Name" text,
"Code" text,
"Capacity" text,
"Power" text,
"Acceleration 0\u2013100km/h" text,
"Top speed" text,
"Combined consumption" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the acceleration 1-100km/... | SELECT "Acceleration 0\u2013100km/h" FROM table_14847 WHERE "Name" = '1.5 dci' | wikisql |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE allergy (
allergy... | SELECT COUNT(*) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-4326')) AND treatment.treatmentname = 'administration of saline solution' AN... | eicu |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body t... | SELECT Id AS "comment_link", Score, Text FROM Comments WHERE UPPER(Text) LIKE UPPER('Azure') ORDER BY Score DESC | sede |
CREATE TABLE mzjybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH number,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
... | SELECT zyjybgb.SQRGH, zyjybgb.SQRXM FROM zyjybgb WHERE zyjybgb.BGDH = '21129933460' UNION SELECT mzjybgb.SQRGH, mzjybgb.SQRXM FROM mzjybgb WHERE mzjybgb.BGDH = '21129933460' | css |
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar... | SELECT DISTINCT course.name, course.number, program_course.workload FROM course, program_course WHERE course.department = 'EECS' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MAX(PROGRAM_COURSEalias1.workload) FROM course AS COURSEalias1, program_course AS PROGRAM_COURSEalias1 WH... | advising |
CREATE TABLE table_3869 (
"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 had... | SELECT "High assists" FROM table_3869 WHERE "Date" = 'January 27' | wikisql |
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE PostHistory (
Id number,
PostHistoryT... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%haarlem%' OR UPPER(Location) LIKE '%HAARLEM%' OR Location LIKE '%Haarlem%' AND Reputation >= 1000 ORDER BY Reputation DESC | sede |
CREATE TABLE table_28735 (
"Institution" text,
"Location" text,
"Team Nickname" text,
"Years" text,
"New Conference" text,
"New Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school has the new conference as SELC?
| SELECT "Institution" FROM table_28735 WHERE "New Conference" = 'SELC' | wikisql |
CREATE TABLE table_24394 (
"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.
-- What change caused a change of staff in March 9, 186... | SELECT "Reason for change" FROM table_24394 WHERE "Date of successors formal installation" = 'March 9, 1865' | wikisql |
CREATE TABLE table_name_27 (
result VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game played in Venue H?
| SELECT result FROM table_name_27 WHERE venue = "h" | sql_create_context |
CREATE TABLE table_name_80 (
wins VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins did they have when they had 5 losses?
| SELECT wins FROM table_name_80 WHERE losses = 5 | sql_create_context |
CREATE TABLE table_27065 (
"Name of the war" text,
"Ottoman sultan" text,
"Persian shah" text,
"Treaty at the end of the war" text,
"Victor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the war where the Ottoman sultan was Seli... | SELECT "Name of the war" FROM table_27065 WHERE "Ottoman sultan" = 'Selim I' | wikisql |
CREATE TABLE table_name_77 (
rank_points VARCHAR,
event VARCHAR,
shooter VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Rank Points, when Event is 'WC Milan', and when Shooter is 'Lalita Yauhleuskaya ( AUS )'?
| SELECT rank_points FROM table_name_77 WHERE event = "wc milan" AND shooter = "lalita yauhleuskaya ( aus )" | sql_create_context |
CREATE TABLE table_name_86 (
year INTEGER,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year with a kurtis kraft 500a chassis?
| SELECT SUM(year) FROM table_name_86 WHERE chassis = "kurtis kraft 500a" | sql_create_context |
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "51881" AND prescriptions.drug_type = "ADDITIVE" | mimicsql_data |
CREATE TABLE table_52405 (
"City" text,
"Country" text,
"Region" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the ICAO for city of xi'an
| SELECT "ICAO" FROM table_52405 WHERE "City" = 'xi''an' | wikisql |
CREATE TABLE table_16941 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many scores were at the Northville Long Island Cl... | SELECT COUNT("Score") FROM table_16941 WHERE "Tournament" = 'Northville Long Island Classic' | wikisql |
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 MAX(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 = 655) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents.item... | mimic_iii |
CREATE TABLE table_37157 (
"Season" real,
"Series" text,
"Team Name" text,
"Races" text,
"Wins" text,
"Poles" text,
"F/Laps" text,
"Podiums" text,
"Points" text,
"Final Placing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Whic... | SELECT "Series" FROM table_37157 WHERE "Team Name" = 'sunred engineering' | wikisql |
CREATE TABLE table_35321 (
"Season" real,
"Overall" real,
"Slalom" text,
"Giant Slalom" real,
"Super G" text,
"Downhill" text,
"Combined" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many seasons had a Super G of 2 and overall of 3?
| SELECT COUNT("Season") FROM table_35321 WHERE "Super G" = '2' AND "Overall" = '3' | wikisql |
CREATE TABLE table_train_214 (
"id" int,
"gender" string,
"lead_ecg" bool,
"systolic_blood_pressure_sbp" int,
"qt_interval" bool,
"urine_dipstick_protein" int,
"stroke" bool,
"transient_ischemic_attack" bool,
"qtc" int,
"long_qt_syndrome" bool,
"cardiovascular_disease" bool,
... | SELECT * FROM table_train_214 WHERE urine_dipstick_protein > 100 AND (urine_protein > 1 OR creatinine_ratio > 1000) | criteria2sql |
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 MED_CLINIC_ID FROM t_kc21 WHERE PERSON_ID = '50675305' AND MED_SER_ORG_NO = '2065470' AND NOT OUT_DIAG_DIS_NM LIKE '%失眠症%' | css |
CREATE TABLE table_name_35 (
date VARCHAR,
opponent_in_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date of the Tournament against Anastasiya Yakimova?
| SELECT date FROM table_name_35 WHERE opponent_in_final = "anastasiya yakimova" | sql_create_context |
CREATE TABLE table_18932 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many films titled Gie have been nominated?
| SELECT COUNT("Original title") FROM table_18932 WHERE "Film title used in nomination" = 'Gie' | wikisql |
CREATE TABLE table_75336 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the game played on April 16 with Philadelphia as home team?
| SELECT "Result" FROM table_75336 WHERE "Home Team" = 'philadelphia' AND "Date" = 'april 16' | wikisql |
CREATE TABLE table_22622 (
"Country" text,
"TV Network(s)" text,
"Series Premiere" text,
"Weekly Schedule" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every country with a TV network of AXN India?
| SELECT "Country" FROM table_22622 WHERE "TV Network(s)" = 'AXN India' | wikisql |
CREATE TABLE table_7280 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Height m ( ft )" text,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what frequency does W233AG broadcast?
| SELECT COUNT("Frequency MHz") FROM table_7280 WHERE "Call sign" = 'w233ag' | wikisql |
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
... | SELECT DISTINCT instructor.name, program_course.workload FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN program_course ON program_course.course_id = cour... | advising |
CREATE TABLE table_71047 (
"Category" text,
"Film" text,
"Director(s)" text,
"Country" text,
"Nominating Festival" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the director of alt i alt
| SELECT "Director(s)" FROM table_71047 WHERE "Film" = 'alt i alt' | wikisql |
CREATE TABLE table_59738 (
"Year" text,
"Winner" text,
"Runner-up" text,
"Venue" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location where ed c. kingsley was the runner-up in 1939?
| SELECT "Location" FROM table_59738 WHERE "Runner-up" = 'ed c. kingsley' AND "Year" = '1939' | wikisql |
CREATE TABLE table_name_69 (
grid INTEGER,
laps VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average grid when the laps are smaller than 14 and Reine Wisell is the driver?
| SELECT AVG(grid) FROM table_name_69 WHERE laps < 14 AND driver = "reine wisell" | sql_create_context |
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 jybgb.BGDH 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 = '21625825' AND jybgb.BGRQ BETWEEN '2002-07-09' AND '2012-02-15' UNION... | css |
CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Bu... | SELECT Document_Type_Code, COUNT(*) FROM Documents GROUP BY Document_Type_Code ORDER BY COUNT(*) | nvbench |
CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
)
-- Using valid SQLite, answer the following que... | SELECT T2.Name, COUNT(*) FROM actor AS T1 JOIN musical AS T2 ON T1.Musical_ID = T2.Musical_ID GROUP BY T1.Musical_ID ORDER BY T2.Name DESC | nvbench |
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minu... | SELECT DISTINCT FLIGHT_0.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight AS FLIGHT_0, flight AS FLIGHT_1, flight_leg WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'HOUSTON' AND FLIGHT_0.flight_id = flight_l... | atis |
CREATE TABLE zyjzjlb_jybgb (
YLJGDM_ZYJZJLB text,
BGDH number,
YLJGDM number
)
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 jyjgzbb.JCZBMC, jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM jybgb JOIN jyjgzbb ON jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE jybgb.JZLSH = '60506395740' AND jyjgzbb.JCRXM LIKE '陶%' | css |
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_DIRE_CD text,
MED_DIRE_NM text,... | SELECT COUNT(*) FROM (SELECT t_kc21.MED_ORG_DEPT_CD FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '4616814' GROUP BY t_kc21.MED_ORG_DEPT_CD HAVING AVG(t_kc21.IN_HOSP_DAYS) > 24) AS T | css |
CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
)
CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
)
CREA... | SELECT Event_Details, COUNT(Event_Details) FROM Events GROUP BY Event_Details ORDER BY COUNT(Event_Details) | nvbench |
CREATE TABLE table_name_84 (
l3_cache VARCHAR,
part_number_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the L3 cache that has a low power part number?
| SELECT l3_cache FROM table_name_84 WHERE part_number_s_ = "low power" | sql_create_context |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,... | SELECT p.OwnerUserId, p.OwnerDisplayName, p.Id FROM Posts AS p WHERE p.OwnerUserId = '##UserID##' AND p.PostTypeId = 1 | sede |
CREATE TABLE table_name_51 (
second VARCHAR,
equipment VARCHAR,
position VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Second, when Position is greater than 33, when Points is greater than 12, and when Equipment is Zabel-VMC?... | SELECT second FROM table_name_51 WHERE position > 33 AND points > 12 AND equipment = "zabel-vmc" | sql_create_context |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | SELECT mzjzjlb.JZLSH FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.RYBH = '45531183' AND NOT mzjzjlb.JZLSH IN (SELECT zyjybgb.JZLSH FROM zyjybgb WHERE zyjybgb.BGRQ <= '2016-02-04' UNION SELECT mzjybgb.JZLSH FROM mzjybgb WHERE mzjybgb... | css |
CREATE TABLE table_name_26 (
wins INTEGER,
top_5 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Wins has a Top-5 of 6?
| SELECT AVG(wins) FROM table_name_26 WHERE top_5 = 6 | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.