text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_49377 (
"Result" text,
"Race" text,
"Distance" text,
"Weight" real,
"Winner or 2nd" text,
"Pos'n" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the ajc craven plate (wfa) race?
### Query: S... |
### 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_81 (
result VARCHAR,
score VARCHAR,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the match in Penrith that featured a score of 48-12?
### Query: SELECT result FROM table_name_81 WHERE sc... |
### Context: CREATE TABLE table_12592074_1 (
namesake VARCHAR,
commissioned_or_completed_ VARCHAR,
_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the namesake of the ship that was commissioned or completed(*) 16 april 1864?
### Query: SELECT n... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE bdmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTM... |
### Context: CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug t... |
### Context: CREATE TABLE table_name_49 (
earnings___ INTEGER,
wins VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest earnings of Lee Trevino who has 28 wins?
### Query: SELECT MIN(earnings___) AS $__ FROM table_name_49 W... |
### Context: CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_locatio... |
### Context: CREATE TABLE table_name_69 (
owner VARCHAR,
frequency VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the owner of fm 94.5?
### Query: SELECT owner FROM table_name_69 WHERE frequency = "fm 94.5" |
### 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 jybgb (
BBCJBW 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 hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE zyjzjlb_jybgb (
YLJGDM_ZYJZJLB text,
BGDH number,
YLJGDM number
)
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZ... |
### Context: CREATE TABLE table_name_16 (
circuit VARCHAR,
fastest_lap VARCHAR,
race VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What circuit did Juan Manuel Fangio have the fastest lap at the german grand prix?
### Query: SELECT circuit FROM table_n... |
### Context: CREATE TABLE table_name_60 (
country VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Country is Gene Littler from?
### Query: SELECT country FROM table_name_60 WHERE player = "gene littler" |
### Context: CREATE TABLE qualifying (
qualifyId INTEGER,
raceId INTEGER,
driverId INTEGER,
constructorId INTEGER,
number INTEGER,
position INTEGER,
q1 TEXT,
q2 TEXT,
q3 TEXT
)
CREATE TABLE results (
resultId INTEGER,
raceId INTEGER,
driverId INTEGER,
constructorId I... |
### Context: CREATE TABLE grapes (
id number,
grape text,
color text
)
CREATE TABLE appellations (
no number,
appelation text,
county text,
state text,
area text,
isava text
)
CREATE TABLE wine (
no number,
grape text,
winery text,
appelation text,
state text,
... |
### 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_62573 (
"Actor in original production" text,
"Actor required" text,
"GamePlan" text,
"FlatSpin" text,
"RolePlay" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the GamePlan when Arabella Lazenby is the RolePlay... |
### Context: CREATE TABLE table_11960944_7 (
high_points VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many high points were there in the game 67?
### Query: SELECT COUNT(high_points) FROM table_11960944_7 WHERE game = 67 |
### 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_name_10 (
points INTEGER,
games VARCHAR,
tied VARCHAR,
goals_for VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of points scored when Acadie-Bathurst had 4 tied games, less than 257 goals, an... |
### Context: CREATE TABLE table_204_898 (
id number,
"seed" text,
"school" text,
"conf (overall)" text,
"tiebreaker" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many seeds above villanova is marquette ?
### Query: SELECT (SELECT "seed" FROM ... |
### 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_58032 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What MLB draft has Shaun Boyd?
### Query: SELECT "MLB Draft" FROM table_58032 WHERE "... |
### Context: CREATE TABLE table_28401 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Founding Religious Affiliation" text,
"Enrollment" real,
"Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which institution... |
### Context: CREATE TABLE table_36441 (
"Date" text,
"City" text,
"Opponent" text,
"Results\u00b9" text,
"Type of game" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date was Wales the Opponent?
### Query: SELECT "Date" FROM table_36441 WH... |
### 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_name_37 (
no_9 VARCHAR,
no_4 VARCHAR,
no_6 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was No. 9 when Ava was No. 4 and Addison was No. 6?
### Query: SELECT no_9 FROM table_name_37 WHERE no_4 = "ava" AND no_6 = "ad... |
### Context: CREATE TABLE table_21756039_1 (
maac VARCHAR,
overall VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maac when the overall is 26-8?
### Query: SELECT maac FROM table_21756039_1 WHERE overall = "26-8" |
### Context: CREATE TABLE table_name_62 (
venue VARCHAR,
race VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the venue of teh carfax 250 race?
### Query: SELECT venue FROM table_name_62 WHERE race = "carfax 250" |
### Context: CREATE TABLE table_47587 (
"Rank" real,
"Team" text,
"Played" real,
"Wins" real,
"Losses" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank for less than 6 plays?
### Query: SELECT SUM("Rank") FROM tabl... |
### 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 ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
-- Using valid SQLite, answer the following... |
### Context: CREATE TABLE airlines (
name VARCHAR,
alid VARCHAR
)
CREATE TABLE routes (
alid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the names of the top 10 airlines that operate the most number of routes.
### Query: SELECT T1.name, T2.alid... |
### Context: CREATE TABLE table_15497 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Venue before 2003 with Notes of 57.73 m?
### Query: SELECT "Venue" FROM table... |
### Context: CREATE TABLE race (
race_id number,
name text,
class text,
date text,
track_id text
)
CREATE TABLE track (
track_id number,
name text,
location text,
seating number,
year_opened number
)
-- Using valid SQLite, answer the following questions for the tables provided... |
### Context: CREATE TABLE Roles (
Role_Code CHAR(15),
Role_Name VARCHAR(255),
Role_Description VARCHAR(255)
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Description CHAR(255),
Other_Details V... |
### Context: CREATE TABLE table_203_242 (
id number,
"season" text,
"competition" text,
"round" text,
"club" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long has fc shakhtyor salihorsk been playing in e... |
### Context: CREATE TABLE table_train_154 (
"id" int,
"systolic_blood_pressure_sbp" int,
"fpg" float,
"hemoglobin_a1c_hba1c" float,
"creatinine_clearance_cl" float,
"diastolic_blood_pressure_dbp" int,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables prov... |
### Context: CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM tex... |
### Context: CREATE TABLE table_10812938_4 (
position VARCHAR,
cfl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Position did the Hamilton Tiger-Cats (via Ottawa) pick in the 2006 Draft.
### Query: SELECT position FROM table_10812938_4 WHERE cfl_... |
### 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 zyjzjlb (
CYBQDM tex... |
### Context: CREATE TABLE table_name_13 (
adelaide VARCHAR,
sydney VARCHAR,
perth VARCHAR,
gold_coast VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Adelaide has Perth no, Gold Coast no, and Sydney yes?
### Query: SELECT adelaide FROM table_na... |
### Context: CREATE TABLE table_204_87 (
id number,
"courthouse" text,
"city" text,
"street address" text,
"jurisdiction" text,
"dates of use" text,
"named for" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the total number of cour... |
### Context: CREATE TABLE company (
company_id number,
rank number,
company text,
headquarters text,
main_industry text,
sales_billion number,
profits_billion number,
assets_billion number,
market_value number
)
CREATE TABLE gas_station (
station_id number,
open_year number,... |
### Context: CREATE TABLE table_58070 (
"Tournament" text,
"Winner" text,
"Runner-up" text,
"Score" text,
"Third Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the score when goran ivani evi was runner up and the tournament was in al... |
### Context: CREATE TABLE table_35711 (
"Province" text,
"Kibaki" text,
"Raila" text,
"Wamalwa" text,
"Ngilu" text,
"Others" text,
"Registered Voters" text,
"Turnout %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's listed for the... |
### Context: CREATE TABLE table_26124 (
"Represent" text,
"Contestant" text,
"Age" real,
"Height (ft.)" text,
"Height (mtr.)" text,
"Hometown" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country had a contestant that was 1.76 meters tal... |
### Context: CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE ... |
### Context: CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor IN... |
### Context: CREATE TABLE table_28026156_1 (
rank__week_ VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did the episode rank that was written by thomas l. moran?
### Query: SELECT rank__week_ FROM table_28026156_1 WHERE written_by ... |
### 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_name_15 (
branding VARCHAR,
call_sign VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the branding for cbxp-fm?
### Query: SELECT branding FROM table_name_15 WHERE call_sign = "cbxp-fm" |
### 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 ReviewTaskResults (
Id numbe... |
### Context: CREATE TABLE table_12922 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2010 entry for the row that has a 2009 entry of 270... |
### Context: CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid n... |
### 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
... |
### Context: CREATE TABLE table_28148 (
"Total #" real,
"Series #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Original airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the show with director Paul Annett?
... |
### Context: CREATE TABLE table_name_45 (
silver INTEGER,
rank VARCHAR,
bronze VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5?
### Query: SELE... |
### Context: CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
d... |
### Context: CREATE TABLE table_15707 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the brabham bt46 bt48 bt49 Chassis common?
### Query: SELECT... |
### 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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,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)
)
... |
### Context: CREATE TABLE table_11683 (
"Nation" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What nation has 1 bronze and 3 silvers?
### Query: SELECT "Nation" FROM table_11683 WHERE "Bron... |
### Context: CREATE TABLE table_name_28 (
total_apps INTEGER,
cl_apps VARCHAR,
pl_g VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the total apps of player benayoun, who has a PL G greater than 0 and more than 9 CL ... |
### Context: CREATE TABLE table_2638104_1 (
callsign VARCHAR,
channel VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the call sign for channel 6?
### Query: SELECT callsign FROM table_2638104_1 WHERE channel = 6 |
### Context: CREATE TABLE table_47913 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the sum of Grid that has the Manufacturer of aprilia, and the sandro cortese?
... |
### Context: CREATE TABLE table_name_36 (
stage VARCHAR,
points_classification VARCHAR,
general_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is teh stage with Daniele Bennati as the points classification and Giovanni VIsconti as the... |
### Context: CREATE TABLE table_77208 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Area of the Allardville Parish with a Population smaller th... |
### Context: CREATE TABLE table_name_32 (
type VARCHAR,
opened_in VARCHAR,
ride_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which ride opened after the 2000 Peeking Heights?
### Query: SELECT type FROM table_name_32 WHERE opened_in > 2000 AND ri... |
### Context: CREATE TABLE table_1342270_42 (
result VARCHAR,
district VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the Tennessee 2 district election?
### Query: SELECT result FROM table_1342270_42 WHERE district = "Tennessee 2" |
### Context: CREATE TABLE table_name_22 (
team VARCHAR,
location_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team has a location and attendance at the Seattle Center Coliseum 12,591?
### Query: SELECT team FROM table_name_22 WHERE locatio... |
### Context: CREATE TABLE loan (
loan_id text,
loan_type text,
cust_id text,
branch_id text,
amount number
)
CREATE TABLE customer (
cust_id text,
cust_name text,
acc_type text,
acc_bal number,
no_of_loans number,
credit_score number,
branch_id number,
state text
)
... |
### Context: CREATE TABLE table_62923 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the competition on 10 august 2011?
### Query: SELECT "Competition" FROM table_62923... |
### Context: CREATE TABLE table_58273 (
"Competition" text,
"Stage" text,
"Venue" text,
"Date" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue did group g play at on Mar 8, 1998?
### Query: SELECT "Venue" FROM table_58273 W... |
### Context: CREATE TABLE enzyme (
id number,
name text,
location text,
product text,
chromosome text,
omim number,
porphyria text
)
CREATE TABLE medicine (
id number,
name text,
trade_name text,
fda_approved text
)
CREATE TABLE medicine_enzyme_interaction (
enzyme_id n... |
### Context: CREATE TABLE table_name_49 (
week VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which week held a tournament in Rome?
### Query: SELECT week FROM table_name_49 WHERE tournament = "rome" |
### Context: CREATE TABLE table_4968 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the average points White made with 0 extra points?
### Query: SELECT ... |
### Context: CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
... |
### 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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid... |
### Context: CREATE TABLE table_38306 (
"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 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 hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE hz_info_zyjzjlb (
JZLSH number,
YLJGDM number,
zyjzjlb_id number
)
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZ... |
### Context: CREATE TABLE schedule (
cinema_id number,
film_id number,
date text,
show_times_per_day number,
price number
)
CREATE TABLE cinema (
cinema_id number,
name text,
openning_year number,
capacity number,
location text
)
CREATE TABLE film (
film_id number,
rank... |
### Context: CREATE TABLE table_7479 (
"LastDays begin" text,
"Startof Christ's Presence" text,
"Christ madeKing" text,
"Resurrection of144,000" text,
"Judgmentof Religion" text,
"Separating Sheep &Goats" text,
"Great Tribulation" text
)
-- Using valid SQLite, answer the following question... |
### Context: CREATE TABLE table_62218 (
"Name" text,
"Years" text,
"MLS Cup" real,
"U.S. Open Cup" real,
"CONCACAF" real,
"Other" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest value for Other that has CONCA... |
### Context: CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar... |
### 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_20616 (
"#" real,
"Series Sorted" text,
"Title" text,
"Author" text,
"Doctor" text,
"Featuring" text,
"Released" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the author for 6y/ae
### Query: SELECT "Aut... |
### Context: CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following ques... |
### Context: CREATE TABLE table_name_55 (
date_completed VARCHAR,
nickname VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the Little Tavern completed?
### Query: SELECT date_completed FROM table_name_55 WHERE nickname = "little tavern" |
### Context: CREATE TABLE country (
Country_name VARCHAR,
Capital VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the country name and capital of all countries.
### Query: SELECT Country_name, Capital FROM country |
### Context: CREATE TABLE Orders (
order_id INTEGER,
customer_id INTEGER,
date_order_placed DATETIME,
order_details VARCHAR(255)
)
CREATE TABLE Invoice_Line_Items (
order_item_id INTEGER,
invoice_number INTEGER,
product_id INTEGER,
product_title VARCHAR(80),
product_quantity VARCHAR... |
### Context: CREATE TABLE table_name_99 (
year INTEGER,
result VARCHAR,
nominated_work_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the lowest year with the result is nominated for the work title is love bites?
### Query: SELECT MIN(year... |
### Context: CREATE TABLE table_41160 (
"Player" text,
"Team" text,
"Inns" real,
"Runs" real,
"Balls" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Inns of 435 Runs?
### Query: SELECT "Inns" FROM table_41160 WHERE "Runs" = '435' |
### Context: CREATE TABLE table_name_30 (
to_par VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the to par for colin montgomerie
### Query: SELECT to_par FROM table_name_30 WHERE player = "colin montgomerie" |
### Context: CREATE TABLE table_name_7 (
visitor VARCHAR,
home VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the visitor for Chicago Black Hawks on May 6?
### Query: SELECT visitor FROM table_name_7 WHERE home = "chicago black haw... |
### Context: CREATE TABLE table_5264 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score in Kathmandu?
### Query: SELECT "Score" FROM table_5264 WHERE "Venue" = '... |
### Context: CREATE TABLE table_149426_4 (
available_subnets INTEGER,
network_mask VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the network mask is 255.255.255.128 what is the lowest available subnet?
### Query: SELECT MIN(available_subnets) FROM tab... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.