text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_482 (
"Season #" real,
"Series #" real,
"Title" text,
"Canadian airdate" text,
"U.S. airdate" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are all the Canadian air dates where the u.... |
### Context: CREATE TABLE table_2562572_22 (
dominant_religion__2002_ VARCHAR,
cyrillic_name_other_names VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the dominant religion for
### Query: SELECT dominant_religion__2002_ FROM table_2562572_22 WHERE cyr... |
### Context: CREATE TABLE table_name_92 (
county VARCHAR,
r_bacon VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which county has 438 (4%) listed under R. Bacon?
### Query: SELECT county FROM table_name_92 WHERE r_bacon = "438 (4%)" |
### Context: CREATE TABLE table_name_41 (
john_edwards VARCHAR,
john_kerry VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is John Edwards, when John Kerry is '70%'?
### Query: SELECT john_edwards FROM table_name_41 WHERE john_kerry = "70%" |
### Context: CREATE TABLE table_name_54 (
score VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score in the match against Sanaz Marand?
### Query: SELECT score FROM table_name_54 WHERE opponent = "sanaz marand" |
### Context: CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
... |
### Context: CREATE TABLE table_34338 (
"Pick #" real,
"Round" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many picks did the College of USC wind up getting?
### Query: SELECT COUNT("Pick #") F... |
### Context: CREATE TABLE table_name_35 (
money___$__ VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Money ( $ ), when Score is '75-71-72-70=288'?
### Query: SELECT money___$__ FROM table_name_35 WHERE score = 75 - 71 - 72 - 70 = 288 |
### Context: CREATE TABLE table_35972 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had a points average with 0 extra points and 0 field goals?
### Query: SE... |
### 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_69378 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team had the attendance of 16,468 and lost?
### Query: SELECT "Loss" FROM table_69378... |
### Context: CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
... |
### Context: CREATE TABLE table_203_661 (
id number,
"year" number,
"single" text,
"peak chart positions\nus mod" number,
"peak chart positions\nuk" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long was it between losing st... |
### Context: CREATE TABLE table_34916 (
"Country" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Skip has a Third of sara carlsson?
### Query: SELECT "Skip" FROM table_34916 WHERE "Third"... |
### Context: CREATE TABLE table_name_58 (
player VARCHAR,
club_province VARCHAR,
date_of_birth__age_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player on the Bulls has a 6 May 1978 birthday?
### Query: SELECT player FROM table_name_58 WHERE cl... |
### Context: CREATE TABLE table_3049 (
"Seed" real,
"Rank" real,
"Player" text,
"Points" real,
"Points defending" text,
"Points won" real,
"New points" real,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the competitor ran... |
### Context: CREATE TABLE table_204_884 (
id number,
"medal" text,
"name" text,
"sport" text,
"event" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many gold medals did this country win during these olympics ?
### Query: SELEC... |
### Context: CREATE TABLE table_3796 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the branding for callsign dypv?
### Query: SELECT "Branding" FROM table_... |
### 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_34 (
centre VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Centre has a Rank of 42?
### Query: SELECT centre FROM table_name_34 WHERE rank = 42 |
### 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 table_name_64 (
position VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has a Player of bernard thompson?
### Query: SELECT position FROM table_name_64 WHERE player = "bernard thompson" |
### Context: CREATE TABLE table_67409 (
"Date" text,
"Opponent" text,
"Result" text,
"Game Site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date that 4,286 attended?
### Query: SELECT "Date" FROM table_67409 WHERE... |
### Context: CREATE TABLE table_name_22 (
points INTEGER,
played VARCHAR,
goal_difference VARCHAR,
losses VARCHAR,
goals_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fewest points for positions with under 12 losses, goals ag... |
### Context: CREATE TABLE table_73140 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the incumbent for lost renomination republican hold
#... |
### Context: CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE diagnos... |
### Context: CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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... |
### Context: CREATE TABLE table_57132 (
"Dep." text,
"Chief town" text,
"Arrondissement" text,
"Population (1999)" text,
"Area (Square km)" real,
"Pop density" real,
"Cantons" real,
"Communes" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... |
### Context: CREATE TABLE table_61066 (
"State" text,
"City" text,
"Population" real,
"Violent Crime" text,
"Murder and Non-Negligent Manslaughter" real,
"Forcible Rape" text,
"Robbery" real,
"Aggravated Assault" real,
"Property Crime" text,
"Burglary" real,
"Larceny-Theft" t... |
### Context: CREATE TABLE table_name_47 (
attendance VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the attendance when the opponent was the Houston Oilers?
### Query: SELECT attendance FROM table_name_47 WHERE opponent = "houston ... |
### 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 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 table_name_13 (
attendance VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the Score was 4-10, what was the Attendance?
### Query: SELECT attendance FROM table_name_13 WHERE score = "4-10" |
### Context: CREATE TABLE table_33885 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for game 5?
### Query: SELECT "Score" FROM table_33885 WHERE "Game" = '5' |
### Context: CREATE TABLE table_71159 (
"Margin" real,
"Score" text,
"Opponent" text,
"Venue" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the opponent for 1996 at the mt smart stadium venue
### Query: SELECT "Opponent" FROM tab... |
### Context: CREATE TABLE table_52044 (
"Series" text,
"Years" text,
"Magazine" text,
"Albums" text,
"Editor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which series with a total of 27 albums did Dargaud edit?
### Query: SELECT "Series" FROM ta... |
### Context: CREATE TABLE table_name_99 (
year VARCHAR,
publication VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year had a publication of Pazz & Jop?
### Query: SELECT year FROM table_name_99 WHERE publication = "pazz & jop" |
### 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 player (
POSITION VARCHAR,
Points INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the positions with both players having more than 20 points and less than 10 points.
### Query: SELECT POSITION FROM player WHERE Points > 20 ... |
### Context: CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE ta (
campus_job_id int,
s... |
### Context: CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ques... |
### 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 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 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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CR... |
### Context: CREATE TABLE degrees (
Id VARCHAR
)
CREATE TABLE campuses (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many degrees were conferred in 'San Jose State University' in 2000?
### Query: SELECT degrees FROM campuses AS T1 JOIN degrees AS... |
### Context: CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
-- Using valid SQLite, answer the following questions... |
### Context: CREATE TABLE table_67793 (
"Date" text,
"Venue" text,
"Score" text,
"Competition" text,
"Match report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Match Report for the Euro2008q at the Athens Olympic Stadium on November ... |
### Context: CREATE TABLE table_58122 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first prize amount of the pe... |
### Context: CREATE TABLE table_34894 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" real,
"2nd (m)" real,
"Points" real,
"Overall WC points (Rank)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 2nd (m) has a 1st (m) of 120... |
### Context: CREATE TABLE table_52444 (
"Year" real,
"Network" text,
"Lap-by-lap" text,
"Color commentator(s)" text,
"Pit reporters" text,
"Host" text,
"Ratings" text,
"Viewers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the ... |
### Context: CREATE TABLE table_9338 (
"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.
-- What was the score for the Perth Wildcats as away t... |
### Context: CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gend... |
### Context: CREATE TABLE table_name_15 (
week INTEGER,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest week with an opponent of cincinnati bengals?
### Query: SELECT MIN(week) FROM table_name_15 WHERE opponent = "cincinnati ben... |
### Context: CREATE TABLE table_49542 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the game against the baltimore bullets on March 14?
### Query: SELECT "Sc... |
### 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_icd_procedures (
row_id number,
icd9_cod... |
### Context: CREATE TABLE table_2284 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which episode... |
### Context: CREATE TABLE table_name_85 (
set_2 VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What set 2 has a total of 97 74?
### Query: SELECT set_2 FROM table_name_85 WHERE total = "97–74" |
### Context: CREATE TABLE table_name_30 (
length VARCHAR,
character_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the length of the film with Burleigh Sullivan as the character?
### Query: SELECT length FROM table_name_30 WHERE character_name ... |
### Context: CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutp... |
### Context: CREATE TABLE table_name_15 (
place VARCHAR,
weapon VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Place, when Weapon is '35mm fire', and when Date is '27 May 1982'?
### Query: SELECT place FROM table_name_15 WHERE weap... |
### Context: CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE patient ... |
### Context: CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
)
CREATE ... |
### Context: CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offeri... |
### Context: CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE restriction (
... |
### Context: CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate t... |
### Context: CREATE TABLE table_35735 (
"Word" text,
"Pronunciation a" text,
"Meaning a" text,
"Pronunciation b" text,
"Meaning b" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the word with pronunciation b of *s ks
### Query: SELECT "Word" F... |
### Context: CREATE TABLE table_204_466 (
id number,
"rank" number,
"bib" number,
"country" text,
"time" text,
"penalties (p+s)" text,
"deficit" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is france and germany 's deficit combined ?
... |
### Context: CREATE TABLE table_17244483_1 (
time_retired VARCHAR,
car_no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Car number 15 earned what time?
### Query: SELECT time_retired FROM table_17244483_1 WHERE car_no = 15 |
### Context: CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE cost (
row_id number,
subject_id number,... |
### Context: CREATE TABLE customers (
payment_method_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For each payment method, return how many customers use it.
### Query: SELECT payment_method_code, COUNT(*) FROM customers GROUP BY payment_method_code |
### Context: CREATE TABLE table_1452 (
"Official #" real,
"TF1 #" real,
"French title" text,
"English title" text,
"Air date (France)" text,
"Original Beechwood Bunny Tale / Source material" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name th... |
### Context: CREATE TABLE table_48395 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Result, when Venue is G tzis , Austria?
### Query: SELECT "Result" FROM table_48395 ... |
### Context: CREATE TABLE table_50300 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Bronze, when Gold is greater than 0, when Rank is 4... |
### Context: CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Code CHAR(15),
Start_Date DATE,
End_Date DATE
)
CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_P... |
### Context: CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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 ... |
### Context: CREATE TABLE table_71880 (
"Representative" text,
"Title" text,
"Presentation of Credentials" text,
"Termination of Mission" text,
"Appointed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the representative with a presentati... |
### Context: CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
charget... |
### Context: CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
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_wa... |
### Context: CREATE TABLE table_204_659 (
id number,
"seat" text,
"state" text,
"majority" number,
"member" text,
"party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the total majority that the dobell seat had ?
### Query: SELECT "m... |
### Context: CREATE TABLE table_name_21 (
country VARCHAR,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country is Yerevan located in?
### Query: SELECT country FROM table_name_21 WHERE city = "yerevan" |
### Context: CREATE TABLE table_69481 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which class's call sign is wokg?
### Query: SELECT "Cl... |
### Context: CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE... |
### Context: CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMEN... |
### Context: CREATE TABLE table_61298 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What average gold has China (chn) as the nation with a bronze greater than 1?
... |
### Context: CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_items (
... |
### Context: CREATE TABLE table_name_92 (
_jerk VARCHAR,
clean_ INTEGER,
total__kg_ VARCHAR,
snatch VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5?
### Query: SEL... |
### 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 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 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 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 microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalpe... |
### Context: CREATE TABLE table_7305 (
"Place" real,
"Team" text,
"Played" real,
"Draw" real,
"Lost" real,
"Goals Scored" real,
"Goals Conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest games Play... |
### Context: CREATE TABLE table_name_89 (
team__number2 VARCHAR,
team__number1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played against Hapoel tel aviv when they were team #1?
### Query: SELECT team__number2 FROM table_name_89 WHERE team__number1 =... |
### Context: CREATE TABLE table_2182170_1 (
car_s_ VARCHAR,
listed_owner_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many cars does Gregg Mixon own?
### Query: SELECT COUNT(car_s_) FROM table_2182170_1 WHERE listed_owner_s_ = "Gregg Mixon" |
### 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_21436 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ... |
### Context: CREATE TABLE table_204_670 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"record" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference in attendance for week 5 and... |
### 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_61688 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance on September 19, 1971, after week 1?
### Query: SELECT AVG("Attend... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.