text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE departments (
department_id number,
department_name text,
manager_id number,
location_id number
)
CREATE TABLE job_history (
employee_id number,
start_date time,
end_date time,
job_id text,
department_id number
)
CREATE TABLE countries (
country_id tex... |
### Context: CREATE TABLE table_name_28 (
lifespan VARCHAR,
state VARCHAR,
representative VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lifespan of Representative Harry P. O'neill from the state of Pennsylvania?
### Query: SELECT lifespan ... |
### Context: CREATE TABLE table_24446718_3 (
awardee_s_ VARCHAR,
name_of_award VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the awardees for best special effects
### Query: SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_award = "Best Special E... |
### Context: CREATE TABLE table_name_91 (
match VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What match had 8 points?
### Query: SELECT match FROM table_name_91 WHERE points = "8" |
### Context: CREATE TABLE table_176524_2 (
population INTEGER,
area_km_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the minimum population of the parish with a 750.51 km area?
### Query: SELECT MIN(population) FROM table_176524_2 WHERE area_km_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 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 Assessment_Notes (
notes_id INTEGER,
student_id INTEGER,
teacher_id INTEGER,
date_of_notes DATETIME,
text_of_notes VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Ref_Address_Types (
address_type_code VARCHAR(15),
address_type_description VARCHAR(80)
)
... |
### Context: CREATE TABLE table_name_82 (
entrant VARCHAR,
year VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Entrant older than 1950 has points smaller than 7?
### Query: SELECT entrant FROM table_name_82 WHERE year > 1950 AND poi... |
### Context: CREATE TABLE table_22910 (
"Carrier" text,
"Standard" text,
"Frequency" text,
"Connection speed" text,
"Launch date (dd.mm.yyyy)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the launch date is 14.09.2005, and the frequency is 90... |
### Context: CREATE TABLE table_name_66 (
circuit VARCHAR,
winning_driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which circuit did Michael Andretti win?
### Query: SELECT circuit FROM table_name_66 WHERE winning_driver = "michael andretti" |
### Context: CREATE TABLE ENROLLED_IN (
Grade VARCHAR,
StuID VARCHAR
)
CREATE TABLE STUDENT (
LName VARCHAR,
StuID VARCHAR
)
CREATE TABLE GRADECONVERSION (
gradepoint INTEGER,
lettergrade VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find ... |
### Context: CREATE TABLE table_name_75 (
canada_singles VARCHAR,
year VARCHAR,
us_ac VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Canada singles in 1979 with a US A.C. of 24?
### Query: SELECT canada_singles FROM table_name_75 WHERE year ... |
### Context: CREATE TABLE table_37762 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins had less than 91 points in 25th rank?
### Query: SELECT "Wins" FROM ... |
### 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_6 (
floors INTEGER,
name VARCHAR,
rank VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average amount of floors of the building that is ranked larger than 30, a year prior to 1977 and an a... |
### Context: CREATE TABLE routes (
rid number,
dst_apid number,
dst_ap text,
src_apid number,
src_ap text,
alid number,
airline text,
codeshare text
)
CREATE TABLE airlines (
alid number,
name text,
iata text,
icao text,
callsign text,
country text,
active te... |
### Context: CREATE TABLE table_64645 (
"Name" text,
"Nickname" text,
"Location" text,
"Home ground(s)" text,
"Coach" text,
"Captain" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Name has the Location of Bayswater?
### Query: SELECT "Nam... |
### Context: CREATE TABLE table_54018 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game in which the home team was the Grizzlies... |
### Context: CREATE TABLE table_5486 (
"Frequency" real,
"Callsign" text,
"Brand" text,
"Format" text,
"City of License" text,
"Website" text,
"Webcast" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Tejano webcast has a callsign of KBD... |
### Context: CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
ha... |
### Context: CREATE TABLE table_203_135 (
id number,
"institution" text,
"location" text,
"founded" number,
"type" text,
"enrollment" number,
"joined" number,
"nickname" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the last sch... |
### Context: CREATE TABLE table_name_84 (
total INTEGER,
gold VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What average Total has a Gold award of 13 and a Bronze award less than 13?
### Query: SELECT AVG(total) FROM table_name_84 WHERE... |
### Context: CREATE TABLE ftxmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM tex... |
### Context: CREATE TABLE table_60889 (
"Team" text,
"Club home city" text,
"2006\u201307 Season" text,
"Stadium" text,
"Stadium capacity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Stadium, when Club Home City is 'Pe ', and when 2006-07... |
### Context: CREATE TABLE table_name_99 (
year INTEGER,
entrant VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did Austria-Marlboro BRM get more than 0 points?
### Query: SELECT AVG(year) FROM table_name_99 WHERE entrant = "aus... |
### Context: CREATE TABLE table_name_5 (
total VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total appearances did Grant Brebner have?
### Query: SELECT total FROM table_name_5 WHERE name = "grant brebner" |
### Context: CREATE TABLE table_34099 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average February that has 56 as the game?
### Query: SELECT AVG("February") FRO... |
### Context: CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType 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_name_47 (
avg_speed VARCHAR,
winning_driver VARCHAR,
make VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average speed of Tony Stewart's winning Chevrolet Impala?
### Query: SELECT avg_speed FROM table_name_4... |
### Context: CREATE TABLE table_66167 (
"Rank:" real,
"Premier:" text,
"Party:" text,
"Assumed Office:" text,
"Left Office:" text,
"TOTAL Time in Office:" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total time in office when the a... |
### Context: CREATE TABLE table_48548 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for the Tie no. 12?
### Query: SELECT "Score" FROM table_48548 WHERE "T... |
### Context: CREATE TABLE table_name_15 (
method VARCHAR,
round INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which method was used in a round greater than 3?
### Query: SELECT method FROM table_name_15 WHERE round > 3 |
### Context: CREATE TABLE table_name_63 (
wins INTEGER,
top_10 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total wins are associated with events with 1 top-10?
### Query: SELECT SUM(wins) FROM table_name_63 WHERE top_10 = 1 |
### 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 Customers (
Customer_ID VARCHAR(100),
Address_ID INTEGER,
Customer_Name VARCHAR(255),
Customer_Phone VARCHAR(255),
Customer_Email_Address VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Products (
Product_ID VARCHAR(100),
Product_Name VARCHAR(255),
... |
### Context: CREATE TABLE table_58384 (
"Ship" text,
"Pennant number" text,
"Laid down" text,
"Launched" text,
"Completed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is the completed date of the destroyer with a pennant number h59?
### Que... |
### 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 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,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC tex... |
### Context: CREATE TABLE table_70272 (
"Name" text,
"League" real,
"Play-offs" real,
"FA Cup" real,
"League Cup" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total number of League Cup with a Play-off larger than 2, a... |
### Context: CREATE TABLE table_1057262_1 (
commodity VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the minimum amount for wool for 2001-02?
### Query: SELECT MIN(2001 AS _02) FROM table_1057262_1 WHERE commodity = "Wool" |
### Context: CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
... |
### Context: CREATE TABLE table_name_99 (
constituency_number VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which constituency number has a name of Timarni?
### Query: SELECT constituency_number FROM table_name_99 WHERE name = "timarni" |
### 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_name_51 (
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the place of the player with a 72-70-67=209 score?
### Query: SELECT place FROM table_name_51 WHERE score = 72 - 70 - 67 = 209 |
### Context: CREATE TABLE table_name_69 (
name VARCHAR,
round VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the ot position player with a round greater than 4?
### Query: SELECT name FROM table_name_69 WHERE round ... |
### 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_58 (
gold_coast VARCHAR,
auckland VARCHAR,
adelaide VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Gold Coast has Auckland cancelled, and Adelaide yes?
### Query: SELECT gold_coast FROM table_name_58 WHERE auckl... |
### Context: CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)... |
### Context: CREATE TABLE table_20857 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race time" text,
"Average speed (mph)" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables ... |
### Context: CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
reli... |
### Context: CREATE TABLE table_name_7 (
points INTEGER,
chassis VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For a year earlier than 1991 and a reynard 91d chassis, what's the highest points?
### Query: SELECT MAX(points) FROM table_nam... |
### Context: CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayNa... |
### Context: CREATE TABLE table_name_1 (
chart_positions VARCHAR,
format VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What chart positions did the album reach when ep was the format?
### Query: SELECT chart_positions FROM table_name_1 WHERE format = "ep" |
### Context: CREATE TABLE table_name_63 (
college VARCHAR,
pick__number VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which College has Player Mark Brown and a Pick # greater than 195?
### Query: SELECT college FROM table_name_63 WHERE ... |
### Context: CREATE TABLE table_name_6 (
court_rank VARCHAR,
lineage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Court Rank of Son of Norihiro's Lineage?
### Query: SELECT court_rank FROM table_name_6 WHERE lineage = "son of norihiro" |
### Context: CREATE TABLE On_Call (
Nurse INTEGER,
BlockFloor INTEGER,
BlockCode INTEGER,
OnCallStart DATETIME,
OnCallEnd DATETIME
)
CREATE TABLE Affiliated_With (
Physician INTEGER,
Department INTEGER,
PrimaryAffiliation BOOLEAN
)
CREATE TABLE Medication (
Code INTEGER,
Name V... |
### Context: CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE state (
state_code text,
state_name tex... |
### Context: CREATE TABLE table_name_74 (
pick__number VARCHAR,
cfl_team VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pick number for Peter Moore of the Montreal Alouettes?
### Query: SELECT pick__number FROM table_name_74 ... |
### Context: CREATE TABLE table_32941 (
"Region" text,
"Year" real,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What catalog came out after 2000?
### Query: SELECT "Catalog" FROM table_32941 WHERE "Year" > ... |
### 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 inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icusta... |
### Context: CREATE TABLE table_name_98 (
pick VARCHAR,
nationality VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Pick has a Nationality of canada, and a Round of 5?
### Query: SELECT pick FROM table_name_98 WHERE nationality = "ca... |
### Context: CREATE TABLE table_17765264_1 (
record VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was their record when the attendance at the game was 14489?
### Query: SELECT record FROM table_17765264_1 WHERE attendance = 14489 |
### Context: CREATE TABLE table_name_62 (
percentage_of_votes VARCHAR,
number_of_votes_received VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of the vote was 1,255,153 of received votes?
### Query: SELECT percentage_of_votes FROM table_name... |
### Context: CREATE TABLE DEPARTMENT (
DNO VARCHAR,
DName VARCHAR
)
CREATE TABLE MEMBER_OF (
DNO VARCHAR,
FacID VARCHAR
)
CREATE TABLE FACULTY (
Lname VARCHAR,
FacID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the last names of facu... |
### Context: CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE airport (
airport_code ... |
### Context: CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term... |
### Context: CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit i... |
### Context: CREATE TABLE table_47424 (
"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.
-- Which tournaments was Ryan Palmer in as a runner-up?
### Query: SE... |
### Context: CREATE TABLE table_7028 (
"Rank" real,
"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 lowest Rank with more than 0 bronze, 8 silver, and a total of 19, wi... |
### Context: CREATE TABLE table_16874 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position did Lamar Green play?
### Query: SELE... |
### Context: CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State T... |
### Context: CREATE TABLE table_name_46 (
authority VARCHAR,
roll VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the authority for roll of 96?
### Query: SELECT authority FROM table_name_46 WHERE roll = 96 |
### Context: CREATE TABLE table_39271 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Name of draft Pick #10?
### Query: SELECT "Name" FROM table_... |
### 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POS... |
### Context: CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
... |
### Context: CREATE TABLE table_19418696_3 (
attempts INTEGER,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many attempts for Bobby Layne?
### Query: SELECT MIN(attempts) FROM table_19418696_3 WHERE name = "Bobby Layne" |
### 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 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 table_69056 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who lost when the mariners played on September 12?
### Query: SELECT "Loss" FROM table_69056 WH... |
### Context: CREATE TABLE table_22614 (
"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 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_78959 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the tables pr... |
### Context: CREATE TABLE table_75835 (
"Episode #" real,
"Title" text,
"Air Date" text,
"Rating" real,
"Share" real,
"18\u201349" real,
"Viewers" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Air Date that has ... |
### 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_23157997_13 (
mountains_classification VARCHAR,
youth_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Mountains Classifications were in the race with Mike Northey as Youth Classification?
### Query: SEL... |
### Context: CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVIN... |
### 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 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_72728 (
"Series #" real,
"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.
-- When did season 9 originally air?
### Query: SEL... |
### Context: CREATE TABLE table_67232 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponents for 24 july 2011
### Query: SELECT "Opponents" FROM... |
### Context: CREATE TABLE zyjybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH number,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JY... |
### Context: CREATE TABLE table_4808 (
"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.
-- Who is the away side when north melb... |
### 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_16279520_1 (
length VARCHAR,
release VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the length time of the 3.5 release?
### Query: SELECT length FROM table_16279520_1 WHERE release = "3.5" |
### Context: CREATE TABLE table_name_45 (
g27_racing_wheel VARCHAR,
g25_racing_wheel VARCHAR,
driving_force_ex VARCHAR,
driving_force_pro VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Driving Force EX of no, and a Driving Force Pro of no, and a G25 ... |
### Context: CREATE TABLE table_6339 (
"Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Winning constructor has a Winning driver of felice ... |
### Context: CREATE TABLE table_78289 (
"Disaster" text,
"Year" text,
"Countries Affected" text,
"Scale of Disaster" text,
"People Assisted" text,
"Nature of Help" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the scale of disaster for ... |
### Context: CREATE TABLE table_name_26 (
date VARCHAR,
attendance VARCHAR,
home VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was date was the attendance larger than 875 against Platense?
### Query: SELECT date FROM table_name_26 WHERE attendance... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.