text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ques... |
### Context: CREATE TABLE table_66764 (
"Rank" real,
"Year" real,
"Name" text,
"Moving from" text,
"Moving to" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The player with a rank of 9, made a move from what football club?
### Query: SELECT "Movin... |
### Context: CREATE TABLE table_261941_1 (
founded VARCHAR,
type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the private/baptist school founded?
### Query: SELECT founded FROM table_261941_1 WHERE type = "Private/Baptist" |
### Context: CREATE TABLE table_name_1 (
location VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the location where justin robbins fought against billy kidd?
### Query: SELECT location FROM table_name_1 WHERE opponent = "billy ki... |
### Context: CREATE TABLE table_160510_1 (
capital VARCHAR,
hanja VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The hanja is for what capital?
### Query: SELECT capital FROM table_160510_1 WHERE hanja = "尙州" |
### 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 table_76384 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the fight located that lasted 1 round against... |
### Context: CREATE TABLE table_62241 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nation when bronze is less than 7, gold is larger than 0, total is ... |
### Context: CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,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 departme... |
### Context: CREATE TABLE table_name_24 (
event VARCHAR,
opponent VARCHAR,
res VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which event is a win by an opponent of Nicolas Smith, with the round marked n/a?
### Query: SELECT event FRO... |
### Context: CREATE TABLE table_name_64 (
byes INTEGER,
against VARCHAR,
wins VARCHAR,
benalla_dfl VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest value for Byes, when Wins is less than 16, when Benalla DFL is 'Swanpool', and when ... |
### Context: CREATE TABLE table_42628 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which average against has a lost l... |
### Context: CREATE TABLE table_27755603_11 (
game VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What numbered game did they play chicago?
### Query: SELECT game FROM table_27755603_11 WHERE team = "Chicago" |
### 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_43268 (
"Date" text,
"Label" text,
"Format" text,
"Country" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Catalog with a Format of lp, a Country of us, a Label of sundazed, and a Date of 2... |
### Context: CREATE TABLE table_34961 (
"Eruptions" text,
"Country" text,
"Location" text,
"Year" real,
"Volcanic Explosivity Index" text,
"Fatalities" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Eruptions have a Location of pacific rin... |
### 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 vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE cost (
... |
### Context: CREATE TABLE table_28035004_1 (
variant VARCHAR,
bodybuilder VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the variant when Alexander was the bodybuilder?
### Query: SELECT variant FROM table_28035004_1 WHERE bodybuilder = "Alexander" |
### Context: CREATE TABLE table_11391 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps are associated with a time of + 1:39.591?
### Query: SELECT "Laps" FROM... |
### Context: CREATE TABLE table_name_77 (
goal_difference INTEGER,
losses VARCHAR,
points VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Goal Difference has 28 Points, and a Club of cd cartagena, more than 15 losses?
### Query: S... |
### Context: CREATE TABLE table_38907 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Visitor on march 16?
### Query: SELECT "Visitor" FROM table_38907 WHERE "Date" = 'mar... |
### Context: CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_ti... |
### Context: CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed in... |
### Context: CREATE TABLE table_name_60 (
date VARCHAR,
opponent VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date has a Opponent of juan m naco, and a Score of 6 2, 4 6, 7 6 (7 3)?
### Query: SELECT date FROM table_name_60 WHERE ... |
### Context: CREATE TABLE table_79402 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Turkey's average Gold entry that also has a Bronze entry that is smaller than 2 and the ... |
### 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 hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
K... |
### Context: CREATE TABLE table_name_81 (
average INTEGER,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Average of bergen, norway?
### Query: SELECT MIN(average) FROM table_name_81 WHERE city = "bergen, norway" |
### Context: CREATE TABLE table_19412902_1 (
clubs VARCHAR,
group_stage VARCHAR,
member_association VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which club in group stage 4 had member association iran
### Query: SELECT clubs FROM table_19412902_1 WHER... |
### Context: CREATE TABLE table_27455 (
"Rank" real,
"Rider" text,
"Sat 29 May" text,
"Mon 31 May" text,
"Tues 1 June" text,
"Wed 2 June" text,
"Thurs 3 June" text,
"Fri 4 June" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If Thursday ... |
### 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
val... |
### Context: CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
val... |
### Context: CREATE TABLE table_28192 (
"Metropolitan ring" text,
"Localities" real,
"Total" real,
"Jews and others 1" real,
"Thereof: Jews" real,
"Arabs" real,
"Population density (per km\u00b2)" text,
"Annual Population growth rate" text
)
-- Using valid SQLite, answer the following ... |
### Context: CREATE TABLE table_name_49 (
starts INTEGER,
year VARCHAR,
avg_start VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the highest number of starts in 2007 when the average start was over 17.6?
### Query: SELECT MAX(starts) FROM table... |
### 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 jybgb_jyjgzbb (
JYZBLSH number,
YLJGDM text,
jyjgzbb_id number
)
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,
... |
### 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 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 Votes (
... |
### 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_12752 (
"Season" real,
"Winners" text,
"Total wins" real,
"Runners-up" text,
"Third-place" text,
"Number of clubs" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the number of clubs in seasons b... |
### Context: CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_P... |
### Context: CREATE TABLE table_name_66 (
opponent VARCHAR,
arena VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Opponent at the Honda Center on March 29?
### Query: SELECT opponent FROM table_name_66 WHERE arena = "honda cente... |
### Context: CREATE TABLE table_name_19 (
against INTEGER,
draw VARCHAR,
played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total against with 1 draw and less than 8 played?
### Query: SELECT SUM(against) FROM table_name_19 WHERE draw = 1... |
### Context: CREATE TABLE table_32706 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent had an attendance of 40,070?
### Query: SELECT "Opponent... |
### Context: CREATE TABLE table_69694 (
"Year" real,
"Winners" text,
"2nd place" text,
"3rd place" text,
"4th place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 3rd place with winners of weymouth wildcats and 4th place of boston barracud... |
### Context: CREATE TABLE table_1341865_40 (
district VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What district is incumbent albert w. johnson from?
### Query: SELECT district FROM table_1341865_40 WHERE incumbent = "Albert W. Johnson" |
### Context: CREATE TABLE table_74970 (
"Condition" text,
"Prothrombin time" text,
"Partial thromboplastin time" text,
"Bleeding time" text,
"Platelet count" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Condition has a Bleeding time of unaff... |
### Context: CREATE TABLE table_test_29 (
"id" int,
"bleeding" int,
"left_ventricular_ejection_fraction_lvef" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"heart_disease" bool,
"trauma" bool,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"hemorrh... |
### Context: CREATE TABLE table_name_50 (
member VARCHAR,
electorate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which member has an Electorate of kennedy?
### Query: SELECT member FROM table_name_50 WHERE electorate = "kennedy" |
### 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 Lives_in (
stuid INTEGER,
dormid INTEGER,
room_number INTEGER
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Student (
... |
### 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 Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ques... |
### Context: CREATE TABLE table_19479 (
"Date Released" text,
"Polling institute" text,
"Socialist" text,
"Social Democratic" text,
"Peoples Party" text,
"Green-Communist" text,
"Left Bloc" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provide... |
### Context: CREATE TABLE table_39471 (
"Name" text,
"Type" text,
"Year Built" real,
"Where Built" text,
"Initial Owners" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was something built earlier than 1858?
### Query: SELECT "Where Built" FR... |
### Context: CREATE TABLE table_39448 (
"PRINT NAME" text,
"NICKNAME" text,
"NUMBER OF COLORS" text,
"FRAMED SIZE" text,
"DATE COMPLETED" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the print name in 07/87?
### Query: SELECT "PRINT NAME... |
### Context: CREATE TABLE table_name_4 (
date VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the Score of 195 (-21) happen?
### Query: SELECT date FROM table_name_4 WHERE score = "195 (-21)" |
### 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 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_29271 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many viewer data were gi... |
### Context: CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
-- Using valid SQLite, answer the following questions... |
### Context: CREATE TABLE table_204_486 (
id number,
"name" text,
"season(s)" text,
"position(s)" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tell me the number of left fielders on the list .
### Query: SELECT COUNT(*) FROM table_2... |
### Context: CREATE TABLE table_name_20 (
loss VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the loss from the coyotes as opponents?
### Query: SELECT loss FROM table_name_20 WHERE opponent = "coyotes" |
### Context: CREATE TABLE table_name_30 (
position VARCHAR,
year VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the position of Greg Fredlund in years after 2008?
### Query: SELECT position FROM table_name_30 WHERE year > 2008 A... |
### Context: CREATE TABLE table_name_90 (
mountain_range VARCHAR,
region VARCHAR,
mountain_peak VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the mountain range when the region is british columbia and mountain pea is mount edziza?
### Query: SE... |
### Context: CREATE TABLE table_51672 (
"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 Home team score for the... |
### Context: CREATE TABLE table_name_50 (
number VARCHAR,
language VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many speak german?
### Query: SELECT number FROM table_name_50 WHERE language = "german" |
### Context: CREATE TABLE table_name_97 (
to_par VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which To par has a Score of 70-73-80-68=291?
### Query: SELECT to_par FROM table_name_97 WHERE score = 70 - 73 - 80 - 68 = 291 |
### Context: CREATE TABLE table_name_58 (
score VARCHAR,
opponent VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the score for opponent @ Tigers on July 24?
### Query: SELECT score FROM table_name_58 WHERE opponent = "@ tigers" AND ... |
### Context: CREATE TABLE table_13086 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Number of electorates (2009) h... |
### Context: CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
val... |
### Context: CREATE TABLE table_name_74 (
established VARCHAR,
institution VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year established of North Jersey Phoenix?
### Query: SELECT established FROM table_name_74 WHERE institution = "north jerse... |
### Context: CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time... |
### Context: CREATE TABLE table_name_74 (
attendance INTEGER,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance for the game on August 16?
### Query: SELECT SUM(attendance) FROM table_name_74 WHERE date = "august 16" |
### Context: CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE instructor (
... |
### Context: CREATE TABLE table_4051 (
"Year" real,
"Host Nation(s)" text,
"Final Venue" text,
"Winner" text,
"Result" text,
"Runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the final venue whene England hasted the competition... |
### 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_19 (
mascot VARCHAR,
year_joined VARCHAR,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the mascot for moores hill that joined later than 1952?
### Query: SELECT mascot FROM table_name_19 WHERE year_j... |
### Context: CREATE TABLE department (
dept_code text,
dept_name text,
school_code text,
emp_num number,
dept_address text,
dept_extension text
)
CREATE TABLE professor (
emp_num number,
dept_code text,
prof_office text,
prof_extension text,
prof_high_degree text
)
CREATE T... |
### Context: CREATE TABLE table_203_345 (
id number,
"name" text,
"party" text,
"took office" number,
"left office" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when did the first provincial representative for gilbert plains take office ?
### Q... |
### Context: CREATE TABLE table_2160 (
"Election" text,
"# of candidates nominated" real,
"# of seats won" real,
"# of total votes" real,
"% of popular vote" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most number of t... |
### Context: CREATE TABLE table_11413 (
"Name" text,
"Builder" text,
"Type" text,
"Date" real,
"Works number" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total work number of Gowrie after 1875?
### Query: SELECT SUM("Works number") F... |
### Context: CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE universi... |
### Context: CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
ch... |
### Context: CREATE TABLE table_78930 (
"Elector" text,
"Place of birth" text,
"Cardinalatial title" text,
"Elevated" text,
"Elevator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Elector with a Cardinalatial title of Priest of S. Sabin... |
### Context: CREATE TABLE election (
Election_ID int,
Representative_ID int,
Date text,
Votes real,
Vote_Percent real,
Seats real,
Place real
)
CREATE TABLE representative (
Representative_ID int,
Name text,
State text,
Party text,
Lifespan text
)
-- Using valid SQLite... |
### Context: CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE... |
### Context: CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 ... |
### Context: CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
U... |
### 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 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
val... |
### Context: CREATE TABLE table_31785 (
"Year" text,
"Men's Singles" text,
"Women's Singles" text,
"Men's Doubles" text,
"Women's Doubles" text,
"Mixed Doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played men's doubles in 2012?
##... |
### Context: CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time... |
### Context: CREATE TABLE table_name_67 (
year INTEGER,
event VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the highest Year for the Venue of Santiago De Chile and the Event of 800 m?
### Query: SELECT MAX(year) FROM table_name_67... |
### Context: CREATE TABLE table_16812 (
"Series" real,
"Year" text,
"Winner" text,
"Runner-up" text,
"Third place" text,
"Fourth place" text,
"Fifth place" text,
"Sixth place" text,
"Host" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... |
### Context: CREATE TABLE table_name_8 (
school VARCHAR,
year_left VARCHAR,
mascot VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which School has a Year Left of 1966, and a Mascot of indians?
### Query: SELECT school FROM table_name_8 WHERE year_left =... |
### Context: CREATE TABLE table_61328 (
"Outcome" text,
"Date" real,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which Surface has Oppo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.