text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_15366768_1 (
n___n__ VARCHAR,
nuclide VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of N for the element with nuclide of 141 pr?
### Query: SELECT COUNT(n___n__) FROM table_15366768_1 WHERE nuclide =... |
### Context: CREATE TABLE table_11951237_2 (
title VARCHAR,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes originally aired on August 31, 1995?
### Query: SELECT COUNT(title) FROM table_11951237_2 WHERE original_air_date ... |
### Context: CREATE TABLE table_19789597_6 (
record VARCHAR,
high_rebounds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record in the game where McWilliams (8) did the most high rebounds?
### Query: SELECT record FROM table_19789597_6 WHERE h... |
### Context: CREATE TABLE people (
Name VARCHAR,
People_ID VARCHAR
)
CREATE TABLE debate (
Date VARCHAR,
Venue VARCHAR,
Debate_ID VARCHAR
)
CREATE TABLE debate_people (
Debate_ID VARCHAR,
Negative VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided abo... |
### Context: CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course (
course_id int,
name var... |
### Context: CREATE TABLE table_name_94 (
championships INTEGER,
years_won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the ABA Championship in 1971?
### Query: SELECT MIN(championships) FROM table_name_94 WHERE years_won = "1971" |
### Context: CREATE TABLE table_25046766_3 (
title VARCHAR,
original_airdate_uk VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the title of the episode that aired on October 7, 1965?
### Query: SELECT title FROM table_25046766_3 WHERE original_aird... |
### Context: CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,... |
### Context: CREATE TABLE table_29513 (
"Year" text,
"Summits" text,
"Country" text,
"Continent" text,
"Elevation ft" real,
"Elevation m" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the elevation in september 2009?
### Query: SELECT... |
### Context: CREATE TABLE table_51064 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"GPU frequency" text,
"L2 cache" text,
"I/O bus" text,
"Memory" text,
"Socket" text,
"Release date" text,
"Part number(s)" text
)
-- Using valid SQLite, answer the following ques... |
### Context: CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE Vie... |
### Context: CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
ic... |
### Context: CREATE TABLE table_39916 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Tries For" text,
"Tries Against" text,
"Try Bonus" text,
"Losing Bonus" text,
"Points" text
)
-- Using val... |
### Context: CREATE TABLE table_name_36 (
date_of_designation VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date of designation has a Name of kurume?
### Query: SELECT date_of_designation FROM table_name_36 WHERE name = "kurume" |
### 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 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 hz_info_mzjzjlb (
JZ... |
### Context: CREATE TABLE table_38973 (
"Preseason" text,
"Week 1 Aug 26" text,
"Week 2 Sept 2" text,
"Week 3 Sept 8" text,
"Week 4 Sept 15" text,
"Week 5 Sept 22" text,
"Week 6 Sept 29" text,
"Week 7 Oct 6" text,
"Week 8 Oct 13" text,
"Week 9 Oct 20" text,
"Week 10 Oct 27" t... |
### Context: CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
char... |
### Context: CREATE TABLE table_name_27 (
events INTEGER,
top_5 VARCHAR,
top_10 VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of events of PGA Championship tournaments with a top-5 less than 0?
### Que... |
### Context: CREATE TABLE table_57033 (
"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.
-- For the gte northwest classic with the s... |
### Context: CREATE TABLE table_203_729 (
id number,
"township" text,
"fips" number,
"population\ncenter" text,
"population" number,
"population\ndensity\n/km2 (/sq mi)" text,
"land area\nkm2 (sq mi)" text,
"water area\nkm2 (sq mi)" text,
"water %" text,
"geographic coordinates" ... |
### Context: CREATE TABLE table_204_371 (
id number,
"team" text,
"competition" text,
"category" text,
"appearances\nstart" number,
"appearances\nsub" number,
"goals" number,
"team record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- w... |
### 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
val... |
### Context: CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE lab (
labid nu... |
### Context: CREATE TABLE table_name_35 (
tournament VARCHAR,
top_25 VARCHAR,
cuts_made VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tournament did Bill Rogers play in when he had less than 7 Cuts, 0 Wins, and less than 1 Top-25?... |
### Context: CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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 ... |
### Context: CREATE TABLE table_36434 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Stadium" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record on august 24?
### Query: SELECT ... |
### Context: CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDis... |
### Context: CREATE TABLE table_69448 (
"Tournament" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questi... |
### Context: CREATE TABLE table_32599 (
"Name" text,
"Party" text,
"Province (Division)" text,
"Date appointed" text,
"Appointed by" text,
"Left office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who appointed the conservative from Ontario o... |
### 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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id ... |
### 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_34533 (
"Name" text,
"Town/City" text,
"Borough" text,
"Region" text,
"Type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Name of the Multiple Type museum in Anchorage?
### Query: SELECT "Name" FROM tab... |
### Context: CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tes... |
### Context: CREATE TABLE table_name_94 (
draws INTEGER,
goal_difference VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For a goal difference greater than 3 and fewer than 8 losses, what is the most draws scored?
### Query: SELECT MAX(dr... |
### Context: CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
int... |
### Context: CREATE TABLE table_43711 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which call sign has ERP Wlarger than 250, and Frequency MHZ smaller than ... |
### 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_22347090_6 (
production_code VARCHAR,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production code for the episode that had 1.32 million U.S. viewers?
### Query: SELECT production_code FROM ... |
### 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
val... |
### Context: CREATE TABLE table_28117 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the episode that aired on May 10, 1958?
###... |
### Context: CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE a... |
### Context: CREATE TABLE person_info (
RYBH text,
XBDM number,
XBMC text,
XM text,
CSRQ time,
CSD text,
MZDM text,
MZMC text,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
XLDM text,
XLMC text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE jybgb (
YLJGDM text,... |
### 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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER va... |
### 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 table_name_90 (
rank VARCHAR,
start VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the rank when the start is 10 and the laps are fewer than 192?
### Query: SELECT rank FROM table_name_90 WHERE start = "10"... |
### Context: CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE universi... |
### Context: CREATE TABLE table_name_8 (
losses VARCHAR,
games VARCHAR,
team_name VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total losses for the vancouver burrards in the 1947 season with fewer than 24 games?
### Quer... |
### Context: CREATE TABLE table_name_42 (
service_charge VARCHAR,
designation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the service chage of the boat howitzers with a 12-pdr light destination?
### Query: SELECT service_charge FROM table_name_42... |
### Context: CREATE TABLE table_174491_2 (
winter_olympics VARCHAR,
holmenkollen VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year is Winter Olympics when Holmenkollen is 1957, 1960?
### Query: SELECT winter_olympics FROM table_174491_2 WHERE holmenk... |
### Context: CREATE TABLE table_67605 (
"Name" text,
"Hanzi" text,
"Area(km\u00b2)" real,
"Population" real,
"Villages" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which town has the most villages with the hanzi and a population larger than 24,80... |
### Context: CREATE TABLE table_65025 (
"Rank" real,
"Athletes" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of the person with a time of 1:44.757?
### Query: SELECT MAX("Rank") FROM tab... |
### Context: CREATE TABLE table_48603 (
"Year" real,
"Track" text,
"250 cc" text,
"500 cc" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What track has a 250 cc of sito pons?
### Query: SELECT "Track" FROM table_48603 WHERE "250 cc"... |
### Context: CREATE TABLE table_50702 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a To par of 2, what is Johnny Miller's Place?
### Query: SELECT "Place" FROM table_50702... |
### Context: CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittim... |
### 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 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_name_79 (
round INTEGER,
method VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Round(s), when Method is 'Submission (Banana Split)'?
### Query: SELECT SUM(round) FROM table_name_79 WHERE method = "submissio... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
... |
### Context: CREATE TABLE table_78782 (
"Date" text,
"Venue" text,
"Score" text,
"Competition" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who reported the game on 6 october?
### Query: SELECT "Report" FROM table_78782 WHERE "Date... |
### 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 submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
-- Using valid SQLite... |
### Context: CREATE TABLE table_78198 (
"Date" text,
"Location" text,
"Opponent" text,
"Score" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score from the game where Algeria is the opponent at Porto-Novo?
### Query... |
### Context: CREATE TABLE table_20866024_2 (
model_type VARCHAR,
model_designation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What model type has 97100 model designation?
### Query: SELECT model_type FROM table_20866024_2 WHERE model_designation = "9710... |
### Context: CREATE TABLE table_67279 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Bonus points" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the club that ha... |
### Context: CREATE TABLE table_37590 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was home when Detroit was visiting with a score of 4 1?
### Query: SELECT "Home" FROM table_... |
### 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 d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id... |
### Context: CREATE TABLE table_name_18 (
fastest_lap VARCHAR,
winning_driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Michael Schumacher won the race, who had the fastest lap?
### Query: SELECT fastest_lap FROM table_name_18 WHERE winning_driver... |
### Context: CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
m... |
### Context: CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
sto... |
### Context: CREATE TABLE table_25611 (
"Season" text,
"Name" text,
"Teams" real,
"Relegated to League" text,
"Promoted to League" text,
"Promoted from League" text,
"Relegated from League" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name... |
### Context: CREATE TABLE table_25010 (
"Year" real,
"Song title" text,
"Artist" text,
"Master recording" text,
"NA/UK/AUS/JPN/NL tier" text,
"European tier" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of master recording for ... |
### Context: CREATE TABLE table_51788 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most number of cuts made that had more ... |
### Context: CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
... |
### Context: CREATE TABLE table_55947 (
"Year" real,
"Title" text,
"Role" text,
"Studio" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What title was directed by Raoul Walsh later than 1945?
### Query: SELECT "Title" FROM table_55... |
### Context: CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_required varchar
)
CREATE TABLE time_zone (
time_zone_code text,
ti... |
### 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_54707 (
"Catches" text,
"Player" text,
"Versus" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had a versus of sri lanka?
### Query: SELECT "Player" FROM table_54707 WHERE "Versus" = 's... |
### Context: CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE... |
### Context: CREATE TABLE film_actor (
actor_id number,
film_id number,
last_update time
)
CREATE TABLE film (
film_id number,
title text,
description text,
release_year time,
language_id number,
original_language_id number,
rental_duration number,
rental_rate number,
le... |
### Context: CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time... |
### Context: CREATE TABLE table_name_89 (
president VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was president Year of 2002-2003, second semester?
### Query: SELECT president FROM table_name_89 WHERE year = "2002-2003, second semester" |
### 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 apartments (
apt_id number,
building_id number,
apt_type_code text,
apt_number text,
bathroom_count number,
bedroom_count number,
room_count text
)
CREATE TABLE view_unit_status (
apt_id number,
apt_booking_id number,
status_date time,
available_yn ... |
### Context: CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE ... |
### Context: CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
... |
### 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_name_84 (
top_speed__km_h_ INTEGER,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the top speed of the model 1.8 20v t?
### Query: SELECT SUM(top_speed__km_h_) FROM table_name_84 WHERE model = "1.8 20v t" |
### 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 inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
... |
### Context: CREATE TABLE table_15908 (
"Member" text,
"Headquarters" text,
"Classification" text,
"Chapters" real,
"Founded" text,
"UCCFS" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the headquarters of Alpha Nu Omega
### Query: SE... |
### Context: CREATE TABLE table_name_56 (
fate VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Yugoslavia's fate?
### Query: SELECT fate FROM table_name_56 WHERE nationality = "yugoslavia" |
### Context: CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREAT... |
### Context: CREATE TABLE table_12791809_1 (
super_b_capacity_reached_ VARCHAR,
_citation_needed_ VARCHAR,
freight_carried_s_tonne VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the super b capacity reached when the freight carried s tonne was 1... |
### Context: CREATE TABLE table_name_36 (
years VARCHAR,
goals VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had more than 2 goals and 11 (2) games?
### Query: SELECT years FROM table_name_36 WHERE goals > 2 AND games = "11 (2)... |
### Context: CREATE TABLE instruments (
bandmateid VARCHAR
)
CREATE TABLE Band (
id VARCHAR,
lastname VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find all the instruments ever used by the musician with last name 'Heilo'?
### Query: SELECT instrument... |
### 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 injury_accident (
game_id int,
id int,
Player text,
Injury text,
Number_of_matches text,
Source text
)
CREATE TABLE game (
stadium_id int,
id int,
Season int,
Date text,
Home_team text,
Away_team text,
Score text,
Competition text
)
CRE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.