text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_80136 (
"Name" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" text,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What area is Central Takaka School in?
### Query: SELECT "Area" FROM table_8... |
### Context: CREATE TABLE table_4798 (
"Rank" real,
"Player" text,
"Years" text,
"Games" real,
"Ast. Avg." real,
"Total Assists" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average rank for players with less than 2.9 Assists per g... |
### Context: CREATE TABLE table_name_68 (
overall INTEGER,
college VARCHAR,
position VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the overall draft number for the running back drafted after round 1 from fresno state?
### Que... |
### 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 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_2146364_2 (
third_place INTEGER,
city_ VARCHAR,
_nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of third place finishes when the city & nation was Vancouver, Canada?
### Query: SELECT MIN(t... |
### Context: CREATE TABLE player (
Player_ID int,
name text,
Position text,
Club_ID int,
Apps real,
Tries real,
Goals text,
Points real
)
CREATE TABLE club (
Club_ID int,
name text,
Region text,
Start_year text
)
CREATE TABLE competition_result (
Competition_ID int,... |
### Context: CREATE TABLE table_name_23 (
date VARCHAR,
week VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date for the week larger than 1 and the opponent detroit lions?
### Query: SELECT date FROM table_name_23 WHERE wee... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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,
JCZB... |
### Context: CREATE TABLE table_242813_2 (
season INTEGER,
pitcher VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most season for old hoss radbourn
### Query: SELECT MAX(season) FROM table_242813_2 WHERE pitcher = "Old Hoss Radbourn" |
### Context: CREATE TABLE table_12303563_2 (
winners VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many winners from vietnam
### Query: SELECT winners FROM table_12303563_2 WHERE nation = "Vietnam" |
### Context: CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE checkin (
cid int,
business_id varchar,
count int,
day varchar
)
CREATE TABLE business (
bid int,
business_id varchar,
name varchar,
full_address varchar,
city varchar,
latitude v... |
### 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 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_90 (
round VARCHAR,
rank INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Round, when Rank is less than 117?
### Query: SELECT round FROM table_name_90 WHERE rank < 117 |
### Context: CREATE TABLE table_name_92 (
goals_against INTEGER,
wins VARCHAR,
draws VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average goals against for draws of 8 and wins more than 22 with losses less than 12
### Quer... |
### Context: CREATE TABLE table_name_18 (
userpics_free VARCHAR,
name VARCHAR,
registration VARCHAR,
yearly_cost_for_paid_account VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Userpics Free, when Registration is Open, when Yearly Cost For Pa... |
### Context: CREATE TABLE csu_fees (
campus number,
year number,
campusfee number
)
CREATE TABLE degrees (
year number,
campus number,
degrees number
)
CREATE TABLE campuses (
id number,
campus text,
location text,
county text,
year number
)
CREATE TABLE discipline_enrollm... |
### Context: CREATE TABLE table_54749 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What time/retired for a grid less than 19, under 21 laps, and made by aprilia?
### Qu... |
### 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_44788 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the away team that played home team of Pert... |
### Context: CREATE TABLE table_name_54 (
record VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Record, when Game is 27?
### Query: SELECT record FROM table_name_54 WHERE game = 27 |
### Context: CREATE TABLE table_1342013_12 (
result VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many results are listed for the election where Noah M. Mason was elected?
### Query: SELECT COUNT(result) FROM table_1342013_12 WHERE i... |
### Context: CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
reli... |
### Context: CREATE TABLE 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 table_204_791 (
id number,
"event" text,
"winner" text,
"second" text,
"third" text,
"fourth" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of times chelsea williams was the winner between 2007... |
### Context: CREATE TABLE gwyjzb (
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_72 (
player VARCHAR,
country VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What United States player has a score of 69-73-68=210?
### Query: SELECT player FROM table_name_72 WHERE score = 69 - 73 - 68... |
### Context: CREATE TABLE table_9361 (
"Name" text,
"Pinnacle height planned" text,
"Year completion expected" real,
"Structure type" text,
"Country" text,
"Town" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How high is the Goldin Finance 117 ... |
### Context: CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodi... |
### Context: CREATE TABLE table_name_89 (
season VARCHAR,
league VARCHAR,
away VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season has a league 3rd liga, and away of 1-0?
### Query: SELECT season FROM table_name_89 WHERE league = "3rd liga" AND a... |
### Context: CREATE TABLE table_16514 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the dates of the ... |
### Context: CREATE TABLE table_32914 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record of Jeremija Sanders... |
### Context: CREATE TABLE table_13211 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Gold has a Nation of south korea (kor), and Bronze smaller than 65?
### ... |
### Context: CREATE TABLE table_name_99 (
money___$__ VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the money ($) for player justin leonard?
### Query: SELECT money___$__ FROM table_name_99 WHERE player = "justin leonard" |
### 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 lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospital... |
### Context: CREATE TABLE table_26625 (
"Name" text,
"Deceased Spouse" text,
"Cause of Death" text,
"Date of Spouses Death" text,
"Length of Marriage" text,
"Children Together" text,
"Current Marital Status" text
)
-- Using valid SQLite, answer the following questions for the tables provid... |
### Context: CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Ad... |
### Context: CREATE TABLE table_28330 (
"Frequency (Hz)" text,
"R (\u03a9/km)" text,
"L (mH/km)" text,
"G (\u03bcS/km)" text,
"C (nF/km)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the r ( /km) when the frequency is 10k?
### Query: SELE... |
### Context: CREATE TABLE invoices (
id INTEGER,
customer_id INTEGER,
invoice_date TIMESTAMP,
billing_address VARCHAR(70),
billing_city VARCHAR(40),
billing_state VARCHAR(40),
billing_country VARCHAR(40),
billing_postal_code VARCHAR(10),
total NUMERIC(10,2)
)
CREATE TABLE artists (
... |
### 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.
-- Who are the friends of Alice that are... |
### Context: CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
... |
### 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_26 (
season VARCHAR,
school_club_team VARCHAR,
number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season did the player who had the number 26 play on who came from far eastern?
### Query: SELECT season FROM t... |
### Context: CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
-- Using valid SQLite, answer the following questions fo... |
### Context: CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge bool
)
CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
Number_of_hosts int
)
CREATE TABLE host (
Host_ID int,
Name text,
Nationality ... |
### Context: CREATE TABLE Player_Attributes (
player_api_id VARCHAR
)
CREATE TABLE Player (
player_name VARCHAR,
player_api_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the top 3 players in terms of overall rating?
### Query: SELECT DISTIN... |
### Context: CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE field (
fieldid int
)
CREATE TA... |
### Context: CREATE TABLE table_name_11 (
tournament VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tournament had a Winning score of 9 (69-72-68-70=279)?
### Query: SELECT tournament FROM table_name_11 WHERE winning_score = –9(6... |
### 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_50821 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"L2 cache" text,
"Mult." text,
"Voltage" text,
"Socket" text,
"Release date" text,
"Part number(s)" text,
"Release price ( USD )" text
)
-- Using valid SQLite, answer the followi... |
### Context: CREATE TABLE STUDENT (
STU_NUM int,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int
)
CR... |
### Context: CREATE TABLE table_name_63 (
incumbent VARCHAR,
republican VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the incumbent when Bo Itshaky was the Republican?
### Query: SELECT incumbent FROM table_name_63 WHERE republican = "bo itshaky" |
### Context: CREATE TABLE table_45159 (
"Date" text,
"Race" text,
"Track" text,
"Winner" text,
"Reports" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What race happened at pocono on 08-02-2008?
### Query: SELECT "Race" FROM table_45159 WHERE "Tra... |
### Context: CREATE TABLE table_name_12 (
nationality VARCHAR,
games VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Nationality of the athlete in 1999 Fort-de-France in the Triple Jump?
### Query: SELECT nationality FROM table... |
### Context: CREATE TABLE table_name_9 (
tckl VARCHAR,
year VARCHAR,
p_ko_ret VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of TCKL in 2000 with a P/KO RET less than 14?
### Query: SELECT COUNT(tckl) FROM table_name_9 WHERE year = "20... |
### Context: CREATE TABLE table_name_53 (
date VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day was the bell atlantic classic?
### Query: SELECT date FROM table_name_53 WHERE tournament = "bell atlantic classic" |
### 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_12 (
match_report VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the match report for the game that was against Houston?
### Query: SELECT match_report FROM table_name_12 WHERE opponent = "houst... |
### Context: CREATE TABLE Customer_Address_History (
customer_id INTEGER,
address_id INTEGER,
date_from DATETIME,
date_to DATETIME
)
CREATE TABLE Customers (
customer_id INTEGER,
payment_method_code VARCHAR(15),
customer_number VARCHAR(20),
customer_name VARCHAR(80),
customer_addres... |
### Context: CREATE TABLE table_42074 (
"Category" text,
"Frequency" text,
"White" text,
"Brown" text,
"Black" text,
"Amerindian" text,
"Yellow" text,
"Total" text,
"difference between White and Black" real
)
-- Using valid SQLite, answer the following questions for the tables prov... |
### Context: CREATE TABLE table_63689 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"React" real,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total time of the athlete from Canada with a lane less than 8 and ... |
### Context: CREATE TABLE table_18878 (
"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 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_46921 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has the player Ted Schulz?
### Query: SELECT "Country" ... |
### Context: CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE prescriptions (
row_id ... |
### Context: CREATE TABLE table_76997 (
"Date" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the match when Manchester United played against the H... |
### 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_12419515_5 (
season__number INTEGER,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of season that was written by adam milch
### Query: SELECT MIN(season__number) FROM table_12419515_5 WHERE written... |
### Context: CREATE TABLE person_info_hz_info (
RYBH text,
KH number,
KLX number,
YLJGDM number
)
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM numbe... |
### 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 driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Age int
)
CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time bool
)
CREATE TABLE school (
School_ID int,
Grade text,
School text,
Location t... |
### Context: CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10... |
### Context: CREATE TABLE table_26555737_1 (
result VARCHAR,
year__ceremony_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 2012 (85th) is the year (ceremony) how many results?
### Query: SELECT COUNT(result) FROM table_26555737_1 WHERE year__ceremony_... |
### Context: CREATE TABLE table_78182 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What grad has a Time/Retired of + 1:24.3?
### Query: SELECT "Grid" FROM table_78182 W... |
### Context: CREATE TABLE Properties (
property_id INTEGER,
property_type_code CHAR(15),
property_address VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Services (
service_id INTEGER,
organization_id INTEGER,
service_type_code CHAR(15),
service_details VARCHAR(255)
)
CREATE TA... |
### Context: CREATE TABLE Orders (
order_id INTEGER,
customer_id INTEGER,
date_order_placed DATETIME,
order_details VARCHAR(255)
)
CREATE TABLE Product_Categories (
production_type_code VARCHAR(15),
product_type_description VARCHAR(80),
vat_rating DECIMAL(19,4)
)
CREATE TABLE Financial_Tra... |
### 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 d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
... |
### Context: CREATE TABLE table_name_84 (
comp VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Comp is on 2004-10-17?
### Query: SELECT comp FROM table_name_84 WHERE date = "2004-10-17" |
### Context: CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 (... |
### Context: CREATE TABLE table_2930244_3 (
number_of_major_hurricanes VARCHAR,
deaths VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the death is none what is the number of major hurricanes?
### Query: SELECT COUNT(number_of_major_hurricanes) FROM tab... |
### Context: CREATE TABLE table_name_85 (
year INTEGER,
result VARCHAR,
nominated_work_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the latest year that has the result of nominated and the nominated work title is n/a?
### Query: SELECT M... |
### Context: CREATE TABLE table_204_364 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the year with the most events ?
### Query: S... |
### Context: CREATE TABLE table_name_81 (
attendance INTEGER,
opponent VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average attendance when the New York Mets were opponents with a record of 51-33?
### Query: SELECT AVG(att... |
### Context: CREATE TABLE table_4750 (
"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 team score at vict... |
### Context: CREATE TABLE table_19839391_3 (
stats INTEGER,
pitcher VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are Doug Davis' maximum pitching stats?
### Query: SELECT MAX(stats) FROM table_19839391_3 WHERE pitcher = "Doug Davis" |
### Context: CREATE TABLE table_204_310 (
id number,
"month" text,
"year" number,
"player" text,
"county" text,
"club" text,
"position" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many players were from waterford ?
### Query: SELEC... |
### Context: CREATE TABLE table_24496403_1 (
completed VARCHAR,
ship VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many ships were named Carysfort?
### Query: SELECT COUNT(completed) FROM table_24496403_1 WHERE ship = "Carysfort" |
### Context: CREATE TABLE table_26939 (
"Name" text,
"Position" text,
"Period" text,
"Appearances\u00b9" real,
"Goals\u00b9" real,
"Nationality\u00b2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of period for yvon le rou... |
### Context: CREATE TABLE table_36606 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Bronze has a Nation of mexico, and a Total larger than 1?
### Query: ... |
### 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 PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId n... |
### Context: CREATE TABLE table_15187735_15 (
netflix VARCHAR,
segment_d VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the netflix episode number where Segment D is high-performance engines?
### Query: SELECT netflix FROM table_15187735_15 WHERE se... |
### Context: CREATE TABLE table_26986076_2 (
wed_25_aug VARCHAR,
mon_23_aug VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is wed 25 aug when mon 23 aug is 26' 57.82 89.957mph?
### Query: SELECT wed_25_aug FROM table_26986076_2 WHERE mon_23_aug = "26' ... |
### Context: CREATE TABLE table_19763 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the game date in week 13?
### Query: SEL... |
### Context: CREATE TABLE table_name_36 (
opponent VARCHAR,
loss VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent at the game with a loss of Sele (0-1)?
### Query: SELECT opponent FROM table_name_36 WHERE loss = "sele (0-1)" |
### Context: CREATE TABLE mzjzjlb_jybgb (
YLJGDM_MZJZJLB text,
BGDH number,
YLJGDM number
)
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text... |
### Context: CREATE TABLE table_27859 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" text,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.