instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_name_12 (
location VARCHAR,
home_ground VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the location of the Mong Kok Stadium?
| SELECT location FROM table_name_12 WHERE home_ground = "mong kok stadium" | sql_create_context |
CREATE TABLE table_34935 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the highest attenda... | SELECT MAX("Crowd") FROM table_34935 WHERE "Home team" = 'geelong' | wikisql |
CREATE TABLE table_name_12 (
result VARCHAR,
lane VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result for Lane 3?
| SELECT result FROM table_name_12 WHERE lane = 3 | sql_create_context |
CREATE TABLE table_63472 (
"Rank" real,
"Time" text,
"Athlete" text,
"Date" text,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What athlete has a Grenoble place?
| SELECT "Athlete" FROM table_63472 WHERE "Place" = 'grenoble' | wikisql |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE m... | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 76332) AND microbiologyevents.spec_type_desc = 'catheter tip-iv' AND STRFTIME('%y-%m', microbiologyevents.charttime) = '2105-12' | mimic_iii |
CREATE TABLE airport (
International_Passengers VARCHAR,
Domestic_Passengers VARCHAR,
Airport_Name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the number of international and domestic passengers of the airport named London 'Heathrow'?
| SELECT International_Passengers, Domestic_Passengers FROM airport WHERE Airport_Name = "London Heathrow" | sql_create_context |
CREATE TABLE table_1965650_7 (
college_junior_club_team VARCHAR,
nhl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which College did the Buffalo Sabres' pick play for?
| SELECT college_junior_club_team FROM table_1965650_7 WHERE nhl_team = "Buffalo Sabres" | sql_create_context |
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.MED_SER_ORG_NO FROM t_kc21 WHERE t_kc21.PERSON_NM = '马文敏' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.SOC_SRT_DIRE_NM = '盐酸帕罗西汀片') | css |
CREATE TABLE table_203_672 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"venue" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which was the last team played ?
| SELECT "opponent" FROM table_203_672 ORDER BY "date" DESC LIMIT 1 | squall |
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE airport (
... | SELECT DISTINCT flight.flight_id FROM airport_service, city, flight WHERE city.city_code = airport_service.city_code AND city.city_name = 'SAN FRANCISCO' AND flight.airline_code = 'DL' AND flight.to_airport = airport_service.airport_code | atis |
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE airline (
airline_code varc... | 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, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BOSTON' AND date_day.day_number = 24 AND date_day.month_number = 5 AND d... | atis |
CREATE TABLE table_29141354_2 (
andrew_and_georgies_guest VARCHAR,
jamie_and_johns_guest VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was Andrew and Georgies guest when Jamie and Johns guest was Joe Calzaghe?
| SELECT andrew_and_georgies_guest FROM table_29141354_2 WHERE jamie_and_johns_guest = "Joe Calzaghe" | sql_create_context |
CREATE TABLE table_4760 (
"Couple" text,
"Score" text,
"Dance" text,
"Music" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which couple danced a jive and received a score of 21 (6, 7, 8)?
| SELECT "Couple" FROM table_4760 WHERE "Dance" = 'jive' AND "Score" = '21 (6, 7, 8)' | wikisql |
CREATE TABLE table_38721 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average attendance on October 30, 1938?
| SELECT AVG("Attendance") FROM table_38721 WHERE "Date" = 'october 30, 1938' | wikisql |
CREATE TABLE table_62145 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Jack Nicklaus finished in what place?
| SELECT "Finish" FROM table_62145 WHERE "Player" = 'jack nicklaus' | wikisql |
CREATE TABLE table_name_15 (
pick INTEGER,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest pick for the position of defensive end?
| SELECT MAX(pick) FROM table_name_15 WHERE position = "defensive end" | sql_create_context |
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No... | SELECT Area, COUNT(Area) FROM appellations GROUP BY Area ORDER BY Area | nvbench |
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, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY AVG(Price) DESC | nvbench |
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 t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE DATETIME(lab.labresulttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 5 | eicu |
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 MAX(patient.admissionweight) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-127563') AND NOT patient.admissionweight IS NULL AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of yea... | eicu |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugst... | 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 = '025-44842' AND patient.hospitaldischargetime IS NULL)) | eicu |
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 patient (
uniquep... | SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-15069')) AND lab.labname = 'bedside glucose' AND STRFTIME('%y-%m', lab.labresul... | eicu |
CREATE TABLE table_44842 (
"Date" real,
"Region" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT DATE HAS A CATALOG OF 486553.4?
| SELECT MAX("Date") FROM table_44842 WHERE "Catalog" = '486553.4' | wikisql |
CREATE TABLE table_73604 (
"Code name" text,
"Brand name" text,
"Model (list)" text,
"Frequency" text,
"Cores/Threads" text,
"Max Memory Speed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum memory speed for frequencies betwe... | SELECT "Max Memory Speed" FROM table_73604 WHERE "Frequency" = '2.93-3.2GHz' | wikisql |
CREATE TABLE table_37979 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest round number that Ian Forbes was picked in the draft?
| SELECT MIN("Round") FROM table_37979 WHERE "Player" = 'ian forbes' | wikisql |
CREATE TABLE table_name_79 (
score VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score on January 26?
| SELECT score FROM table_name_79 WHERE date = "january 26" | sql_create_context |
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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND procedures.long_title = "Arthrocentesis" | mimicsql_data |
CREATE TABLE table_67551 (
"Season" real,
"Series" text,
"Races" text,
"Wins" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins have a Series of formula nippon, and a Position of 8th?
| SELECT "Wins" FROM table_67551 WHERE "Series" = 'formula nippon' AND "Position" = '8th' | wikisql |
CREATE TABLE jybgb_jyjgzbb (
JYZBLSH number,
YLJGDM text,
jyjgzbb_id number
)
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 tex... | SELECT * FROM jyjgzbb WHERE jyjgzbb.JCZBMC = (SELECT jyjgzbb.JCZBMC FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '70091452455') AND jyjgzbb.JCZBJGDW = (SELECT jyjgzbb.JCZBJGDW FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '70091452455') AND jyjgzbb.JCZBJGDL <> (SELECT jyjgzbb.JCZBJGDL FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '70091452455') | css |
CREATE TABLE table_204_911 (
id number,
"album / name" text,
"artist(s)" text,
"label" text,
"role/credit" text,
"date" text,
"chart#" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which song came out fist ?
| SELECT "album / name" FROM table_204_911 WHERE id = 1 | squall |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org... | 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 = 20066 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)) AND chartev... | mimic_iii |
CREATE TABLE table_name_33 (
new_council INTEGER,
election_result INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which New council has an Election result larger than 24?
| SELECT AVG(new_council) FROM table_name_33 WHERE election_result > 24 | sql_create_context |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, date_day, days, flight, flight_stop WHERE ((CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'MILWA... | atis |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.diagnosis = "CONGESTIVE HEART FAILURE" AND demographic.dod_year < "2115.0" | mimicsql_data |
CREATE TABLE table_35058 (
"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.
-- When was the winning score 12 (69-66-72-65=272)?
| SELECT "Date" FROM table_35058 WHERE "Winning score" = '–12 (69-66-72-65=272)' | wikisql |
CREATE TABLE table_name_3 (
comp INTEGER,
player VARCHAR,
rating VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Comp average, having Gino Guidugli as a player and a rating of more than 92.2?
| SELECT AVG(comp) FROM table_name_3 WHERE player = "gino guidugli" AND rating > 92.2 | sql_create_context |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | SELECT t_kc22.QTY * t_kc22.UNIVALENT FROM t_kc22 WHERE t_kc22.MED_EXP_DET_ID = '01809849541' | css |
CREATE TABLE table_54565 (
"Discipline" text,
"Season" real,
"Performance" text,
"Place" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the performance length of the 1999 season in bydgoszcz, poland?
| SELECT "Performance" FROM table_54565 WHERE "Season" = '1999' AND "Place" = 'bydgoszcz, poland' | wikisql |
CREATE TABLE documents (
document_name VARCHAR,
access_count VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name and access counts of all documents, in alphabetic order of the document name.
| SELECT document_name, access_count FROM documents ORDER BY document_name | sql_create_context |
CREATE TABLE table_69931 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what tournament was on a hard surface and saw jacob adaktusson as the opponent?
| SELECT "Tournament" FROM table_69931 WHERE "Surface" = 'hard' AND "Opponent" = 'jacob adaktusson' | wikisql |
CREATE TABLE table_25851971_1 (
production_code VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the production code of the episode written by Anthony Sparks?
| SELECT production_code FROM table_25851971_1 WHERE written_by = "Anthony Sparks" | sql_create_context |
CREATE TABLE table_24798489_2 (
challenge VARCHAR,
episode_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the challenge for episode 28?
| SELECT challenge FROM table_24798489_2 WHERE episode_number = 28 | sql_create_context |
CREATE TABLE employees (
employee_id number,
role_code text,
employee_name text,
gender_mfu text,
date_of_birth time,
other_details text
)
CREATE TABLE roles (
role_code text,
role_name text,
role_description text
)
CREATE TABLE ref_document_types (
document_type_code text,
... | SELECT T2.role_name, T2.role_description FROM employees AS T1 JOIN roles AS T2 ON T1.role_code = T2.role_code WHERE T1.employee_name = "Ebba" | spider |
CREATE TABLE table_71093 (
"Election" text,
"1st Member" text,
"1st Party" text,
"2nd Member" text,
"2nd Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which election was the constituency abolished?
| SELECT "Election" FROM table_71093 WHERE "1st Member" = 'constituency abolished' | wikisql |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Tina Henderson" | mimicsql_data |
CREATE TABLE table_2733 (
"Region" text,
"Citation" text,
"Court of Appeals" text,
"Established" real,
"Judges" real,
"Meeting places" real,
"Chief judge" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the region is the Southern district ... | SELECT "Citation" FROM table_2733 WHERE "Region" = 'Southern District of Texas' | wikisql |
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate tim... | SELECT parent.Score, PostId AS "post_link", Comments.CreationDate, Text FROM Comments JOIN Posts AS parent ON (Comments.PostId = parent.Id) WHERE Text LIKE '%infinity%not a number%' ORDER BY parent.Score DESC, CreationDate DESC | sede |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
pro... | SELECT DISTINCT airline.airline_code FROM airline, 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 = 'DENVER' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_na... | atis |
CREATE TABLE table_name_39 (
score VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final score for the game played against @ Milwaukee?
| SELECT score FROM table_name_39 WHERE team = "@ milwaukee" | sql_create_context |
CREATE TABLE table_2936 (
"Season" real,
"Lowest" real,
"Low Team" text,
"Average" real,
"Highest" real,
"High Team" text,
"2nd Highest" real,
"2nd Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the entry for highest when ... | SELECT "Highest" FROM table_2936 WHERE "Average" = '10295' | wikisql |
CREATE TABLE table_41423 (
"Player" text,
"Club" text,
"League" real,
"Play-offs" real,
"FA Cup" real,
"FA Trophy" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest play-offs that have stevenage borough as the ... | SELECT MAX("Play-offs") FROM table_41423 WHERE "Club" = 'stevenage borough' AND "Total" > '21' | wikisql |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREAT... | SELECT COUNT(*) > 0 FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '002-34744')) AND vitalperiodic.sao2 > 64.0 AND NOT vitalperiodic.sao... | eicu |
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE T... | 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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'HOUSTON' AND date_day.day_number = 23 AND date_day.month_number = 4 AND d... | atis |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_typ... | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 57899) AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') | mimic_iii |
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM text,
SHRGH ... | SELECT AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) 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.JZZDSM = '慢性胃溃疡' AND jyjgzbb.JCZBMC = '抗环瓜氨酸肽抗体' | css |
CREATE TABLE phone (
Company_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of the company that has the least number of phone models. List the company name and the number of phone model produced by that company.
| SELECT Company_name, COUNT(*) FROM phone GROUP BY Company_name ORDER BY COUNT(*) LIMIT 1 | sql_create_context |
CREATE TABLE table_34344 (
"Score" text,
"Opposition" text,
"Venue" text,
"City" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What score has 1998 as the year?
| SELECT "Score" FROM table_34344 WHERE "Year" = '1998' | wikisql |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | SELECT V.PostId AS "post_link", P.OwnerUserId AS "user_link", P.Body FROM Votes AS V, Posts AS P, PostTypes AS Pt WHERE V.VoteTypeId = 10 AND DATEDIFF(month, V.CreationDate, GETDATE()) < 6 AND P.Id = V.PostId AND Pt.Id = P.PostTypeId AND Pt.Id = 2 AND (SELECT COUNT(V2.PostId) FROM Votes AS V2 WHERE V.VoteTypeId = 10 AN... | sede |
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 diagnoses_icd (
row_id number,
subject_id ... | SELECT outputevents.charttime FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8116) AND icustays.outtime IS NULL) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items... | mimic_iii |
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.ethnicity = "BLACK/AFRICAN AMERICAN" AND diagnoses.icd9_code = "3315" | mimicsql_data |
CREATE TABLE table_name_37 (
overall_rank INTEGER,
lane VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the highest overall rank for lane less than 8 and time less than 27.16
| SELECT MAX(overall_rank) FROM table_name_37 WHERE lane < 8 AND time < 27.16 | sql_create_context |
CREATE TABLE table_12868 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What person had an opponent of linda wessberg and scored an average score?
| SELECT AVG("Score") FROM table_12868 WHERE "Player" = 'linda wessberg' | wikisql |
CREATE TABLE table_10015132_3 (
years_in_toronto VARCHAR,
school_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the player from Hawaii play for Toronto?
| SELECT years_in_toronto FROM table_10015132_3 WHERE school_club_team = "Hawaii" | sql_create_context |
CREATE TABLE table_name_15 (
score VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Date of november 3, 2008 had what score?
| SELECT score FROM table_name_15 WHERE date = "november 3, 2008" | sql_create_context |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "48" AND procedures.icd9_code = "5011" | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicaid" AND diagnoses.short_title = "Epilep NOS w/o intr epil" | mimicsql_data |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
... | SELECT chartevents.charttime 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 = 23436)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart ra... | mimic_iii |
CREATE TABLE table_1404984_1 (
virtual_channel VARCHAR,
network VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is HSN's official virtual channel in Minneapolis-St. Paul?
| SELECT virtual_channel FROM table_1404984_1 WHERE network = "HSN" | sql_create_context |
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE... | SELECT admissions.subject_id FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'jt contracture-jt nec') AND DATETIME(diagnoses_icd.charttime) >= DATETIME(... | mimic_iii |
CREATE TABLE table_54767 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is th... | SELECT "Circuit" FROM table_54767 WHERE "Pole position" = 'jack brabham' AND "Fastest lap" = 'graham hill' | wikisql |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | SELECT * FROM person_info JOIN hz_info JOIN zzmzjzjlb 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 WHERE person_info.XM = '水凯复' AND hz_info.YLJGDM = '0439258' AND NOT zzmzjzjlb.JZZDSM LIKE '%酒精%' UNION SELECT * FROM person_info JO... | css |
CREATE TABLE table_6851 (
"Season" text,
"Team" text,
"Conference (Conf.)" text,
"Division (Div.)" text,
"Win%" text,
"Awards" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season had a .439 Win% in the 1996-97 Team?
| SELECT "Season" FROM table_6851 WHERE "Win%" = '.439' AND "Team" = '1996-97' | wikisql |
CREATE TABLE table_2417345_3 (
vacator VARCHAR,
date_of_successors_formal_installation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the vacator when the successor was formally installed on February 1, 1871?
| SELECT vacator FROM table_2417345_3 WHERE date_of_successors_formal_installation = "February 1, 1871" | sql_create_context |
CREATE TABLE table_11677100_17 (
hometown VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hometown of Bubba Starling?
| SELECT hometown FROM table_11677100_17 WHERE player = "Bubba Starling" | sql_create_context |
CREATE TABLE table_name_59 (
game VARCHAR,
opponents INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What game did the Buffalo Bills' opponents earn more than 28 points?
| SELECT game FROM table_name_59 WHERE opponents > 28 | sql_create_context |
CREATE TABLE table_name_35 (
type VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type is Kevin Muscat?
| SELECT type FROM table_name_35 WHERE name = "kevin muscat" | sql_create_context |
CREATE TABLE table_name_84 (
decision VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the decision of the game when the Lightning had a record of 6 8 1?
| SELECT decision FROM table_name_84 WHERE record = "6–8–1" | sql_create_context |
CREATE TABLE table_name_7 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 1955 rate when the 1956 is more than 2.9, and 1953 is larger than 4.5?
| SELECT SUM(1955) FROM table_name_7 WHERE 1956 > 2.9 AND 1953 > 4.5 | sql_create_context |
CREATE TABLE table_203_756 (
id number,
"year" number,
"title" text,
"role" text,
"network" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many appearances have no role listed ?
| SELECT COUNT(*) FROM table_203_756 WHERE "role" IS NULL | squall |
CREATE TABLE table_name_53 (
season VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which season has the Celtic club?
| SELECT season FROM table_name_53 WHERE club = "celtic" | 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "47" AND procedures.icd9_code = "9920" | mimicsql_data |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT SUM(t_kc24.PER_ACC_PAY) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '章安澜' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2005-06-12' AND '2021-06-04' | css |
CREATE TABLE table_20752 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Date" text,
"Crowd" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When ground is manuka oval what is the home tea... | SELECT COUNT("Home team score") FROM table_20752 WHERE "Ground" = 'Manuka Oval' | wikisql |
CREATE TABLE sampledata15 (
sample_pk number,
state text,
year text,
month text,
day text,
site text,
commod text,
source_id text,
variety text,
origin text,
country text,
disttype text,
commtype text,
claim text,
quantity number,
growst text,
packst t... | SELECT commod FROM resultsdata15 WHERE mean = "A" GROUP BY commod ORDER BY COUNT(*) DESC LIMIT 1 | pesticide |
CREATE TABLE table_52988 (
"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 venue has a score of 14.15 (99) for away te... | SELECT "Venue" FROM table_52988 WHERE "Away team score" = '14.15 (99)' | wikisql |
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStat... | SELECT c.CreationDate, c.Text, c.Id AS "comment_link", c.PostId AS "post_link" FROM Comments AS c WHERE c.CreationDate > '##yyyy##' + '-' + '##mm##' + '-' + '##dd##' + 'T00:00:00.000' AND (Text LIKE '%##SearchOnKeyword1##%' OR Text LIKE '%##SearchOnKeyword2##%') AND (NOT Text LIKE '%##ExcludeThisWord1##%' OR NOT Text L... | sede |
CREATE TABLE table_73362 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the episode ... | SELECT "Original air date" FROM table_73362 WHERE "Directed by" = 'James Widdoes' AND "Production code" = '320' | wikisql |
CREATE TABLE table_76371 (
"Poll source" text,
"Dates administered" text,
"Arlen Specter*" text,
"Pat Toomey" text,
"Tom Ridge*" text,
"Peg Luksik" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Poll source has an Arlen Specter* of , and a... | SELECT "Poll source" FROM table_76371 WHERE "Arlen Specter*" = '––' AND "Tom Ridge*" = '60%' | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.drug_type = "BASE" | mimicsql_data |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31482) AND microbiologyevents.spec_type_desc = 'blood culture' AND STRFTIME('%y-%m', microbiologyevents.charttime) = '2105-12' | mimic_iii |
CREATE TABLE table_42221 (
"Former kingdom" text,
"Province" text,
"Hangul" text,
"Hanja" text,
"Capital" text,
"Modern equivalent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the modern equivalent of in Hanja?
| SELECT "Modern equivalent" FROM table_42221 WHERE "Hanja" = '良州' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.diagnosis = "HEMOPYTSIS" AND prescriptions.drug_type = "BASE" | mimicsql_data |
CREATE TABLE zyb (
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 * FROM qtb WHERE qtb.MED_SER_ORG_NO = '0936106' AND qtb.IN_HOSP_DATE BETWEEN '2000-08-24' AND '2001-03-11' AND qtb.PERSON_NM LIKE '吴%' UNION SELECT * FROM gyb WHERE gyb.MED_SER_ORG_NO = '0936106' AND gyb.IN_HOSP_DATE BETWEEN '2000-08-24' AND '2001-03-11' AND gyb.PERSON_NM LIKE '吴%' UNION SELECT * FROM zyb WHERE ... | 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 qtb.OUT_HOSP_DATE FROM qtb WHERE qtb.MED_CLINIC_ID = '16021187507' UNION SELECT gyb.OUT_HOSP_DATE FROM gyb WHERE gyb.MED_CLINIC_ID = '16021187507' UNION SELECT zyb.OUT_HOSP_DATE FROM zyb WHERE zyb.MED_CLINIC_ID = '16021187507' UNION SELECT mzb.OUT_HOSP_DATE FROM mzb WHERE mzb.MED_CLINIC_ID = '16021187507' | css |
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 person_info.JGDM, person_info.JGMC, COUNT(person_info.RYBH) FROM person_info JOIN hz_info JOIN zzmzjzjlb 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 WHERE zzmzjzjlb.JZZDBM = 'I58.073' GROUP BY person_info.JGDM UNION SELECT... | css |
CREATE TABLE table_name_38 (
opponent VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent on the September 3 game?
| SELECT opponent FROM table_name_38 WHERE date = "september 3" | sql_create_context |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "OVERDOSE" AND demographic.dod_year <= "2148.0" | mimicsql_data |
CREATE TABLE delivery_routes (
route_id number,
route_name text,
other_route_details text
)
CREATE TABLE trucks (
truck_id number,
truck_licence_number text,
truck_details text
)
CREATE TABLE customers (
customer_id number,
payment_method text,
customer_name text,
customer_phon... | SELECT customer_name FROM customers EXCEPT SELECT t1.customer_name FROM customers AS t1 JOIN customer_addresses AS t2 ON t1.customer_id = t2.customer_id JOIN addresses AS t3 ON t2.address_id = t3.address_id WHERE t3.state_province_county = 'California' | spider |
CREATE TABLE table_46059 (
"Fin. Pos" text,
"Car No." text,
"Driver" text,
"Team" text,
"Laps" text,
"Time/Retired" text,
"Grid" text,
"Laps Led" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What car number had 24 po... | SELECT "Car No." FROM table_46059 WHERE "Points" = '24' | wikisql |
CREATE TABLE table_10360823_1 (
overall INTEGER,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which overall pick number went to college at Youngstown State?
| SELECT MIN(overall) FROM table_10360823_1 WHERE college = "Youngstown State" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.