text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_17281 (
"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 table_28298589_4 (
broadcast VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Connecticut home games were broadcast?
### Query: SELECT COUNT(broadcast) FROM table_28298589_4 WHERE home_team = "Connecticut" |
### 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 zzmzjzjlb (
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 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_46330 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHo is the Player got a Pick # smaller than 61, and a College of texas?
### Query: SELECT ... |
### Context: CREATE TABLE table_23465864_6 (
thurs_27_aug VARCHAR,
tues_25_aug VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the event on Thurs 27 Aug when Tues 25 Aug was 23' 00.59 98.384mph?
### Query: SELECT thurs_27_aug FROM table_23465864_6 W... |
### Context: CREATE TABLE table_62785 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" real,
"Finish" real,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did the team of Rahal Letterman in 2006 start?
### Query: SELECT COUNT(... |
### Context: CREATE TABLE table_15796072_1 (
original_artist VARCHAR,
week__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the original artist for week number Top 16 (8 women)?
### Query: SELECT original_artist FROM table_15796072_1 WHERE wee... |
### Context: CREATE TABLE Locations (
Location_ID INTEGER,
Location_Name VARCHAR(255),
Address VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Ref_Attraction_Types (
Attraction_Type_Code CHAR(15),
Attraction_Type_Description VARCHAR(255)
)
CREATE TABLE Royal_Family (
Royal_Family_I... |
### Context: CREATE TABLE table_178242_1 (
channel VARCHAR,
host_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which channel has the host Art Rooijakkers?
### Query: SELECT channel FROM table_178242_1 WHERE host_s_ = "Art Rooijakkers" |
### Context: CREATE TABLE fault_log_parts (
fault_log_entry_id number,
part_fault_id number,
fault_status text
)
CREATE TABLE maintenance_engineers (
engineer_id number,
company_id number,
first_name text,
last_name text,
other_details text
)
CREATE TABLE maintenance_contracts (
ma... |
### 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 Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId ... |
### Context: CREATE TABLE table_name_7 (
result VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result when the attendance is 54,814?
### Query: SELECT result FROM table_name_7 WHERE attendance = "54,814" |
### Context: CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTyp... |
### Context: CREATE TABLE table_name_37 (
label VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the label for October 21, 1981?
### Query: SELECT label FROM table_name_37 WHERE date = "october 21, 1981" |
### 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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME v... |
### Context: CREATE TABLE table_17311759_4 (
score VARCHAR,
high_rebounds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Give the score when high rebounds was zaza pachulia (8)
### Query: SELECT score FROM table_17311759_4 WHERE high_rebounds = "Zaza Pachul... |
### Context: CREATE TABLE table_12715053_1 (
compound_name VARCHAR,
chemical_class VARCHAR,
clinical_trials_β VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many compound names list a chemical class of depsipeptide and a clinical trials value of 1/7?... |
### Context: CREATE TABLE table_name_49 (
location VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which location is in the Belgian Congo Tanganyika?
### Query: SELECT location FROM table_name_49 WHERE country = "belgian congo tanganyika" |
### Context: CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY ... |
### Context: CREATE TABLE table_23379776_5 (
nature_of_role VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every nature of role with year as 2009?
### Query: SELECT nature_of_role FROM table_23379776_5 WHERE year = 2009 |
### Context: CREATE TABLE table_48289 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the game when West Ham United was the away team?
### Query: SELECT... |
### Context: CREATE TABLE Affiliated_With (
Physician INTEGER,
Department INTEGER,
PrimaryAffiliation BOOLEAN
)
CREATE TABLE Undergoes (
Patient INTEGER,
Procedures INTEGER,
Stay INTEGER,
DateUndergoes DATETIME,
Physician INTEGER,
AssistingNurse INTEGER
)
CREATE TABLE Prescribes (
... |
### Context: CREATE TABLE table_50519 (
"Nominative" text,
"Ergative" text,
"Dative" text,
"Genitive" text,
"Instrumental" text,
"Adverbial" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What nominative has mis as the dative?
### Query: SELECT... |
### Context: CREATE TABLE table_22886 (
"Rank" real,
"English title" text,
"Chinese title" text,
"Average" real,
"Peak" real,
"Premiere" real,
"Finale" real,
"HK viewers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the maximu... |
### Context: CREATE TABLE invoiceline (
invoicelineid number,
invoiceid number,
trackid number,
unitprice number,
quantity number
)
CREATE TABLE playlist (
playlistid number,
name text
)
CREATE TABLE invoice (
invoiceid number,
customerid number,
invoicedate time,
billingad... |
### Context: CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
rout... |
### Context: CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
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_NA... |
### 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 mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZK... |
### Context: CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmitti... |
### Context: CREATE TABLE table_10583 (
"Name" text,
"City" text,
"Height feet/m" text,
"Year" real,
"Period" text,
"Surpassed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- I need the surpassed for years before 1925 and period of 6 years
#... |
### Context: CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE intakeoutput (
... |
### Context: CREATE TABLE table_56330 (
"Team" text,
"Games Played" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Goals For" real,
"Goals Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals for occurred when the goals ag... |
### Context: CREATE TABLE table_34552 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Distance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Venue has a Tournament of olympic games with a Result of 4th?
### Query: SELECT "Ve... |
### Context: CREATE TABLE table_name_88 (
opponent VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent on November 20, 1966?
### Query: SELECT opponent FROM table_name_88 WHERE date = "november 20, 1966" |
### Context: CREATE TABLE table_142159_1 (
arrival INTEGER,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the arrival time of greenbat
### Query: SELECT MAX(arrival) FROM table_142159_1 WHERE name = "Greenbat" |
### 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 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_58 (
record VARCHAR,
high_points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Record has a High points of hoffman (16)?
### Query: SELECT record FROM table_name_58 WHERE high_points = "hoffman (16)" |
### Context: CREATE TABLE table_21531764_1 (
employment_area VARCHAR,
october_2010 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the rate 5.7 in October 2010?
### Query: SELECT employment_area FROM table_21531764_1 WHERE october_2010 = "5.7" |
### Context: CREATE TABLE film_market_estimation (
Estimation_ID int,
Low_Estimate real,
High_Estimate real,
Film_ID int,
Type text,
Market_ID int,
Year int
)
CREATE TABLE film (
Film_ID int,
Title text,
Studio text,
Director text,
Gross_in_dollar int
)
CREATE TABLE mar... |
### Context: CREATE TABLE table_12177 (
"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 catalogue number for Brazil?
### Query: SELECT "Catalogue #" FROM table_12177... |
### Context: CREATE TABLE table_12280396_1 (
rank VARCHAR,
municipality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the rank where the municipality is sunndal?
### Query: SELECT rank FROM table_12280396_1 WHERE municipality = "Sunndal" |
### Context: CREATE TABLE table_name_39 (
name VARCHAR,
transfer_fee VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had a transfer fee of dkk 6m?
### Query: SELECT name FROM table_name_39 WHERE transfer_fee = "dkk 6m" |
### Context: CREATE TABLE table_name_31 (
laps INTEGER,
driver VARCHAR,
constructor VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the lowest laps of Luigi Musso driving a Ferrari with a Grid larger than 2?
### Query: SELECT ... |
### Context: CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed in... |
### Context: CREATE TABLE table_name_3 (
name VARCHAR,
stage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Name of the SS11 Stage?
### Query: SELECT name FROM table_name_3 WHERE stage = "ss11" |
### Context: CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug t... |
### Context: CREATE TABLE 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_name_78 (
regular_season VARCHAR,
playoffs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What regular season did the team reach the conference semifinals in the playoffs?
### Query: SELECT regular_season FROM table_name_78 W... |
### Context: CREATE TABLE station (
LOCATION VARCHAR,
number_of_platforms VARCHAR,
total_passengers VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show all locations that have train stations with at least 15 platforms and train stations with more than 25... |
### Context: CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE party (
Par... |
### Context: CREATE TABLE table_26152 (
"Edition" text,
"Round" text,
"Date" text,
"Against" text,
"Surface" text,
"Opponent" text,
"W/L" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score against Loic Didav... |
### 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_28744929_1 (
school_type VARCHAR,
nickname VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what type of school is the institution nicknamed seminoles?
### Query: SELECT school_type FROM table_28744929_1 WHERE nickname = "Semin... |
### 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 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_54 (
tonnage VARCHAR,
u_boats_destroyed__kuk_ VARCHAR,
ships_sunk__pola_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the listed Tonnage that has U-boats destroyed (KuK) of 2 and Ships sunk (Pola) of (not re... |
### Context: CREATE TABLE table_30320 (
"Year Location" text,
"Mens Singles" text,
"Womens Singles" text,
"Mens Doubles" text,
"Womens Doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times was the womens doubles in china?
### Query... |
### Context: CREATE TABLE table_name_72 (
form VARCHAR,
pages INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many forms have less than 18 pages?
### Query: SELECT COUNT(form) FROM table_name_72 WHERE pages < 18 |
### Context: CREATE TABLE table_69980 (
"Games" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals For" real,
"Goals Against" real,
"Goal Differential" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many draws have 1 win, 1 loss, and... |
### Context: CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
... |
### Context: CREATE TABLE 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 airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE flight_stop (
flight_id int,
stop_... |
### Context: CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
... |
### Context: CREATE TABLE table_name_88 (
goals INTEGER,
rank VARCHAR,
matches VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mean number of goals when the rank's less than 8 and there are 261 matches?
### Query: SELECT AVG(goals) FROM table... |
### Context: CREATE TABLE table_name_44 (
total INTEGER,
year_s__won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Total for the Player who won in 1922, 1932?
### Query: SELECT AVG(total) FROM table_name_44 WHERE year_s__won = "1922, 1932" |
### Context: CREATE TABLE table_name_88 (
actor VARCHAR,
number_of_episodes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Actor, when Number Of Episodes is '117 Episodes'?
### Query: SELECT actor FROM table_name_88 WHERE number_of_episodes = "117 e... |
### Context: CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
... |
### Context: CREATE TABLE table_name_34 (
date VARCHAR,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day did Footscray play as the away team?
### Query: SELECT date FROM table_name_34 WHERE away_team = "footscray" |
### Context: CREATE TABLE table_name_40 (
points INTEGER,
team VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did she have with team bultaco, ranked 6th?
### Query: SELECT SUM(points) FROM table_name_40 WHERE team = "bultac... |
### Context: CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration n... |
### Context: CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistoryTypes ... |
### Context: CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Activity (
actid INTEGER,
activity_name varchar(25)
)
CREATE TABLE Faculty (
FacID INTEG... |
### Context: CREATE TABLE table_50072 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Game has a Streak of loss 1, and a Score of 110 111?
### Query: SELECT "Ga... |
### Context: CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid n... |
### Context: CREATE TABLE table_1213511_5 (
college_junior_club_team VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where is team player mike mcniven played for?
### Query: SELECT college_junior_club_team FROM table_1213511_5 WHERE player = ... |
### Context: CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM text,
RZBQMC text,
RYCWH text,
CYKSDM text,
CYKSMC text,
... |
### Context: CREATE TABLE table_50535 (
"Season" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the second with a lead of Sarah Macintyre (jr) Anne Laird (w)?
### Query: SELECT "Second" ... |
### Context: CREATE TABLE table_28046929_2 (
driver VARCHAR,
entrant VARCHAR,
co_driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the person that is part of the belgian vw club that works with fr d ric miclotte
### Query: SELECT driver FROM ... |
### Context: CREATE TABLE table_name_22 (
game VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Game has an Opponent of phoenix suns?
### Query: SELECT game FROM table_name_22 WHERE opponent = "phoenix suns" |
### Context: CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
account_name VARCHAR(50),
other_account_details VARCHAR(255)
)
CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATE... |
### Context: CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEG... |
### Context: CREATE TABLE table_54233 (
"Draw" real,
"Artist" text,
"Song" text,
"Points" real,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place for 'jednom u ivotu' with a draw larger than 18?
### Query: SELECT COUNT("Place") FROM... |
### Context: CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime... |
### Context: CREATE TABLE table_203_577 (
id number,
"tenure" text,
"coach" text,
"years" number,
"record" text,
"pct." number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long was joseph black a coach ?
### Query: SELECT "years" FROM table_20... |
### Context: CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
)
-- Using valid SQLite, answer the followi... |
### Context: CREATE TABLE invoice_line_items (
order_item_id number,
invoice_number number,
product_id number,
product_title text,
product_quantity text,
product_price number,
derived_product_cost number,
derived_vat_payable number,
derived_total_cost number
)
CREATE TABLE financial... |
### Context: CREATE TABLE table_name_49 (
home_team VARCHAR,
tie_no VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Home Team, when Tie No is 4?
### Query: SELECT home_team FROM table_name_49 WHERE tie_no = "4" |
### Context: CREATE TABLE table_75633 (
"Year" text,
"Name" text,
"Political affiliation" text,
"Deputy" text,
"Deputy's affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Name for 1997 99?
### Query: SELECT "Name" FROM table_7... |
### 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_66197 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Churai has what as the fewest numbe... |
### Context: CREATE TABLE table_69922 (
"Draw" real,
"Competing dancers" text,
"Dance styles" text,
"Rank" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest draw with rank 4?
### Query: SELECT MIN("Draw") FROM table_6... |
### Context: CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following ques... |
### Context: CREATE TABLE table_203_534 (
id number,
"week" number,
"date" text,
"opponent" text,
"home/away" text,
"result" text,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of games lost during the month o... |
### Context: CREATE TABLE table_68836 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which airport has an IATA of AMS?
### Query: SELECT "Airport" FROM table_68836 WHERE "IATA" = 'a... |
### 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.