text stringlengths 197 8.39k |
|---|
### 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_t... |
### Context: CREATE TABLE table_65946 (
"Position" text,
"Gymnast" text,
"A Score" real,
"B Score" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the B Score when the total is more than 16.125, and position is 3rd?
### Query: ... |
### Context: CREATE TABLE table_50932 (
"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.
-- Which country had a place of t1, as well as a score of 72-68-70-73=283... |
### Context: CREATE TABLE table_204_557 (
id number,
"#" number,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"pts" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of first visitor on this char... |
### Context: 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... |
### Context: CREATE TABLE table_11606 (
"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.
-- Which team played Footscray?
### Q... |
### Context: CREATE TABLE table_39045 (
"Model" text,
"Processors Supported" text,
"FSB/HT Frequency (MHz)" text,
"Memory" text,
"PCI-Express" text,
"SATA" text,
"PATA" text,
"Sound" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What ar... |
### 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 ReviewTaskResults (
Id number,
ReviewTaskId... |
### Context: CREATE TABLE table_25286 (
"Constituency" text,
"Winner" text,
"Party" text,
"Margin" real,
"Runner-up a" text,
"Party a" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the party when the constituency is 1. Chennai North?
#... |
### Context: 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... |
### Context: CREATE TABLE table_name_35 (
losses INTEGER,
wimmera_fl VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Losses have a Wimmera FL of minyip murtoa?
### Query: SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = "minyip murtoa" |
### 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug... |
### Context: CREATE TABLE table_79956 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did they play on August 12?
### Query: SELECT "Opponent" FROM table_... |
### 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 ... |
### 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_name_75 (
year INTEGER,
chassis VARCHAR,
entrant VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did Elf Team Tyrrell have 39 points and a Tyrrell 007 Chassis?
### Query: SELECT SUM(year) FROM... |
### Context: CREATE TABLE table_36909 (
"Club" text,
"Sport" text,
"Founded" real,
"League" text,
"Venue" text,
"Head Coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Venue of Pepsi arena involved what club?
### Query: SELECT "Club" FROM t... |
### Context: CREATE TABLE table_name_87 (
nationality VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Graham Gooch's nationality?
### Query: SELECT nationality FROM table_name_87 WHERE player = "graham gooch" |
### Context: CREATE TABLE table_60735 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has a To par of 2, and a Country of wales?
### Query: SELECT "Player" FROM table... |
### Context: CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREAT... |
### Context: CREATE TABLE table_3813 (
"Sd" real,
"Rk" real,
"Player" text,
"Points" real,
"Points defending" text,
"Points won" real,
"New points" real,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different counts f... |
### Context: CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Statements (... |
### Context: CREATE TABLE table_46421 (
"Name" text,
"Country" text,
"Loan Club" text,
"Started" text,
"Ended" text,
"Start Source" text,
"End Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the loan started when the coutry i... |
### Context: CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_P... |
### Context: CREATE TABLE table_25663 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" text,
"Viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provide... |
### Context: CREATE TABLE table_16360 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the epis... |
### 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 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,
... |
### Context: 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_items (
row_id number,
itemid number,
label text,
linksto text
)
CREAT... |
### Context: CREATE TABLE table_name_90 (
decision VARCHAR,
home VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the decision of the game when Montreal was the home team?
### Query: SELECT decision FROM table_name_90 WHERE home = "montreal" |
### Context: CREATE TABLE table_40489 (
"Tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2004 that has a of grand slam tournaments in2006 ?
### Query: SELECT "2004" FROM tab... |
### Context: CREATE TABLE table_23618 (
"Divisions" text,
"Prize (EUR)" text,
"Odds of winning (1in)" text,
"Number of winning tickets" real,
"In order to win" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which divisions have 565 as the number of ... |
### Context: CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
... |
### Context: CREATE TABLE table_name_28 (
budget VARCHAR,
film VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE BUDGET FOR THE INCREDIBLES?
### Query: SELECT budget FROM table_name_28 WHERE film = "the incredibles" |
### Context: CREATE TABLE table_46408 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" real,
"Year named" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the average year for the name aida-wedo dorsa with a diameter less than ... |
### Context: CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
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,... |
### Context: CREATE TABLE table_43363 (
"Competition" text,
"Appearances" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals for" real,
"Goals against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total sum of the goals at ... |
### Context: CREATE TABLE table_10236830_4 (
actors_name VARCHAR,
nomination VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which actor from Serbia was nominated for best actor in a supporting role?
### Query: SELECT actors_name FROM ta... |
### Context: CREATE TABLE table_name_42 (
written_by VARCHAR,
original_airdate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episode that originally aired on March 1, 1998?
### Query: SELECT written_by FROM table_name_42 WHERE original_airdat... |
### Context: CREATE TABLE table_name_15 (
number VARCHAR,
builder VARCHAR,
works_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a works number of 40864 for the builder of Baldwin Locomotive Works, the number listed is?
### Query: SELECT numb... |
### Context: CREATE TABLE table_1342379_5 (
candidates VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the incumbent when henry e. barbour ran?
### Query: SELECT candidates FROM table_1342379_5 WHERE incumbent = "Henry E. Barbour" |
### Context: CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions ... |
### Context: CREATE TABLE table_name_45 (
venue VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue was used 11 february 1996?
### Query: SELECT venue FROM table_name_45 WHERE date = "11 february 1996" |
### Context: CREATE TABLE table_12149 (
"Seat" real,
"Series 1" text,
"Series 3" text,
"Series 4" text,
"Series 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of seats with gavin duffy in series 4?
### Query: SELECT COUN... |
### 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_1140114_5 (
winning_driver VARCHAR,
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver won at the Sachsenring circuit?
### Query: SELECT winning_driver FROM table_1140114_5 WHERE circuit = "Sachsenring" |
### Context: CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
Tar... |
### Context: CREATE TABLE table_2401 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Sun Devils points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many opponents did the Sun Devils play w... |
### 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_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE cost... |
### 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 zzmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text... |
### Context: CREATE TABLE table_name_12 (
agg VARCHAR,
team_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the agg for seba united
### Query: SELECT agg FROM table_name_12 WHERE team_1 = "seba united" |
### Context: CREATE TABLE table_name_20 (
attendance VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance when the score was 88-98?
### Query: SELECT attendance FROM table_name_20 WHERE score = "88-98" |
### Context: CREATE TABLE table_77933 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the race on 16 september?
### Query: S... |
### Context: CREATE TABLE table_1473672_3 (
nationality VARCHAR,
nhl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which nationality is the player from the Philadelphia Flyers?
### Query: SELECT nationality FROM table_1473672_3 WHERE nhl_team = "Phila... |
### Context: CREATE TABLE table_1961 (
"Season" text,
"League" text,
"Division" text,
"GP" real,
"W" real,
"L" real,
"T" real,
"OTL" real,
"SOL" real,
"Pts" real,
"PCT" text,
"GF" real,
"GA" real,
"PIM" real,
"Coach(es)" text,
"Result" text
)
-- Using va... |
### Context: CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagNam... |
### Context: CREATE TABLE table_name_59 (
lead VARCHAR,
second VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the lead for the team with Nkeiruka Ezekh as second?
### Query: SELECT lead FROM table_name_59 WHERE second = "nkeiruka ezekh" |
### 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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
C... |
### 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,
reli... |
### Context: CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE month (
month_number int,
month_name text
)
... |
### Context: CREATE TABLE table_name_54 (
year VARCHAR,
stages VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was stage 8 reached?
### Query: SELECT year FROM table_name_54 WHERE stages = "8" |
### Context: CREATE TABLE diagnoses (
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 ... |
### Context: CREATE TABLE table_13399573_3 (
points_for VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What amount of points for were there when there was 52 points?
### Query: SELECT points_for FROM table_13399573_3 WHERE points = "52" |
### Context: CREATE TABLE table_28059992_5 (
position VARCHAR,
cfl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position did the draft pick going to saskatchewan play?
### Query: SELECT position FROM table_28059992_5 WHERE cfl_team = "Saskatchew... |
### Context: CREATE TABLE table_72254 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season features writer Michael Poryes?
### Qu... |
### Context: CREATE TABLE table_name_67 (
frequency_mhz INTEGER,
call_sign VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of frequency will call sign of k259aw
### Query: SELECT SUM(frequency_mhz) FROM table_name_67 WHERE call_sign = "k259aw" |
### Context: CREATE TABLE table_name_81 (
operator VARCHAR,
berths VARCHAR,
depth__m_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the operator with berths more than 1 and depth of 12.5-15.5
### Query: SELECT operator FROM table_name_81 WHERE ber... |
### Context: CREATE TABLE claim_headers (
claim_header_id number,
claim_status_code text,
claim_type_code text,
policy_id number,
date_of_claim time,
date_of_settlement time,
amount_claimed number,
amount_piad number
)
CREATE TABLE customers (
customer_id number,
customer_detail... |
### Context: CREATE TABLE table_train_135 (
"id" int,
"loss_of_consciousness" bool,
"systolic_blood_pressure_sbp" int,
"head_injury" bool,
"heart_disease" bool,
"stroke" bool,
"renal_disease" bool,
"hepatic_disease" bool,
"hydrocephalus" bool,
"peptic_ulcer_disease" bool,
"bl... |
### Context: CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id... |
### Context: 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_d... |
### Context: CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Student (
... |
### Context: CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name ... |
### Context: CREATE TABLE table_name_94 (
draws VARCHAR,
losses VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many draws did Mortlake have when the losses were more than 5?
### Query: SELECT COUNT(draws) FROM table_name_94 WHERE losse... |
### Context: CREATE TABLE table_28505 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many themes are there where the order # is 9?
### Query... |
### Context: CREATE TABLE table_204_328 (
id number,
"no." number,
"date" text,
"tournament" text,
"winning score" text,
"margin of\nvictory" text,
"runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the first tournament li... |
### 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,
reli... |
### 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 tex... |
### Context: CREATE TABLE table_name_47 (
incumbent VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Incumbent has a District of massachusetts 8?
### Query: SELECT incumbent FROM table_name_47 WHERE district = "massachusetts 8" |
### 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 ndecoreexcel_math_grade8 (
year number,
state text,
all_students text,
average_scale_score number
)
CREATE TABLE finrev_fed_17 (
state_code number,
idcensus number,
school_district text,
nces_id text,
yr_data number,
t_fed_rev number,
c14 number,
... |
### Context: CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE area (
course_id int,
area varchar
... |
### Context: CREATE TABLE table_14889048_2 (
draws VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How may draws did libertad have?
### Query: SELECT COUNT(draws) FROM table_14889048_2 WHERE team = "Libertad" |
### 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_ti... |
### Context: CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE weather (
d... |
### Context: CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
... |
### Context: CREATE TABLE table_47843 (
"Tournament" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text,
... |
### Context: CREATE TABLE table_63028 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest silver that has 57 as the total, with a bronze greater than... |
### Context: CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... |
### Context: CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum numb... |
### Context: CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE medication (
... |
### Context: CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId numb... |
### Context: CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type text
)
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Eve... |
### Context: CREATE TABLE table_24649 (
"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 th... |
### Context: CREATE TABLE table_name_88 (
wsu_year_s_ VARCHAR,
pro_year_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is WSU Year(s), when Pro Year(s) is 1974-77?
### Query: SELECT wsu_year_s_ FROM table_name_88 WHERE pro_year_s_ = "1974-77" |
### Context: CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTaskResults (
Id numbe... |
### Context: CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
)
CREATE TABLE Customers (
customer_id INTEGER,
customer_first_nam... |
### Context: CREATE TABLE table_204_373 (
id number,
"wager" text,
"winner" text,
"loser" text,
"location" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the first loser listed on this chart ?
### Query: SELECT "loser" FROM ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.