text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_56768 (
"Pick" real,
"Round" text,
"Player" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was steve bartalo picked?
### Query: SELECT MAX("Pick") FROM table_56768 WHERE "Player" ... |
### Context: CREATE TABLE table_27332038_1 (
directed_by VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who directed the episode that elaine ko wrote?
### Query: SELECT directed_by FROM table_27332038_1 WHERE written_by = "Elaine Ko" |
### Context: 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,
LastEditorDis... |
### Context: CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABL... |
### Context: CREATE TABLE table_53688 (
"Rank" real,
"Name" text,
"Nation" text,
"Total Points" real,
"Placings" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the placing of the nation of East Germany?
### Query: SELECT COUNT("Placings") ... |
### Context: CREATE TABLE table_31788 (
"Division" text,
"League Apps" real,
"League Goals" real,
"FA Cup Apps" real,
"FA Cup Goals" real,
"Total Apps" real,
"Total Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which league goals has... |
### Context: 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,
JYZBL... |
### Context: CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEd... |
### Context: CREATE TABLE table_21700 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the part 4 for the verb whose part 3 is borgen?
### Query: SE... |
### Context: CREATE TABLE table_30140 (
"Institution" text,
"City" text,
"State" text,
"Team Name" text,
"Affiliation" text,
"Enrollment" real,
"Home Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many states were there when ... |
### Context: CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABL... |
### Context: CREATE TABLE table_name_23 (
muklom VARCHAR,
halang VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Muklom has a Halang of w c i ?
### Query: SELECT muklom FROM table_name_23 WHERE halang = "wɯ¹cʰi¹" |
### Context: CREATE TABLE table_name_24 (
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what place is the golfer with a score of 68-69-73-70=280?
### Query: SELECT place FROM table_name_24 WHERE score = 68 - 69 - 73 - 70 = 280 |
### Context: CREATE TABLE table_name_33 (
status VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What status has 15/04/1967 as the date?
### Query: SELECT status FROM table_name_33 WHERE date = "15/04/1967" |
### Context: CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE universi... |
### Context: CREATE TABLE table_40925 (
"From" real,
"Goal" text,
"Round 1" text,
"Round 2" text,
"Round 3" text,
"Round 4" text,
"Round 5" text,
"Round 6+" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Round 1 from 1977 where R... |
### 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,
... |
### Context: CREATE TABLE table_14097 (
"Club" text,
"League/Division" text,
"Home Ground" text,
"Location" text,
"Position in 2012-13" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What club has a league/division of fourth division?
### Query: SE... |
### Context: CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15),
Workshop_Group_ID INTEGER,
Product_Description VARCHAR(255),
Product_Name VARCHAR(255),
Product_Price DECIMAL(20,4),
Other_Product_Service_Details VARCHAR(255)
)
CREATE TABLE Ref_Service_Types (
Service... |
### Context: CREATE TABLE table_name_88 (
avg_g VARCHAR,
att_cmp_int VARCHAR,
effic VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players had an Att-Cmp-Int of 143 269 16, and an efficiency of less than 116.9?
### Query: SELECT COUNT(avg_g) FR... |
### Context: CREATE TABLE table_11734041_7 (
position VARCHAR,
years_for_rockets VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the positions for the rockets in 2008?
### Query: SELECT position FROM table_11734041_7 WHERE years_for_rockets = "2... |
### Context: CREATE TABLE table_70542 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team opponent had a loss with their pitcher Dotson (8-6)?
### Query: SELECT "Opponent" FR... |
### Context: CREATE TABLE table_44705 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the away team for the New Zealand breaker... |
### Context: CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Investors (
investor_id INTEGER,
Investor_details VARCHAR(255)
)
CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Transactions_Lots (
... |
### Context: 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_... |
### Context: CREATE TABLE table_768 (
"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 results have Jere Cooper as incumbent?
### Query: S... |
### Context: CREATE TABLE table_name_8 (
nationalist VARCHAR,
undecided__no_answer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Nationalist share of the poll for the response in which Undecided/No Answer received 29.2%?
### Query: SELECT natio... |
### Context: CREATE TABLE table_58252 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score for the Date of April 23?
### Query: SELECT "Score" FR... |
### Context: CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
rout... |
### Context: CREATE TABLE table_32390 (
"Player" text,
"Home Town" text,
"College/Prior" text,
"Drafting Team" text,
"Graduated" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did Omar Gonzalez graduate?
### Query: SELECT SUM("Graduated")... |
### Context: CREATE TABLE batting_postseason (
year number,
round text,
player_id text,
team_id text,
league_id text,
g number,
ab number,
r number,
h number,
double number,
triple number,
hr number,
rbi number,
sb number,
cs number,
bb number,
so numb... |
### Context: CREATE TABLE table_31496 (
"Townland" text,
"Area( acres )" real,
"Barony" text,
"Civil parish" text,
"Poor law union" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Lisladeen poor law union?
### Query: SELECT "Poor law union" ... |
### Context: CREATE TABLE table_24929 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the table... |
### Context: CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varc... |
### Context: CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE course_prerequisite (... |
### Context: CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
... |
### Context: CREATE TABLE table_name_90 (
rank INTEGER,
code__iata_icao_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of airport with a (IATA/ICAO) of bcm/lrbc code and an amount of 240,735 in 2010?
### Query: SELECT MIN(rank) FROM table_... |
### Context: CREATE TABLE table_46087 (
"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 of the Montreal Canadiens Home game on March 23?
### Query: SELECT "Record" F... |
### Context: CREATE TABLE table_22309 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Canadian air date" text,
"U.S. air date" text,
"Production code" real,
"Canadian viewers (million)" text
)
-- Using valid SQLite, answer the following questions for t... |
### Context: CREATE TABLE table_35493 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponen" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Surface has a Date of january 2, 2006?
### Query: SELECT "Surface" FROM table_35493... |
### Context: CREATE TABLE table_name_3 (
time VARCHAR,
rider VARCHAR,
team VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Team of honda 250cc, and a Rank larger than 2, and a Rider of chris palmer is what time?
### Query: SELECT time F... |
### Context: CREATE TABLE table_14778 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date on Catalog 540,934-2?
### Query: SELECT "Date" FROM table_14778 WHERE "Catalo... |
### Context: CREATE TABLE artwork (
artwork_id number,
type text,
name text
)
CREATE TABLE nomination (
artwork_id number,
festival_id number,
result text
)
CREATE TABLE festival_detail (
festival_id number,
festival_name text,
chair_name text,
location text,
year number,
... |
### Context: CREATE TABLE table_202_179 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many la... |
### 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,
admissi... |
### Context: CREATE TABLE table_26794530_1 (
points VARCHAR,
final_placing VARCHAR,
races VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When there were 30 races and the final placing was 13th, how many points were scored?
### Query: SELECT points FROM ... |
### Context: CREATE TABLE table_11303072_5 (
batting_partners VARCHAR,
runs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the batting partners with runs of 226?
### Query: SELECT batting_partners FROM table_11303072_5 WHERE runs = "226" |
### Context: CREATE TABLE table_24192031_2 (
age VARCHAR,
height VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How old is the person with the height of m (ft 3 4 in)?
### Query: SELECT age FROM table_24192031_2 WHERE height = "m (ft 3⁄4 in)" |
### Context: CREATE TABLE table_name_6 (
year INTEGER,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years did he play in santiago de compostela?
### Query: SELECT SUM(year) FROM table_name_6 WHERE city = "santiago de compostela" |
### Context: CREATE TABLE ENROLL (
CLASS_CODE varchar(5),
STU_NUM int,
ENROLL_GRADE varchar(50)
)
CREATE TABLE STUDENT (
STU_NUM int,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
... |
### Context: CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm... |
### Context: 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,
ME... |
### Context: CREATE TABLE documents_with_expenses (
document_id number,
budget_type_code text,
document_details text
)
CREATE TABLE documents (
document_id number,
document_type_code text,
project_id number,
document_date time,
document_name text,
document_description text,
othe... |
### Context: CREATE TABLE table_65169 (
"Album#" text,
"English Title" text,
"Chinese (Traditional)" text,
"Chinese (Simplified)" text,
"Release date" text,
"Label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the simplified Chinese na... |
### Context: CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
... |
### Context: CREATE TABLE table_1341663_19 (
candidates VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What other cadidate ran against Dave Treen?
### Query: SELECT candidates FROM table_1341663_19 WHERE incumbent = "Dave Treen" |
### 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gend... |
### Context: CREATE TABLE field (
fieldid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE journal (
journalid int,
journal... |
### Context: CREATE TABLE table_50971 (
"University" text,
"Location" text,
"Established" real,
"Endowment as of 2008" text,
"Campus Area (acres)" real,
"Kiplinger's Top 100 Values" text,
"Enrollment as of 2008" real
)
-- Using valid SQLite, answer the following questions for the tables pr... |
### 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
val... |
### Context: CREATE TABLE table_203_253 (
id number,
"model" text,
"frame" text,
"years mfg'd" text,
"caliber(s)" text,
"production" text,
"barrel" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the last year of ma... |
### Context: CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
... |
### Context: CREATE TABLE fgwyjzb (
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,
INSUR... |
### Context: CREATE TABLE table_2973 (
"April 2013 Cum. Rank" real,
"Name" text,
"Rank (all) 2012" real,
"Rank (all) 2013" real,
"2013 Rank (oil companies)" text,
"2013 rev (bil. USD )" text,
"2013 Profit (mil. USD )" real,
"Assets (bil. USD )" text,
"Market cap March 15 (mil. USD )"... |
### Context: CREATE TABLE table_174491_1 (
fis_nordic_world_ski_championships VARCHAR,
country VARCHAR,
holmenkollen VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did the man from Norway who won the Holmenkollen in 1958 win the FIS Nordic Worl... |
### Context: CREATE TABLE table_8965 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How did Tim Herron place?
### Query: SELECT "Place" FROM table_8965 WHERE "Player" = 'tim herr... |
### Context: CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName T... |
### Context: CREATE TABLE table_14520977_1 (
date VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date when result is l 13 10 ot
### Query: SELECT date FROM table_14520977_1 WHERE result = "L 13–10 OT" |
### Context: CREATE TABLE Room (
RoomNumber INTEGER,
RoomType VARCHAR(30),
BlockFloor INTEGER,
BlockCode INTEGER,
Unavailable BOOLEAN
)
CREATE TABLE Physician (
EmployeeID INTEGER,
Name VARCHAR(30),
Position VARCHAR(30),
SSN INTEGER
)
CREATE TABLE On_Call (
Nurse INTEGER,
B... |
### Context: CREATE TABLE table_name_42 (
position VARCHAR,
channel VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position when the channel shows channel 4?
### Query: SELECT position FROM table_name_42 WHERE channel = "channel 4" |
### Context: CREATE TABLE table_56490 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lap total for the grid under 15 that retired due to transmission?
### Que... |
### Context: CREATE TABLE table_name_32 (
born_in_a_non_eu_state__millions_ VARCHAR,
total_population__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people were born in a non EU state (in millions), when the Total population (in millions)... |
### Context: 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,
LastEditorDis... |
### Context: CREATE TABLE table_44525 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the pick was below 42 and the player was Chris Horton, what's the high... |
### Context: CREATE TABLE table_34836 (
"Locomotive" text,
"Pre-conversion" text,
"Entered service (T)" text,
"Re-entered service (P)" text,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who owns the item that was a T326 before conversion a... |
### Context: 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 ... |
### Context: CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration n... |
### Context: CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
)
CREATE TABLE... |
### Context: CREATE TABLE procedures (
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_... |
### Context: 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 diagnosi... |
### Context: CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_I... |
### Context: CREATE TABLE table_55366 (
"Title" text,
"Original story author" text,
"Director" text,
"Original U.S. air-date" text,
"Original Canadian air-date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Original Canadian air-date th... |
### Context: CREATE TABLE table_name_31 (
score VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Score of the Semifinal 1?
### Query: SELECT score FROM table_name_31 WHERE round = "semifinal 1" |
### Context: CREATE TABLE table_56949 (
"Place" real,
"Player Name" text,
"Yards" text,
"TD's" real,
"Long" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the long of the player with 16 yards and less than 1 TD?
### Query: SELECT SUM("Long"... |
### Context: 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_... |
### Context: CREATE TABLE table_26051 (
"Episode #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text,
"Production code (order they were made) #" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... |
### Context: CREATE TABLE table_name_12 (
style VARCHAR,
results VARCHAR,
choreographer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Style of the dance Choreographed by Nacho Pop with result of safe?
### Query: SELECT style FROM table_name... |
### Context: CREATE TABLE table_48876 (
"Model" text,
"Length Over All" text,
"Beam" text,
"Sail Area" text,
"Crew" text,
"Comments" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Model has a Sail Area of 24.5 m ?
### Query: SELECT "Model... |
### Context: CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM... |
### Context: CREATE TABLE table_203_300 (
id number,
"year" number,
"tournament" text,
"venue" text,
"result" text,
"extra" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in what year did yelena slesarenko accumulate the most ` top 5 ' finishes ... |
### Context: CREATE TABLE table_38654 (
"Discipline" text,
"Peter" real,
"Adam" real,
"Jade" real,
"Plat'num" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Peter's score in kendo that has a plat'num less than 3?
### Query: SELECT MIN("Pete... |
### Context: CREATE TABLE procedures (
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_... |
### Context: CREATE TABLE table_train_122 (
"id" int,
"metabolic_disease" bool,
"stroke" bool,
"renal_disease" bool,
"huntington_disease" bool,
"hepatic_disease" bool,
"psychiatric_disease" bool,
"multiple_sclerosis" bool,
"hyperlipidemia" bool,
"cardiovascular_disease" bool,
... |
### Context: CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
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_cod... |
### Context: CREATE TABLE table_54478 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Event is at the Time 1:16?
### Q... |
### Context: CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
... |
### Context: CREATE TABLE table_name_98 (
date VARCHAR,
home VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game when the Mavericks were the home team?
### Query: SELECT date FROM table_name_98 WHERE home = "mavericks" |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
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,
... |
### Context: 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 numb... |
### Context: CREATE TABLE table_train_194 (
"id" int,
"organ_transplantation" bool,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"substance_dependence" bool,
"diastolic_blood_pressure_dbp" int,
"alcohol_abuse" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.