text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
dep... |
### Context: CREATE TABLE table_22515 (
"Number" real,
"Sanskrit" text,
"International Alphabet of Sanskrit Transliteration" text,
"Sanskrit gloss" text,
"Western name" text,
"Greek" text,
"Gloss" text,
"Tattva (Element)" text,
"Quality" text,
"Ruling Planet" text
)
-- Using va... |
### Context: CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
Cre... |
### Context: CREATE TABLE table_75641 (
"Poll Source" text,
"Date" text,
"Candidate" text,
"Support" text,
"Consider" text,
"Oppose" text,
"Unsure" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of people were opposed to the ... |
### Context: CREATE TABLE table_50189 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Opponent in the match with a Score of 6 3, 6 4?
### Quer... |
### Context: CREATE TABLE table_name_82 (
record VARCHAR,
home VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which Record has a Home of ottawa senators on Date of december 21?
### Query: SELECT record FROM table_name_82 WHERE home = "otta... |
### Context: CREATE TABLE customer (
cust_ID varchar(3),
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20)
)
CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10... |
### Context: CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_... |
### Context: CREATE TABLE ftxmzjzjlb (
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 tex... |
### Context: CREATE TABLE table_name_69 (
date VARCHAR,
runner_s__up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date with a Runner(s)-up that is jerry steelsmith?
### Query: SELECT date FROM table_name_69 WHERE runner_s__up = "jerry steelsmi... |
### Context: CREATE TABLE table_79110 (
"Round" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Winning team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the zolder circuit, which had a.z.k./roc-comp tition a.z.k./r... |
### Context: CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREA... |
### Context: CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE ground_service (
city_code text,
... |
### Context: CREATE TABLE table_23080 (
"Scorecard" real,
"Date" text,
"Venue" text,
"Team 1" text,
"Team 2" text,
"Result" text,
"Man of the Match" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many scorecards are there for the match o... |
### Context: CREATE TABLE hz_info_mzjzjlb (
JZLSH number,
YLJGDM number,
mzjzjlb_id number
)
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,
... |
### Context: CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
Mar... |
### Context: CREATE TABLE table_30133 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when ... |
### 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_28898974_3 (
reason VARCHAR,
electorate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When peninsula is the electorate what is the reason?
### Query: SELECT reason FROM table_28898974_3 WHERE electorate = "Peninsula" |
### Context: CREATE TABLE table_46324 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Bonus Points" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... |
### Context: CREATE TABLE table_56731 (
"Edition" real,
"Zone" text,
"Round" text,
"Date" text,
"Against" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was against... |
### 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_71790 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which years was the to par +6?
### Query: SELECT "Year(s) won" FR... |
### Context: CREATE TABLE table_10568553_1 (
street_names VARCHAR,
milepost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which street is 12.2 miles long?
### Query: SELECT street_names FROM table_10568553_1 WHERE milepost = "12.2" |
### Context: CREATE TABLE table_45366 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent in a week below 14 on October 10, 1993?
### Query: SELECT "Opponent" ... |
### Context: CREATE TABLE table_name_83 (
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Richmond's score when it was the away team?
### Query: SELECT away_team AS score FROM table_name_83 WHERE away_team = "richmond" |
### Context: CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE... |
### Context: CREATE TABLE table_2076 (
"Player" text,
"Years with Dodgers" text,
"Role with Dodgers" text,
"Inducted as" text,
"Year inducted" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the inducted as for joe medwick category:articles with... |
### Context: CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
... |
### Context: CREATE TABLE table_name_99 (
week_9_oct_20 VARCHAR,
week_17__final__jan_4 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listed for the Week 9 Oct 20 that has a Week 17 (Final) Jan 4 of Michigan (10-3)?
### Query: SELECT week_9_oct_20 F... |
### Context: CREATE TABLE table_14977 (
"Parameter" text,
"N80 IEC1" text,
"N90 IEC1" text,
"N90 IEC2" text,
"N100 IEC 2" text,
"N100 IEC3" text,
"N117/2400 IEC3" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the N117/2400 IEC3 asso... |
### Context: CREATE TABLE table_22297198_3 (
team VARCHAR,
outgoing_manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team did Alireza mansourian leave?
### Query: SELECT team FROM table_22297198_3 WHERE outgoing_manager = "Alireza Mansourian" |
### Context: CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE food_serv... |
### 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_16576 (
"Club" text,
"Position in 2012\u201313" text,
"First season in top division" text,
"Number of seasons in top division" real,
"Number of seasons in the Premier League" real,
"First season of current spell in top division" text,
"Top division titles" rea... |
### Context: CREATE TABLE table_54835 (
"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 is the sum of crowds that saw ... |
### Context: CREATE TABLE table_34011 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent when attendance was 60,355?
### Query: SELECT "Opponent" FROM table_3... |
### Context: CREATE TABLE table_203_134 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what player placed nest after dustin johnson ?
### Query: SELECT "player" ... |
### Context: CREATE TABLE table_10411 (
"Class" text,
"Type" text,
"Quantity" real,
"Date" text,
"LNER Class" text,
"1946 LNER nos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the type 2-8-0 with a O4 LNER Class?
### Query:... |
### Context: CREATE TABLE table_20565 (
"Year" real,
"GDP Nominal ($ billions)" text,
"GDP Adjusted ($ billions)" text,
"Population (millions)" text,
"GDP per capita Nominal ($)" real,
"GDP per capita Adjusted ($)" real
)
-- Using valid SQLite, answer the following questions for the tables pro... |
### Context: CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flig... |
### Context: CREATE TABLE table_6652 (
"Year" text,
"Men's singles" text,
"Women's singles" text,
"Men's doubles" text,
"Women's doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won in mixed doubles in 2008?
###... |
### Context: CREATE TABLE table_1566852_7 (
interview_subject VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- HOW MANY TIMES WAS LUDACRIS THE INTERVIEW SUBJECT FOR THE 20 QUESTIONS COLUMN?
### Query: SELECT COUNT(20 AS _questions) FROM table_1566852_7 WHERE inte... |
### Context: CREATE TABLE gas_station (
Station_ID int,
Open_Year int,
Location text,
Manager_Name text,
Vice_Manager_Name text,
Representative_Name text
)
CREATE TABLE station_company (
Station_ID int,
Company_ID int,
Rank_of_the_Year int
)
CREATE TABLE company (
Company_ID in... |
### Context: CREATE TABLE stadium (
average_attendance VARCHAR,
capacity_percentage INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average attendance of stadiums with capacity percentage higher than 100%?
### Query: SELECT average_attendance FRO... |
### Context: CREATE TABLE table_name_55 (
against INTEGER,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest Against with a Date of 18/02/1989?
### Query: SELECT MIN(against) FROM table_name_55 WHERE date = "18/02/1989" |
### Context: CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE region (
Region_id int,
Region_cod... |
### Context: CREATE TABLE table_name_23 (
height INTEGER,
year_born VARCHAR,
current_club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How tall was the member of Nymburk, who was born in 1982?
### Query: SELECT MAX(height) FROM table_name_23 WHERE yea... |
### Context: CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transaction_id INTEGER,
account_id INTEGER,
card_id INTEGER,
transaction_type VARCHAR(15),
transaction_date DATETIME,
transaction_amount DOUBLE,
transaction_comment VARCHAR(255),
other_transaction_det... |
### Context: CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
... |
### Context: CREATE TABLE table_67497 (
"Year" text,
"Venue" text,
"Winners" text,
"Runner-up" text,
"3rd place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who came in 3rd place in 1990?
### Query: SELECT "3rd place" FROM table_67497 WHERE "Yea... |
### Context: CREATE TABLE table_72752 (
"Rank" real,
"City 1" text,
"City 2" text,
"2012 Passengers (in millions)" text,
"2011 Passengers (in millions)" text,
"Distance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which city is listed first w... |
### 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_17288869_6 (
date VARCHAR,
game VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of game 21?
### Query: SELECT date FROM table_17288869_6 WHERE game = 21 |
### Context: CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_P... |
### Context: CREATE TABLE table_203_192 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- at what competition did david receive the least position ?
### Query: ... |
### Context: CREATE TABLE table_76139 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real,
"Goals/Matches" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What years have goals less than 229, and 440 as matches?
### Query: SEL... |
### Context: CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRES... |
### Context: CREATE TABLE table_6077 (
"Image" text,
"Father" text,
"Birth" text,
"Ceased to be Duchess" text,
"Death" text,
"Husband" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which father had william iv as a husband?
### Query: SELECT "F... |
### Context: CREATE TABLE table_65734 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many weeks have an Attendance of 62,289?
### Query: SELECT SUM("Week") FROM table_6573... |
### Context: CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
-- Using valid SQLite, answer the following... |
### Context: CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE flight_leg (
fligh... |
### Context: CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
... |
### Context: CREATE TABLE table_name_96 (
name VARCHAR,
debut VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the player that had a debut in round 6?
### Query: SELECT name FROM table_name_96 WHERE debut = "round 6" |
### Context: CREATE TABLE table_37053 (
"Position" real,
"Driver" text,
"Wins" real,
"Poles" real,
"Top 5's" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points are associated with over 1 top 5, 1 win, over 0 poles, and... |
### Context: CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEdi... |
### Context: CREATE TABLE mill (
Id VARCHAR
)
CREATE TABLE architect (
name VARCHAR,
nationality VARCHAR,
id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the distinct names and nationalities of the architects who have ever built a mill?
... |
### Context: CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... |
### Context: CREATE TABLE table_2221484_2 (
original_air_date VARCHAR,
series__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date did episode 258 in the series originally air?
### Query: SELECT original_air_date FROM table_2221484_2 WHERE serie... |
### Context: CREATE TABLE aircraft (
aid number(9,0),
name varchar2(30),
distance number(6,0)
)
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(... |
### Context: CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Student_Course_Enrolment (
... |
### Context: CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBL... |
### Context: CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTyp... |
### Context: CREATE TABLE table_76508 (
"Finished" text,
"Horse" text,
"Jockey" text,
"Trainer" text,
"Odds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Jockey that has Nick Zito as Trainer and Odds of 34-1?
### Query: SELECT "Jockey"... |
### Context: CREATE TABLE table_13114 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which shooter was the olympic bronze medalist?
### Query: SELECT "Shooter" FROM ta... |
### Context: CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_P... |
### Context: CREATE TABLE 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_19872699_1 (
builder VARCHAR,
skipper VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who build the boat where Ken Read was the skipper?
### Query: SELECT builder FROM table_19872699_1 WHERE skipper = "Ken Read" |
### 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 stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
m... |
### Context: CREATE TABLE table_43535 (
"Name" text,
"Country" text,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text,
"Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type when... |
### Context: CREATE TABLE table_name_16 (
tries_for VARCHAR,
played VARCHAR,
points_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value for the item 'Tries' when the value of the item 'Played' is 18 and the value of the item 'Points'... |
### Context: CREATE TABLE building (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many buildings are there?
### Query: SELECT COUNT(*) FROM building |
### Context: CREATE TABLE table_32882 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time/retired for grid 3?
### Query: SELECT "Time/Retired" FROM table_3288... |
### Context: CREATE TABLE table_35860 (
"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.
-- Name the averae top 25 with events less than 0
###... |
### Context: CREATE TABLE table_name_94 (
saturated_fat VARCHAR,
total_fat VARCHAR,
polyunsaturated_fat VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the saturated fat with a total fat of 100g and 11g of polyunsaturated fat?
### Query: SELECT s... |
### Context: CREATE TABLE table_40868 (
"Played" text,
"Wins" text,
"Losses" text,
"Tied" text,
"Win %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was tied at 15 played?
### Query: SELECT "Tied" FROM table_40868 WHERE "Played" = '15' |
### Context: CREATE TABLE table_204_443 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"game site" text,
"attendance" number,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference in attend... |
### Context: CREATE TABLE table_52100 (
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Diff" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the difference with a loss smaller than 5 and points ... |
### 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_28969 (
"Species" text,
"Common Name" text,
"Protein Name" text,
"Accession Number" text,
"NT Length" text,
"NT Identity" text,
"AA Length" text,
"AA Identity" text,
"E-Value" text
)
-- Using valid SQLite, answer the following questions for the table... |
### Context: CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments... |
### 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 hz_info (
KH text,
KLX number,
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,
JCZBJGDW text,
... |
### Context: CREATE TABLE table_name_95 (
standard_cost__usd_ VARCHAR,
creator VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Standard cost (USD) of Kwin team creator?
### Query: SELECT standard_cost__usd_ FROM table_name_95 WHERE creator = "kwi... |
### Context: CREATE TABLE table_204_415 (
id number,
"season" text,
"tier" number,
"division" text,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is his/her best ranking season ?
### Query: SELECT "season" FROM table_204_415 ORDER BY ... |
### Context: CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Tags (
Id number,
TagName tex... |
### Context: CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id ... |
### Context: CREATE TABLE VISITORS (
Tourist_Details VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show details of all visitors.
### Query: SELECT Tourist_Details FROM VISITORS |
### Context: CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
fli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.