text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_66633 (
"Town" text,
"Population (2001)" real,
"Population rank" real,
"County" text,
"Municipality" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What town is from the mol tai district municipality and has a populat... |
### Context: CREATE TABLE table_204_164 (
id number,
"branding" text,
"callsign" text,
"frequency" text,
"power (kw)" text,
"location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the only radio station with a frequency below 90 mhz ?
... |
### 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_12 (
attendance VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the attendance with a result of l 26 3
### Query: SELECT attendance FROM table_name_12 WHERE result = "l 26–3" |
### Context: CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD... |
### Context: CREATE TABLE table_50444 (
"Scorer" text,
"Club" text,
"League goals" text,
"FA Cup goals" text,
"League Cup goals" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the amount of FA cups goals that were made when... |
### 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gend... |
### Context: CREATE TABLE table_name_54 (
ship VARCHAR,
commissioned VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Ship, when Commissioned is '13 March 1982'?
### Query: SELECT ship FROM table_name_54 WHERE commissioned = "13 march 1982" |
### Context: CREATE TABLE table_59576 (
"Name" text,
"Father" text,
"Birth" text,
"Marriage" text,
"Became Duchess" text,
"Ceased to be Duchess" text,
"Death" text,
"Spouse" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the wom... |
### Context: CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_i... |
### Context: CREATE TABLE gwyjzb (
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 table_51586 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance of the Florida vs. Montreal g... |
### Context: CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId numbe... |
### Context: CREATE TABLE table_11900773_6 (
design VARCHAR,
theme VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many stamps were designed for the theme of XII Summit de la Francophonie?
### Query: SELECT COUNT(design) FROM table_11900773_6 WHERE theme... |
### 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_name_97 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many are there in 2003 that have 0 in 2001, more than 0 in 2009 and fewer than 0 in 1999?
### Query: SELECT SUM(2003) FROM table_name_97 WHERE 2001 = 0 AND 2009 > 0 ... |
### 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 SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE CloseAsOffTopicReasonTypes (
I... |
### Context: CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM text,
RZBQMC text,
RYCWH text,
CYKSDM text,
CYKSMC text,
... |
### 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 stock (
Shop_ID int,
Device_ID int,
Quantity int
)
CREATE TABLE shop (
Shop_ID int,
Shop_Name text,
Location text,
Open_Date text,
Open_Year int
)
CREATE TABLE device (
Device_ID int,
Device text,
Carrier text,
Package_Version text,
Applica... |
### Context: CREATE TABLE table_name_93 (
place VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Place, when Player is 'Tony Lema'?
### Query: SELECT place FROM table_name_93 WHERE player = "tony lema" |
### Context: CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE admissions (
row_id number,
subject_id num... |
### Context: CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
)
CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,... |
### Context: CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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 (
EMPLOYEE_ID decimal(6,0),
FIRS... |
### Context: CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
econo... |
### Context: CREATE TABLE 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 person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE zzmzjzjlb (
HXPLC nu... |
### 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_27175 (
"Player" text,
"Minutes" real,
"Field Goals" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many long range shots d... |
### Context: CREATE TABLE table_47628 (
"Season" real,
"Player" text,
"Club" text,
"Goals" real,
"Games" real,
"Rate" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rate when there were more than 22 goals?
### Query: SELECT "Rate" ... |
### Context: CREATE TABLE table_name_22 (
attendance VARCHAR,
loss VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance at the Red Sox game that had a loss of Wakefield (7 10)?
### Query: SELECT attendance FROM table_name_22 WHERE loss = "... |
### Context: CREATE TABLE table_name_2 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 2001 with 2007 of sf
### Query: SELECT 2001 FROM table_name_2 WHERE 2007 = "sf" |
### 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 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_1342359_42 (
incumbent VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of incumbents for texas 12
### Query: SELECT COUNT(incumbent) FROM table_1342359_42 WHERE district = "Texas 12" |
### Context: CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM tex... |
### Context: CREATE TABLE Rooms (
roomName VARCHAR,
RoomId VARCHAR,
basePrice VARCHAR,
maxOccupancy VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report roo... |
### Context: CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE program (
program_id int,
n... |
### Context: CREATE TABLE table_16906 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"L2 cache" text,
"FSB" text,
"Mult." text,
"Voltage" text,
"TDP" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
)
-- Using ... |
### 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 Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
Creation... |
### Context: CREATE TABLE table_15175 (
"Stage" text,
"Date" text,
"Course" text,
"Distance" text,
"Winner" text,
"Race Leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the race leader for stage 5?
### Query: SELECT "Race Leader" ... |
### Context: CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9... |
### Context: CREATE TABLE table_name_34 (
chassis VARCHAR,
team VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the chassis for Augusto Scalbi on Team RP Motorsport?
### Query: SELECT chassis FROM table_name_34 WHERE team = "rp mo... |
### 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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
... |
### 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_39 (
print_name VARCHAR,
date_completed VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the print name in 07/87?
### Query: SELECT print_name FROM table_name_39 WHERE date_completed = "07/87" |
### Context: CREATE TABLE table_36258 (
"Date" text,
"State" text,
"George H.W. Bush" text,
"Bob Dole" text,
"Pat Robertson" text,
"Jack Kemp" text,
"Pete du Pont" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Bob Dole had 26%, and Pet... |
### Context: CREATE TABLE member_attendance (
Member_ID int,
Performance_ID int,
Num_of_Pieces int
)
CREATE TABLE performance (
Performance_ID real,
Date text,
Host text,
Location text,
Attendance int
)
CREATE TABLE member (
Member_ID text,
Name text,
Nationality text,
... |
### Context: CREATE TABLE table_25258 (
"Number" real,
"Name" text,
"Position" text,
"Height" text,
"Experience" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How long has Mel Daniels been playing?
### Query: SELECT "Experience... |
### Context: CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE hz_info (
KH text,
... |
### 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_name_52 (
laps INTEGER,
rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps did pere riba ride?
### Query: SELECT SUM(laps) FROM table_name_52 WHERE rider = "pere riba" |
### Context: CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_histor... |
### 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_43312 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many silvers did Turkey get?
### Query: SELECT "Silver" FROM table_43312 W... |
### Context: CREATE TABLE table_34015 (
"Year ended" text,
"Passengers flown" real,
"Employees (Average/Year)" real,
"Net profit/loss (SEK)" real,
"Basic eps (SEK)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Employees (Average/Year) hav... |
### Context: CREATE TABLE field (
fieldid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
... |
### 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 Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
buildin... |
### 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 table_13564702_3 (
points_for VARCHAR,
try_bonus VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of points for when try bonus is 10
### Query: SELECT COUNT(points_for) FROM table_13564702_3 WHERE try_bonus = "1... |
### Context: CREATE TABLE table_name_3 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 2005 has a 2004 of 3 2?
### Query: SELECT 2005 FROM table_name_3 WHERE 2004 = "3–2" |
### Context: CREATE TABLE table_59812 (
"Rank" real,
"Show" text,
"Number of Viewers" text,
"Date" text,
"Network" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When has a Rank larger than 2 and a Network of itv?
### Query: SELECT "Date" FROM tabl... |
### 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gend... |
### Context: CREATE TABLE table_9288 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponent had a record of 37-27?
### Query: SELECT "Opponent" FROM tabl... |
### 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gend... |
### Context: CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TAB... |
### Context: CREATE TABLE table_25406 (
"Season" real,
"Episodes" real,
"Timeslot (ET)" text,
"Season Premiere" text,
"Season Finale" text,
"TV Season" text,
"Rank" text,
"Viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... |
### 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 flight_stop (
flight_id int,
stop_number int,
stop_days te... |
### Context: CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
... |
### Context: CREATE TABLE table_name_29 (
lap_by_lap VARCHAR,
year VARCHAR,
ratings VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the lap-by-lap broadcaster before 1994 who garnered ratings of 8.0/21?
### Query: SELECT lap_by_lap FROM table_nam... |
### Context: CREATE TABLE table_30804 (
"Year" text,
"Position" real,
"Games played" real,
"Won" real,
"Tied" real,
"Lost" real,
"Goals Scored" real,
"Goals Against" real,
"Points" real,
"Postseason place" text
)
-- Using valid SQLite, answer the following questions for the tab... |
### Context: CREATE TABLE table_22552 (
"Nation" text,
"Rider" text,
"Horse" text,
"Cross Country Penalties" text,
"Total Penalties" text,
"Total Team Penalties" text,
"Team Rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which nation i... |
### Context: CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden b... |
### Context: CREATE TABLE table_name_7 (
title_rank VARCHAR,
series VARCHAR,
character VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?
### Query: SELEC... |
### Context: CREATE TABLE table_27103 (
"Total" real,
"#" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Viewers" text,
"Air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 3 is the number what ... |
### Context: CREATE TABLE table_54298 (
"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.
-- What is the margin of victory for the winning score of 10 (71-65-68... |
### Context: CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name v... |
### Context: CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... |
### Context: CREATE TABLE table_5435 (
"Church name" text,
"Organized by" text,
"Date" text,
"Split off / Continuation of" text,
"Current status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Independent Church's Split off/ Continuatio... |
### Context: CREATE TABLE table_203_486 (
id number,
"place" number,
"team" text,
"matches" number,
"won" number,
"drawn" number,
"lost" number,
"difference" text,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which count... |
### Context: CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respi... |
### Context: CREATE TABLE table_78185 (
"Title" text,
"Published in" text,
"Publication Date" text,
"Setting" text,
"Fictional date" text,
"Main characters" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name what was published in july 1934 with... |
### Context: CREATE TABLE table_name_33 (
team_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the second leg that Valencia was on?
### Query: SELECT 2 AS nd_leg FROM table_name_33 WHERE team_2 = "valencia" |
### 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 table_45011 (
"Fin. Pos" text,
"Car No." text,
"Driver" text,
"Team" text,
"Laps" text,
"Time/Retired" text,
"Grid" text,
"Laps Led" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team h... |
### Context: CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE state (
state_code text,
state_name text,
country_... |
### Context: CREATE TABLE table_name_42 (
gold VARCHAR,
rank VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the gold medal count ranked 2 with a total of more than 21?
### Query: SELECT COUNT(gold) FROM table_name_42 WHERE rank = 2... |
### 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_47 (
touchdowns INTEGER,
player VARCHAR,
extra_points VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Touchdowns have an Extra points of 0, and Points larger than 5, and a Player of curtis red... |
### Context: CREATE TABLE college (
college_id text,
name_full text,
city text,
state text,
country text
)
CREATE TABLE fielding (
player_id text,
year number,
stint number,
team_id text,
league_id text,
pos text,
g number,
gs number,
inn_outs number,
po numb... |
### Context: CREATE TABLE table_name_37 (
award VARCHAR,
year VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which award was nominated for in 2000?
### Query: SELECT award FROM table_name_37 WHERE year = 2000 AND result = "nominated" |
### Context: CREATE TABLE table_48696 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of departure" text,
"Incoming manager" text,
"Date hired" text,
"Position in table" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... |
### Context: CREATE TABLE table_80373 (
"2002/ 03" text,
"2004/ 05" text,
"2006/ 07" text,
"2007/ 08" text,
"2008/ 09" text,
"2009/ 10" text,
"2010/ 11" text,
"2011/ 12" text,
"2012/ 13" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... |
### Context: CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational in... |
### Context: CREATE TABLE table_32870 (
"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 was the away team's score when... |
### Context: CREATE TABLE table_name_65 (
year_s__won VARCHAR,
finish VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Year(s) Won, when Finish is 'T31', and when Player is 'Nick Price'?
### Query: SELECT year_s__won FROM table_nam... |
### Context: CREATE TABLE table_name_21 (
height VARCHAR,
name VARCHAR,
spike VARCHAR,
block VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Height(s), when Spike is less than 352, when Block is greater than 300, and when N... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.