text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_62346 (
"Perpetrator" text,
"Location" text,
"Country" text,
"Killed" real,
"Injured" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many kills did basobas, florentino have?
### Query: SELECT MAX("Killed") FROM t... |
### Context: CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
... |
### Context: CREATE TABLE table_55212 (
"Number & Name" text,
"Description" text,
"Livery" text,
"Owner(s)" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What owner or owners have an operational description?
### Query: SELECT "Owner(s... |
### Context: CREATE TABLE table_77201 (
"Draw" real,
"Artist" text,
"Song" text,
"Points" real,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the average draw for the song 'stop messin' around'?
### Query: SELECT AVG("Draw") FROM ta... |
### Context: CREATE TABLE table_name_44 (
lner_class VARCHAR,
wa VARCHAR,
no_built VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What LINER class has a W.A. of 0-6-0st with a 2 No. Built?
### Query: SELECT lner_class FROM table_name_44 WHERE wa = "0-6-... |
### Context: CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE 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,
INSURE... |
### Context: CREATE TABLE Order_Items (
order_item_id INTEGER,
order_id INTEGER,
product_id INTEGER,
product_quantity VARCHAR(50),
other_order_item_details VARCHAR(255)
)
CREATE TABLE Invoice_Line_Items (
order_item_id INTEGER,
invoice_number INTEGER,
product_id INTEGER,
product_tit... |
### Context: CREATE TABLE table_50251 (
"Institution" text,
"Location" text,
"Nickname" text,
"Enrollment" real,
"Established" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which institution has a nickname of Blue Hens?
### Query: SELECT "Institut... |
### Context: CREATE TABLE qtb (
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_name_74 (
drawn VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number drawn when 3 have been lost?
### Query: SELECT drawn FROM table_name_74 WHERE lost = "3" |
### Context: CREATE TABLE table_train_85 (
"id" int,
"mini_mental_state_examination_mmse" int,
"elevated_serum_phenylalanine" int,
"elevated_creatinine" float,
"renal_disease" bool,
"geriatric_depression_scale_gds" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions ... |
### Context: CREATE TABLE table_68077 (
"Week" real,
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the visiting team on weeks under 12 and at Sports Auth... |
### Context: CREATE TABLE table_name_26 (
runner_s__up VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Runner(s)-up has a Winning score of 8 (68-68-72-72=280)?
### Query: SELECT runner_s__up FROM table_name_26 WHERE winning_score... |
### 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm... |
### 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_204_761 (
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.
-- only one team has won more than 10 bronze medals in ... |
### Context: CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
available_yn BIT
)
CREATE TABL... |
### Context: CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_cod... |
### Context: CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
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 (
... |
### Context: CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number va... |
### Context: CREATE TABLE table_67822 (
"Stage" text,
"Route" text,
"Distance" text,
"Date" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date for mark cavendish
### Query: SELECT "Date" FROM table_67822 WHERE "Winner" = 'm... |
### Context: CREATE TABLE table_1190 (
"Title (pages)" text,
"Spirou" real,
"Writer / Artist" text,
"1st publication, Belgium" text,
"Integrale" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least spirou
### Query: SELECT MIN("Spirou") FR... |
### Context: CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttim... |
### Context: CREATE TABLE table_name_55 (
overall INTEGER,
position VARCHAR,
pick VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the pick is under 28 and the position is k, what's the highest Overall pick?
### Query: SELECT MAX(overall) FROM table_na... |
### Context: CREATE TABLE table_203_455 (
id number,
"round" number,
"#" number,
"player" text,
"nationality" text,
"college/junior/club team (league)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players are from canada ?
### Query:... |
### Context: CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE patient ... |
### Context: CREATE TABLE table_name_51 (
points VARCHAR,
tries VARCHAR,
appearance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times is tries 0 and appearance less than 0?
### Query: SELECT COUNT(points) FROM table_name_51 WHERE tries = 0 A... |
### 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_10015132_2 (
player VARCHAR,
school_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players were with the school or club team La Salle?
### Query: SELECT COUNT(player) FROM table_10015132_2 WHERE school_club... |
### Context: CREATE TABLE table_name_79 (
linkedin VARCHAR,
site VARCHAR,
myspace VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many linkedin have Facebook as the site, with a myspace less than 64?
### Query: SELECT COUNT(linkedin) FROM table_name_... |
### Context: CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
... |
### Context: CREATE TABLE table_35982 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Top-5 is the lowest one that has Cuts made of... |
### Context: CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
... |
### Context: CREATE TABLE table_68280 (
"Representative" text,
"Title" text,
"Presentation of credentials" text,
"Termination of mission" text,
"Appointed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the termination of mission for appoint... |
### Context: CREATE TABLE table_name_27 (
willingshain VARCHAR,
reimboldsh VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Willinghshain has Reimboldsh of 101?
### Query: SELECT willingshain FROM table_name_27 WHERE reimboldsh = "101" |
### Context: CREATE TABLE table_27902171_4 (
date VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day did they play the phoenix suns?
### Query: SELECT date FROM table_27902171_4 WHERE team = "Phoenix Suns" |
### Context: CREATE TABLE table_54877 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has an away score of 9.10 (64)?
### 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_40 (
draw INTEGER,
champs INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Draw is the lowest one that has Champs smaller than 0?
### Query: SELECT MIN(draw) FROM table_name_40 WHERE champs < 0 |
### Context: CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm... |
### Context: CREATE TABLE table_49888 (
"Race Name" text,
"Circuit" text,
"City/Location" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables pr... |
### Context: CREATE TABLE drivers (
driverid VARCHAR,
surname VARCHAR
)
CREATE TABLE races (
raceid VARCHAR
)
CREATE TABLE results (
driverid VARCHAR,
raceid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the id and surname of the driver w... |
### Context: CREATE TABLE table_9416 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds have a position of C?
### Query: SELECT COUN... |
### Context: CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
ha... |
### 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_t... |
### Context: CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE transfers (
... |
### Context: CREATE TABLE table_19880 (
"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.
-- What is the series episode where Segm... |
### Context: CREATE TABLE table_name_14 (
profits__billion_ INTEGER,
sales__billion_$_ VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the lowest Profits (billion $) which has a Sales (billion $) of 425.7, and a Rank larger than 4?
###... |
### Context: CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
... |
### Context: CREATE TABLE table_24399615_3 (
viewers VARCHAR,
airdate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many entries are shown for viewers when the airdate was 26 november 2009?
### Query: SELECT COUNT(viewers) FROM table_24399615_3 WHERE a... |
### Context: CREATE TABLE table_1969577_3 (
enrollment INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the minimal enrollment of any of the schools?
### Query: SELECT MIN(enrollment) FROM table_1969577_3 |
### Context: CREATE TABLE table_name_34 (
opened INTEGER,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest opened year of the team in Glasgow, Scotland?
### Query: SELECT MAX(opened) FROM table_name_34 WHERE city = "glasgow, scotland" |
### Context: CREATE TABLE table_name_43 (
score VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score of the Game with a Record of 13 12?
### Query: SELECT score FROM table_name_43 WHERE record = "13–12" |
### Context: CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Ad... |
### Context: CREATE TABLE table_21421 (
"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 table_name_95 (
grid INTEGER,
constructor VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I want the highest Grid for Toyota and jarno trulli
### Query: SELECT MAX(grid) FROM table_name_95 WHERE constructor = "to... |
### Context: CREATE TABLE table_9112 (
"Title" text,
"Lyricist(s)" text,
"Composer(s)" text,
"Arranger(s)" text,
"Length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Length, when the Title is 'The Way To Your Heart'?
### Query: SELEC... |
### Context: CREATE TABLE table_name_58 (
date VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has Result of 86-87?
### Query: SELECT date FROM table_name_58 WHERE result = "86-87" |
### Context: CREATE TABLE table_56890 (
"Race" text,
"Circuit" text,
"Date" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Constructor" text,
"Tyre" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... |
### 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_65735 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Week has an Attendance larger than 65,070?
### Query: SELECT MAX("Week") FROM table_... |
### Context: CREATE TABLE table_8583 (
"DVD title" text,
"Season" text,
"Aspect ratio" text,
"Episode count" real,
"Time length" text,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What title was release November 17, 2009 in a 16... |
### Context: CREATE TABLE artist (
artist_id number,
name text,
country text,
year_join number,
age number
)
CREATE TABLE exhibition_record (
exhibition_id number,
date text,
attendance number
)
CREATE TABLE exhibition (
exhibition_id number,
year number,
theme text,
ar... |
### Context: CREATE TABLE table_71884 (
"Date" text,
"Visiting team" text,
"Final score" text,
"Host team" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Visiting team on december 20?
### Query: SELECT "Visiting team" FRO... |
### Context: CREATE TABLE table_name_64 (
date VARCHAR,
opponent_in_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Opponent in Final is 'Guy Forget'?
### Query: SELECT date FROM table_name_64 WHERE opponent_in_final = "guy forget" |
### Context: CREATE TABLE table_4059 (
"Contestant" text,
"Age" real,
"Height" text,
"Starting BMI" text,
"Finale BMI" text,
"Reunion BMI" text,
"Start Weight" text,
"Finale Weight" text,
"Reunion Weight" text,
"lbs lost finale" text,
"lbs lost reunion" real
)
-- Using vali... |
### 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_99 (
location VARCHAR,
round VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where's the location for the opponent James Zikic and 3 rounds?
### Query: SELECT location FROM table_name_99 WHERE round ... |
### Context: CREATE TABLE table_27898 (
"Settlement" text,
"Cyrillic Name" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the po... |
### Context: CREATE TABLE table_2542 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... |
### Context: CREATE TABLE table_204_41 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is ranked at the top
### Query: SELECT "name" FROM table_204_41 WHERE id... |
### Context: CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
s... |
### 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_20551 (
"Vehicle" text,
"EPA rated All-electric range" text,
"EPA rated combined fuel economy" text,
"Alaska ( Juneau )" text,
"California (San Francisco)" text,
"Mid-Atlantic South (Washington, D.C.)" text,
"U.S. national average electric mix" text,
"Sout... |
### Context: CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
ME... |
### Context: CREATE TABLE lab (
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 SportsInfo (
StuID INTEGER,
SportName VARCHAR(32),
HoursPerWeek INTEGER,
GamesPlayed INTEGER,
OnScholarship VARCHAR(1)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advi... |
### Context: CREATE TABLE table_168482_1 (
_percentage_of_popular_vote VARCHAR,
election VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many percentages are listed for the election in 1983?
### Query: SELECT COUNT(_percentage_of_popular_vote) FROM table... |
### Context: CREATE TABLE table_name_91 (
retired VARCHAR,
notes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the aircraft retired when it was replaced by 737-300s?
### Query: SELECT retired FROM table_name_91 WHERE notes = "replaced by 737-... |
### Context: CREATE TABLE table_name_15 (
player VARCHAR,
to_par VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Player that has a To standard of 4?
### Query: SELECT player FROM table_name_15 WHERE to_par = "–4" |
### 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_name_5 (
drawn VARCHAR,
points_1 VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Drawn has Points 1 of 51, and a Lost larger than 5?
### Query: SELECT COUNT(drawn) FROM table_name_5 WHERE points_1 = ... |
### Context: CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
C... |
### Context: CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE field (
fieldid int
)
CRE... |
### Context: CREATE TABLE table_name_40 (
date VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date did week 6 occur?
### Query: SELECT date FROM table_name_40 WHERE week = 6 |
### Context: CREATE TABLE table_78505 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the driver richard attwood has a constructor of brm, what is the number of laps?
... |
### Context: CREATE TABLE temperature (
City_ID int,
Jan real,
Feb real,
Mar real,
Apr real,
Jun real,
Jul real,
Aug real,
Sep real,
Oct real,
Nov real,
Dec real
)
CREATE TABLE city (
City_ID int,
City text,
Hanzi text,
Hanyu_Pinyin text,
Regional_Pop... |
### 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 services (
service_type_code VARCHAR,
organization_id VARCHAR
)
CREATE TABLE organizations (
organization_id VARCHAR,
organization_details VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the distinct service types th... |
### Context: CREATE TABLE table_60692 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To Par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Frank Moore's score?
### Query: SELECT "Score" FROM table_60692 WHERE "Player" = 'fr... |
### Context: CREATE TABLE table_name_61 (
date VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date of the Ameritech Senior Open?
### Query: SELECT date FROM table_name_61 WHERE tournament = "ameritech senior open" |
### Context: CREATE TABLE pilot (
Name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all pilot names in ascending alphabetical order.
### Query: SELECT Name FROM pilot ORDER BY Name |
### Context: CREATE TABLE table_18367 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which incumbent was first elected in 1964?
### Query: SELE... |
### Context: CREATE TABLE table_2668243_22 (
party VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many 'Party' are in district south carolina 2?
### Query: SELECT COUNT(party) FROM table_2668243_22 WHERE district = "South Carolina 2" |
### Context: CREATE TABLE table_name_68 (
diff INTEGER,
drawn VARCHAR,
played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest diff with drawn of 6 and play larger than 18?
### Query: SELECT MAX(diff) FROM table_name_68 WHERE drawn = 6... |
### Context: CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
... |
### Context: CREATE TABLE table_47652 (
"Year" real,
"Publication" text,
"Country" text,
"Accolade" text,
"Rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the average year for the accolade 100 greatest singles of all time?
### Query: SE... |
### Context: CREATE TABLE table_45632 (
"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 ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE Tags... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.