text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_name_29 (
away_team VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Away team at the game with a Score of 4 2?
### Query: SELECT away_team FROM table_name_29 WHERE score = "4 – 2" |
### Context: CREATE TABLE table_55674 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the fewest Laps for Huub Rothengatter and grid less than 24
### Query: SELECT ... |
### 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 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_40 (
robbery INTEGER,
crime_index_total VARCHAR,
aggravated_assault VARCHAR,
non_violent_crime VARCHAR,
rape VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which average Robbery has the following criteria: Non... |
### Context: CREATE TABLE table_name_3 (
ties VARCHAR,
lost VARCHAR,
win__percentage VARCHAR,
tenure VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the total number of ties for win % more than 0 and tenure of 2001-2011 with lost more than 16
... |
### Context: CREATE TABLE table_name_24 (
country VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Country, when Place is 'T3', and when Score is '67-70=137'?
### Query: SELECT country FROM table_name_24 WHERE place =... |
### Context: CREATE TABLE table_43710 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is FCC info when ERP W is larger than 92 and call sign has k264ba?
... |
### 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 Votes (
Id number,
PostId number,
VoteT... |
### Context: CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
... |
### Context: CREATE TABLE table_72407 (
"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.
-- What is the incumbent from 1941?
### Query: SELECT "Incumb... |
### Context: CREATE TABLE table_name_81 (
floor_exercise INTEGER,
pommel_horse VARCHAR,
horizontal_bar VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the floor exercise score with a pommel horse score of 9.65 and horizontal bar score more than 9... |
### Context: CREATE TABLE document_functional_areas (
document_code text,
functional_area_code text
)
CREATE TABLE images (
image_id number,
image_alt_text text,
image_name text,
image_url text
)
CREATE TABLE roles (
role_code text,
role_description text
)
CREATE TABLE documents (
... |
### Context: CREATE TABLE table_train_165 (
"id" int,
"gender" string,
"hemoglobin_a1c_hba1c" float,
"visual_impairment" bool,
"blood_glucose" int,
"body_mass_index_bmi" float,
"a1c" float,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the t... |
### Context: CREATE TABLE table_40900 (
"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 rank has 1 silver, more than 2 gold, and a total larger than 3?
### Query... |
### Context: CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal... |
### 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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees ... |
### Context: CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
... |
### Context: CREATE TABLE table_35905 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date was Judy Rankin Runner(s)-up?
### Query: SELECT "Date... |
### 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_63244 (
"Country/Territory" text,
"Established" real,
"Degree" text,
"Regional/Offshore" text,
"IMED/Avicenna Listed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average year that the medical school in ... |
### Context: CREATE TABLE table_68545 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponents have a record of 90-70?
### Query: SELECT "Opponent" FROM... |
### Context: CREATE TABLE table_name_99 (
owner VARCHAR,
post_position VARCHAR,
jockey VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who owns the horse with a post position of less than 4 with jockey todd pletcher?
### Query: SELECT owner FROM table_na... |
### Context: CREATE TABLE staff_department_assignments (
staff_id number,
department_id number,
date_assigned_from time,
job_title_code text,
date_assigned_to time
)
CREATE TABLE staff (
staff_id number,
staff_gender text,
staff_name text
)
CREATE TABLE department_stores (
dept_sto... |
### 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 Ref_Transaction_Types (
transaction_type_code VARCHAR(10),
transaction_type_description VARCHAR(80)
)
CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
date_of_transaction DATETIME,
amount_of_transaction DEC... |
### Context: CREATE TABLE table_name_4 (
competition_finish INTEGER,
average VARCHAR,
number_of_dances VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the greatest competition finish with average more than 32.9 and number of dances more than 16
### ... |
### 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_68862 (
"Episode No." real,
"Airdate" text,
"Total Viewers" real,
"Share" text,
"BBC One Weekly Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the average total viewers that has 17.6% Share?
### Query... |
### Context: CREATE TABLE trip (
id number,
duration number,
start_date text,
start_station_name text,
start_station_id number,
end_date text,
end_station_name text,
end_station_id number,
bike_id number,
subscription_type text,
zip_code number
)
CREATE TABLE status (
st... |
### Context: CREATE TABLE table_12996 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum week that 69,372 people attended the game?
### Query: SELECT MAX("Week... |
### Context: CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
... |
### Context: CREATE TABLE table_29068 (
"Date" text,
"Time" text,
"Visiting team" text,
"Home team" text,
"Site" text,
"Broadcast" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the results in ... |
### 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 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_56 (
det_pre_amp VARCHAR,
_number_tubes VARCHAR,
rectifier VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the det/pre-amp with # tubes of 4 and rectifier of x
### Query: SELECT det_pre_amp FROM table_name_56 WHE... |
### Context: CREATE TABLE table_79828 (
"Place" real,
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals Scored" real,
"Goals Conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the goal conceded t... |
### Context: CREATE TABLE table_45991 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Team 2 has a Team 1 of vardar?
### Query: SELECT "Team 2" FROM table_45991 WHERE "Team... |
### 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 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 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_70114 (
"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.
-- What is the city of license when the class is LP and the ide... |
### Context: CREATE TABLE table_name_79 (
set_3 VARCHAR,
set_4 VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Set 3, when Set 4 is 25-21, and when Date is Jun 14?
### Query: SELECT set_3 FROM table_name_79 WHERE set_4 = "25-21" AND... |
### Context: CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
)
CREATE ... |
### Context: CREATE TABLE table_33820 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game with a loss of White (4-5)?
### Query: SEL... |
### Context: CREATE TABLE table_75013 (
"Vol. #" real,
"Title" text,
"Material collected" text,
"Publication date" text,
"ISBN" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Lowest Volume Number that was published November 2004?
### Que... |
### Context: CREATE TABLE department_stores (
dept_store_id number,
dept_store_chain_id number,
store_name text,
store_address text,
store_phone text,
store_email text
)
CREATE TABLE products (
product_id number,
product_type_code text,
product_name text,
product_price number
)
... |
### Context: CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time t... |
### 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_8935 (
"Name" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a gain of 1,380, what is the highest Avg/G?
### Query: SELECT MAX("Avg/G") FROM table_8935 WHERE ... |
### Context: CREATE TABLE table_name_59 (
nickname VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the nickname of the team in the Geelong West Cricket & Football Club?
### Query: SELECT nickname FROM table_name_59 WHERE club = "geelon... |
### Context: CREATE TABLE table_name_2 (
release_date VARCHAR,
developer_s_ VARCHAR,
type VARCHAR,
genre VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Riot Games release their 3D MOBA game?
### Query: SELECT release_date FROM table_name_2 ... |
### 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 PostFeedback (
Id number,
... |
### Context: CREATE TABLE table_63210 (
"Game" real,
"Date" text,
"Opponent" 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 ... |
### Context: CREATE TABLE table_dev_48 (
"id" int,
"gender" string,
"systolic_blood_pressure_sbp" int,
"hiv_infection" bool,
"body_weight" float,
"diabetic" string,
"active_hepatitis" bool,
"diastolic_blood_pressure_dbp" int,
"liver_disease" bool,
"high_density_lipoprotein_choles... |
### Context: CREATE TABLE table_16494599_5 (
no INTEGER,
years_for_grizzlies VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the highest player number from the list from 2000-2001
### Query: SELECT MAX(no) FROM table_16494599_5 WHERE years_for_grizzli... |
### Context: CREATE TABLE Museums (
Museum_ID INTEGER,
Museum_Details VARCHAR(255)
)
CREATE TABLE Royal_Family (
Royal_Family_ID INTEGER,
Royal_Family_Details VARCHAR(255)
)
CREATE TABLE Features (
Feature_ID INTEGER,
Feature_Details VARCHAR(255)
)
CREATE TABLE Visits (
Visit_ID INTEGER,
... |
### 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 region (
region_id number,
region_code text,
region_name text
)
CREATE TABLE storm (
storm_id number,
name text,
dates_active text,
max_speed number,
damage_millions_usd number,
number_deaths number
)
CREATE TABLE affected_region (
region_id number,
... |
### Context: CREATE TABLE table_25732 (
"Rank" real,
"Team" text,
"Total Points" real,
"2008-09 Points" real,
"2007-08 Points" real,
"2006-07 Points" real,
"2005-06 Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the total points i... |
### Context: CREATE TABLE table_name_36 (
hr_no VARCHAR,
lms_no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the HR number when the LMS number is 14758?
### Query: SELECT hr_no FROM table_name_36 WHERE lms_no = 14758 |
### Context: CREATE TABLE table_2012 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the frequency 102.3mhz and 5kw power?
### Query: SELECT "Location" FROM... |
### Context: CREATE TABLE table_name_4 (
top_speed VARCHAR,
model VARCHAR,
power VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the top speed of the SLK200K that produces 122kw (163hp)?
### Query: SELECT top_speed FROM table_name_4 WHERE model =... |
### Context: CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalpe... |
### 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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME va... |
### Context: CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR... |
### Context: CREATE TABLE table_name_27 (
team VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the team with a Games listing of 7?
### Query: SELECT team FROM table_name_27 WHERE games = "7" |
### 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_name_19 (
against INTEGER,
wins VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Against, when Wins is greater than 8, and when Losses is greater than 6?
### Query: SELECT SUM(against) FRO... |
### Context: CREATE TABLE table_name_61 (
constructor VARCHAR,
laps VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the constructor that has 35 Laps with a grid more than 5
### Query: SELECT constructor FROM table_name_61 WHERE laps... |
### 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_77304 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result in a week lower than 10 with an opponent of Chicago Bears?
### Query: ... |
### Context: CREATE TABLE table_17939 (
"Year" text,
"Championship" text,
"54 holes" text,
"Winning score" text,
"Margin" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the winning score of the PGA Championship (3)?... |
### Context: CREATE TABLE table_2078 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables p... |
### Context: CREATE TABLE table_name_59 (
console VARCHAR,
arcade VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Console when Space Invaders is the Arcade?
### Query: SELECT console FROM table_name_59 WHERE arcade = "space invaders" |
### Context: 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_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE... |
### Context: CREATE TABLE table_20898602_1 (
position VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- howe many positions did wallace, mike mike wallace play for
### Query: SELECT COUNT(position) FROM table_20898602_1 WHERE player = "Wallace,... |
### Context: CREATE TABLE table_name_77 (
skip VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Skip has a Season of 2002 03?
### Query: SELECT skip FROM table_name_77 WHERE season = "2002–03" |
### Context: CREATE TABLE table_23621 (
"\u0410 \u0430 [a]" text,
"\u0411 \u0431 [b]" text,
"\u0412 \u0432 [v]" text,
"\u0413 \u0433 [\u0261]" text,
"\u0413\u044c \u0433\u044c [\u0261\u02b2]" text,
"\u0413\u04d9 \u0433\u04d9 [\u0261\u02b7]" text,
"\u0494 \u0495 [\u0281/\u0263]" text,
"\u... |
### Context: CREATE TABLE table_17766232_7 (
radio_commentator VARCHAR,
final_television_commentator VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the radio commentator when the final television commentator was John Dunn?
### Query: SELECT radio_co... |
### 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 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_49492 (
"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.
-- What is Year (Ceremony), when Director is 'Wang Siu... |
### Context: CREATE TABLE table_train_226 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"active_metabolic" bool,
"diabetic" string,
"hepatic_disease" bool,
"gastrointestinal_disease" bool,
"body_mass_index_bmi" float,
"age" float,
"NOUSE" float
)
-- Using valid SQ... |
### Context: CREATE TABLE table_53598 (
"Athlete" text,
"Sport" text,
"Asian Games" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of bronze medals for nation... |
### Context: CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE... |
### Context: CREATE TABLE Lots (
lot_id INTEGER,
investor_id INTEGER,
lot_details VARCHAR(255)
)
CREATE TABLE Sales (
sales_transaction_id INTEGER,
sales_details VARCHAR(255)
)
CREATE TABLE Transactions (
transaction_id INTEGER,
investor_id INTEGER,
transaction_type_code VARCHAR(10),
... |
### Context: CREATE TABLE table_204_145 (
id number,
"representative" text,
"state" text,
"district(s)" text,
"served" text,
"party" text,
"date of birth" text,
"date of death" text,
"age" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... |
### Context: CREATE TABLE Premises (
premise_id INTEGER,
premises_type VARCHAR(15),
premise_details VARCHAR(255)
)
CREATE TABLE Customer_Addresses (
customer_id INTEGER,
premise_id INTEGER,
date_address_from DATETIME,
address_type_code VARCHAR(15),
date_address_to DATETIME
)
CREATE TAB... |
### Context: CREATE TABLE transactions_lots (
lot_id VARCHAR
)
CREATE TABLE Lots (
lot_details VARCHAR,
lot_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the details of the lots which are not used in any transactions?
### Query: SELECT lot... |
### Context: CREATE TABLE table_33663 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... |
### Context: CREATE TABLE Customers (
customer_id INTEGER,
customer_first_name VARCHAR(20),
customer_last_name VARCHAR(20),
customer_address VARCHAR(255),
customer_phone VARCHAR(255),
customer_email VARCHAR(255),
other_customer_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
... |
### Context: CREATE TABLE table_name_61 (
candidate_name VARCHAR,
list VARCHAR,
gender VARCHAR,
votes VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which candidate has more than 279 votes, rank less than 50, is and al-ahd?
### Que... |
### Context: CREATE TABLE table_13348 (
"Parameter" text,
"Symbol" text,
"Best fit (WMAP only)" text,
"Best fit (WMAP, extra parameter)" text,
"Best fit (all data)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the best fit (all data) when ... |
### Context: CREATE TABLE table_name_57 (
school VARCHAR,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school comes from Brookville?
### Query: SELECT school FROM table_name_57 WHERE city = "brookville" |
### 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_5 (
position VARCHAR,
season VARCHAR,
nationality VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position did the 2010-11 USA r player have?
### Query: SELECT position FROM table_name_5 WHERE n... |
### Context: CREATE TABLE table_70713 (
"Dance" text,
"Best dancer(s)" text,
"Best score" real,
"Worst dancer(s)" text,
"Worst score" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the worst dance of jive dancer(s)?
### Query: SELECT "Worst ... |
### Context: CREATE TABLE table_77190 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"Mult." text,
"Voltage" text,
"Socket" text,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What model number uses standard voltag... |
### Context: CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Description CHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.