text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_62876 (
"Team" text,
"Matches" real,
"Wins" real,
"Wins %" text,
"Draws" real,
"Draws %" text,
"Losses" real,
"Losses %" text,
"Against" real,
"For & Against Ratio" text
)
-- Using valid SQLite, answer the following questions for the tables provi... |
### Context: CREATE TABLE table_55698 (
"D 41" text,
"D 42" text,
"D 43" text,
"D 44" text,
"D 45" text,
"D 46" text,
"D 47" text,
"R 53" text,
"R 52" text,
"R 51" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the D 47 f... |
### 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_24 (
maximum_download_speed__kbps VARCHAR,
technology VARCHAR,
plan_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum download speed for the Internet basic plan with 3G?
### Query: SELECT maximu... |
### Context: CREATE TABLE table_60578 (
"Year (Ceremony)" text,
"Original title" text,
"Film title used in nomination" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year has a not nominated result and a nominati... |
### Context: CREATE TABLE table_name_81 (
date VARCHAR,
course VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date was a rest day?
### Query: SELECT date FROM table_name_81 WHERE course = "rest day" |
### 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 table_31114 (
"Provider" text,
"Country" text,
"Subscribers (2005) (thousands)" real,
"Subscribers (2006) (thousands)" real,
"Growth %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum number of 2006 subsc... |
### Context: CREATE TABLE table_40741 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team was the ... |
### Context: CREATE TABLE table_79823 (
"Riding" text,
"Candidate's Name" text,
"Gender" text,
"Votes" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of the candidate with more than 2,211 votes?
### Query: SELECT "Rank... |
### Context: CREATE TABLE table_name_22 (
actor VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What actor won in 1978?
### Query: SELECT actor FROM table_name_22 WHERE year = "1978" |
### Context: CREATE TABLE table_name_45 (
race_name VARCHAR,
winning_driver VARCHAR,
constructor VARCHAR,
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the race that featured stirling moss winning with a maserati at aintree?
### Qu... |
### Context: CREATE TABLE table_name_9 (
first_district VARCHAR,
fifth_district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the First District with a Fifth District of prudy adam?
### Query: SELECT first_district FROM table_name_9 WHERE fifth_distr... |
### Context: CREATE TABLE table_50391 (
"Outcome" text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the match with a winn... |
### Context: CREATE TABLE table_name_31 (
lane INTEGER,
notes VARCHAR,
time___sec__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lane for notes Q, SB and time less than 11.22?
### Query: SELECT SUM(lane) FROM table_name_31 WHERE notes = "q... |
### Context: CREATE TABLE table_21469545_2 (
to_par VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the to par for 20 feb 2005
### Query: SELECT to_par FROM table_21469545_2 WHERE date = "20 Feb 2005" |
### Context: CREATE TABLE table_55166 (
"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 score of the away team ... |
### 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 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 lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
... |
### Context: CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
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 inputev... |
### 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_30 (
pick VARCHAR,
name VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT PICK HAD STEVE HAMILTON IN ROUND LARGER THAN 2?
### Query: SELECT COUNT(pick) FROM table_name_30 WHERE name = "steve hamilton... |
### Context: CREATE TABLE table_33423 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Box scores" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the ... |
### Context: CREATE TABLE table_name_89 (
inversions INTEGER,
opened VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of inversions for opened of april 20, 2002
### Query: SELECT SUM(inversions) FROM table_name_89 WHERE opened = "april 20, 2002" |
### Context: CREATE TABLE country (
country_id number,
country_name text,
capital text,
official_native_language text
)
CREATE TABLE match_season (
season number,
player text,
position text,
country number,
team number,
draft_pick_number number,
draft_class text,
college... |
### 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_dev_9 (
"id" int,
"heart_disease" bool,
"hba1c" float,
"coronary_artery_disease_cad" bool,
"triglyceride_tg" float,
"hypertension" bool,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- coronary artery ... |
### Context: CREATE TABLE table_name_57 (
date VARCHAR,
winning_constructor VARCHAR,
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Date of mercedes, and a Circuit of elgin?
### Query: SELECT date FROM table_name_57 WHERE winning_constr... |
### 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_name_29 (
year_s_ INTEGER,
games_drawn___tests__ VARCHAR,
points_against___tests__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year when games drawn was 0, points against are 86?
### Query: SELECT ... |
### Context: CREATE TABLE table_203_854 (
id number,
"position" number,
"driver" text,
"no." text,
"car" text,
"entrant" text,
"rd 1" number,
"rd 2" number,
"rd 3" number,
"rd 4" number,
"rd 5" number,
"rd 6" number,
"rd 7" number,
"rd 8" number,
"total" numbe... |
### Context: CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
)
-- Using valid SQLite, answer the following... |
### Context: CREATE TABLE table_name_19 (
outgoing_manager VARCHAR,
date_of_vacancy VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the outgoing manager when the date of vacancy is 13 october 2008?
### Query: SELECT outgoing_manager FROM table_name_19... |
### Context: CREATE TABLE table_name_22 (
to_par VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Dave Rummells's to par?
### Query: SELECT to_par FROM table_name_22 WHERE player = "dave rummells" |
### Context: CREATE TABLE drivers (
driverid number,
driverref text,
number number,
code text,
forename text,
surname text,
dob text,
nationality text,
url text
)
CREATE TABLE constructorresults (
constructorresultsid number,
raceid number,
constructorid number,
poin... |
### Context: CREATE TABLE table_47856 (
"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 lowest draft pick number for mark doak who had an overall pick ... |
### Context: CREATE TABLE table_38361 (
"Season" text,
"Player" text,
"Position" text,
"Nationality" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Season is listed for the Player of Jon Stefansson?
### Query: SELECT "Season" FROM... |
### Context: CREATE TABLE table_66337 (
"Restaurant Name" text,
"Original Name" text,
"Location" text,
"Chef" text,
"Designer" text,
"Still Open?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the chef at Lakes Bar and Grill?
### Query:... |
### Context: CREATE TABLE table_15306124_1 (
democratic_coalition INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the least amount of democratic colation
### Query: SELECT MIN(democratic_coalition) FROM table_15306124_1 |
### Context: CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
O... |
### Context: CREATE TABLE table_77944 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the match on July 29, 1990?
### Query: SELECT "Score" FROM table_77944... |
### 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 flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_required va... |
### Context: CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug... |
### Context: CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE time_zone (
... |
### Context: CREATE TABLE table_39686 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Me... |
### Context: CREATE TABLE table_57340 (
"Rank" real,
"Name" text,
"Height m ( ft )" text,
"Floors" real,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the average year for rank more than 3 and 28 floors
### Query: SELECT AVG("Year")... |
### 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_65487 (
"Year" real,
"Venue" text,
"Men's Open" text,
"Women's Open" text,
"Men's 35s" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the venue earlier than 1995 with Men's Open of QLD and Men's 35 of QLD and ... |
### Context: CREATE TABLE table_14342367_7 (
field_goals INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least amount of field goals made by a player?
### Query: SELECT MIN(field_goals) FROM table_14342367_7 |
### Context: CREATE TABLE climber (
climber_id number,
name text,
country text,
time text,
points number,
mountain_id number
)
CREATE TABLE mountain (
mountain_id number,
name text,
height number,
prominence number,
range text,
country text
)
-- Using valid SQLite, ans... |
### 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 PostTags (
PostId number,
TagId number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
App... |
### Context: CREATE TABLE table_name_90 (
date VARCHAR,
opponent VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the opponent the White Sox and the record 18-13?
### Query: SELECT date FROM table_name_90 WHERE opponent = ... |
### Context: CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId ... |
### Context: 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(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMEN... |
### Context: CREATE TABLE table_67037 (
"Year" real,
"Chassis" text,
"Engine(s)" text,
"Tyres" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What engine has 2 points?
### Query: SELECT "Engine(s)" FROM table_67037 WHERE "Points" = '... |
### Context: CREATE TABLE table_16010376_1 (
muzzle_energy VARCHAR,
cartridge VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When using a .375 Winchester, what is the muzzle energy?
### Query: SELECT muzzle_energy FROM table_16010376_1 WHERE cartridge = ".3... |
### Context: CREATE TABLE table_79481 (
"Frequency" text,
"Station" text,
"Operator" text,
"Language" text,
"Genre" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the genre of the BBC World Service?
### Query: SELECT "Genre" FROM table_7948... |
### 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 prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
... |
### Context: CREATE TABLE discipline_enrollments (
campus number,
discipline number,
year number,
undergraduate number,
graduate number
)
CREATE TABLE campuses (
id number,
campus text,
location text,
county text,
year number
)
CREATE TABLE faculty (
campus number,
year... |
### Context: CREATE TABLE table_19188562_2 (
season VARCHAR,
us_viewers__in_millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season finale date has 2.02 million u.s. Viewers?
### Query: SELECT season AS finale FROM table_19188562_2 WHERE us_vie... |
### Context: CREATE TABLE Clients (
Client_ID INTEGER,
Address_ID INTEGER,
Customer_Email_Address VARCHAR(255),
Customer_Name VARCHAR(255),
Customer_Phone VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Performers_in_Bookings (
Order_ID INTEGER,
Performer_ID INTEGER
)
CREATE TA... |
### 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 table_26999 (
"Name of Village" text,
"Name in Syriac" text,
"Number of Believers" real,
"Number of Priests" real,
"Number of Churches" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least number of believers
### ... |
### 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 t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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 ... |
### Context: CREATE TABLE performance (
songid number,
bandmate number,
stageposition text
)
CREATE TABLE albums (
aid number,
title text,
year number,
label text,
type text
)
CREATE TABLE vocals (
songid number,
bandmate number,
type text
)
CREATE TABLE songs (
songid... |
### Context: CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
... |
### Context: CREATE TABLE table_name_14 (
election VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 2nd Party has a Election of 1857?
### Query: SELECT 2 AS nd_party FROM table_name_14 WHERE election = "1857" |
### 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 lab (
labid number,
... |
### Context: CREATE TABLE medicine (
id int,
name text,
Trade_Name text,
FDA_approved text
)
CREATE TABLE medicine_enzyme_interaction (
enzyme_id int,
medicine_id int,
interaction_type text
)
CREATE TABLE enzyme (
id int,
name text,
Location text,
Product text,
Chromoso... |
### Context: CREATE TABLE Projects (
Code Char(4),
Name Char(50),
Hours int
)
CREATE TABLE Scientists (
SSN int,
Name Char(30)
)
CREATE TABLE AssignedTo (
Scientist int,
Project char(4)
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the nu... |
### Context: CREATE TABLE table_64251 (
"Class" text,
"Railway number(s)" text,
"Quantity" real,
"Year(s) of manufacture" text,
"Axle arrangement ( UIC )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the class when the quantity is 4?
### ... |
### Context: CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Code CHAR(15),
Start_Date DATE,
End_Date DATE
)
CREATE TABLE Customers (
Customer_ID INTEGER,
Customer_Details VARCHAR(255)
)
CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID ... |
### Context: CREATE TABLE table_68610 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the chassis when the points were greater than 0 and the entrant was March Engineerin... |
### 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug... |
### Context: CREATE TABLE bank (
bname VARCHAR,
no_of_customers VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the branch name of the bank that has the most number of customers.
### Query: SELECT bname FROM bank ORDER BY no_of_customers DESC LIMIT 1 |
### Context: CREATE TABLE table_68388 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year(s) did Mike Weir win player of the year?
### Query: SELECT... |
### Context: CREATE TABLE table_dev_12 (
"id" int,
"systolic_blood_pressure_sbp" int,
"creatinine_clearance_cl" float,
"allergy_to_glucagon" bool,
"platelet_count" float,
"diastolic_blood_pressure_dbp" int,
"insulin_requirement" float,
"adverse_reaction_to_glucagon" bool,
"NOUSE" flo... |
### Context: CREATE TABLE table_65396 (
"Year" real,
"Movie (in Kannada )" text,
"Director" text,
"Cast" text,
"Music Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What movie had the music director G.K. Venkatesh and director Siddalingaia... |
### Context: CREATE TABLE table_45432 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Opponent is Atlanta Hawks?
### Query: SELECT "Score" FROM table_45432 WHER... |
### 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 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_23554 (
"#" text,
"Original title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text,
"Prod. code" text,
"Viewers" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 1.17 is the production ... |
### Context: CREATE TABLE table_3567 (
"Contestant" text,
"Place" real,
"Age" real,
"Country" text,
"Federal state" text,
"City" text,
"Height" text,
"Measurements (in cm)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who are the parti... |
### Context: CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9... |
### Context: CREATE TABLE table_28540539_2 (
version VARCHAR,
release VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the version of the 1.0.12 release?
### Query: SELECT version FROM table_28540539_2 WHERE release = "1.0.12" |
### Context: CREATE TABLE table_63909 (
"Rank" real,
"Lane" real,
"Athlete" text,
"Nationality" text,
"Time" real,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of lane 4?
### Query: SELECT "Nationality" FROM ta... |
### Context: CREATE TABLE table_78775 (
"Edition" text,
"Date" text,
"Winner" text,
"Country" text,
"Time ( h : m : s )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the nationality of the winner on December 8, 1968?
### Query: SELECT "C... |
### Context: CREATE TABLE table_name_17 (
grid INTEGER,
constructor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest grid with matra as constructor?
### Query: SELECT MIN(grid) FROM table_name_17 WHERE constructor = "matra" |
### Context: CREATE TABLE table_40883 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the IATA code for the airport with an ICAO code of HLLS?
### Query: SELECT "IATA" FROM t... |
### Context: CREATE TABLE table_name_40 (
points VARCHAR,
year INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points after 1956?
### Query: SELECT COUNT(points) FROM table_name_40 WHERE year > 1956 |
### 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_name_47 (
destination VARCHAR,
stopping_pattern VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Destination has a Stopping pattern of [2777] mciver station platforms?
### Query: SELECT destination FROM table_name_47 WHER... |
### Context: CREATE TABLE table_23938357_7 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest 07-08 oi best value?
### Query: SELECT MIN(07 AS _08_oi_best) FROM table_23938357_7 |
### Context: CREATE TABLE table_29302711_13 (
country VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country does the player named Mark Cox play for?
### Query: SELECT country FROM table_29302711_13 WHERE name = "Mark Cox" |
### Context: CREATE TABLE table_9763 (
"Stage" real,
"Winner" text,
"General Classification" text,
"Points Classification" text,
"Mountains Classification" text,
"Metas Volantes Classification" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following questions for the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.