text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_75302 (
"Throne Name" text,
"Title" text,
"Born-Died" text,
"Entered office" text,
"Left office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the born-died that has office of 13 September 1229 as the entered... |
### 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 table_27298240_26 (
pluperfect VARCHAR,
perfect VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pluperfect for the perfect si bio/la; bio/la si?
### Query: SELECT pluperfect FROM table_27298240_26 WHERE perfect = "si bio... |
### Context: CREATE TABLE table_56472 (
"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 is the total crowd count for t... |
### Context: CREATE TABLE table_79057 (
"Player" text,
"Round" real,
"Pick" real,
"Position" text,
"NFL Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest pick that has arizona cardinals as the NFL club?
### Query: SELECT MIN("... |
### Context: CREATE TABLE mzb (
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 Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Faculty_Participates_in (... |
### Context: CREATE TABLE table_61090 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the player than won $450?
### Query: SELECT "S... |
### Context: CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
JCZBJGDX text,
JCZBJGDL number,
JCZBJGDW text,
SBBM text,
... |
### 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 jyjgzbb (
BGDH text,... |
### 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_18264 (
"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.
-- Name number first elected for tennessee 2?
### Query: SELE... |
### Context: CREATE TABLE table_76406 (
"Year" text,
"2009" text,
"2008" text,
"2007" text,
"2006" text,
"2005" text,
"2004" text,
"2003" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2008 for the 2009 ch our charming lady?
... |
### Context: 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 tex... |
### Context: CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime... |
### Context: CREATE TABLE table_40309 (
"Date" text,
"Result" text,
"Opponent" text,
"Location" text,
"Method" text,
"Round" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Location has a Method of decision?
### Query: S... |
### 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_name_67 (
opponent VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent during week 8?
### Query: SELECT opponent FROM table_name_67 WHERE week = 8 |
### Context: CREATE TABLE table_name_90 (
year VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Year, when Bronze is 'Jamie Stevenson'?
### Query: SELECT COUNT(year) FROM table_name_90 WHERE bronze = "jamie stevenso... |
### Context: CREATE TABLE table_name_40 (
away_team VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the away team score at kardinia park?
### Query: SELECT away_team AS score FROM table_name_40 WHERE venue = "kardinia park" |
### Context: CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
... |
### Context: CREATE TABLE table_25527255_2 (
shirt_sponsor VARCHAR,
average_squad_age VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the shirt sponsor of the team with an average squad age of 25.46?
### Query: SELECT shirt_sponsor FROM table_25527255... |
### 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_46767 (
"Tournament" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the table... |
### Context: CREATE TABLE table_name_47 (
state VARCHAR,
appointment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What state has an appointment for jul 12, 2001?
### Query: SELECT state FROM table_name_47 WHERE appointment = "jul 12, 2001" |
### Context: CREATE TABLE table_name_10 (
region VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the region for frank erwin center
### Query: SELECT region FROM table_name_10 WHERE venue = "frank erwin center" |
### Context: CREATE TABLE table_name_19 (
nfl_team VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich team draft the player who went to college in Washington?
### Query: SELECT nfl_team FROM table_name_19 WHERE college = "washington" |
### Context: CREATE TABLE Orders (
order_id INTEGER,
customer_id INTEGER,
date_order_placed DATETIME,
order_details VARCHAR(255)
)
CREATE TABLE Customers (
customer_id INTEGER,
customer_first_name VARCHAR(50),
customer_middle_initial VARCHAR(1),
customer_last_name VARCHAR(50),
gende... |
### Context: CREATE TABLE table_73949 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total number when the vote percentag... |
### Context: CREATE TABLE table_13241993_3 (
part_1 VARCHAR,
part_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the air date of part 1 of the episode whose part 2 aired on December 2, 2007?
### Query: SELECT part_1 FROM table_13241993_3 WHERE part... |
### Context: CREATE TABLE table_name_85 (
date VARCHAR,
home VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was Colorado the home team?
### Query: SELECT date FROM table_name_85 WHERE home = "colorado" |
### Context: CREATE TABLE table_16963 (
"Series no." 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.
-- When did the series number 23 air?
### Qu... |
### Context: CREATE TABLE Third_Party_Companies (
company_id INTEGER,
company_type VARCHAR(5),
company_name VARCHAR(255),
company_address VARCHAR(255),
other_company_details VARCHAR(255)
)
CREATE TABLE Maintenance_Engineers (
engineer_id INTEGER,
company_id INTEGER,
first_name VARCHAR(5... |
### Context: CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intake... |
### Context: CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
... |
### Context: CREATE TABLE table_name_73 (
first_elected VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the first person elected from Democratic GAIN?
### Query: SELECT first_elected FROM table_name_73 WHERE result = "democratic gain" |
### Context: CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutp... |
### 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 intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime ... |
### Context: CREATE TABLE table_16903 (
"number" real,
"date of debut" text,
"name" text,
"date of birth" text,
"number of caps" real,
"number of goals" real,
"date of death\u2020" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the t... |
### 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 table_name_31 (
engine VARCHAR,
chassis VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What engine was used when Aguri Suzuki drove the FA13B FA14 Chassis?
### Query: SELECT engine FROM table_name_31 WHERE chass... |
### 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 lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treat... |
### Context: 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 ... |
### Context: CREATE TABLE table_train_137 (
"id" int,
"hbv" bool,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"substance_dependence" bool,
"hcv" bool,
"schizophrenia" bool,
"neutrophil_count" int,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"pl... |
### Context: CREATE TABLE table_32396 (
"Player" text,
"Team" text,
"Date" text,
"Opposition" text,
"Game" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team opposed Tipperary in the Munster Final game?
### Query: SELECT "Team" FROM table_323... |
### Context: CREATE TABLE table_46405 (
"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 is the diameter for 1997 when longitude is 212.0e and latitude is 47.0n?
... |
### Context: CREATE TABLE member (
member_id number,
name text,
country text,
college_id number
)
CREATE TABLE round (
round_id number,
member_id number,
decoration_theme text,
rank_in_round number
)
CREATE TABLE college (
college_id number,
name text,
leader_name text,
... |
### Context: CREATE TABLE table_29126 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Incoming manager" text,
"Date of appointment" text,
"Position in table" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
JCZB... |
### Context: CREATE TABLE table_name_31 (
college_junior_club_team__league_ VARCHAR,
position VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the College/Junior/Club Team (League) when the position is rw, and the player is Don Murd... |
### 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 table_59813 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"Term of office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Term of office for Leonard Reynolds of NSW?
### Query: SELECT "Term of... |
### Context: CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE city (
city_code varchar,
city_n... |
### Context: CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
f... |
### Context: CREATE TABLE ref_transaction_types (
transaction_type_code text,
transaction_type_description text
)
CREATE TABLE investors (
investor_id number,
investor_details text
)
CREATE TABLE purchases (
purchase_transaction_id number,
purchase_details text
)
CREATE TABLE lots (
lot_i... |
### Context: CREATE TABLE table_68054 (
"Tournament" text,
"1999" text,
"2002" text,
"2004" text,
"2006" text,
"2007" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2006 value with a... |
### Context: CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE... |
### 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_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)... |
### Context: CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTaskResults (
... |
### Context: CREATE TABLE table_22074 (
"Position" real,
"Club" text,
"Games played" real,
"Wins" real,
"Draws" real,
"Loses" real,
"Goals scored" real,
"Goals conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... |
### 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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2... |
### Context: CREATE TABLE table_name_7 (
date VARCHAR,
opponents VARCHAR,
h___a VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the opponent Nottingham Forest, and the H/A was A?
### Query: SELECT date FROM table_name_7 WHERE opponents = "n... |
### Context: CREATE TABLE table_name_80 (
result VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result on 10/06/1934?
### Query: SELECT result FROM table_name_80 WHERE date = "10/06/1934" |
### Context: CREATE TABLE ref_calendar (
calendar_date time,
day_number number
)
CREATE TABLE all_documents (
document_id number,
date_stored time,
document_type_code text,
document_name text,
document_description text,
other_details text
)
CREATE TABLE roles (
role_code text,
... |
### Context: CREATE TABLE table_61566 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"2012 club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Weight which has a 2012 club of pro recco, and a Name of tam s k s s category:article... |
### Context: CREATE TABLE table_1167698_1 (
third_place VARCHAR,
runner_up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won third place with the runner up being dynamo moscow?
### Query: SELECT third_place FROM table_1167698_1 WHERE runner_up = "Dynam... |
### Context: CREATE TABLE table_name_4 (
silver VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Silver has a Rank of 7?
### Query: SELECT COUNT(silver) FROM table_name_4 WHERE rank = 7 |
### Context: CREATE TABLE table_29830 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... |
### 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_23338 (
"Contestant" text,
"Background" text,
"Original team" text,
"Age" real,
"Hometown" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result for the contestant who was a small busin... |
### Context: CREATE TABLE table_name_64 (
venue VARCHAR,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue features hawthorn as the away team?
### Query: SELECT venue FROM table_name_64 WHERE away_team = "hawthorn" |
### Context: CREATE TABLE table_name_49 (
opponents VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the opposing team when playing in the Portugal venue?
### Query: SELECT opponents FROM table_name_49 WHERE venue = "portugal" |
### Context: CREATE TABLE table_1242447_1 (
english_spelling VARCHAR,
strongs_transliteration VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the english spelling of the word that has the strongs trasliteration of y e howram?
### Query: SELECT englis... |
### Context: CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CR... |
### Context: CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Pe... |
### Context: CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
... |
### Context: CREATE TABLE table_23190 (
"Player" text,
"Games Played" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many steals did Nicole Levandusky make?
#... |
### Context: CREATE TABLE table_203_418 (
id number,
"#" number,
"player" text,
"position" text,
"height" number,
"current club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference in height between garreth lodge and thomas pea... |
### Context: CREATE TABLE table_204_14 (
id number,
"rank" number,
"bib" number,
"athlete" text,
"country" text,
"time" text,
"deficit" text,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who ran the quickest race from italy ?
#... |
### 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 table_66511 (
"Draw" real,
"Language" text,
"Artist" text,
"Song" text,
"English translation" text,
"Place" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Artist has a Draw of 6?
### Query: SEL... |
### Context: CREATE TABLE table_name_45 (
year VARCHAR,
weight VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Year of the Player weighing 185?
### Query: SELECT year FROM table_name_45 WHERE weight = 185 |
### Context: CREATE TABLE table_63385 (
"TIME" text,
"ATHLETE" text,
"SCHOOL" text,
"CITY" text,
"DATE" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date of the Player from Marshfield High School?
### Query: SELECT "DATE" FROM table_6... |
### Context: CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following ques... |
### Context: CREATE TABLE table_name_54 (
runner_up VARCHAR,
season INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Runner-up that has a Season less than 2005?
### Query: SELECT runner_up FROM table_name_54 WHERE season < 2005 |
### Context: CREATE TABLE table_2446333_2 (
circuit VARCHAR,
main_winner VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the circuit for france and portugal
### Query: SELECT circuit FROM table_2446333_2 WHERE main_winner = "France"... |
### Context: CREATE TABLE table_1981 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the film titled for marcel camus category:artic... |
### 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 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 video_games (
gameid number,
gname text,
gtype text
)
CREATE TABLE sportsinfo (
stuid number,
sportname text,
hoursperweek number,
gamesplayed number,
onscholarship text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,... |
### Context: CREATE TABLE table_name_58 (
railway VARCHAR,
location VARCHAR,
objectnumber VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Railway has a Location of shildon, and an ObjectNumber of 1975-7022?
### Query: SELECT railway FROM table_name... |
### Context: CREATE TABLE table_60660 (
"Season" text,
"League" text,
"Finish" text,
"Wins" text,
"Losses" text,
"Pct." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the league with 0 losses?
### Query: SELECT "League" FROM table_60660... |
### 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 table_name_34 (
total VARCHAR,
bronze VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times is bronze 2 and gold more than 3?
### Query: SELECT COUNT(total) FROM table_name_34 WHERE bronze = 2 AND gold > 3 |
### Context: CREATE TABLE person_info_hz_info (
RYBH text,
KH number,
KLX number,
YLJGDM number
)
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 ... |
### Context: CREATE TABLE table_204_124 (
id number,
"no." number,
"name" text,
"public access" number,
"location & map links" text,
"area\nha" number,
"area\nacres" number,
"references" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- wha... |
### Context: CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_I... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.