text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_58759 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a Date of Birth 1980-07-29?
### Query: SELECT "Name" FROM table_... |
### Context: CREATE TABLE table_name_27 (
goals_for INTEGER,
goal_difference VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of goals when the goal difference was less than 43, and the position less than 3?
### Query:... |
### Context: CREATE TABLE table_name_32 (
home VARCHAR,
visitor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did team phoenix visit in their home?
### Query: SELECT home FROM table_name_32 WHERE visitor = "phoenix" |
### Context: CREATE TABLE table_name_58 (
grand_prix VARCHAR,
round VARCHAR,
winning_driver VARCHAR,
pole_position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Grand Prix did David Coulthard win with Michael Schumacher in the pole position be... |
### Context: CREATE TABLE table_name_18 (
date VARCHAR,
works_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date was the Works Number 7?
### Query: SELECT date FROM table_name_18 WHERE works_number = "7" |
### Context: CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_required varchar
)
CREATE TABLE class_of_service (
booking_class varcha... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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 te... |
### Context: CREATE TABLE employees (
id INTEGER,
last_name VARCHAR(20),
first_name VARCHAR(20),
title VARCHAR(30),
reports_to INTEGER,
birth_date TIMESTAMP,
hire_date TIMESTAMP,
address VARCHAR(70),
city VARCHAR(40),
state VARCHAR(40),
country VARCHAR(40),
postal_code VA... |
### Context: CREATE TABLE table_name_84 (
year INTEGER,
entrant VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the most recent year for a ligier gitanes blondes
### Query: SELECT MAX(year) FROM table_name_84 WHERE entrant = "ligier gitanes blondes" |
### Context: CREATE TABLE table_59659 (
"Name" text,
"Residence" text,
"Party" text,
"Years in Assembly" text,
"Years in Senate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Party has a Residence of san diego?
### Query: SELECT "Party" FROM... |
### Context: CREATE TABLE table_27003223_4 (
no_party_preference VARCHAR,
democratic VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the percentage of 'no party preference' where the democratic percentage is 24.8%?
### Query: SELECT no_party_preferen... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE txmzjzjlb (
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 table_name_6 (
races VARCHAR,
podiums VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which races have #2 podiums?
### Query: SELECT races FROM table_name_6 WHERE podiums = "2" |
### 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 writes (
paperid int,
authorid int
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
... |
### Context: CREATE TABLE table_23222 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real,
"Left" real,
"Current Conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... |
### Context: CREATE TABLE table_22058547_1 (
wiaa_classification VARCHAR,
high_school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many wiaa classifications does fort vancouver high school have?
### Query: SELECT COUNT(wiaa_classification) 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 table_70988 (
"Year" text,
"Venue" text,
"Winners" text,
"2nd place" text,
"3rd place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year did Rafa Kurma ski come in 2nd place?
### Query: SELECT "Year" FROM table_7... |
### Context: CREATE TABLE departments (
department_id VARCHAR,
location_id VARCHAR
)
CREATE TABLE locations (
location_id VARCHAR,
city VARCHAR
)
CREATE TABLE employees (
department_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- display the ... |
### Context: CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Participates_in (... |
### Context: CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
ha... |
### Context: CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
cul... |
### Context: CREATE TABLE products (
product_price VARCHAR,
product_id VARCHAR
)
CREATE TABLE complaints (
product_price VARCHAR,
product_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the prices of products which has never received a single... |
### Context: CREATE TABLE table_name_18 (
round INTEGER,
player VARCHAR,
pick VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest round that Donald Mason had a pick larger than 114?
### Query: SELECT MIN(round) FROM table_name_18 WHERE p... |
### Context: CREATE TABLE table_36003 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Tie #has an Attendance of 54,591?
### Query: SELECT "Tie no" FROM table_36003... |
### Context: CREATE TABLE customers (
customer_name VARCHAR,
customer_id VARCHAR
)
CREATE TABLE orders (
customer_id VARCHAR,
date_order_placed VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Give me the names of customers who have placed orders betw... |
### Context: CREATE TABLE table_name_23 (
attendance VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many attended the game with a Record of 21 22 2?
### Query: SELECT COUNT(attendance) FROM table_name_23 WHERE record = "21–22–2" |
### Context: CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_... |
### Context: CREATE TABLE table_name_15 (
rank VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Italy's rank?
### Query: SELECT rank FROM table_name_15 WHERE country = "italy" |
### Context: CREATE TABLE song (
song_name varchar2(50),
artist_name varchar2(50),
country varchar2(20),
f_id number(10),
genre_is varchar2(20),
rating number(10),
languages varchar2(20),
releasedate Date,
resolution number(10)
)
CREATE TABLE genre (
g_name varchar2(20),
rat... |
### Context: CREATE TABLE table_name_55 (
pick__number VARCHAR,
college VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Pick #, when College is Oklahoma, and when Round is less than 4?
### Query: SELECT COUNT(pi... |
### 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age tex... |
### Context: CREATE TABLE table_name_33 (
year INTEGER,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average year for 4 rank
### Query: SELECT AVG(year) FROM table_name_33 WHERE rank = 4 |
### Context: CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTE... |
### Context: CREATE TABLE table_49412 (
"Outcome" text,
"Date" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent in the final has an Outcom... |
### Context: CREATE TABLE table_150343_3 (
total VARCHAR,
country_territory VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Iceland's total?
### Query: SELECT COUNT(total) FROM table_150343_3 WHERE country_territory = "Iceland" |
### Context: CREATE TABLE table_73598 (
"Name" text,
"Location" text,
"Act. Units" real,
"Stacks" text,
"In Service Dates" text,
"Unit Capacity (2009)" text,
"Nameplate Capacity (2009 MW )" text,
"Owner Type" text,
"Owner(s) (2009)" text
)
-- Using valid SQLite, answer the followin... |
### Context: CREATE TABLE table_25800134_4 (
writer_s_ VARCHAR,
season__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the writer of episode 15?
### Query: SELECT writer_s_ FROM table_25800134_4 WHERE season__number = 15 |
### Context: CREATE TABLE table_28893 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the party for hutchins g. burton
### Query: SELECT "P... |
### 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 table_61184 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in Final" text,
"Score in Final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the outcome on 2 December 2012?
### Query... |
### Context: CREATE TABLE table_name_71 (
january VARCHAR,
april VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is in January where April is chris cranston?
### Query: SELECT january FROM table_name_71 WHERE april = "chris cranston" |
### 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 hz_info_zyjzjlb (
JZLSH number,
YLJGDM number,
zyjzjlb_id number
)
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,
XL... |
### 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_204_344 (
id number,
"player" text,
"games played" number,
"field goals" number,
"free throws" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- _____ and _______ both played 16 games .
### Query:... |
### Context: CREATE TABLE table_name_95 (
team VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team is Jim Garcia category:Articles with Hcards on?
### Query: SELECT team FROM table_name_95 WHERE player = "jim garcia category:articles wi... |
### Context: CREATE TABLE table_55754 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the constructor who has more than 50 laps and a grid of 7?
### Qu... |
### Context: CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_... |
### Context: CREATE TABLE table_69240 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team 2 had a 1st leg of 1-1, and agg of 3-1?
### Query: SELECT "Team 2" FROM table_6924... |
### Context: CREATE TABLE table_1491 (
"No. in series" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number in series for the epis... |
### Context: CREATE TABLE table_1392 (
"Television Station" text,
"Frequency" text,
"Site" text,
"Transmitted" text,
"Network" text,
"Status" text,
"Country of Region" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many stations have a 3... |
### 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_46380 (
"Institution" text,
"Wins" real,
"Loss" real,
"Home Wins" real,
"Home Losses" real,
"Away Wins" real,
"Away Losses" real,
"Neutral Wins" real,
"Neutral Losses" real
)
-- Using valid SQLite, answer the following questions for the tables provid... |
### Context: CREATE TABLE job_history (
employee_id number,
start_date time,
end_date time,
job_id text,
department_id number
)
CREATE TABLE countries (
country_id text,
country_name text,
region_id number
)
CREATE TABLE departments (
department_id number,
department_name text,... |
### Context: CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gend... |
### Context: CREATE TABLE table_73547 (
"Average Ranking" real,
"Competitive Finish" real,
"Couple" text,
"Number Of Dances" real,
"Total Score" real,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total score when 7 is the... |
### Context: CREATE TABLE table_203_679 (
id number,
"part" text,
"number" text,
"first public release date (first edition)" number,
"latest public release date (edition)" number,
"latest amendment" text,
"title" text,
"description" text
)
-- Using valid SQLite, answer the following qu... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
... |
### Context: CREATE TABLE fgwyjzb (
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,
INSUR... |
### Context: CREATE TABLE table_name_96 (
leading_scorer VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the leading scorer on February 9?
### Query: SELECT leading_scorer FROM table_name_96 WHERE date = "february 9" |
### Context: CREATE TABLE table_40964 (
"Average population (x 1000)" real,
"Live births" real,
"Deaths" real,
"Natural change" real,
"Crude birth rate (per 1000)" real,
"Crude death rate (per 1000)" real,
"Natural change (per 1000)" real
)
-- Using valid SQLite, answer the following quest... |
### Context: CREATE TABLE table_72472 (
"Country" real,
"Rank" text,
"Aid" text,
"Trade" text,
"Investment" text,
"Migration" text,
"Environment" text,
"Security" text,
"Technology" text,
"Overall (Average)" text
)
-- Using valid SQLite, answer the following questions for the t... |
### Context: CREATE TABLE table_name_70 (
country VARCHAR,
total INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country of the player who has a total larger than 300?
### Query: SELECT country FROM table_name_70 WHERE total > 300 |
### Context: CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_... |
### Context: CREATE TABLE table_54213 (
"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 team when the crowd... |
### 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 table_63679 (
"School" text,
"Location" text,
"Mascot" text,
"County" text,
"Year Joined" real,
"Year Left" text,
"Conference Joined" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Location that ... |
### 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 phone_market (
Market_ID int,
Phone_ID text,
Num_of_stock int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops rea... |
### 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_29785324_4 (
reservation_for_sc_st VARCHAR,
constituency_no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many reservations for sc/st are there in constituency 191?
### Query: SELECT COUNT(reservation_for_sc_st) FROM tab... |
### Context: CREATE TABLE table_name_38 (
winner VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won on 28 May?
### Query: SELECT winner FROM table_name_38 WHERE date = "28 may" |
### Context: CREATE TABLE table_17469 (
"#" real,
"Episode" text,
"Director" text,
"Writer" text,
"Original airdate" text,
"Viewers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the writer where viewers is 5.16m
### Query: SELECT "Writ... |
### Context: CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,... |
### 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 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 program (
program_id number,
name text,
origin text,
launch number,
owner text
)
CREATE TABLE broadcast (
channel_id number,
program_id number,
time_of_day text
)
CREATE TABLE broadcast_share (
channel_id number,
program_id number,
date text,
s... |
### Context: CREATE TABLE products (
product_id number,
product_details text
)
CREATE TABLE customer_orders (
order_id number,
customer_id number,
order_status text,
order_date time,
order_details text
)
CREATE TABLE customer_addresses (
customer_id number,
address_id number,
d... |
### Context: CREATE TABLE table_54339 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the top lap that had 6 grids and more than 19 points?
### Query: ... |
### Context: CREATE TABLE txmzjzjlb (
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 text... |
### 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 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 t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_... |
### Context: CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
... |
### 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 match_result (
Rank int,
Club_ID int,
Gold int,
Big_Silver int,
Small_Silver int,
Bronze int,
Points int
)
CREATE TABLE player (
Player_ID int,
Sponsor_name text,
Player_name text,
Gender text,
Residence text,
Occupation text,
Votes int,... |
### Context: CREATE TABLE table_77356 (
"Name" text,
"Birth" text,
"Marriage" text,
"Became Dauphine" text,
"Ceased to be Dauphine" text,
"Death" text,
"Husband" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when was the death when the birt... |
### Context: CREATE TABLE table_name_53 (
song_title VARCHAR,
track VARCHAR,
release_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the song with a track less than 8 released on 3/22/57?
### Query: SELECT song_title FROM table_... |
### Context: CREATE TABLE table_204_352 (
id number,
"pos" text,
"no" number,
"rider" text,
"manufacturer" text,
"laps" number,
"time" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total n... |
### 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_5884 (
"Season" text,
"Champion" text,
"Runner Up" text,
"1st leg" text,
"2nd leg" text,
"Host City" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what team was the 1st leg champion of sakalai
### Query: SELECT ... |
### 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_74083 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many m... |
### 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 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_DIRE_CD text,
MED_... |
### Context: CREATE TABLE table_73870 (
"Locale" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
)
-- Using valid SQLite, answer the following questions for the tables pr... |
### Context: CREATE TABLE artist (
Artist_ID int,
Artist text,
Age int,
Famous_Title text,
Famous_Release_date text
)
CREATE TABLE music_festival (
ID int,
Music_Festival text,
Date_of_ceremony text,
Category text,
Volume int,
Result text
)
CREATE TABLE volume (
Volume_... |
### Context: CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
account_id INTEGER,
invoice_number INTEGER,
transaction_type VARCHAR(15),
transaction_date DATETIME,
transaction_amount DECIMAL(19,4),
transaction_comment VARCHAR(255),
other_transaction_details VARCHAR(255)
)
CR... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.