text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number... |
### Context: CREATE TABLE table_1708050_1 (
starts VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the starts when position is 16th
### Query: SELECT starts FROM table_1708050_1 WHERE position = "16th" |
### Context: CREATE TABLE table_13885 (
"Athlete" text,
"Event" text,
"Round of 32" text,
"Round of 16" text,
"Quarterfinals" text,
"Semifinals" text,
"Finals" text,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the quarte... |
### Context: CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name tex... |
### 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_69194 (
"Round" real,
"Circuit" text,
"Date" text,
"Fastest lap" text,
"Winning driver" text,
"Winning team" text,
"Winning manufacturer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winning driv... |
### 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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID ... |
### Context: CREATE TABLE diagnoses (
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_d... |
### Context: CREATE TABLE table_42130 (
"Season" real,
"Date" text,
"Location" text,
"Driver" text,
"Chassis" text,
"Engine" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Driver, when the Date is October 6?
### Quer... |
### Context: CREATE TABLE table_name_98 (
country VARCHAR,
score VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country is Brian Henninger from, who had a score larger than 69?
### Query: SELECT country FROM table_name_98 WHERE sco... |
### Context: CREATE TABLE table_60190 (
"Election" text,
"First member" text,
"1st Party" text,
"Second member" text,
"2nd Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 2nd Party, when Election is '1865'?
### Query: SELECT "2nd Part... |
### Context: CREATE TABLE table_name_47 (
year_opened VARCHAR,
ride VARCHAR,
rating VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year has the ride flight deck and a rating of less than 5?
### Query: SELECT COUNT(year_opened) FROM table_name_47 WH... |
### Context: CREATE TABLE table_16722 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... |
### 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 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 admissions (
row_id number,
subject_id number,
hadm_id number,
admittime ... |
### Context: CREATE TABLE table_3688 (
"Rank" real,
"Rider" text,
"Sat 21 Aug" text,
"Mon 23 Aug" text,
"Tues 24 Aug" text,
"Wed 25 Aug" text,
"Thurs 26 Aug" text,
"Fri 27 Aug" text,
"Sat 28 Aug" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... |
### 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_name_36 (
gold INTEGER,
rank VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of golds for ranks of 6 and totals over 3?
### Query: SELECT SUM(gold) FROM table_name_36 WHERE rank = "6" AND tot... |
### Context: CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE PostsWithDeleted (
Id number,
PostType... |
### 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_203_127 (
id number,
"#" number,
"date" text,
"opponent" text,
"score" text,
"win" text,
"loss" text,
"save" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- large... |
### Context: CREATE TABLE table_name_18 (
lead VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which lead had a season of 2007-08?
### Query: SELECT lead FROM table_name_18 WHERE season = "2007-08" |
### Context: CREATE TABLE table_2538117_7 (
founding_date VARCHAR,
letters VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the letters is , what is the founding date?
### Query: SELECT founding_date FROM table_2538117_7 WHERE letters = "ΦΑΝ" |
### Context: CREATE TABLE table_name_8 (
laps INTEGER,
grid VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the number of Laps with a Grid of more than 3 and Time of 39:24.967?
### Query: SELECT MIN(laps) FROM table_name_8 WHERE gr... |
### Context: CREATE TABLE table_203_691 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what were the number of games scheduled in november ?
### Query: SELE... |
### Context: CREATE TABLE table_name_75 (
losses VARCHAR,
draw VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total losses were with less than 51 draws but more than 6 wins?
### Query: SELECT COUNT(losses) FROM table_name_75 WHERE... |
### Context: CREATE TABLE table_38312 (
"Start month" text,
"End month" text,
"Cover" text,
"Spine" text,
"Indicia" text,
"Masthead" text,
"Number of issues" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which masthead ends on oct 69?
### ... |
### Context: CREATE TABLE table_11053 (
"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.
-- Which venue has a Away team of hawt... |
### Context: CREATE TABLE trip (
id number,
duration number,
start_date text,
start_station_name text,
start_station_id number,
end_date text,
end_station_name text,
end_station_id number,
bike_id number,
subscription_type text,
zip_code number
)
CREATE TABLE status (
st... |
### Context: CREATE TABLE table_name_51 (
year VARCHAR,
bbc_two_rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year was BBC 2 13th in rank?
### Query: SELECT year FROM table_name_51 WHERE bbc_two_rank = "13th" |
### Context: CREATE TABLE table_name_74 (
airport VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 2008 has an Airport of julius nyerere international airport?
### Query: SELECT AVG(2008) FROM table_name_74 WHERE airport = "julius nyerere international airp... |
### Context: CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... |
### Context: CREATE TABLE table_63392 (
"Year" real,
"Competition Description" text,
"Location" text,
"Apparatus" text,
"Rank-Final" real,
"Score-Final" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years have a Rank-Final smaller than... |
### Context: CREATE TABLE table_63526 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue #" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the label for CAD 2014 CD?
### Query: SELECT "Label" FROM table_63526 WHERE "Cata... |
### Context: CREATE TABLE papers (
paperid VARCHAR,
title VARCHAR
)
CREATE TABLE authorship (
authid VARCHAR,
paperid VARCHAR
)
CREATE TABLE authors (
fname VARCHAR,
authid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the first names... |
### Context: CREATE TABLE table_name_34 (
season INTEGER,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest season with driver Farad Bathena?
### Query: SELECT MIN(season) FROM table_name_34 WHERE driver = "farad bathena" |
### Context: CREATE TABLE table_name_79 (
class VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which class has a rank of 5th?
### Query: SELECT class FROM table_name_79 WHERE rank = "5th" |
### Context: CREATE TABLE gyb (
CLINIC_ID text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
INSU_TYPE... |
### Context: CREATE TABLE t_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 d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id nu... |
### 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 table_name_76 (
cfl_team VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What CFL Team is Pascal Masson on?
### Query: SELECT cfl_team FROM table_name_76 WHERE player = "pascal masson" |
### Context: CREATE TABLE table_58476 (
"Player" text,
"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 is listed for the nebraska team?
### Query: SELECT "P... |
### Context: CREATE TABLE table_78418 (
"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 was the home team that played i... |
### Context: CREATE TABLE table_64992 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Matches" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many totals does cork have whose rank is larger than ... |
### Context: CREATE TABLE table_11059 (
"Year" real,
"Competition" text,
"Date" text,
"Surface" text,
"Location" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which surface has a Date of 24 25 apr?
### Query: S... |
### Context: CREATE TABLE table_27833186_1 (
rider_names VARCHAR,
best_conditioned_horse VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the Riders whose best-conditioned horse is Basia?
### Query: SELECT rider_names FROM table_27833186_1 WHERE ... |
### Context: CREATE TABLE table_203_22 (
id number,
"draw" number,
"artist" text,
"song" text,
"points" number,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who scored the most points ?
### Query: SELECT "artist" FROM table_203_22 ORD... |
### Context: CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
sex text,
phone number,
room text,
build... |
### Context: CREATE TABLE table_204_420 (
id number,
"month" text,
"song" text,
"artist" text,
"aggregate points" number,
"total downloads" number,
"year-end chart" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which song is at the top fo... |
### Context: CREATE TABLE table_name_4 (
record VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the record for 21 january 2008
### Query: SELECT record FROM table_name_4 WHERE date = "21 january 2008" |
### 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_16 (
type VARCHAR,
m809_series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the type with M809 series of m814
### Query: SELECT type FROM table_name_16 WHERE m809_series = "m814" |
### 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_203_139 (
id number,
"name" text,
"abbr." text,
"leader" text,
"ideology" text,
"political position" text,
"mps" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total of groups that have a populism ... |
### Context: CREATE TABLE table_22447251_2 (
province VARCHAR,
_community VARCHAR,
hometown VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which province is Villa Bison in?
### Query: SELECT province, _community FROM table_22447251_2 WHERE hometown = "V... |
### Context: CREATE TABLE table_2345558_1 (
director VARCHAR,
writer_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the episode written by Jason Yoshimura?
### Query: SELECT director FROM table_2345558_1 WHERE writer_s_ = "Jason Yoshimura" |
### Context: CREATE TABLE table_name_31 (
annual_change VARCHAR,
rank VARCHAR,
capacity_in_use VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which yearly change was there a capacity of 78.4% and a rank smaller than 3?
### Query: SELECT annual_change... |
### 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 table_72934 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On October 16, 1966, what was the game site?
### ... |
### Context: CREATE TABLE table_204_171 (
id number,
"wager" text,
"winner" text,
"loser" text,
"location" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the number of losses gran cochisse had against el dandy ?
### Query:... |
### Context: CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Projects (
Project_ID INTEGER,
Project_Details VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Documents_... |
### Context: CREATE TABLE table_948 (
"No." text,
"Name" text,
"Livery" text,
"Arrival" real,
"Type" text,
"Configuration" text,
"Builder" text,
"Built" real,
"Status" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... |
### Context: CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
)
CREATE TABLE personfriend (
name text,
friend text,
year number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the different names of frien... |
### Context: CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
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 num... |
### 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 icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
... |
### Context: CREATE TABLE table_name_36 (
premiere VARCHAR,
episodes INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which premiere had more than 15 episodes?
### Query: SELECT premiere FROM table_name_36 WHERE episodes > 15 |
### Context: CREATE TABLE hz_info_mzjzjlb (
JZLSH number,
YLJGDM number,
mzjzjlb_id number
)
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 t... |
### 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 prescriptions (
subject_id text... |
### Context: CREATE TABLE table_46346 (
"City" text,
"Mongolian" text,
"Mongolian script" text,
"Province" text,
"Population (2008)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which mongolian has the province of municipality?
### Query: SELECT ... |
### 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 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_40 (
gold INTEGER,
bronze INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of gold medals won among the nations that won more than 1 bronze?
### Query: SELECT AVG(gold) FROM table_name_40 WHERE b... |
### Context: CREATE TABLE hz_info_zyjzjlb (
JZLSH number,
YLJGDM number,
zyjzjlb_id number
)
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 t... |
### Context: CREATE TABLE table_name_87 (
player VARCHAR,
weight VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player weighs 187 pounds?
### Query: SELECT player FROM table_name_87 WHERE weight = 187 |
### Context: CREATE TABLE table_14871601_2 (
losses INTEGER,
scored VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the number of losses when the scored value was 25?
### Query: SELECT MAX(losses) FROM table_14871601_2 WHERE scored = 25 |
### Context: CREATE TABLE staff (
staff_id number,
staff_gender text,
staff_name text
)
CREATE TABLE products (
product_id number,
product_type_code text,
product_name text,
product_price number
)
CREATE TABLE customers (
customer_id number,
payment_method_code text,
customer_c... |
### Context: CREATE TABLE table_name_9 (
city_of_license VARCHAR,
station VARCHAR,
network_affiliation VARCHAR,
format VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which city of license has an independent network affiliation, a variety format and i... |
### Context: CREATE TABLE table_name_75 (
team_1 VARCHAR,
team_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team 1 has cbm valladolid as team 2?
### Query: SELECT team_1 FROM table_name_75 WHERE team_2 = "cbm valladolid" |
### 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_65084 (
"City of license /Market" text,
"Station" text,
"Channel ( TV / RF )" text,
"Owned Since" real,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What affiliation has an owned since larger than 1991... |
### Context: CREATE TABLE budget (
School_id int,
Year int,
Budgeted int,
total_budget_percent_budgeted real,
Invested int,
total_budget_percent_invested real,
Budget_invested_percent text
)
CREATE TABLE School (
School_id text,
School_name text,
Location text,
Mascot text,
... |
### Context: CREATE TABLE bridge (
architect_id number,
id number,
name text,
location text,
length_meters number,
length_feet number
)
CREATE TABLE mill (
architect_id number,
id number,
location text,
name text,
type text,
built_year number,
notes text
)
CREATE TA... |
### Context: CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
int... |
### Context: CREATE TABLE table_2367847_2 (
high_schools INTEGER,
district_wide VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most high schools for 31851
### Query: SELECT MAX(high_schools) FROM table_2367847_2 WHERE district_wide = 31851 |
### Context: CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
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),
STRE... |
### Context: CREATE TABLE table_79143 (
"Date" text,
"Bowl Game" text,
"Big Ten Team" text,
"Opp. Team" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opposing team in the game with a score of 21-17?
### Query: SELECT "Opp... |
### Context: CREATE TABLE table_name_91 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 2007 is the lowest one that has a 2004 of 78, and a 2006 smaller than 80?
### Query: SELECT MIN(2007) FROM table_name_91 WHERE 2004 = 78 AND 2006 < 80 |
### 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_name_19 (
height__m_ VARCHAR,
nation VARCHAR,
weight__kg_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the height (m) when the nation is sweden (swe) and the weight (kg) is 102?
### Query: SELECT height__m_ FROM... |
### Context: CREATE TABLE table_13282157_1 (
country VARCHAR,
_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country for # 8
### Query: SELECT country FROM table_13282157_1 WHERE _number = 8 |
### Context: CREATE TABLE mzjzjlb (
YLJGDM text,
JZLSH text,
KH text,
KLX number,
MJZH text,
HZXM text,
NLS number,
NLY number,
ZSEBZ number,
JZZTDM number,
JZZTMC text,
JZJSSJ time,
TXBZ number,
ZZBZ number,
WDBZ number,
JZKSBM text,
JZKSMC text,
... |
### Context: CREATE TABLE table_47701 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team was home, when the record was 24 16 6?
### Query: SELECT "Home" FROM table_47701 WHERE... |
### Context: CREATE TABLE table_18064020_21 (
no_yds VARCHAR,
tfl_yds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many yards for the player with tfl-yds of 2.5-4?
### Query: SELECT no_yds FROM table_18064020_21 WHERE tfl_yds = "2.5-4" |
### 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_55075 (
"NGC number" real,
"Object type" text,
"Constellation" text,
"Right ascension ( J2000 )" text,
"Declination ( J2000 )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ngc number when the object type... |
### Context: CREATE TABLE table_47036 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At what location was the score W 82-76?
### Query: SELECT "Location" 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_9790 (
"Actor" text,
"Role" text,
"Status" text,
"Number Of Episodes" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Role, when Status is '2001 - 2003, 2005 - 2009'?
### Query: SELECT "Role" FRO... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.