instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_name_51 (
games INTEGER,
goals VARCHAR,
goal_ratio VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What lowest games have 20 goals and a Goal Ratio smaller than 0.14?
| SELECT MIN(games) FROM table_name_51 WHERE goals = 20 AND goal_ratio < 0.14 | sql_create_context |
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int,
Member_in_charge_ID int
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
Left_office text,
Region_ID int,
Party_name text
)
CREATE TABLE region (
Region_ID int,
Region_name tex... | SELECT Minister, COUNT(Minister) FROM party GROUP BY Minister ORDER BY COUNT(Minister) DESC | nvbench |
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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Hypertensive chronic kidney disease, unspecified, with chronic kidney disease stage V or end stage renal diseas... | mimicsql_data |
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 jyjgzbb.JYZBLSH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jy... | css |
CREATE TABLE table_68438 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record that has a Home of detroit red wings, and a Score of 1 2 on december 29?
| SELECT "Record" FROM table_68438 WHERE "Home" = 'detroit red wings' AND "Score" = '1–2' AND "Date" = 'december 29' | wikisql |
CREATE TABLE table_26325 (
"Episode number Production number" text,
"Title" text,
"Original airing" text,
"Rating" text,
"Share" real,
"Rating/share (18\u201349)" text,
"Total viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Title" FROM table_26325 WHERE "Total viewers (in millions)" = '10.47' | wikisql |
CREATE TABLE table_55064 (
"Block A" text,
"Ryuji Hijikata" text,
"Shuji Kondo" text,
"El NOSAWA Mendoza" text,
"PEPE Michinoku" text,
"Katsuhiko Nakajima" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Shuji Kondo value related to a... | SELECT "Shuji Kondo" FROM table_55064 WHERE "PEPE Michinoku" = 'sabin (14:43)' | wikisql |
CREATE TABLE table_203_195 (
id number,
"pump type and source" text,
"typical use" text,
"35 \u00b0c\n(e.g. heated screed floor)" number,
"45 \u00b0c\n(e.g. heated screed floor)" number,
"55 \u00b0c\n(e.g. heated timber floor)" number,
"65 \u00b0c\n(e.g. radiator or dhw)" number,
"75 \u0... | SELECT "typical use" FROM table_203_195 WHERE "pump type and source" = 'gshp, ground at 10 °c' | squall |
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 * FROM person_info JOIN hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jy... | css |
CREATE TABLE table_21476 (
"Downstream" text,
"Upstream" text,
"Bandwidth" text,
"Price TL" text,
"Every 1 GB" text,
"MAX" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the upstream speed of the network that costs 39 tl?
| SELECT "Upstream" FROM table_21476 WHERE "Price TL" = '39 TL' | 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 COUNT(DISTINCT PERSON_ID) FROM t_kc21 WHERE IN_DIAG_DIS_CD = 'H31.774' | css |
CREATE TABLE documents (
document_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all the document names which contains 'CV'.
| SELECT document_name FROM documents WHERE document_name LIKE "%CV%" | sql_create_context |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
row_id numbe... | SELECT (SELECT 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 = 13837) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.item... | mimic_iii |
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
... | SELECT DISTINCT airline_code FROM airline WHERE airline_code = 'DL' | atis |
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 = "POSTERIOR COMMUNICATING ANEURYSM/SDA" AND demographic.dob_year < "1887" | mimicsql_data |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId n... | SELECT COUNT(v.PostId) AS "Vote count", v.PostId AS "post_link", p.Body FROM Votes AS v INNER JOIN Posts AS p ON p.Id = v.PostId WHERE PostTypeId = 2 AND VoteTypeId = 2 GROUP BY v.PostId, p.Body ORDER BY 'Vote count' DESC LIMIT 250 | sede |
CREATE TABLE table_name_3 (
against INTEGER,
wins VARCHAR,
losses VARCHAR,
draws VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the lowest against for when wins are greater than 14, draws is 0 and losses are 4
| SELECT MIN(against) FROM table_name_3 WHERE losses = 4 AND draws = 0 AND wins > 14 | sql_create_context |
CREATE TABLE table_20371 (
"N\u00b0" real,
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"DAR" text,
"HDTV" text,
"Package/Option" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many countries have conte... | SELECT COUNT("Country") FROM table_20371 WHERE "Content" = 'arte' | wikisql |
CREATE TABLE table_62605 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Country, when To par is '+1', and when Score is '72-71-70-72=285'?
| SELECT "Country" FROM table_62605 WHERE "To par" = '+1' AND "Score" = '72-71-70-72=285' | wikisql |
CREATE TABLE table_name_23 (
shts INTEGER,
club VARCHAR,
mins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest number for SHTS for the San Jose earthquakes with MINS larger than 2700?
| SELECT MAX(shts) FROM table_name_23 WHERE club = "san jose earthquakes" AND mins > 2700 | sql_create_context |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
... | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN... | mimic_iii |
CREATE TABLE table_55159 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the game with a record of 86-56
| SELECT COUNT("Attendance") FROM table_55159 WHERE "Record" = '86-56' | wikisql |
CREATE TABLE table_28529 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points Classification" text,
"Mountains Classification" text,
"Sprints Classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Team Classification" FROM table_28529 WHERE "Winner" = 'Chris Horner' | wikisql |
CREATE TABLE table_48682 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the event where the opponent was Chris Bard... | SELECT "Event" FROM table_48682 WHERE "Opponent" = 'chris barden' | wikisql |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following questions for the... | SELECT Headquarter, SUM(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter | nvbench |
CREATE TABLE table_7795 (
"Year" real,
"Track" text,
"50 cc" text,
"125 cc" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the track for 1982?
| SELECT "Track" FROM table_7795 WHERE "Year" = '1982' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,... | SELECT * FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_info.RYBH = '... | css |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE diagnoses_icd (
... | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT procedures_icd.icd9_code FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 162) ORDER BY procedures_icd.charttime DESC LIMIT 1) | mimic_iii |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT demographic.dischtime, procedures.icd9_code FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "91588" | mimicsql_data |
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 t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_NM = '孙欣艳' AND NOT t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT <= 532.62) | css |
CREATE TABLE table_name_13 (
state VARCHAR,
owner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What state is Wesson in?
| SELECT state FROM table_name_13 WHERE owner = "wesson" | sql_create_context |
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PendingFlags (
Id nu... | SELECT UpVotes, DownVotes, COUNT(*) AS AnswersCount FROM (SELECT SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END) AS UpVotes, SUM(CASE WHEN VoteTypeId = 3 THEN -1 ELSE 0 END) AS DownVotes FROM Posts INNER JOIN Votes ON Votes.PostId = Posts.Id AND (VoteTypeId = 2 OR VoteTypeId = 3) WHERE Posts.Id = @UserId GROUP BY Posts... | sede |
CREATE TABLE table_45964 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the money value that went along with the score of 68-67-69-76=280?
| SELECT "Money ( $ )" FROM table_45964 WHERE "Score" = '68-67-69-76=280' | wikisql |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedb... | SELECT COUNT(a.uid) FROM (SELECT OwnerUserId AS uid FROM Posts WHERE PostTypeId = 1 GROUP BY OwnerUserId HAVING COUNT(Id) = 0) AS a | sede |
CREATE TABLE order_items (
order_item_id number,
order_id number,
product_id number
)
CREATE TABLE department_stores (
dept_store_id number,
dept_store_chain_id number,
store_name text,
store_address text,
store_phone text,
store_email text
)
CREATE TABLE products (
product_id ... | SELECT payment_method_code, COUNT(*) FROM customers GROUP BY payment_method_code | spider |
CREATE TABLE table_name_5 (
heat INTEGER,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest heat number for a swimmer with a time of 2:34.94?
| SELECT MIN(heat) FROM table_name_5 WHERE time = "2:34.94" | sql_create_context |
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TAB... | SELECT DISTINCT flight.flight_id FROM airport_service, city, fare, flight, flight_fare WHERE city.city_code = airport_service.city_code AND city.city_name = 'DALLAS' AND NOT fare.round_trip_cost IS NULL AND flight_fare.fare_id = fare.fare_id AND flight.flight_id = flight_fare.flight_id AND flight.to_airport = airport_s... | atis |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Des... | WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", u.Id AS "user_link", u.Reputation FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ON u.Id = p.Own... | sede |
CREATE TABLE employee (
employeeid number,
lastname text,
firstname text,
title text,
reportsto number,
birthdate time,
hiredate time,
address text,
city text,
state text,
country text,
postalcode text,
phone text,
fax text,
email text
)
CREATE TABLE playlist... | SELECT MAX(milliseconds), MIN(milliseconds) FROM track | spider |
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate tim... | SELECT DATE(Posts.CreationDate), Posts.Tags, Posts.Id AS "post_link" FROM Posts WHERE Posts.PostTypeId = @question AND Posts.Tags LIKE ('%<' + @tagToSearch + '>%') AND NOT Posts.Tags LIKE ('%<' + @mainTag + '>%') GROUP BY Posts.Tags, Posts.Id, DATE(Posts.CreationDate) ORDER BY DATE(Posts.CreationDate) DESC | sede |
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId ... | SELECT Id AS "user_link", DisplayName, Reputation, Age, UpVotes, DownVotes, Location, WebsiteUrl AS "site_link" FROM Users WHERE Reputation >= @MinRep AND Location LIKE '%' + @Location + '%' ORDER BY Reputation DESC | sede |
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rating "decimal
)
CREATE TABLE geographic (
city_name varchar,
county varchar,
region varchar
)
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 = 'alameda' AND restaurant.id = location.restaurant_id | restaurants |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate n... | SELECT MAX(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-34744') AND patient.unitdischargetime IS NUL... | eicu |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "62" AND demographic.days_stay > "27" | mimicsql_data |
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 transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype tex... | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT prescriptions.hadm_id FROM prescriptions WHERE prescriptions.drug = 'dorzolamide 2%/timolol 0.5% ophth.') AND STRFTIME('%y', cost.chargetime) >= '2105' GROUP BY cost.hadm_id) AS t1 | mimic_iii |
CREATE TABLE table_204_928 (
id number,
"year" number,
"album" text,
"territory" text,
"label" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which album came after hammer and tongs for this group ?
| SELECT "album" FROM table_204_928 WHERE id = (SELECT id FROM table_204_928 WHERE "album" = 'hammer and tongs') + 1 | squall |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wa... | SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-144847')) AND intakeoutput.cellpath LIKE '%i... | eicu |
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 qtb.MED_ORG_DEPT_NM, qtb.IN_DIAG_DIS_CD, AVG(qtb.PERSON_AGE) FROM qtb WHERE qtb.MED_SER_ORG_NO = '5532316' GROUP BY qtb.MED_ORG_DEPT_NM, qtb.IN_DIAG_DIS_CD UNION SELECT gyb.MED_ORG_DEPT_NM, gyb.IN_DIAG_DIS_CD, AVG(gyb.PERSON_AGE) FROM gyb WHERE gyb.MED_SER_ORG_NO = '5532316' GROUP BY gyb.MED_ORG_DEPT_NM, gyb.IN_... | css |
CREATE TABLE table_58903 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in Final" text,
"Score in Final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Opponent in Final is 'Guy Forget'?
| SELECT "Date" FROM table_58903 WHERE "Opponent in Final" = 'guy forget' | wikisql |
CREATE TABLE table_69579 (
"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 team is from earlier than 1994?
| SELECT "Team" FROM table_69579 WHERE "Year" < '1994' | wikisql |
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_kc21.MAIN_COND_DES FROM t_kc21 WHERE t_kc21.MED_CLINIC_ID = '56971731612' | css |
CREATE TABLE table_name_67 (
points VARCHAR,
points_for VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the point with points for of 255
| SELECT points FROM table_name_67 WHERE points_for = "255" | 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 hz_info (
KH text,
KLX number... | SELECT jybgb.JYKSBM, jybgb.JYKSMC FROM jybgb WHERE jybgb.JZLSH = '67404927173' | css |
CREATE TABLE table_name_13 (
wk_9 INTEGER,
wk_11 VARCHAR,
wk_7 VARCHAR,
wk_6 VARCHAR,
wk_10 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest week 9 that had a week 6 of 7, a week 10 of greater than 2, a week 7 of 5, and a week 1... | SELECT MAX(wk_9) FROM table_name_13 WHERE wk_6 = "7" AND wk_10 > 2 AND wk_7 = "5" AND wk_11 < 2 | sql_create_context |
CREATE TABLE table_2506 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT MAX("Top 5") FROM table_2506 WHERE "Avg. Start" = '28.5' | wikisql |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT COUNT(*) FROM t_kc21 WHERE t_kc21.PERSON_ID = '24242862' AND t_kc21.IN_HOSP_DATE BETWEEN '2005-10-05' AND '2015-04-23' AND t_kc21.CLINIC_TYPE = '住院' | css |
CREATE TABLE table_40006 (
"Name" text,
"Date of Birth" text,
"Height" real,
"Weight" real,
"Spike" real,
"Block" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Name, when Block is 320, when Spike is more than 336, and when Date of Birth... | SELECT "Name" FROM table_40006 WHERE "Block" = '320' AND "Spike" > '336' AND "Date of Birth" = '12.10.1978' | wikisql |
CREATE TABLE table_name_71 (
opponent VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was ashley sampi's opponent?
| SELECT opponent FROM table_name_71 WHERE player = "ashley sampi" | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime t... | SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-105495')) AND intakeoutput.cellpath LIKE '%intake... | eicu |
CREATE TABLE table_15117 (
"Title" text,
"Length" text,
"Writer" text,
"Director" text,
"Airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the length of 60 minutes air?
| SELECT "Airdate" FROM table_15117 WHERE "Length" = '60 minutes' | wikisql |
CREATE TABLE table_204_506 (
id number,
"seasons" number,
"team" text,
"ch.wins" number,
"promotions" number,
"relegations" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which three teams have been playing for the most seasons ?
| SELECT "team" FROM table_204_506 WHERE "seasons" = (SELECT MAX("seasons") FROM table_204_506) | squall |
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
... | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT procedures_icd.icd9_code FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 51698) AND DATETIME(procedures_icd.charttime, 'start of year') = DAT... | mimic_iii |
CREATE TABLE table_74346 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player came from Cornell University (NCAA)?
| SELECT "Player" FROM table_74346 WHERE "College/junior/club team" = 'Cornell University (NCAA)' | wikisql |
CREATE TABLE table_name_84 (
record VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record for the date of June 14?
| SELECT record FROM table_name_84 WHERE date = "june 14" | sql_create_context |
CREATE TABLE ROLES (
role_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all role codes?
| SELECT role_code FROM ROLES | sql_create_context |
CREATE TABLE table_26277 (
"Name" text,
"Starting chip count" real,
"WSOP bracelets" real,
"WSOP cashes" real,
"WSOP earnings" text,
"Final place" text,
"Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The person who had $126,796 WSOP ... | SELECT "WSOP cashes" FROM table_26277 WHERE "WSOP earnings" = '$126,796' | wikisql |
CREATE TABLE table_21178 (
"Cycle no." text,
"Air dates" text,
"Reward" text,
"Immunity" text,
"Eliminated" text,
"Vote" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the finish for patani
| SELECT "Finish" FROM table_21178 WHERE "Eliminated" = 'Patani' | wikisql |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | SELECT MED_ORG_DEPT_CD, MED_ORG_DEPT_NM FROM t_kc21 WHERE MED_CLINIC_ID = '91661477964' | css |
CREATE TABLE table_62622 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the co-drivers of the vehicle that had both a Class position... | SELECT "Co-Drivers" FROM table_62622 WHERE "Class Pos." = '7th' AND "Pos." = '7th' | wikisql |
CREATE TABLE table_name_66 (
score VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score in the touranament of Antalya-Belek?
| SELECT score FROM table_name_66 WHERE tournament = "antalya-belek" | sql_create_context |
CREATE TABLE table_name_1 (
ground VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The Home team of Sydney had which ground?
| SELECT ground FROM table_name_1 WHERE home_team = "sydney" | sql_create_context |
CREATE TABLE useracct (
u_id number,
name text
)
CREATE TABLE trust (
source_u_id number,
target_u_id number,
trust number
)
CREATE TABLE item (
i_id number,
title text
)
CREATE TABLE review (
a_id number,
u_id number,
i_id number,
rating number,
rank number
)
-- Usi... | SELECT COUNT(*) FROM review | spider |
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 COUNT(*) FROM (SELECT jybgb.KSBM FROM mzjzjlb JOIN jybgb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE mzjzjlb.YLJGDM = '0002177' AND jybgb.BGRQ BETWEEN '2002-06-17' AND '2007-12-06' GROUP BY jybgb.KSBM HAVING COUNT(*) < 23) AS T | css |
CREATE TABLE table_name_5 (
score VARCHAR,
opponents_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the match where the opponent in the final was james cerretani todd perry?
| SELECT score FROM table_name_5 WHERE opponents_in_the_final = "james cerretani todd perry" | sql_create_context |
CREATE TABLE gyb (
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 COUNT(*) FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.PERSON_NM = '李勇锐' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2006-04-06' AND '2018-05-21' AND t_kc24.MED_AMOUT <= 10 UNION SELECT COUNT(*) FROM gyb JOIN t_kc24 ON gyb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gyb.PERSON_NM = '李勇锐' AND ... | 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 t_kc21.CLINIC_ID FROM t_kc21 WHERE t_kc21.MED_CLINIC_ID = '48065637468' | css |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartr... | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'buffered lidocaine 1%' AND DATETIME(medication.drug... | eicu |
CREATE TABLE table_name_91 (
event VARCHAR,
runner_up_skip VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the event that happened in Gander, Newfoundland and Labrador with Randy Ferbey runner-up?
| SELECT event FROM table_name_91 WHERE runner_up_skip = "randy ferbey" AND location = "gander, newfoundland and labrador" | sql_create_context |
CREATE TABLE table_1153898_1 (
semi_ddm_class VARCHAR,
comparisons VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Is drawing tablet support part of the semi-DDM class?
| SELECT semi_ddm_class FROM table_1153898_1 WHERE comparisons = "Drawing Tablet Support" | sql_create_context |
CREATE TABLE table_name_20 (
producer_s_ VARCHAR,
film VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the producer for the film 'Strange Little Girls'?
| SELECT producer_s_ FROM table_name_20 WHERE film = "strange little girls" | sql_create_context |
CREATE TABLE table_64151 (
"Date" text,
"Label" text,
"Format" text,
"Country" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Catalog came out on August 20, 1965?
| SELECT "Catalog" FROM table_64151 WHERE "Date" = 'august 20, 1965' | wikisql |
CREATE TABLE table_27750 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the year for open cup did not qualify and national final
| SELECT COUNT("Year") FROM table_27750 WHERE "Open Cup" = 'Did not qualify' AND "Playoffs" = 'National Final' | wikisql |
CREATE TABLE table_18946749_4 (
col__m_ INTEGER,
prominence__m_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest value for col(m) when prominence(m) is 3755?
| SELECT MAX(col__m_) FROM table_18946749_4 WHERE prominence__m_ = 3755 | sql_create_context |
CREATE TABLE table_203_368 (
id number,
"date" text,
"opponent" text,
"venue" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which month were the most games played in ?
| SELECT "date" FROM table_203_368 GROUP BY "date" ORDER BY COUNT("opponent") DESC LIMIT 1 | squall |
CREATE TABLE table_73243 (
"Player" text,
"Australian Open" real,
"French Open" real,
"Wimbledon" real,
"US Open" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did Martina Navratilova win Wimbledon?
| SELECT "Wimbledon" FROM table_73243 WHERE "Player" = 'Martina Navratilova' | wikisql |
CREATE TABLE table_name_28 (
agg VARCHAR,
team_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the aggregate for the match with Sierra Leone as team 1?
| SELECT agg FROM table_name_28 WHERE team_1 = "sierra leone" | sql_create_context |
CREATE TABLE table_name_24 (
round VARCHAR,
method VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round did the match go to when tko (cut) was the method?
| SELECT round FROM table_name_24 WHERE method = "tko (cut)" | sql_create_context |
CREATE TABLE hz_info_zyjzjlb (
JZLSH number,
YLJGDM number,
zyjzjlb_id number
)
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 ... | 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 = '24113912' AND NOT mzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ <= '2013-05-12') | css |
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 COUNT(*) FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.PERSON_ID = '15522613' AND t_kc22.STA_DATE BETWEEN '2007-12-20' AND '2016-09-01' AND t_kc22.MED_INV_ITEM_TYPE = '西药费' UNION SELECT COUNT(*) FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.PERSON_ID = '1... | css |
CREATE TABLE table_43820 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the record of the UCS 2 - Battle at the Barn when the round was n/a?
| SELECT "Record" FROM table_43820 WHERE "Round" = 'n/a' AND "Event" = 'ucs 2 - battle at the barn' | wikisql |
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId... | SELECT u.DisplayName, COUNT(p.Id) AS Answers FROM Posts AS p JOIN Users AS u ON u.Id = p.OwnerUserId WHERE p.OwnerUserId IN (SELECT Id FROM Users ORDER BY Reputation DESC LIMIT 10) AND p.PostTypeId = 2 GROUP BY u.DisplayName ORDER BY Answers DESC | sede |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE chartevents (
... | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 21302 AND admissions.admission_location = 'transfer from hosp/extram' AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY admissions.admittime LIMIT 1 | mimic_iii |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,... | SELECT zzmzjzjlb.YLJGDM FROM hz_info JOIN zzmzjzjlb ON hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX WHERE hz_info.RYBH = '16019866' UNION SELECT fzzmzjzjlb.YLJGDM FROM hz_info JOIN fzzmzjzjlb ON hz_info.YLJGDM = fzzmzjzjlb.YLJGDM AND hz_info.KH = fzzmzjzjlb.KH AND hz_i... | css |
CREATE TABLE table_name_52 (
facility_id INTEGER,
city_of_license VARCHAR,
erp_kw VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Facility ID that has a City of license of wheeling, and a ERP kW less than 4.5?
| SELECT MAX(facility_id) FROM table_name_52 WHERE city_of_license = "wheeling" AND erp_kw < 4.5 | sql_create_context |
CREATE TABLE table_name_33 (
player VARCHAR,
round INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player was selected in rounds under 3?
| SELECT player FROM table_name_33 WHERE round < 3 | sql_create_context |
CREATE TABLE table_name_14 (
song_sung VARCHAR,
status VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Song Sung has a Status of Eliminated?
| SELECT song_sung FROM table_name_14 WHERE status = "eliminated" | sql_create_context |
CREATE TABLE table_1341568_14 (
party VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party was Lane Evans?
| SELECT party FROM table_1341568_14 WHERE incumbent = "Lane Evans" | sql_create_context |
CREATE TABLE table_74966 (
"Condition" text,
"Prothrombin time" text,
"Partial thromboplastin time" text,
"Bleeding time" text,
"Platelet count" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Bleeding time has a Condition of factor x deficienc... | SELECT "Bleeding time" FROM table_74966 WHERE "Condition" = 'factor x deficiency as seen in amyloid purpura' | wikisql |
CREATE TABLE table_203_244 (
id number,
"pos" text,
"rider" text,
"manufacturer" text,
"time/retired" text,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of riders listed ?
| SELECT COUNT("rider") FROM table_203_244 | squall |
CREATE TABLE table_69940 (
"Date" text,
"Visitor" text,
"Result" text,
"Score" text,
"Home" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date with attendance more than 19,204 and result of l and v... | SELECT "Date" FROM table_69940 WHERE "Attendance" > '19,204' AND "Result" = 'l' AND "Visitor" = 'san francisco 49ers' AND "Record" = '2-8-0' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.