text stringlengths 197 8.39k |
|---|
### 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 outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... |
### Context: CREATE TABLE table_name_66 (
attendance VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For week 15, what was the total number of attendance recorded?
### Query: SELECT COUNT(attendance) FROM table_name_66 WHERE week = 15 |
### 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 SuggestedEdits (
Id number,
PostId number,
... |
### Context: CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
... |
### Context: CREATE TABLE table_1341598_44 (
first_elected INTEGER,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year were the election results tom loeffler (r) 80.6% joe sullivan (d) 19.4%?
### Query: SELECT MIN(first_elected) FROM table_... |
### Context: CREATE TABLE table_50832 (
"Year" text,
"Team" text,
"Attempts" text,
"Completions" text,
"Completion %" text,
"Yards" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team did James Vanderberg belong to when the Completions had ... |
### Context: CREATE TABLE table_27703902_9 (
high_points VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the high points in game is 81?
### Query: SELECT high_points FROM table_27703902_9 WHERE game = 81 |
### 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_15676 (
"Artist" text,
"Country of origin" text,
"Period active" text,
"Release-year of first charted record" real,
"Genre" text,
"Claimed sales" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number o... |
### 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_81 (
game INTEGER,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which game is on mar 12?
### Query: SELECT AVG(game) FROM table_name_81 WHERE date = "mar 12" |
### Context: CREATE TABLE table_15401 (
"Frame size" text,
"Width" real,
"Height" real,
"Mpix" real,
"Aspect Ratio" text,
"max. fps" real,
"lowest possible REDCODE at 24 fps" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What frame size cor... |
### Context: CREATE TABLE table_2668243_25 (
party VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party did john s. barbour represent?
### Query: SELECT party FROM table_2668243_25 WHERE incumbent = "John S. Barbour" |
### Context: CREATE TABLE table_name_37 (
starts INTEGER,
winnings VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the sum of Starts that the Winnings of $139,774, and the Wins smaller than 0?
### Query: SELECT SUM(starts) F... |
### 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 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 table_49379 (
"Result" text,
"Race" text,
"Distance" text,
"Weight" real,
"Winner or 2nd" text,
"Pos'n" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the sajc king's cup race, which has a weight h... |
### Context: CREATE TABLE table_10539 (
"Episode #" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the original air date when ed horowitz wrote it?
### Query: SE... |
### Context: CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
econo... |
### Context: CREATE TABLE route (
train_id int,
station_id int
)
CREATE TABLE weekly_weather (
station_id int,
day_of_week text,
high_temperature int,
low_temperature int,
precipitation real,
wind_speed_mph int
)
CREATE TABLE train (
id int,
train_number int,
name text,
... |
### Context: CREATE TABLE table_name_85 (
route VARCHAR,
elevation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Elevation of 11,158 feet 3401 m had what route?
### Query: SELECT route FROM table_name_85 WHERE elevation = "11,158 feet 3401 m" |
### Context: CREATE TABLE table_16091 (
"School Year" text,
"Class A" text,
"Class AA" text,
"Class AAA" text,
"Class AAAA" text,
"Class AAAAA" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was Class AAA during the school year of 2000-01?
... |
### Context: CREATE TABLE claims (
claim_id number,
fnol_id number,
effective_date time
)
CREATE TABLE first_notification_of_loss (
fnol_id number,
customer_id number,
policy_id number,
service_id number
)
CREATE TABLE services (
service_id number,
service_name text
)
CREATE TABLE... |
### Context: CREATE TABLE table_23242933_2 (
no_in_series INTEGER,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the series number of the episode written by Dan Vebber?
### Query: SELECT MAX(no_in_series) FROM table_23242933_2 WHERE writt... |
### Context: CREATE TABLE table_train_12 (
"id" int,
"sequential_organ_failure_assessment_sofa" int,
"active_infection" bool,
"taking_pioglitazone" bool,
"taking_rosiglitazone" bool,
"body_weight" float,
"diabetic" string,
"organ_failure" bool,
"age" float,
"NOUSE" float
)
-- U... |
### Context: CREATE TABLE table_name_45 (
away VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team was the away team for the game with 916 in attendance?
### Query: SELECT away FROM table_name_45 WHERE attendance = 916 |
### Context: CREATE TABLE table_name_36 (
record VARCHAR,
game_site VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What record has candlestick park as the game site, and october 12, 2008 as the date?
### Query: SELECT record FROM table_nam... |
### Context: CREATE TABLE table_name_9 (
transfer_fee VARCHAR,
country VARCHAR,
transfer_window VARCHAR,
type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the transfer fee when summer is the transfer window, the type is transfer and the cou... |
### Context: CREATE TABLE table_204_374 (
id number,
"event" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number,
"ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- only year in which switzerland earned 9 silver medal... |
### Context: CREATE TABLE table_13673 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date when the tournament is san diego and the opponent is... |
### 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 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_9952 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ($)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Place of the Player with a Score of 70-75-70-74=289?
### Que... |
### Context: 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... |
### Context: CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
un... |
### Context: CREATE TABLE table_name_37 (
opponent VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team were the Opponent in Game 29?
### Query: SELECT opponent FROM table_name_37 WHERE game = 29 |
### Context: CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
ha... |
### Context: CREATE TABLE table_50337 (
"Team" text,
"Winners" real,
"Runners-Up" real,
"Years Won" text,
"Years Runner-Up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When there are more than 1 winners and the team playing is pachuca, what's the... |
### Context: CREATE TABLE station (
station_id number,
name text,
annual_entry_exit number,
annual_interchanges number,
total_passengers number,
location text,
main_services text,
number_of_platforms number
)
CREATE TABLE train_station (
train_id number,
station_id number
)
CRE... |
### Context: CREATE TABLE table_13862 (
"Competition" text,
"Total" real,
"Al Ahly wins" real,
"Draws" real,
"El Zamalek wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which competition had 2 draws?
### Query: SELECT "Competition" FROM table_... |
### Context: CREATE TABLE table_24363 (
"Type of Record" text,
"Attendance" real,
"Date/Year" text,
"Stadium" text,
"Result/Games" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which stadium had the result/game montreal 20 @ ottawa 10?
### Query: ... |
### 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_name_6 (
overall VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of overall for defensive tackle
### Query: SELECT COUNT(overall) FROM table_name_6 WHERE position = "defensive tackle" |
### Context: CREATE TABLE table_name_13 (
year INTEGER,
entrant VARCHAR,
pts VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest year that shadow racing team scored more than 0 points?
### Query: SELECT MAX(year) FROM table_name_13 WHERE e... |
### 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_name_42 (
drawn INTEGER,
first_game VARCHAR,
played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of drawn matches from first game years before 2006 and fewer than 2 matches played?
### Query: SE... |
### Context: CREATE TABLE table_68350 (
"Name" text,
"Park" text,
"Country" text,
"Inversions" real,
"Opened" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of inversions for opened of april 20, 2002
### Query: SELEC... |
### Context: CREATE TABLE table_1013129_2 (
college_junior_club_team VARCHAR,
nhl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different college/junior/club teams provided a player to the Washington Capitals NHL Team?
### Query: SELECT COUNT... |
### 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 table_name_87 (
total INTEGER,
gold VARCHAR,
bronze VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest total for a team with 1 bronze, 0 gold medals and ranking of 7?
### Query: SELECT MAX(tota... |
### Context: CREATE TABLE table_41024 (
"City of license" text,
"Identifier" text,
"Frequency" text,
"Power" text,
"Class" text,
"RECNet" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Power has a CBLI Identifier?
### Query: SELECT "Power... |
### Context: CREATE TABLE table_train_206 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"systolic_blood_pressure_sbp" int,
"hematocrit_hct" float,
"diabetic" string,
"contraception" bool,
"diastolic_blood_pressure_dbp" int,
"serum_creatinine" float,
"NOUSE" float
)
... |
### Context: CREATE TABLE table_name_86 (
average INTEGER,
swimsuit INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average of the contestant with a swimsuit less than 9.32?
### Query: SELECT SUM(average) FROM table_name_86 WHERE swimsuit < 9.32 |
### Context: CREATE TABLE table_74548 (
"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.
-- The total goals have a... |
### Context: CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text... |
### Context: CREATE TABLE table_25042332_30 (
enrolled_women VARCHAR,
e_vap_ratio_women VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of registered female voters where the percentage is 108.6%
### Query: SELECT enrolled_women FROM table_... |
### Context: CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
... |
### Context: CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
C... |
### Context: CREATE TABLE table_40846 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of goals for players ranked above 9 and playing more than 205 matches?
... |
### Context: CREATE TABLE table_name_40 (
producer_director VARCHAR,
film VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Producer/Director of Fear Beneath?
### Query: SELECT producer_director FROM table_name_40 WHERE film = "fear beneath" |
### Context: CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time... |
### Context: CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
cul... |
### Context: CREATE TABLE table_name_96 (
total INTEGER,
finish VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average of Fiji with t10 Finish?
### Query: SELECT AVG(total) FROM table_name_96 WHERE finish = "t10" AND country... |
### 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE... |
### 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_24736 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Slovak title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- HOw many films did martin repka category:articles wit... |
### Context: CREATE TABLE table_name_90 (
title VARCHAR,
presentation_of_credentials VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Title has a Presentation of Credentials of October 4, 1988?
### Query: SELECT title FROM table_name_90 WHERE presentatio... |
### 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_name_4 (
sport VARCHAR,
medal_count VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which sport has 17 as the medal count?
### Query: SELECT sport FROM table_name_4 WHERE medal_count = 17 |
### Context: CREATE TABLE table_name_24 (
top_25 INTEGER,
events INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many top-25s are associated with more than 91 events?
### Query: SELECT SUM(top_25) FROM table_name_24 WHERE events > 91 |
### Context: CREATE TABLE table_name_79 (
score VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the score of Game 5?
### Query: SELECT score FROM table_name_79 WHERE game = "5" |
### Context: CREATE TABLE table_41674 (
"Poll Source" text,
"Date(s) administered" text,
"Sample size" real,
"Margin of Error" text,
"Mel Martinez (R)" text,
"Betty Castor (D)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest s... |
### Context: CREATE TABLE district (
District_ID int,
District_name text,
Headquartered_City text,
City_Population real,
City_Area real
)
CREATE TABLE store_product (
Store_ID int,
Product_ID int
)
CREATE TABLE store (
Store_ID int,
Store_Name text,
Type text,
Area_size rea... |
### Context: CREATE TABLE table_38089 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Record has a Time (ET) of 1:00pm, and an Opp... |
### Context: CREATE TABLE table_79617 (
"Player" text,
"Played" real,
"Legs Won" real,
"Legs Lost" real,
"100+" real,
"140+" real,
"180s" real,
"High Checkout" real,
"3-dart Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wha... |
### Context: CREATE TABLE table_name_15 (
to_par VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What To par has a Score of 68-66=134?
### Query: SELECT to_par FROM table_name_15 WHERE score = 68 - 66 = 134 |
### Context: CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_I... |
### Context: CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE ground_service (
city_code text,
airport_code... |
### 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_name_12 (
year INTEGER,
team VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is the earliest year associated with team norton and 0 wins?
### Query: SELECT MIN(year) FROM table_name_12 WHERE team = "nort... |
### Context: CREATE TABLE table_36593 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On December 5 what team played their home game?
### Query: SELECT "Home" ... |
### Context: CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE ... |
### Context: CREATE TABLE table_16423 (
"Location" text,
"Monday" text,
"Tuesday" text,
"Wednesday" text,
"Thursday" text,
"Friday" text,
"Saturday" text,
"Sunday" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the wednesday time ... |
### Context: CREATE TABLE table_7416 (
"Tournament" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text
)
-- Using valid SQLite, answer the following questio... |
### Context: CREATE TABLE table_204_731 (
id number,
"rank" number,
"athlete" text,
"shooting\nscore (pts)" text,
"fencing\nvictories (pts)" text,
"swimming\ntime (pts)" text,
"riding\npenalties (pts)" text,
"running\ntime (pts)" text,
"total" number
)
-- Using valid SQLite, answer... |
### Context: CREATE TABLE Movie (
title VARCHAR,
mID VARCHAR
)
CREATE TABLE Rating (
mID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the movie that is rated by most of times?
### Query: SELECT T2.title, T1.mID FROM Rating AS T1 J... |
### Context: CREATE TABLE table_name_91 (
score VARCHAR,
outcome VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the marco island tournament match when Kathleen Horvath won runner-up?
### Query: SELECT score FROM... |
### Context: CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
... |
### Context: CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
... |
### Context: CREATE TABLE table_17594659_1 (
competition VARCHAR,
opposition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the competition of panathinaikos
### Query: SELECT competition FROM table_17594659_1 WHERE opposition = "Panathinaikos" |
### Context: CREATE TABLE fzzmzjzjlb (
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 tex... |
### 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 table_1341843_44 (
candidates VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the candidate when the incumbent was Richard C. White?
### Query: SELECT candidates FROM table_1341843_44 WHERE incumbent = "Ri... |
### Context: CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmitti... |
### Context: CREATE TABLE table_17340355_6 (
game VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which game was played by team milwaukee
### Query: SELECT game FROM table_17340355_6 WHERE team = "Milwaukee" |
### Context: CREATE TABLE table_40906 (
"Block" text,
"Launched" real,
"Operational" real,
"Not usable" real,
"Retired" real,
"Launch Failures" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of not usable satellites wh... |
### Context: CREATE TABLE classroom (
building text,
room_number text,
capacity number
)
CREATE TABLE student (
id text,
name text,
dept_name text,
tot_cred number
)
CREATE TABLE takes (
id text,
course_id text,
sec_id text,
semester text,
year number,
grade text
)
... |
### Context: CREATE TABLE table_name_38 (
shots INTEGER,
points INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Shots with a Point that is larger than 32?
### Query: SELECT MIN(shots) FROM table_name_38 WHERE points > 32 |
### Context: CREATE TABLE table_name_96 (
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the place of the person with a score of 67-70=137?
### Query: SELECT place FROM table_name_96 WHERE score = 67 - 70 = 137 |
### 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.