text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE reviewer (
rid number,
name text
)
-- Using valid SQLite, answer the following questions for the t... |
### Context: CREATE TABLE table_name_60 (
drawn VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you name the drawn with a Lost of 1?
### Query: SELECT drawn FROM table_name_60 WHERE lost = "1" |
### Context: CREATE TABLE area (
course_id int,
area 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 varchar,
test_id varchar
)
CREATE TABLE gsi (
... |
### 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_DIRE_CD text,
MED_... |
### Context: CREATE TABLE Affiliated_With (
Physician INTEGER,
Department INTEGER,
PrimaryAffiliation BOOLEAN
)
CREATE TABLE Block (
BlockFloor INTEGER,
BlockCode INTEGER
)
CREATE TABLE Appointment (
AppointmentID INTEGER,
Patient INTEGER,
PrepNurse INTEGER,
Physician INTEGER,
... |
### Context: CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
... |
### Context: CREATE TABLE table_name_12 (
attendance VARCHAR,
loss VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the game had a loss of Koch (0-1) what was the attendance?
### Query: SELECT attendance FROM table_name_12 WHERE loss = "koch (0-1)" |
### Context: CREATE TABLE table_73653 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How ma... |
### Context: CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar... |
### Context: CREATE TABLE people (
people_id number,
name text,
age number,
height number,
hometown text
)
CREATE TABLE gymnast (
gymnast_id number,
floor_exercise_points number,
pommel_horse_points number,
rings_points number,
vault_points number,
parallel_bars_points numbe... |
### Context: CREATE TABLE table_204_4 (
id number,
"date" text,
"race" text,
"competition" text,
"rider" text,
"country" text,
"location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the number of times tour of qatar is listed as ... |
### 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_name_80 (
teams VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team had a season 1954-55?
### Query: SELECT teams FROM table_name_80 WHERE season = "1954-55" |
### 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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varc... |
### Context: CREATE TABLE table_name_62 (
population_112008 INTEGER,
population_per_square_km VARCHAR,
population_112006 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least population 1.1.2008 with population per square km of 1.957 and populati... |
### Context: CREATE TABLE table_name_96 (
operator_s_ VARCHAR,
reserves VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which operator has a Reserve of 100 bbbl?
### Query: SELECT operator_s_ FROM table_name_96 WHERE reserves = "100 bbbl" |
### Context: CREATE TABLE table_39617 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total round for a wide receiver with an overall of more than ... |
### Context: CREATE TABLE table_32055 (
"Title" text,
"Year" real,
"ISBN" text,
"Volume" text,
"Strips" text,
"Pages" real,
"Colors" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the title for pages of 96
### Query: SELECT "Title" ... |
### Context: CREATE TABLE table_61693 (
"Date From" text,
"Date To" text,
"Position" text,
"Name" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date for the MF position and player Jennison Myrie-Williams?
### Query: SELECT... |
### Context: CREATE TABLE table_203_724 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- poland and south africa combined for how many total ... |
### Context: CREATE TABLE table_name_74 (
finish VARCHAR,
qual VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What finish qualified at 141.071?
### Query: SELECT finish FROM table_name_74 WHERE qual = "141.071" |
### Context: CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
... |
### Context: CREATE TABLE table_25017530_6 (
cfl_team VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the cfl team for saskatchewan
### Query: SELECT cfl_team FROM table_25017530_6 WHERE college = "Saskatchewan" |
### Context: CREATE TABLE table_75010 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Episode smaller than 210 had what seg... |
### Context: CREATE TABLE table_name_63 (
turbo VARCHAR,
frequency VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the turbo when the frequency is 2.2 ghz?
### Query: SELECT turbo FROM table_name_63 WHERE frequency = "2.2 ghz" |
### Context: CREATE TABLE table_name_78 (
race VARCHAR,
jockey VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Race that Jockey of d. nikolic is in?
### Query: SELECT race FROM table_name_78 WHERE jockey = "d. nikolic" |
### Context: CREATE TABLE follows (
f1 int(11),
f2 int(11)
)
CREATE TABLE tweets (
id bigint(20),
uid int(11),
text char(140),
createdate datetime
)
CREATE TABLE user_profiles (
uid int(11),
name varchar(255),
email varchar(255),
partitionid int(11),
followers int(11)
)
-... |
### Context: CREATE TABLE table_name_49 (
weeks_on_chart INTEGER,
peak_position VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the most weeks on chart when the peak position is less than 5 and from Sweden?
### Query: SELECT MAX(... |
### 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 ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
Belong... |
### Context: CREATE TABLE classification (
id int,
msid int,
gid int
)
CREATE TABLE tags (
id int,
msid int,
kid int
)
CREATE TABLE movie (
mid int,
title text,
release_year int,
title_aka text,
budget text
)
CREATE TABLE tv_series (
sid int,
title text,
releas... |
### 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 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 table_203_183 (
id number,
"season" text,
"tier" number,
"division" number,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest ranking the team has ever received ?
### Query: SELECT MIN("place") FRO... |
### 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 Tags (
Id number,
TagName text,
Count n... |
### 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 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 microlab (
microl... |
### Context: CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE p... |
### 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 Office_locations (
building_id int,
company_id int,
move_in_year int
)
CREATE TABLE Companies (
id int,
name text,
Headquarters text,
Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value_billion text
)
CREATE T... |
### Context: CREATE TABLE table_10960039_1 (
pick__number INTEGER,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is McMaster College's pick number?
### Query: SELECT MIN(pick__number) FROM table_10960039_1 WHERE college = "McMaster" |
### Context: CREATE TABLE table_34438 (
"Date" text,
"Label" text,
"Region" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows as the format for catalog 11 135?
### Query: SELECT "Format" FROM table_34438 WHERE... |
### Context: CREATE TABLE table_68154 (
"Place" text,
"Name" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place has a To par of +4 and a score of 74-70-74-74=292?
### Query... |
### 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 inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_de... |
### Context: CREATE TABLE table_name_72 (
total INTEGER,
country VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total for united states player phil mickelson?
### Query: SELECT MIN(total) FROM table_name_72 WHERE country = "... |
### Context: CREATE TABLE Documents (
document_type_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the document type code with fewer than 3 documents.
### Query: SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING COUNT(*) < 3 |
### Context: CREATE TABLE table_45502 (
"Original NFL team" text,
"Player" text,
"Pos." text,
"College" text,
"Conf." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player had a conference of PAC-10 and position of G?
### Query: SELECT "Playe... |
### Context: CREATE TABLE table_name_23 (
heat INTEGER,
lane VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest heat for more than 3 lanes and a time of 2:09.12?
### Query: SELECT MAX(heat) FROM table_name_23 WHERE lane > 3... |
### 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_60075 (
"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.
-- What is the 2nd leg of pelister team 2?
### Query: SELECT "2nd leg" FROM table_60075 WHERE "... |
### Context: CREATE TABLE table_name_64 (
name VARCHAR,
time VARCHAR,
nationality VARCHAR,
heat VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name when the heat is less than 3, the rank is less than 18, the nationality ... |
### 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 DEPARTMENT (
DEPT_CODE varchar(10),
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4)
)
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION va... |
### Context: CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
... |
### Context: CREATE TABLE table_203_376 (
id number,
"no." number,
"name" text,
"term of office" text,
"president(s) served under" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what were the number of directors that stayed in office more than three... |
### Context: CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 ... |
### Context: CREATE TABLE table_name_41 (
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points does Club have?
### Query: SELECT points FROM table_name_41 WHERE "club" = "club" |
### Context: CREATE TABLE table_name_61 (
constructor VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What company constructed the vehicle when the driver shows as not held?
### Query: SELECT constructor FROM table_name_61 WHERE driver = "not... |
### Context: CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
... |
### Context: CREATE TABLE table_69107 (
"Match" text,
"Date" text,
"Location" text,
"Lineup" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lineup that resulted in 1-0 AET W?
### Query: SELECT "Li... |
### Context: CREATE TABLE table_1912713_2 (
方位_direction VARCHAR,
性情_personality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of gentle personalities?
### Query: SELECT COUNT(方位_direction) FROM table_1912713_2 WHERE 性情_personality... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
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,
K... |
### 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_76418 (
"Season" text,
"Series" text,
"Team" text,
"Races" text,
"Wins" text,
"Poles" text,
"F/Laps" text,
"Podiums" text,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... |
### Context: CREATE TABLE table_25037577_1 (
high_school_principal VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many high school principals were there in 2000-2001?
### Query: SELECT high_school_principal FROM table_25037577_1 WHERE year... |
### Context: CREATE TABLE table_3978 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of colleges for jerome pathon
### Query: SELECT COUNT("College") FROM ta... |
### Context: CREATE TABLE table_name_87 (
gold INTEGER,
silver INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the sum of gold for silver being less than 0
### Query: SELECT SUM(gold) FROM table_name_87 WHERE silver < 0 |
### 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_30 (
to_par VARCHAR,
money___£__ VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the to par with money of 200,000 for australia
### Query: SELECT to_par FROM table_name_30 WHERE money___£__ = "20... |
### Context: CREATE TABLE table_name_23 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What 1997 has grand slams for the 1999?
### Query: SELECT 1997 FROM table_name_23 WHERE 1999 = "grand slams" |
### Context: CREATE TABLE table_204_314 (
id number,
"pos" number,
"team" text,
"played" number,
"won" number,
"draw" number,
"lost" number,
"goals for" number,
"goals against" number,
"goal difference" number,
"points" number,
"notes" text
)
-- Using valid SQLite, answ... |
### Context: CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE airline (
airl... |
### Context: CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE area (
course_id int,
are... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
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,
K... |
### Context: CREATE TABLE table_name_32 (
to_par INTEGER,
year_s__won VARCHAR,
total VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much To par has a Total larger than 149, and a Country of united states, and a Year(s) won of 199... |
### Context: CREATE TABLE table_203_800 (
id number,
"#" number,
"president" text,
"president's party" text,
"senate with" number,
"senate opposed" number,
"house with" number,
"house opposed" number,
"years served" number,
"elections won" number
)
-- Using valid SQLite, answer... |
### Context: CREATE TABLE table_1341707_15 (
incumbent VARCHAR,
first_elected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which incumbent was first elected in 1964?
### Query: SELECT incumbent FROM table_1341707_15 WHERE first_elected = "1964" |
### 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 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 countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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 decim... |
### Context: CREATE TABLE table_6214 (
"Election date" real,
"Party leader" text,
"Number of votes received" text,
"Percentage of votes" text,
"Number of deputies" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average election year tha... |
### Context: CREATE TABLE table_74771 (
"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.
-- Who is the home team when melbourne... |
### Context: CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
... |
### Context: CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId n... |
### Context: CREATE TABLE table_12094300_1 (
interview VARCHAR,
state VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the interview for the state of New York?
### Query: SELECT interview FROM table_12094300_1 WHERE state = "New York" |
### Context: CREATE TABLE table_name_14 (
country VARCHAR,
year_s__won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What county won in 1991?
### Query: SELECT country FROM table_name_14 WHERE year_s__won = "1991" |
### Context: CREATE TABLE table_51666 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of the grid for mika h kkinen and more than 45 laps?
### Query: SE... |
### Context: CREATE TABLE table_name_26 (
year INTEGER,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was in Aigburth?
### Query: SELECT MAX(year) FROM table_name_26 WHERE venue = "aigburth" |
### Context: CREATE TABLE table_45809 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Billy Ray Brown plays for what country?
### Query: SELECT "Country" FROM table_45809 WHERE "P... |
### Context: CREATE TABLE table_name_24 (
race VARCHAR,
track VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What race happened at pocono on 08-02-2008?
### Query: SELECT race FROM table_name_24 WHERE track = "pocono" AND date = "08-02-200... |
### 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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid numb... |
### Context: CREATE TABLE fielding (
player_id TEXT,
year INTEGER,
stint INTEGER,
team_id TEXT,
league_id TEXT,
pos TEXT,
g INTEGER,
gs NUMERIC,
inn_outs NUMERIC,
po NUMERIC,
a NUMERIC,
e NUMERIC,
dp NUMERIC,
pb NUMERIC,
wp NUMERIC,
sb NUMERIC,
cs NUME... |
### 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 PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
... |
### 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_31298 (
"Round" real,
"Country" text,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Rider" text,
"Winning Team" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... |
### Context: CREATE TABLE table_3735 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Bonus points" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many... |
### Context: CREATE TABLE table_45289 (
"Rank" text,
"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 Nation, when the number of Bronze is less than 17, and when the num... |
### Context: CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respir... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.