text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID de... |
### Context: CREATE TABLE table_35506 (
"County" text,
"Population" real,
"Per capita income" text,
"Median household income" text,
"Median family income" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the median income for a family whose pe... |
### Context: CREATE TABLE table_63799 (
"Draw" real,
"Televote Points" text,
"Jury Points" text,
"Total" text,
"Final Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Televote Points had a Final Points score of 2?
### Query: SELECT "Tele... |
### Context: CREATE TABLE table_78720 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Date is 'June 8, 1996'?
### Query: SELECT "Score" FROM table_78720 WHER... |
### Context: CREATE TABLE table_9161 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many medals under total when silver is less than 2, gold is 3, and bronze is less than 0?
### ... |
### 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_11681 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who drove the maserati under 18 laps with an oil leak that had a grid of under 14?
##... |
### Context: CREATE TABLE table_56174 (
"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.
-- If the home team scored 6.7 (43), w... |
### Context: CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE cost (
costid number,
un... |
### Context: CREATE TABLE table_14058433_3 (
points_for VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points are there when the lost is 7?
### Query: SELECT points_for FROM table_14058433_3 WHERE lost = "7" |
### Context: CREATE TABLE table_76207 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Date has the Region Europe and a Catalog of 74321 45851 2?
### Query: SELECT "Date" FROM ... |
### Context: CREATE TABLE table_name_53 (
decision VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the decision of the Red Wings game when they had a record of 45 18 6?
### Query: SELECT decision FROM table_name_53 WHERE record = "45... |
### Context: CREATE TABLE table_23187 (
"Rank" real,
"Mountain Peak" text,
"Mountain Range" text,
"Elevation" text,
"Prominence" text,
"Isolation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different isolation numbers does the peak ... |
### Context: CREATE TABLE member_of_club (
stuid number,
clubid number,
position text
)
CREATE TABLE club (
clubid number,
clubname text,
clubdesc text,
clublocation text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major numb... |
### Context: CREATE TABLE table_name_17 (
castilian VARCHAR,
italian VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What word would a Castilian speaker use for the Italian word auto(mobile)?
### Query: SELECT castilian FROM table_name_17 WHERE italian = "au... |
### Context: CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE groun... |
### Context: CREATE TABLE table_name_81 (
county VARCHAR,
mascot VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which county has the mascot of Bruins?
### Query: SELECT county FROM table_name_81 WHERE mascot = "bruins" |
### Context: CREATE TABLE Employees (
Id VARCHAR
)
CREATE TABLE ROLES (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List roles that have more than one employee. List the role description and number of employees.
### Query: SELECT ROLES.role_descripti... |
### Context: CREATE TABLE table_name_77 (
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value in 2008 when the value for Tournament is year?
### Query: SELECT 2008 FROM table_name_77 WHERE tournament = "year" |
### 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 flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE... |
### Context: CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text... |
### Context: CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airl... |
### Context: CREATE TABLE table_13143 (
"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.
-- Which country has a Year(s) won in 1964?
### Query: SELECT "Country"... |
### Context: CREATE TABLE table_73311 (
"Regional County Municipality (RCM)" text,
"Population Canada 2011 Census" real,
"Land Area" text,
"Density (pop. per km2)" text,
"Seat of RCM" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the RCM th... |
### Context: CREATE TABLE table_48079 (
"Total Points" real,
"Name" text,
"Career Games" text,
"Position" text,
"Years Played" text,
"Scored 1,500 Points" text,
"Date and Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Career ... |
### Context: CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
C... |
### Context: CREATE TABLE table_56306 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the loss of the Mariners game that had an attendance of 9,065?
... |
### Context: CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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,
I... |
### Context: CREATE TABLE table_52120 (
"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 did the home team score when t... |
### 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_18590048_1 (
platform VARCHAR,
units_sold__in_millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What platform sold 11.18 million units?
### Query: SELECT platform FROM table_18590048_1 WHERE units_sold__in_millions_ = ... |
### Context: CREATE TABLE table_27294107_11 (
semifinals VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the semifinals for the light flyweight event?
### Query: SELECT semifinals FROM table_27294107_11 WHERE event = "Light flyweight" |
### 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_1341973_3 (
candidates VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which candidates ran in the Alabama 6 district?
### Query: SELECT candidates FROM table_1341973_3 WHERE district = "Alabama 6" |
### Context: CREATE TABLE table_17705 (
"Year" real,
"Total Region" real,
"Biggenden" real,
"Eidsvold" real,
"Gayndah" real,
"Monto" real,
"Mundubbera" real,
"Perry" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the monto where ... |
### Context: CREATE TABLE table_6330 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Surface was the match with a Score of 3-6... |
### Context: CREATE TABLE table_202_253 (
id number,
"team" text,
"titles" text,
"runners-up" text,
"third place" text,
"fourth place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name all winners of the caribbean cup
### Query: SELECT "team"... |
### Context: CREATE TABLE vehicles (
vehicle_id number,
vehicle_details text
)
CREATE TABLE staff (
staff_id number,
staff_address_id number,
nickname text,
first_name text,
middle_name text,
last_name text,
date_of_birth time,
date_joined_staff time,
date_left_staff time
)
... |
### Context: CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
charget... |
### Context: CREATE TABLE table_204_799 (
id number,
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text,
"type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- fairground street bridge and confederate avenue brick arch b... |
### Context: CREATE TABLE table_46316 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the match that w... |
### Context: CREATE TABLE table_8740 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents in final" text,
"Score in final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Outcome, when Champio... |
### Context: CREATE TABLE table_name_99 (
laps VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Laps has a Points of lead changes: 13 between 8 drivers?
### Query: SELECT laps FROM table_name_99 WHERE points = "lead changes: 13 between 8... |
### Context: CREATE TABLE table_1304443_2 (
county VARCHAR,
bush_percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the name of the county where 48.3% voted for Bush?
### Query: SELECT county FROM table_1304443_2 WHERE bush_percentage = "48.3%... |
### Context: CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_... |
### Context: CREATE TABLE table_name_62 (
flt_apps VARCHAR,
league_goals VARCHAR,
position VARCHAR,
total_goals VARCHAR,
fa_cup_apps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many FLT appearances for the player with less than 5 total goa... |
### Context: CREATE TABLE table_21294 (
"Game" real,
"Date" text,
"Team" 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 abov... |
### Context: CREATE TABLE table_32448 (
"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.
-- Which venue hosted an away team wit... |
### Context: 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),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE... |
### 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 d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE admi... |
### Context: CREATE TABLE table_204_328 (
id number,
"no." number,
"date" text,
"tournament" text,
"winning score" text,
"margin of\nvictory" text,
"runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of tournamen... |
### Context: CREATE TABLE table_79773 (
"Region/Country" text,
"Local name" text,
"Network" text,
"Dates aired" text,
"Starring" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the star for the Vara network?
### Query: SELECT "Starring" FROM... |
### Context: CREATE TABLE table_11964154_11 (
high_assists VARCHAR,
high_rebounds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the high assists when the high rebounds were from Nick Collison (15)?
### Query: SELECT high_assists FROM table_11964154... |
### 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 microlab... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE bdmzjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH number,
KH text... |
### 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 chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... |
### 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 diagnosi... |
### 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_... |
### Context: CREATE TABLE table_name_17 (
chart_no INTEGER,
title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest chart number for the song Yardbirds aka Roger the Engineer?
### Query: SELECT MAX(chart_no) FROM table_name_17 WHERE title =... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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... |
### Context: CREATE TABLE table_204_423 (
id number,
"name" text,
"location" text,
"city" text,
"listing date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many historic sites were listed before 1965 ?
### Query: SELECT COUNT("name") FROM tab... |
### 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE ... |
### Context: CREATE TABLE table_74037 (
"Player" text,
"Position" text,
"Starting No.#" real,
"D.O.B" text,
"Club" text,
"Height" text,
"Weight" text,
"Games" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player weighs 76kg?
### ... |
### Context: CREATE TABLE table_41384 (
"Publication" text,
"Country" text,
"Accolade" text,
"Year" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which accolade has USA as the country, with a year less than 2009?
### Query: SELECT "Ac... |
### 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_12134 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the Australian Open, in 2007 the result was A, but what was... |
### Context: CREATE TABLE table_53888 (
"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 is the least number of people to attend a game w... |
### Context: CREATE TABLE table_name_12 (
total INTEGER,
gold INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Total, when Gold is less than 0?
### Query: SELECT AVG(total) FROM table_name_12 WHERE gold < 0 |
### Context: CREATE TABLE table_35781 (
"Rank" real,
"Airport" text,
"Metropolitan area" text,
"Passengers" real,
"Carriers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Passengers have Carriers of air canada?
### Query: SELECT "Passengers"... |
### Context: CREATE TABLE table_70300 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the surface for the game t... |
### 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_8611 (
"Peak" text,
"Location" text,
"Height (m)" real,
"Prominence (m)" real,
"Col (m)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest height with a prominence of 2,349?
### Query: SELECT MIN("H... |
### Context: CREATE TABLE table_name_34 (
result VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result on 16 November 2003?
### Query: SELECT result FROM table_name_34 WHERE date = "16 november 2003" |
### 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 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 train (
name VARCHAR,
train_id VARCHAR
)
CREATE TABLE station (
name VARCHAR,
station_id VARCHAR
)
CREATE TABLE train_station (
station_id VARCHAR,
train_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- show the t... |
### Context: CREATE TABLE table_name_47 (
engine VARCHAR,
entrant VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which engine has an Entrant of team lotus, and a Year larger than 1962?
### Query: SELECT engine FROM table_name_47 WHERE entr... |
### 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 PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment t... |
### Context: CREATE TABLE country (
country VARCHAR,
country_id VARCHAR
)
CREATE TABLE city (
country_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which countries have at least 3 cities?
### Query: SELECT T2.country FROM city AS T1 JOIN country AS... |
### Context: CREATE TABLE table_test_8 (
"id" int,
"anemia" bool,
"intra_aortic_balloon_pump_iabp" bool,
"systolic_blood_pressure_sbp" int,
"intravenous_pressors" bool,
"fever" bool,
"hemoglobin_a1c_hba1c" float,
"heart_disease" bool,
"vasopressors" bool,
"renal_disease" bool,
... |
### Context: CREATE TABLE table_name_58 (
catalog VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What catalog has Australia as the country?
### Query: SELECT catalog FROM table_name_58 WHERE country = "australia" |
### Context: CREATE TABLE table_75693 (
"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 average silver for golds over 2, ranks of 1, and bronzes over 0?
#... |
### Context: CREATE TABLE table_20096 (
"Name" text,
"Position" text,
"Number" real,
"School/Club Team" text,
"Season" real,
"Acquisition via" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the school/club for guard
### Query: SELECT "Scho... |
### Context: CREATE TABLE table_25515 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the episode that originally ... |
### Context: CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int... |
### Context: CREATE TABLE table_13425 (
"Name" text,
"Type" text,
"Relation" text,
"Length" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Name has a Year larger than 2001, and a Length of 52 x 20 mins?
### Query: SELECT "Name" F... |
### Context: CREATE TABLE table_2349 (
"Recipient" text,
"First place(s)" real,
"Second place(s)" real,
"Third place(s)" real,
"Total placings(s)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the minimum number of total placings?
### Quer... |
### Context: CREATE TABLE camera_lens (
name VARCHAR,
id VARCHAR
)
CREATE TABLE photos (
camera_lens_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names of the cameras that have taken picture of the most mountains?
### Query: SELECT T2... |
### Context: CREATE TABLE table_40482 (
"Name" text,
"Rank" real,
"Out of" text,
"Source" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the lowest Year that has the Rank smaller the 132, and the Name of biodiversity ric... |
### 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 PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Ba... |
### Context: CREATE TABLE table_name_64 (
total VARCHAR,
concacaf VARCHAR,
mls_cup VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Totals have a CONCACAF of 0, and an MLS Cup smaller than 6?
### Query: SELECT COUNT(total) FROM table_name_64 WHER... |
### Context: CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number... |
### Context: CREATE TABLE table_60860 (
"Year" real,
"Award" text,
"Category" text,
"Nominated Work" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the nominated work after 2006, that was awarded the Drama Desk award and the ... |
### Context: CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.