text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Please give me... |
### Context: CREATE TABLE table_name_31 (
top_scorer VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the top scorer in the 1890-91 season?
### Query: SELECT top_scorer FROM table_name_31 WHERE season = "1890-91" |
### Context: CREATE TABLE table_train_56 (
"id" int,
"organ_transplantation" bool,
"severe_sepsis" bool,
"immune_suppression" bool,
"autoimmune_disease" bool,
"hematopoietic" bool,
"chronic_infectious" bool,
"steroid_therapy" bool,
"sepsis" bool,
"systemic_inflammatory_response" ... |
### Context: CREATE TABLE table_19722233_5 (
blocks INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the lowest number of blocks
### Query: SELECT MIN(blocks) FROM table_19722233_5 |
### Context: CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (... |
### Context: CREATE TABLE table_77039 (
"Year" text,
"Total matches" real,
"Total W-L-H" text,
"Points won" real,
"Points %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the lowest Points won that has the Total matches of 4, and th... |
### Context: CREATE TABLE table_27940569_1 (
make VARCHAR,
sponsor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What car make was sponsored by Aflac?
### Query: SELECT make FROM table_27940569_1 WHERE sponsor = "Aflac" |
### 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 Invoices (
Invoice_ID INTEGER,
Order_ID INTEGER,
payment_method_code CHAR(15),
Product_ID INTEGER,
Order_Quantity VARCHAR(288),
Other_Item_Details VARCHAR(255),
Order_Item_ID INTEGER
)
CREATE TABLE Invoice_Items (
Invoice_Item_ID INTEGER,
Invoice_ID INTEGER... |
### Context: CREATE TABLE table_34167 (
"Team" text,
"City, Region" text,
"Arena" text,
"Colours" text,
"Head coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the colours of the team with benedikt gu mundsson as head coach?
### Query:... |
### Context: CREATE TABLE table_15001957_1 (
mixed_doubles VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many mixed doubles were won in 1996?
### Query: SELECT COUNT(mixed_doubles) FROM table_15001957_1 WHERE year = 1996 |
### 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 airports (
apid number,
name text,
city text,
country text,
x number,
y number,
elevation numbe... |
### Context: CREATE TABLE table_69689 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Pick # smaller than 46, and a Round of 5, and a Position of defensive tac... |
### Context: CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admissi... |
### Context: CREATE TABLE table_1527 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wha... |
### Context: CREATE TABLE table_39177 (
"Team" text,
"Copa Libertadores 1999" text,
"Copa Mercosur 1999" text,
"Copa CONMEBOL 1999" text,
"Intercontinental Cup 1999" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Copa Conmebol 1999 resul... |
### Context: CREATE TABLE table_46539 (
"Name" text,
"Country" text,
"Loan Club" text,
"Started" text,
"Ended" text,
"Start Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the loan club named dennehy?
### Query: SELECT "Loan Club... |
### Context: CREATE TABLE table_7213 (
"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 amount of lost had an against... |
### Context: CREATE TABLE table_25505246_7 (
result VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the results when Hanne Skak Jensen faced Andreja Klepa as opponent?
### Query: SELECT result FROM table_25505246_7 WHERE opponent ... |
### Context: CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE ... |
### Context: CREATE TABLE table_32411 (
"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 team was the away ream when th... |
### 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_name_51 (
chassis VARCHAR,
points VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 1961, what was the Chassis when the points were lower than 6?
### Query: SELECT chassis FROM table_name_51 WHERE points < 6... |
### Context: CREATE TABLE table_name_88 (
home_team VARCHAR,
tie_no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has home game with tie of 4?
### Query: SELECT home_team FROM table_name_88 WHERE tie_no = "4" |
### Context: CREATE TABLE table_15254 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest year team tyrrell earned more than 14 points?
### Query: SELECT MAX("Yea... |
### Context: CREATE TABLE table_49180 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of points for a position over 5 with more than 2 draws?
### ... |
### Context: CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
... |
### Context: CREATE TABLE 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 medicine_enzyme_interaction (
enzyme_id int,
medicine_id int,
interaction_type text
)
CREATE TABLE medicine (
id int,
name text,
Trade_Name text,
FDA_approved text
)
CREATE TABLE enzyme (
id int,
name text,
Location text,
Product text,
Chromoso... |
### 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 party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge bool
)
CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age text
)
CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
N... |
### Context: CREATE TABLE table_69788 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the roll with an area of Waikaka?
### Q... |
### Context: CREATE TABLE table_name_66 (
draws INTEGER,
byes VARCHAR,
ballarat_fl VARCHAR,
losses VARCHAR,
against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest draws that have losses greater than 0, an against less than 1728... |
### Context: CREATE TABLE table_name_97 (
silver INTEGER,
total INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Silver with a Total that is smaller than 1?
### Query: SELECT AVG(silver) FROM table_name_97 WHERE total < 1 |
### Context: CREATE TABLE table_name_56 (
home VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played the home team during the game on January 6?
### Query: SELECT home FROM table_name_56 WHERE date = "january 6" |
### Context: CREATE TABLE table_29764 (
"Stadium" text,
"City" text,
"Capacity" real,
"Matches played" real,
"Overall attendance" real,
"Average attendance per match" real,
"Average attendance as % of Capacity" text,
"Overall goals scored" real,
"Average goals scored per match" text,... |
### Context: CREATE TABLE table_56223 (
"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 score for Carlton... |
### Context: CREATE TABLE table_name_41 (
apps VARCHAR,
country VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many apps does Uzbekistan have in 2003?
### Query: SELECT apps FROM table_name_41 WHERE country = "uzbekistan" AND season ... |
### Context: CREATE TABLE table_79194 (
"Rank" text,
"Capacity" real,
"City" text,
"State" text,
"Year opened" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest capacity for 1903?
### Query: SELECT MIN("Capacity") FROM table_79194 W... |
### Context: CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admissi... |
### Context: CREATE TABLE table_name_2 (
gold VARCHAR,
bronze VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the total number of gold for bronze more than 0 and total more than 100
### Query: SELECT COUNT(gold) FROM table_name_2 WH... |
### Context: CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE transfers... |
### Context: CREATE TABLE table_name_39 (
gauge VARCHAR,
locomotive VARCHAR,
status VARCHAR,
owner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Gauge of Locomotive G534 Owned by Aurizon which has a Status of Operational?
### Query: SEL... |
### Context: CREATE TABLE table_204_338 (
id number,
"location" text,
"coordinates" text,
"type" text,
"built" text,
"details" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year built is at the top ?
### Query: SELECT "built" FROM table_2... |
### Context: CREATE TABLE table_name_37 (
number VARCHAR,
year VARCHAR,
bb_ VARCHAR,
hbp VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The year of 1985 which has a BB +HBP of 39 has what Number listed?
### Query: SELECT number FROM table_name_37 WH... |
### Context: CREATE TABLE table_name_67 (
lane VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which lane did the swimmer with a time of 1:58.44 swim?
### Query: SELECT COUNT(lane) FROM table_name_67 WHERE time = "1:58.44" |
### 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 table_29583818_3 (
couple VARCHAR,
total_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times is the total points 128.0?
### Query: SELECT COUNT(couple) FROM table_29583818_3 WHERE total_points = "128.0" |
### Context: CREATE TABLE country (
Country_ID int,
Name text,
Population int,
Area int,
Languages text
)
CREATE TABLE roller_coaster (
Roller_Coaster_ID int,
Name text,
Park text,
Country_ID int,
Length real,
Height real,
Speed text,
Opened text,
Status text
)
... |
### Context: CREATE TABLE table_name_15 (
military_deaths VARCHAR,
military_and_or_civilian_wounded VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many military deaths were there when there were 1,200+ military and/or civilian wounded?
### Query: SELECT... |
### Context: CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_... |
### 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 admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age numb... |
### Context: CREATE TABLE table_name_34 (
avg VARCHAR,
yards VARCHAR,
car VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the amount of Avg that has Yards more 265 and a Car more 105?
### Query: SELECT COUNT(avg) FROM table_name_34 WHERE yards > ... |
### Context: CREATE TABLE table_69727 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the loss for the angels opponent
### Query: SELECT "Loss" FROM tabl... |
### Context: CREATE TABLE table_12948 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent in the mallorca 2, spain tournament?
### Query: SELECT "Opponent" F... |
### 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_204_876 (
id number,
"ecclesiastical jurisdictions" text,
"latin name" text,
"type" text,
"rite" text,
"ecclesiastical province" text,
"established" text,
"area (km2)" number
)
-- Using valid SQLite, answer the following questions for the tables provided... |
### Context: CREATE TABLE table_19250 (
"Year" real,
"Boys singles" text,
"Girls singles" text,
"Boys doubles" text,
"Girls doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When mixed doubles is danny bawa chrisnanta... |
### 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_t... |
### Context: CREATE TABLE table_9767 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game played after week 15?
### Query: SELECT "Date" FROM table_976... |
### Context: CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE PostFeedback (
Id number,
... |
### Context: CREATE TABLE table_34687 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What nationality has a higher round than 8?
### Query: SELE... |
### Context: CREATE TABLE table_name_68 (
goal_ratio INTEGER,
league VARCHAR,
fa_cup VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Highest Goal Ratio with a League of 88 and an FA Cup less than 7?
### Query: SELECT MAX(goal_ratio) FROM table... |
### Context: CREATE TABLE table_name_4 (
series VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which series was on May 16?
### Query: SELECT series FROM table_name_4 WHERE date = "may 16" |
### Context: CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
JCZBJGDX text,
JCZBJGDL number,
JCZBJGDW text,
SBBM text,
... |
### Context: CREATE TABLE table_name_17 (
premiers VARCHAR,
details VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which premier team played the 1951 NSWRFL Grand Final?
### Query: SELECT premiers FROM table_name_17 WHERE details = "1951 nswrfl grand final" |
### Context: 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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER va... |
### Context: CREATE TABLE table_name_65 (
location VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest 1st prize for florida tournaments and a Score of 200 (-16)?
### Query: SELECT MIN(1 AS st_prize__) AS $__ FROM table_name_65 ... |
### Context: CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2... |
### Context: CREATE TABLE table_46311 (
"from" text,
"aircraft" text,
"carrier" text,
"air wing" text,
"tail code" text,
"area" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which carrier was deployed on 18 July 1968?
### Query: SELECT "carrie... |
### Context: CREATE TABLE table_name_53 (
opponent VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has a Date of september 28, 1951?
### Query: SELECT opponent FROM table_name_53 WHERE date = "september 28, 1951" |
### Context: CREATE TABLE table_name_32 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2009 value with A in 2012 and q2 in 2011?
### Query: SELECT 2009 FROM table_name_32 WHERE 2012 = "a" AND 2011 = "q2" |
### Context: CREATE TABLE table_23801721_1 (
market_share VARCHAR,
technology VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the market share of the operator whose technology is CDMA EVDO GSM EDGE HSPA+?
### Query: SELECT market_share FROM table_23... |
### Context: CREATE TABLE table_name_74 (
date VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date, when the Opponent is Gisela Dulko?
### Query: SELECT date FROM table_name_74 WHERE opponent = "gisela dulko" |
### 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_name_39 (
rank INTEGER,
gold VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank for a nation with 26 golds and over 17 silvers?
### Query: SELECT MAX(rank) FROM table_name_39 WHERE gol... |
### Context: CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)... |
### Context: CREATE TABLE invoice_lines (
id INTEGER,
invoice_id INTEGER,
track_id INTEGER,
unit_price NUMERIC(10,2),
quantity INTEGER
)
CREATE TABLE playlist_tracks (
playlist_id INTEGER,
track_id INTEGER
)
CREATE TABLE media_types (
id INTEGER,
name VARCHAR(120)
)
CREATE TABLE e... |
### Context: CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_t... |
### Context: CREATE TABLE 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 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_14257 (
"Model number" text,
"sSpec number" text,
"Cores" real,
"Frequency" text,
"Turbo" text,
"L2 cache" text,
"L3 cache" text,
"GPU model" text,
"GPU frequency" text,
"Socket" text,
"I/O bus" text,
"Release date" text,
"Part number(s... |
### Context: CREATE TABLE table_42359 (
"Year" real,
"Category" text,
"Champions" text,
"Runners-up" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Category after 1991 with a Score of 7-5, 6-7, 6-2?
### Query: SELECT "Cat... |
### Context: CREATE TABLE table_2201724_1 (
year VARCHAR,
score_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the total number of years that have a score of 3 6, 4 6, 2 6.
### Query: SELECT COUNT(year) FROM table_2201724_1 WHERE score_in_... |
### Context: CREATE TABLE table_14916 (
"Season" text,
"Series" text,
"Races" text,
"Wins" text,
"Podiums" text,
"Points" text,
"Final Placing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Season has 0 Podiums, 1 Race, and 0 Points?
... |
### Context: CREATE TABLE table_16075179_6 (
date_of_appointment VARCHAR,
outgoing_manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the date of appointment for the manager replacing Wim Jansen?
### Query: SELECT date_of_appointment FROM table... |
### Context: CREATE TABLE table_1134091_4 (
date_successor_seated VARCHAR,
vacator VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the date successor seated when the vacator was charles e. chamberlain (r)?
### Query: SELECT date_successor_seated FRO... |
### Context: CREATE TABLE table_74840 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Format has a Date of may 24, 2008?
### Query: SELECT "Format" FROM table_74840 WHERE "Da... |
### Context: CREATE TABLE table_78061 (
"Track" real,
"Recorded" text,
"Catalogue" text,
"Release Date" text,
"Song Title" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the time for 6/6/77 release date and song title of way... |
### Context: CREATE TABLE table_name_53 (
silver VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won Silver in 2000?
### Query: SELECT silver FROM table_name_53 WHERE year = 2000 |
### Context: CREATE TABLE table_203_214 (
id number,
"member" text,
"party" text,
"electorate" text,
"state" text,
"first elected" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- did tom burke run as country or alp party ?
### Query: SELECT "par... |
### Context: CREATE TABLE table_name_65 (
score VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Scott Verplank's score?
### Query: SELECT score FROM table_name_65 WHERE player = "scott verplank" |
### 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 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 procedures (
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,
rel... |
### 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 bdmzjzjlb (
HXPLC nu... |
### Context: CREATE TABLE table_name_76 (
venue VARCHAR,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue has a Away team of hawthorn?
### Query: SELECT venue FROM table_name_76 WHERE away_team = "hawthorn" |
### Context: CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE Apartments (
apt_i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.