instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
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 (SELECT gwyjzb.MED_ORG_DEPT_CD FROM gwyjzb JOIN t_kc24 ON gwyjzb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '3173533' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2001-05-20' AND '2016-10-13' GROUP BY gwyjzb.MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) <= 8682.9 UNION SELECT fgwyjzb.... | css |
CREATE TABLE table_170097_1 (
pressure_in_hpa__mbar_ VARCHAR,
vacuum_range VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pressure in ultra high vacuum?
| SELECT pressure_in_hpa__mbar_ FROM table_170097_1 WHERE vacuum_range = "Ultra high vacuum" | sql_create_context |
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar... | SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'PEDDENT' AND course.number = 593 AND instructor.name LIKE '%Lutgarde Raskin%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instru... | advising |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE zyjzjlb_jybgb (
YLJGDM_ZYJZJLB text,
BGDH number,
YLJGDM number
)
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
... | SELECT * FROM person_info JOIN hz_info JOIN zyjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE person_info.XM = '孔华茂' AND hz_info.YLJGDM = '7783092' AND NOT zyjzjlb.CYKSMC LIKE '%胸外%' | css |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... | SELECT Id AS "user_link", DownVotes, UpVotes, (DownVotes + UpVotes) AS totalVotes FROM Users WHERE Reputation > 125 AND UpVotes > 1000 AND DownVotes = 0 ORDER BY UpVotes DESC | sede |
CREATE TABLE table_59298 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week did Cleveland Browns played?
| SELECT AVG("Week") FROM table_59298 WHERE "Opponent" = 'cleveland browns' | wikisql |
CREATE TABLE table_9688 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result for week 12 against the Green Bay Packers?
| SELECT "Result" FROM table_9688 WHERE "Week" > '12' AND "Opponent" = 'green bay packers' | wikisql |
CREATE TABLE table_15002265_1 (
womens_doubles VARCHAR,
mens_doubles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the the womens doubles with mens doubles being leopold bauer alfred kohlhauser
| SELECT womens_doubles FROM table_15002265_1 WHERE mens_doubles = "Leopold Bauer Alfred Kohlhauser" | sql_create_context |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime... | SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-73237')) AND DATETIME(medication.drugstarttime) >= DATETIME(CUR... | eicu |
CREATE TABLE table_17635 (
"State" text,
"Preliminaries" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What swimsuit score did the state of Virginia contestant achieve?
| SELECT COUNT("Swimsuit") FROM table_17635 WHERE "State" = 'Virginia' | wikisql |
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImage... | SELECT COUNT(DISTINCT p.Id) AS "Posts", COUNT(DISTINCT c.Id) AS "Comments", (COUNT(DISTINCT c.Id) * 1.00) / COUNT(DISTINCT p.Id) AS "Comments/Post" FROM Posts AS p LEFT JOIN Comments AS c ON c.PostId = p.Id | sede |
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 demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "URGENT" AND diagnoses.icd9_code = "5939" | mimicsql_data |
CREATE TABLE table_35558 (
"Date" text,
"Placing" text,
"Beat by" text,
"Location" text,
"Distance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the placing of the race in which Chic won by 8gf?
| SELECT "Placing" FROM table_35558 WHERE "Beat by" = 'won' AND "Distance" = '8gf' | wikisql |
CREATE TABLE table_45003 (
"Aircraft" text,
"Origin" text,
"Squadron" text,
"Display Aircraft" real,
"Dates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the dates of squadron 33?
| SELECT "Dates" FROM table_45003 WHERE "Squadron" = 'squadron 33' | wikisql |
CREATE TABLE table_39427 (
"Category" text,
"Type" text,
"Attribute" text,
"Bubbles" text,
"Cancelable" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the type for category of mouse and attribute of ondblclick
| SELECT "Type" FROM table_39427 WHERE "Category" = 'mouse' AND "Attribute" = 'ondblclick' | wikisql |
CREATE TABLE table_52597 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest decile value with a roll greater than 301 in Hauraki... | SELECT MAX("Decile") FROM table_52597 WHERE "Roll" > '301' AND "Area" = 'hauraki' | wikisql |
CREATE TABLE table_name_79 (
lane INTEGER,
nationality VARCHAR,
react VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average lane for Kenya with react larger than 0.212?
| SELECT AVG(lane) FROM table_name_79 WHERE nationality = "kenya" AND react > 0.212 | sql_create_context |
CREATE TABLE table_21242 (
"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 w... | SELECT "Record" FROM table_21242 WHERE "Date" = 'April 3' | 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 * FROM jybgb WHERE JZLSH = '59180800896' | css |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE... | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' | nvbench |
CREATE TABLE table_name_14 (
heat VARCHAR,
lane VARCHAR,
mark VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the lane is under 2 and the name is virgen benavides with a mark of 7.29, what's the total number of Heat found?
| SELECT COUNT(heat) FROM table_name_14 WHERE mark = "7.29" AND name = "virgen benavides" AND lane < 2 | sql_create_context |
CREATE TABLE table_204_756 (
id number,
"year" number,
"team" text,
"games" number,
"combined tackles" number,
"tackles" number,
"assisted tackles" number,
"sacks" number,
"forced fumbles" number,
"fumble recoveries" number,
"fumble return yards" number,
"interceptions" n... | SELECT "year" FROM table_204_756 WHERE "sacks" < 3 | squall |
CREATE TABLE table_name_21 (
crowd INTEGER,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance when South Melbourne played as the home team?
| SELECT MIN(crowd) FROM table_name_21 WHERE home_team = "south melbourne" | sql_create_context |
CREATE TABLE table_7785 (
"Year" real,
"Tournament" text,
"Surface" text,
"Round" text,
"Winner" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Year is before 2007, and when Tournament is 'Sydney'?
| SELECT "Score" FROM table_7785 WHERE "Year" < '2007' AND "Tournament" = 'sydney' | wikisql |
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar... | SELECT dept_name, budget FROM department WHERE budget > (SELECT AVG(budget) FROM department) ORDER BY budget | nvbench |
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Bod... | SELECT answer.OwnerUserId AS "user_link", 'http://codegolf.stackexchange.com/users/' + CAST(answer.OwnerUserId AS TEXT(10)) AS "permalink", Users.Reputation, COUNT(answer.Id) AS "total_answers", COUNT(question.Id) AS "accepted_answers" FROM Posts AS answer LEFT OUTER JOIN Posts AS question ON question.AcceptedAnswerId ... | sede |
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.days_stay > "9" AND prescriptions.drug_type = "MAIN" | mimicsql_data |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | SELECT 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 jybg... | css |
CREATE TABLE certificate (
eid number(9,0),
aid number(9,0)
)
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE aircraft (
ai... | SELECT name, COUNT(*) FROM flight AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid ORDER BY name DESC | nvbench |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
ic... | SELECT allergy.allergyname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '011-35642')) AND DATETIME(allergy.allergytime) <= DATETIME(CURRENT_TIME()... | eicu |
CREATE TABLE table_28628309_9 (
category VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names of the categories when the player is olsen racela?
| SELECT category FROM table_28628309_9 WHERE player = "Olsen Racela" | sql_create_context |
CREATE TABLE table_name_31 (
title VARCHAR,
year VARCHAR,
platform VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which title has a year prior to 2008 and xbox 360 as the platform?
| SELECT title FROM table_name_31 WHERE year < 2008 AND platform = "xbox 360" | sql_create_context |
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE employee (
eid number(9,0),
name varchar2(30),
salary number(10,2)
)
CREATE... | SELECT name, distance FROM aircraft ORDER BY name DESC | nvbench |
CREATE TABLE table_38818 (
"Game" text,
"Date" text,
"Result" text,
"Site" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the site for game of game 2
| SELECT "Site" FROM table_38818 WHERE "Game" = 'game 2' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.diagnosis = "OVERDOSE" AND demographic.days_stay = "69" | mimicsql_data |
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
-- Using valid SQLite, answer the following questions for the tabl... | SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor ORDER BY Investor DESC | nvbench |
CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE View_Unit_Status ... | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = "Duplex" ORDER BY COUNT(booking_start_date) DESC | nvbench |
CREATE TABLE table_55215 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the home team that scored 12.14 (86) when... | SELECT "Home team" FROM table_55215 WHERE "Home team score" = '12.14 (86)' AND "Away team score" = '22.15 (147)' | 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_DIRE_CD text,
MED_DIRE_NM text,... | SELECT AVG(t_kc21.MED_AMOUT) FROM t_kc21 WHERE t_kc21.MED_ORG_DEPT_NM = '过敏反应科' AND t_kc21.IN_HOSP_DATE BETWEEN '2003-04-29' AND '2008-01-03' AND t_kc21.IN_DIAG_DIS_CD = 'Q89.696' AND t_kc21.CLINIC_TYPE = '住院' | 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 demographic (... | SELECT prescriptions.route FROM prescriptions WHERE prescriptions.drug = "BusPIRone" | mimicsql_data |
CREATE TABLE table_name_23 (
tenure VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Gary David Saunders' Tenure?
| SELECT tenure FROM table_name_23 WHERE name = "gary david saunders" | sql_create_context |
CREATE TABLE table_11625 (
"Year" real,
"Athlete" text,
"Country/State" text,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Athlete is from the United Kingdom?
| SELECT "Athlete" FROM table_11625 WHERE "Country/State" = 'united kingdom' | 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.JYZBLSH FROM person_info JOIN hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jyb... | css |
CREATE TABLE table_204_245 (
id number,
"#" number,
"wrestlers" text,
"reign" number,
"date" text,
"days\nheld" number,
"location" text,
"event" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- other than scorpio , jr. an... | SELECT "wrestlers" FROM table_204_245 WHERE "wrestlers" <> 'scorpio, jr. and super crazy' AND "event" = 'iwl oktoberfest' | squall |
CREATE TABLE event (
id number,
name text,
stadium_id number,
year text
)
CREATE TABLE record (
id number,
result text,
swimmer_id number,
event_id number
)
CREATE TABLE stadium (
id number,
name text,
capacity number,
city text,
country text,
opening_year numbe... | SELECT t1.name, t1.nationality FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id WHERE result = 'Win' GROUP BY t2.swimmer_id HAVING COUNT(*) > 1 | spider |
CREATE TABLE table_1346137_4 (
party VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the winning party when the incumbent was richard s. whaley?
| SELECT party FROM table_1346137_4 WHERE incumbent = "Richard S. Whaley" | sql_create_context |
CREATE TABLE table_31321 (
"SAR No." real,
"Builder" text,
"Year" real,
"Works No." real,
"Firebox" text,
"Driver Diameter" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the works numbers where the year is 1929 and the driver diameter ... | SELECT "Works No." FROM table_31321 WHERE "Year" = '1929' AND "Driver Diameter" = '60"/1520mm' | wikisql |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutput... | SELECT AVG(vitalperiodic.heartrate) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-44624')) AND NOT vitalperiodic.heartrate IS NULL | eicu |
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBU... | atis |
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.dod_year <= "2183.0" AND prescriptions.formulary_drug_cd = "ROSI8" | mimicsql_data |
CREATE TABLE CLASS (
CLASS_CODE varchar(5),
CRS_CODE varchar(10),
CLASS_SECTION varchar(2),
CLASS_TIME varchar(20),
CLASS_ROOM varchar(8),
PROF_NUM int
)
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIG... | SELECT DEPT_CODE, AVG(STU_GPA) FROM STUDENT GROUP BY DEPT_CODE | nvbench |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
H... | SELECT t_kc21.OUT_DIAG_DOC_CD, t_kc21.OUT_DIAG_DOC_NM FROM t_kc21 WHERE t_kc21.PERSON_NM = '葛志文' AND t_kc21.IN_HOSP_DATE BETWEEN '2001-06-19' AND '2017-10-17' GROUP BY t_kc21.OUT_DIAG_DOC_CD ORDER BY COUNT(*) DESC LIMIT 1 | css |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT demographic.admission_type, demographic.diagnosis FROM demographic WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE table_25147 (
"Year" real,
"Championship" text,
"54 holes" text,
"Winning score" text,
"Margin" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the year for willie goggin
| SELECT "Year" FROM table_25147 WHERE "Runner(s)-up" = 'Willie Goggin' | wikisql |
CREATE TABLE table_14253123_1 (
area_sq_mi__km_2____rank_ VARCHAR,
county_seat VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Vincennes is the county seat what is the area sq mi (km 2 ) (rank) ?
| SELECT area_sq_mi__km_2____rank_ FROM table_14253123_1 WHERE county_seat = "Vincennes" | sql_create_context |
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE program (
program_id int,
name v... | SELECT DISTINCT instructor.name FROM instructor INNER JOIN offering_instructor ON offering_instructor.instructor_id = instructor.instructor_id INNER JOIN course_offering ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN course ON course.course_id = course_offering.course_id INNER JOIN semester... | advising |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE... | 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 = 23930)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admi... | mimic_iii |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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,
C... | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.AMOUNT FROM t_kc22 WHERE t_kc21_t_kc22.MED_CLINIC_ID = '90671631959' AND t_kc22.AMOUNT > (SELECT MIN(t_kc22.AMOUNT) FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.ME... | css |
CREATE TABLE table_27374004_2 (
club VARCHAR,
chairman VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the club when the chairman is roger lambrecht?
| SELECT club FROM table_27374004_2 WHERE chairman = "Roger Lambrecht" | sql_create_context |
CREATE TABLE table_name_18 (
first_elected INTEGER,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is John Shadegg's First Elected date?
| SELECT AVG(first_elected) FROM table_name_18 WHERE incumbent = "john shadegg" | sql_create_context |
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE T... | SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY HIRE_DATE | nvbench |
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDispl... | SELECT DISTINCT Id, Score, Title FROM Posts AS p JOIN (SELECT PostId FROM PostHistory AS ph JOIN PostHistoryTypes AS pht ON ph.PostHistoryTypeId = pht.Id WHERE pht.Name = 'Post Closed') AS closed ON p.Id = closed.PostId WHERE Tags LIKE '%<row>%' AND NOT ClosedDate IS NULL AND Score > -3 AND AcceptedAnswerId IS NULL ORD... | sede |
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 Headquarter, SUM(Revenue) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY SUM(Revenue) | nvbench |
CREATE TABLE table_46422 (
"Name" text,
"Country" text,
"Loan Club" text,
"Started" text,
"Ended" text,
"Start Source" text,
"End Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was the loan ended when the country is ghana?
| SELECT "Ended" FROM table_46422 WHERE "Country" = 'ghana' | 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 ReviewTasks (
Id number,
ReviewTaskTypeId number,
... | SELECT * FROM Posts AS q INNER JOIN Posts AS a ON q.Id = a.ParentId WHERE a.OwnerUserId = @UserId AND a.PostTypeId = 2 ORDER BY q.CreationDate | sede |
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 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.person_info_XM = '喻鸿达' AND NOT mzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ >= '2013-08-27') | css |
CREATE TABLE table_25551 (
"Date" text,
"Location" text,
"Opponent" text,
"Sooners Points" real,
"Opp. Points" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did the opponents score at the game in Knoxville?
| SELECT MIN("Opp. Points") FROM table_25551 WHERE "Location" = 'Knoxville' | wikisql |
CREATE TABLE table_56189 (
"Player" text,
"Rec." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total average for long 10?
| SELECT COUNT("Avg.") FROM table_56189 WHERE "Long" = '10' | wikisql |
CREATE TABLE table_25132 (
"Year" real,
"Network" text,
"Race caller" text,
"s Host" text,
"s Analyst" text,
"Reporters" text,
"Trophy presentation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the reporters for the 1977 Belmont S... | SELECT "Reporters" FROM table_25132 WHERE "Year" = '1977' | wikisql |
CREATE TABLE table_68004 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the Ace Group Classic tournament with a 1 stroke margin of ... | SELECT "Date" FROM table_68004 WHERE "Margin of victory" = '1 stroke' AND "Tournament" = 'the ace group classic' | wikisql |
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE ground_service (
city_code text,
airport... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'NEWARK' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'TAMPA' ... | atis |
CREATE TABLE table_15938543_1 (
no_in_series VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which series number had the production code of 116
| SELECT no_in_series FROM table_15938543_1 WHERE production_code = 116 | sql_create_context |
CREATE TABLE table_226 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"TV" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number ... | SELECT COUNT("Kickoff [a ]") FROM table_226 WHERE "Week" = 'Week' | 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.expire_flag = "0" AND procedures.short_title = "Suture bladder lacerat" | mimicsql_data |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.insurance = "Medicare" | mimicsql_data |
CREATE TABLE table_36084 (
"Name" text,
"Species Specific" text,
"Intra-molecular structure" text,
"Comparative" text,
"Link" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Species Specific has a Link of server/sourcecode?
| SELECT "Species Specific" FROM table_36084 WHERE "Link" = 'server/sourcecode' | wikisql |
CREATE TABLE table_22525 (
"Term Abroad" text,
"2000/01" text,
"2001/02" text,
"2002/03" text,
"2003/04" text,
"2004/05" text,
"2005/06" text,
"2006/07" text,
"2007/08" text,
"2008/09" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "2007/08" FROM table_22525 WHERE "2006/07" = '3.4' | wikisql |
CREATE TABLE table_25588 (
"Region ( NUTS 2006)" text,
"Total (million \u20ac )" text,
"\u20ac per capita (2005)" real,
"PPP (million \u20ac)" real,
"PPP \u20ac per capita" real,
"% of EU average GDP (PPP)" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "% of EU average GDP (PPP)" FROM table_25588 WHERE "\u20ac per capita (2005)" = '2519' | wikisql |
CREATE TABLE table_name_4 (
evening_gown VARCHAR,
state VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the evening gown score for the contestant from Mississippi?
| SELECT evening_gown FROM table_name_4 WHERE state = "mississippi" | sql_create_context |
CREATE TABLE table_65842 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year that a team event was included at Vilamoura, Portugal?
| SELECT MIN("Year") FROM table_65842 WHERE "Event" = 'team' AND "Venue" = 'vilamoura, portugal' | 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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime t... | SELECT t1.drug FROM (SELECT prescriptions.drug, COUNT(prescriptions.startdate) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 16992) AND STRFTIME('%y-%m', prescriptions.startdate) = '2105-02' GROUP BY prescriptions.drug) AS t1 WHERE t1.c1... | mimic_iii |
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_p... | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 200 AND 200 + 100 AND semester.semester IN ('SP', 'SS', 'SU') AND semester.semester_id = cou... | advising |
CREATE TABLE drivers (
driverId INTEGER,
driverRef TEXT,
number TEXT,
code TEXT,
forename TEXT,
surname TEXT,
dob TEXT,
nationality TEXT,
url TEXT
)
CREATE TABLE circuits (
circuitId INTEGER,
circuitRef TEXT,
name TEXT,
location TEXT,
country TEXT,
lat REAL,
... | SELECT location, circuitId FROM circuits WHERE country = "France" OR country = "Belgium" | nvbench |
CREATE TABLE table_name_49 (
away_team VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the away team that played the home team of Geelong?
| SELECT away_team FROM table_name_49 WHERE home_team = "geelong" | sql_create_context |
CREATE TABLE table_14418812_1 (
date VARCHAR,
game_site VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of date for shea stadium
| SELECT COUNT(date) FROM table_14418812_1 WHERE game_site = "Shea Stadium" | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
... | SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM mzjzjlb JOIN jybgb JOIN jyjgzbb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE mzjzjlb.JZZDBM = 'P55.131' AND jyjgzbb.JCZBDM = '143654' | css |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC... | SELECT jybgb.BBDM, jybgb.BBMC, jybgb.BBZT FROM jybgb WHERE jybgb.BGDH = '87858204866' | css |
CREATE TABLE table_name_30 (
last_1_4 INTEGER,
time VARCHAR,
odds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest last quarter with a time of 1:53.2 and odds of *1.30?
| SELECT MIN(last_1_4) FROM table_name_30 WHERE time = "1:53.2" AND odds = "*1.30" | sql_create_context |
CREATE TABLE table_43000 (
"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 "High assists" FROM table_43000 WHERE "Date" = 'february 27' | wikisql |
CREATE TABLE table_214479_8 (
y_ VARCHAR,
_2011 VARCHAR,
expression VARCHAR,
month VARCHAR,
d VARCHAR,
e VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the y = 2011 when the expression is month = floor ((d + e + 114) / 31)?
| SELECT y_ = _2011 FROM table_214479_8 WHERE expression = month = FLOOR((d + e + 114) / 31) | sql_create_context |
CREATE TABLE table_29756040_1 (
original_artist VARCHAR,
order__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which artists have order number 6?
| SELECT original_artist FROM table_29756040_1 WHERE order__number = "6" | sql_create_context |
CREATE TABLE table_71020 (
"Date" text,
"Tournament" text,
"Surface" text,
"Tier" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the tier versus Annalisa bona?
| SELECT "Tier" FROM table_71020 WHERE "Opponent in the final" = 'annalisa bona' | wikisql |
CREATE TABLE table_6781 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"First elected" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which party has a first elected of 1966, qld as the state, and donald milner cameron as the member... | SELECT "Party" FROM table_6781 WHERE "First elected" = '1966' AND "State" = 'qld' AND "Member" = 'donald milner cameron' | wikisql |
CREATE TABLE table_56114 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What did the away team score at Moorabbin Oval?
| SELECT "Away team score" FROM table_56114 WHERE "Venue" = 'moorabbin oval' | wikisql |
CREATE TABLE table_52586 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team score when north Melbourne... | SELECT "Home team score" FROM table_52586 WHERE "Away team" = 'north melbourne' | wikisql |
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 mzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN mzjzjlb 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 WHERE person_info.XM = '吕香馨' AND hz_info.YLJGDM = '0345841' AND NOT mzjzjlb.JZKSMC LIKE '%室%' | css |
CREATE TABLE table_14491 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest bronze with a Rank of 12, and a Silver smaller than 2?
| SELECT MIN("Bronze") FROM table_14491 WHERE "Rank" = '12' AND "Silver" < '2' | wikisql |
CREATE TABLE table_2170 (
"English Name" text,
"Simplified Chinese" text,
"Traditional Chinese" text,
"Pinyin" text,
"Area" real,
"Population" real,
"Density" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the traditional Chinese cha... | SELECT "Traditional Chinese" FROM table_2170 WHERE "Area" = '181' | wikisql |
CREATE TABLE table_name_22 (
team VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has driven 134 laps?
| SELECT team FROM table_name_22 WHERE laps = 134 | sql_create_context |
CREATE TABLE table_15883 (
"Year" real,
"Tournaments played" real,
"Cuts made*" real,
"Wins" real,
"2nd" real,
"Top 10s" real,
"Best finish" text,
"Earnings ($)" real,
"Money list rank" text,
"Scoring average" text,
"Scoring rank" text
)
-- Using valid SQLite, answer the fo... | SELECT "Scoring average" FROM table_15883 WHERE "Money list rank" = 'n/a' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.