instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_2097 (
"Season" text,
"Final Venue" text,
"Champion" text,
"Result" text,
"Finalist" text,
"MVP" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many final venues were there in the 1997-98 season?
| SELECT COUNT("Final Venue") FROM table_2097 WHERE "Season" = '1997-98' | wikisql |
CREATE TABLE table_45033 (
"Heat" real,
"Lane" real,
"Name" text,
"Country" text,
"Mark" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the sum of all of ivet lalova's Heat stats?
| SELECT SUM("Heat") FROM table_45033 WHERE "Name" = 'ivet lalova' | wikisql |
CREATE TABLE table_name_70 (
team VARCHAR,
home VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the team from Stirling?
| SELECT team FROM table_name_70 WHERE home = "stirling" | sql_create_context |
CREATE TABLE table_42754 (
"Name" text,
"Built" real,
"Tonnage" text,
"Yard No." real,
"History" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most recent year that Queen Nefertiti (pegasus two) was built?
| SELECT MAX("Built") FROM table_42754 WHERE "Name" = 'queen nefertiti (pegasus two)' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "SNF" AND diagnoses.long_title = "Schizoaffective disorder, unspecified" | mimicsql_data |
CREATE TABLE table_44136 (
"Poll" text,
"Pre- season" text,
"Mar 3" text,
"Mar 17" text,
"Mar 24" text,
"Mar 31" text,
"April 7" text,
"April 14" text,
"April 21" text,
"April 28" text,
"May 5" text,
"May 12" text,
"May 19" text,
"May 26" text,
"Final" text
)
... | SELECT "April 28" FROM table_44136 WHERE "Mar 24" = '17' | wikisql |
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | SELECT decor, AVG(basePrice) FROM Rooms GROUP BY decor ORDER BY decor | nvbench |
CREATE TABLE table_name_97 (
to_par INTEGER,
total VARCHAR,
year_s__won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest To par, when Total is greater than 148, and when Year(s) Won is '1959 , 1968 , 1974'?
| SELECT MIN(to_par) FROM table_name_97 WHERE total < 148 AND year_s__won = "1959 , 1968 , 1974" | sql_create_context |
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 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 > 6492.34) | css |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JO... | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY HIRE_DATE DESC | nvbench |
CREATE TABLE gwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT * FROM gwyjzb WHERE gwyjzb.PERSON_NM = '韦俊贤' AND gwyjzb.MED_SER_ORG_NO = '3431551' AND NOT gwyjzb.MED_ORG_DEPT_NM LIKE '%病理科%' UNION SELECT * FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '韦俊贤' AND fgwyjzb.MED_SER_ORG_NO = '3431551' AND NOT fgwyjzb.MED_ORG_DEPT_NM LIKE '%病理科%' | css |
CREATE TABLE table_19017269_5 (
latin_america_caribbean VARCHAR,
asia VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what row is the population of Latin America/Caribbean when Asia is 4,894 (46.1%)?
| SELECT COUNT(latin_america_caribbean) FROM table_19017269_5 WHERE asia = "4,894 (46.1%)" | sql_create_context |
CREATE TABLE table_16168849_1 (
current_conference VARCHAR,
left VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the current conference for 1974, 1989
| SELECT current_conference FROM table_16168849_1 WHERE left = "1974, 1989" | sql_create_context |
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 Tags AS "tags", Score, ViewCount AS Views, CreationDate AS "date_asked" FROM Posts WHERE Tags LIKE '%<' + '##TagName:string##' + '>%' | sede |
CREATE TABLE table_63904 (
"Title" text,
"Series" text,
"Director" text,
"Production Num." real,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the series of Buddy The Woodsman by director Jack King?
| SELECT "Series" FROM table_63904 WHERE "Director" = 'jack king' AND "Title" = 'buddy the woodsman' | wikisql |
CREATE TABLE table_27120 (
"Name" text,
"Team(s)" text,
"Matches" real,
"Balls bowled" real,
"Wickets taken" real,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names of all the players with an average of 15.89?
| SELECT "Name" FROM table_27120 WHERE "Average" = '15.89' | wikisql |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
... | WITH last_cte AS (SELECT OwnerUserId, MAX(Id) AS MaxId FROM Posts GROUP BY OwnerUserId), dates_cte AS (SELECT p.OwnerUserId AS odn, p.Id AS pid, p.CreationDate AS CDate FROM Posts AS p INNER JOIN last_cte ON p.Id = maxid) SELECT LAST_DATE_OF_MONTH(CDate), COUNT(odn) FROM dates_cte GROUP BY LAST_DATE_OF_MONTH(CDate) ORD... | sede |
CREATE TABLE table_59343 (
"DVD Title" text,
"No. of Discs" real,
"Year" text,
"No. of Episodes" real,
"Region 1" text,
"Region 2" text,
"Region 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which region 1 has 12 Episodes and a Region 2 ... | SELECT "Region 1" FROM table_59343 WHERE "No. of Episodes" = '12' AND "Region 2" = '18 august 2008' | wikisql |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTaskResults (
Id number,
... | SELECT TIME_TO_STR(a.CreationDate, '%I') AS answerhour, TIME_TO_STR(q.CreationDate, '%I') AS questionhour, AVG(1.00 * a.Score) AS score FROM Posts AS a JOIN Posts AS q ON q.Id = a.ParentId WHERE a.PostTypeId IN (2) AND TIME_TO_STR(q.CreationDate, '%Y') = 2018 GROUP BY TIME_TO_STR(a.CreationDate, '%I'), TIME_TO_STR(q.Cr... | sede |
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 wdmzjzjlb (
HXPLC number,
HZX... | SELECT wdmzjzjlb.YLJGDM FROM person_info JOIN hz_info JOIN wdmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX WHERE person_info.XM = '窦嘉美' UNION SELECT bdmzjzjlb.YLJGDM FROM person_info JOIN hz_info JOIN bdmzjzjlb ON person_in... | css |
CREATE TABLE table_61510 (
"Date" text,
"Opponent" text,
"Site" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Result has a Date of october 14, 1967?
| SELECT "Result" FROM table_61510 WHERE "Date" = 'october 14, 1967' | wikisql |
CREATE TABLE table_53843 (
"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.
-- who is the team 2 when the team 1 is sestese(e16)?
| SELECT "Team 2" FROM table_53843 WHERE "Team 1" = 'sestese(e16)' | wikisql |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY JOB_ID DESC | nvbench |
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_NM = '潘弘义' AND gwyjzb.MED_SER_ORG_NO = '9379599' AND gwyjzb.OUT_DIAG_DIS_NM LIKE '%心脏病%' UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '潘弘义' AND fgwyjzb.MED_SER_ORG_NO = '9379599' AND fgwyjzb.OUT_DIAG_DIS_NM LIKE '%心脏病%' | css |
CREATE TABLE table_26842217_18 (
broadcast VARCHAR,
site VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the broadcast for davis-wade stadium starkville ms
| SELECT broadcast FROM table_26842217_18 WHERE site = "Davis-Wade Stadium • Starkville MS" | sql_create_context |
CREATE TABLE weather (
cloud_cover VARCHAR,
zip_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 3 most common cloud cover rates in the region of zip code 94107?
| SELECT cloud_cover FROM weather WHERE zip_code = 94107 GROUP BY cloud_cover ORDER BY COUNT(*) DESC LIMIT 3 | sql_create_context |
CREATE TABLE table_name_2 (
ihsaa_class VARCHAR,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What kind of IHSAA Class has a School of decatur central?
| SELECT ihsaa_class FROM table_name_2 WHERE school = "decatur central" | sql_create_context |
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE ta (
campus_job_id int,
student_id int... | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE course_offering.friday = 'N' AND course.department = 'MEMS' AND semester.semester = 'WN' AND s... | advising |
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 jyjgzbb.YQBH, jyjgzbb.YQMC FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN person_info_hz_info ON person_info.RYBH = person_info_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... | css |
CREATE TABLE table_name_36 (
visiting_team VARCHAR,
stadium VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the visiting team at Raymond James Stadium?
| SELECT visiting_team FROM table_name_36 WHERE stadium = "raymond james stadium" | sql_create_context |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE cos... | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'brain meninge repair ... | mimic_iii |
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
... | 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, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.... | atis |
CREATE TABLE table_name_15 (
prize VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Prize amount of Winner Dominik Nitsche?
| SELECT prize FROM table_name_15 WHERE winner = "dominik nitsche" | sql_create_context |
CREATE TABLE table_478 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Intergiro classification" text,
"Trofeo Fast Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT COUNT("Points classification") FROM table_478 WHERE "Stage" = '17' | wikisql |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', inputevents_cv.charttime)) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1902) AND icustays.outtime IS NULL) ... | mimic_iii |
CREATE TABLE table_203_587 (
id number,
"country" text,
"weapon designation" text,
"weapon description" text,
"year(s) delivered" text,
"quantity delivered" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which was the first country to sell wea... | SELECT "country" FROM table_203_587 ORDER BY "year(s) delivered" LIMIT 1 | squall |
CREATE TABLE table_name_14 (
year VARCHAR,
laps VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the year for laps of 200 and rank of 24
| SELECT year FROM table_name_14 WHERE laps = 200 AND rank = "24" | sql_create_context |
CREATE TABLE table_71494 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record on June 13?
| SELECT "Record" FROM table_71494 WHERE "Date" = 'june 13' | wikisql |
CREATE TABLE table_32415 (
"Basin" text,
"Continent" text,
"Drains to" text,
"Basin Area km 2" real,
"Basin Area mi 2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Basin's Continent is South America, has a Basin Area km 2 larger than 6,144,7... | SELECT "Basin" FROM table_32415 WHERE "Continent" = 'south america' AND "Basin Area km 2" > '6,144,727' AND "Basin Area mi 2" = '238,539' | wikisql |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
P... | SELECT Id FROM Users WHERE Reputation > 50000 | sede |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 job_history (
EMPLOYEE... | SELECT JOB_ID, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID DESC | nvbench |
CREATE TABLE table_33878 (
"Player" text,
"Ranking" text,
"Event" text,
"Surface" text,
"Round" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round has a Player of anna chakvetadze?
| SELECT "Round" FROM table_33878 WHERE "Player" = 'anna chakvetadze' | wikisql |
CREATE TABLE table_5079 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Save in the game that has a Loss of sanderson (6-5)?
| SELECT "Save" FROM table_5079 WHERE "Loss" = 'sanderson (6-5)' | wikisql |
CREATE TABLE geographic (
city_name varchar,
county varchar,
region varchar
)
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rating "decimal
)
CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_n... | SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'bethel island' AND location.street_name = 'bethel island rd' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5 | restaurants |
CREATE TABLE table_18101 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the election in the Maryland 7 district?
| SELECT "Results" FROM table_18101 WHERE "District" = 'Maryland 7' | 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 microlab (
microl... | SELECT MAX(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-4312' AND patient.hospitaldischargetime IS NULL)) AND lab.labname = 'paco2' | eicu |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id... | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT labevents.itemid FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15986) AND STRFTIME('%y-%m', labevents.charttime) >= '2103-03' ORDER BY labevents.charttime DESC LIMIT 1) | mimic_iii |
CREATE TABLE table_11506 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Events" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of events that Al Geiberger has played with earnings larg... | SELECT COUNT("Events") FROM table_11506 WHERE "Player" = 'al geiberger' AND "Earnings ( $ )" > '527,033' | wikisql |
CREATE TABLE table_6671 (
"Mission" text,
"Resident Country" text,
"Local Location" text,
"Local Mission" text,
"Local Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the local mission that has ambassador as the local position, and ... | SELECT "Local Mission" FROM table_6671 WHERE "Local Position" = 'ambassador' AND "Mission" = 'suriname' | wikisql |
CREATE TABLE table_18585 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many parties does incumbent carl vinson represent?
| SELECT COUNT("Party") FROM table_18585 WHERE "Incumbent" = 'Carl Vinson' | wikisql |
CREATE TABLE table_22347090_4 (
directed_by VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the episode that has 3x6752 listed as the production code?
| SELECT directed_by FROM table_22347090_4 WHERE production_code = "3X6752" | sql_create_context |
CREATE TABLE table_name_39 (
ryuji_hijikata VARCHAR,
taka_michinoku VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the Ryuji Hijikata for TAKA Michinoku of Hayashi (28:05)
| SELECT ryuji_hijikata FROM table_name_39 WHERE taka_michinoku = "hayashi (28:05)" | sql_create_context |
CREATE TABLE table_24980 (
"Stage (Winner)" text,
"General Classification" text,
"Sprints Classification" text,
"Mountains Classification" text,
"Youth Classification" text,
"Team Classification" text,
"Combativity Prize" text
)
-- Using valid SQLite, answer the following questions for the... | SELECT "Team Classification" FROM table_24980 WHERE "Combativity Prize" = 'Ricardo Serrano' | wikisql |
CREATE TABLE Invoice_Line_Items (
order_item_id INTEGER,
invoice_number INTEGER,
product_id INTEGER,
product_title VARCHAR(80),
product_quantity VARCHAR(50),
product_price DECIMAL(19,4),
derived_product_cost DECIMAL(19,4),
derived_vat_payable DECIMAL(19,4),
derived_total_cost DECIMAL... | SELECT T2.customer_first_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id | nvbench |
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text... | SELECT DISTINCT flight.departure_time 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 = 'B... | atis |
CREATE TABLE table_name_65 (
expected_end_date VARCHAR,
trial_start_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Expected End Date, when Trial Start Date is Nov 2007?
| SELECT expected_end_date FROM table_name_65 WHERE trial_start_date = "nov 2007" | sql_create_context |
CREATE TABLE table_36268 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Asian rider classification" text,
"Team classification" text,
"Asian team classification" text
)
-- Using valid SQLite, answer the foll... | SELECT "Asian rider classification" FROM table_36268 WHERE "General classification" = 'ruslan ivanov' AND "Stage" = '9' | wikisql |
CREATE TABLE table_13440 (
"No. in series" text,
"No. in season" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season had the title 'A Safe ... | SELECT "No. in season" FROM table_13440 WHERE "Title" = 'a safe place' | wikisql |
CREATE TABLE table_37624 (
"Type" text,
"Owns" text,
"Length" text,
"Delivery Date" text,
"Gross Tonnage" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- with delivery date of 2001 2001 what is gross tonnage?
| SELECT AVG("Gross Tonnage") FROM table_37624 WHERE "Delivery Date" = '2001 2001' | wikisql |
CREATE TABLE Student_Addresses (
student_id INTEGER,
address_id INTEGER,
date_address_from DATETIME,
date_address_to DATETIME,
monthly_rental DECIMAL(19,4),
other_details VARCHAR(255)
)
CREATE TABLE Ref_Address_Types (
address_type_code VARCHAR(15),
address_type_description VARCHAR(80)
... | SELECT date_address_from, SUM(monthly_rental) FROM Student_Addresses ORDER BY monthly_rental DESC | nvbench |
CREATE TABLE table_204_397 (
id number,
"rank" text,
"team" text,
"athletes" text,
"run 1" text,
"run 2" text,
"run 3" text,
"run 4" text,
"final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which team had the most time ?
| SELECT "team" FROM table_204_397 ORDER BY "final" DESC LIMIT 1 | squall |
CREATE TABLE table_50933 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place has jack renner as the player?
| SELECT "Place" FROM table_50933 WHERE "Player" = 'jack renner' | wikisql |
CREATE TABLE table_name_61 (
owner_s_ VARCHAR,
team VARCHAR,
primary_sponsor_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the owner of NTS Motorsports sponsored by Qore-24?
| SELECT owner_s_ FROM table_name_61 WHERE team = "nts motorsports" AND primary_sponsor_s_ = "qore-24" | sql_create_context |
CREATE TABLE table_name_46 (
opponent VARCHAR,
game_site VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did the Jets play in the Meadowlands on week 14?
| SELECT opponent FROM table_name_46 WHERE game_site = "the meadowlands" AND week = 14 | sql_create_context |
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational... | SELECT DISTINCT course_offering.end_time, course_offering.start_time, semester.semester, semester.year FROM course, course_offering, semester WHERE course_offering.start_time < '12:00:00' AND course_offering.start_time >= '08:00:00' AND course.course_id = course_offering.course_id AND course.department = 'HONORS' AND c... | advising |
CREATE TABLE camera_lens (
name VARCHAR,
id VARCHAR,
brand VARCHAR
)
CREATE TABLE photos (
camera_lens_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names of photos taken with the lens brand 'Sigma' or 'Olympus'?
| SELECT T1.name FROM camera_lens AS T1 JOIN photos AS T2 ON T2.camera_lens_id = T1.id WHERE T1.brand = 'Sigma' OR T1.brand = 'Olympus' | sql_create_context |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TAB... | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'bradycardia' AND DATETIME(diagnosis.diagnosistime) >= DATETIME(CURRENT_TIME(), '-4 year')) AS t1 JOIN (SELEC... | eicu |
CREATE TABLE table_37471 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest played that has a drawn les... | SELECT MAX("Played") FROM table_37471 WHERE "Drawn" < '9' AND "Difference" = '36' AND "Lost" > '7' | 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 demographic ... | SELECT demographic.marital_status, demographic.gender FROM demographic WHERE demographic.subject_id = "99936" | mimicsql_data |
CREATE TABLE table_name_86 (
time VARCHAR,
wrestler VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Natalya's Time?
| SELECT time FROM table_name_86 WHERE wrestler = "natalya" | sql_create_context |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE zyjybgb (
BBCJBW text,
BBDM t... | SELECT zyjybgb.JYKSBM, zyjybgb.JYKSMC FROM zyjybgb WHERE zyjybgb.BGDH = '65530393272' UNION SELECT mzjybgb.JYKSBM, mzjybgb.JYKSMC FROM mzjybgb WHERE mzjybgb.BGDH = '65530393272' | 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_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT SUM(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc21_t_kc24.MED_CLINIC_ID IN (SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '3107700' AND t_kc21.MED_ORG_DEPT_CD = '903') AND t_kc24.CLINIC_SLT_DATE BETWEEN '2000-04-22' AND '2008-09-24' | 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_CLINIC_ID text,
MED_DIRE_CD tex... | SELECT gwyjzb.MED_ORG_DEPT_NM, gwyjzb.OUT_DIAG_DIS_NM, AVG(gwyjzb.PERSON_AGE) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '0781537' GROUP BY gwyjzb.MED_ORG_DEPT_NM, gwyjzb.OUT_DIAG_DIS_NM UNION SELECT fgwyjzb.MED_ORG_DEPT_NM, fgwyjzb.OUT_DIAG_DIS_NM, AVG(fgwyjzb.PERSON_AGE) FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '07... | css |
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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
... | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(MANAGER_ID) | nvbench |
CREATE TABLE store (
store_id number,
store_name text,
type text,
area_size number,
number_of_product_category number,
ranking number
)
CREATE TABLE district (
district_id number,
district_name text,
headquartered_city text,
city_population number,
city_area number
)
CREATE... | SELECT district_name, city_population FROM district WHERE city_population BETWEEN 200000 AND 2000000 | spider |
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.long_title = "Body Mass Index less than 19, adult" AND prescriptions.drug_type = "BASE" | mimicsql_data |
CREATE TABLE table_4722 (
"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 team was the away team for the venue punt ro... | SELECT "Away team" FROM table_4722 WHERE "Venue" = 'punt road oval' | wikisql |
CREATE TABLE table_name_58 (
rank VARCHAR,
matches VARCHAR,
goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the total number of Rank that has the Matches of 427, and the Goals smaller than 320?
| SELECT COUNT(rank) FROM table_name_58 WHERE matches = "427" AND goals < 320 | 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.short_title = "Asthma NOS" AND prescriptions.drug_type = "MAIN" | mimicsql_data |
CREATE TABLE table_44479 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the tournament with younes el aynaoui as the opponent?
| SELECT "Score" FROM table_44479 WHERE "Opponent" = 'younes el aynaoui' | wikisql |
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 zyjzjlb.JZLSH FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE hz_info.person_info_XM = '袁幼怡' AND NOT zyjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ <= '2016-01-24') | css |
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31088 AND admissions.dischtime IS NULL) AND microbiologyevents.spec_type_desc = 'tissue' ORDER BY microbiologyevents.charttime LIMIT 1 | mimic_iii |
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 MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT lab.patientunitstayid FROM lab WHERE lab.labname = 'haptoglobin')) GROUP BY cost.patienthealthsystemstayid) AS t1 | eicu |
CREATE TABLE table_10128185_2 (
southern_england VARCHAR,
northern_ireland VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many votes did Southern England cast whilst Northern Ireland cast 3?
| SELECT southern_england FROM table_10128185_2 WHERE northern_ireland = 3 | sql_create_context |
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 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 NOT mzjzjlb.JZLSH IN (SELECT JZLSH FROM jybgb WHERE BGRQ >= '2013-08-27') | css |
CREATE TABLE table_1341472_15 (
result VARCHAR,
first_elected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the result for first elected in 1948 , 1964
| SELECT result FROM table_1341472_15 WHERE first_elected = "1948 , 1964" | sql_create_context |
CREATE TABLE Invoice_Line_Items (
order_item_id INTEGER,
invoice_number INTEGER,
product_id INTEGER,
product_title VARCHAR(80),
product_quantity VARCHAR(50),
product_price DECIMAL(19,4),
derived_product_cost DECIMAL(19,4),
derived_vat_payable DECIMAL(19,4),
derived_total_cost DECIMAL... | SELECT gender, COUNT(*) FROM Customers GROUP BY gender | nvbench |
CREATE TABLE table_46003 (
"Position" real,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ... | SELECT AVG("Draws") FROM table_46003 WHERE "Goal Difference" > '2' AND "Played" < '30' | wikisql |
CREATE TABLE table_42430 (
"Season" text,
"Tier" real,
"League" text,
"Postseason" text,
"European competitions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Tier when the postseason shows -, and the season is 2012 13?
| SELECT AVG("Tier") FROM table_42430 WHERE "Postseason" = '–' AND "Season" = '2012–13' | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "81" AND prescriptions.formulary_drug_cd = "TIZA2" | mimicsql_data |
CREATE TABLE table_name_50 (
rounds VARCHAR,
tyre VARCHAR,
engine_† VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the rounds for the B tyres and Ferrari 053 engine +?
| SELECT rounds FROM table_name_50 WHERE tyre = "b" AND engine_† = "ferrari 053" | sql_create_context |
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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE... | SELECT SALARY, COMMISSION_PCT FROM employees WHERE HIRE_DATE < '2002-06-21' | nvbench |
CREATE TABLE table_name_23 (
branding VARCHAR,
frequency VARCHAR,
callsign VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the branding for the station with a frequency of 93.1mhz and a callsign of DWRX?
| SELECT branding FROM table_name_23 WHERE frequency = "93.1mhz" AND callsign = "dwrx" | sql_create_context |
CREATE TABLE table_43638 (
"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 Attendance of the game September 21, 2003?
| SELECT "Attendance" FROM table_43638 WHERE "Date" = 'september 21, 2003' | 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 demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicaid" AND diagnoses.long_title = "Encounter for therapeutic drug monitoring" | mimicsql_data |
CREATE TABLE table_20745706_1 (
score VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score on February 8, 1992?
| SELECT score FROM table_20745706_1 WHERE date = "February 8, 1992" | sql_create_context |
CREATE TABLE table_name_30 (
order__number VARCHAR,
result VARCHAR,
original_artist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what order were the Bee Gees as the artist when it was a result of bottom 3?
| SELECT order__number FROM table_name_30 WHERE result = "bottom 3" AND original_artist = "bee gees" | sql_create_context |
CREATE TABLE table_49304 (
"Season" text,
"Race" real,
"Podium" real,
"Pole" real,
"FLap" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On Race 14 when the FLap is larger than 1, what is the podium number?
| SELECT COUNT("Podium") FROM table_49304 WHERE "Race" = '14' AND "FLap" > '1' | wikisql |
CREATE TABLE table_44307 (
"Rank" real,
"Country" text,
"Miss United Continent" real,
"Virreina" real,
"1st RU" real,
"2nd RU" real,
"3rd RU" real,
"4th RU" real,
"Semifinalists" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT MIN("3rd RU") FROM table_44307 WHERE "4th RU" > '0' AND "Rank" < '8' | 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 SUM(t_kc22.AMOUNT) FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '何子美' AND t_kc22.t_kc21_CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2000-11-27' AND '2017-03-05' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' | css |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.