text stringlengths 197 8.39k |
|---|
### Context: CREATE TABLE table_name_31 (
award VARCHAR,
result VARCHAR,
organisation VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the award for the Star Awards earlier than 2005 and the result is won?
### Query: SELECT award... |
### Context: CREATE TABLE table_name_49 (
record VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record of the game on September 6?
### Query: SELECT record FROM table_name_49 WHERE date = "september 6" |
### Context: CREATE TABLE Has_amenity (
dormid INTEGER,
amenid INTEGER
)
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Dorm_amenity (
amenid INTEGER,
amenity_name VARCHAR(25)
)
CREATE TABLE Lives_in (
stuid IN... |
### Context: CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLi... |
### Context: CREATE TABLE table_64229 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Game that came out before the year 2009 for the Playstation 3?
### Query: ... |
### Context: CREATE TABLE table_34556 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game Site" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent was played on week 9?
### Query: SELECT "Opponent" FROM table_34556 WHERE "W... |
### Context: CREATE TABLE table_name_42 (
text_symbol VARCHAR,
border VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which sign has a red border?
### Query: SELECT text_symbol FROM table_name_42 WHERE border = "red" |
### Context: CREATE TABLE table_261895_1 (
institution VARCHAR,
joined VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in 1953, which of the institutions joined?
### Query: SELECT institution FROM table_261895_1 WHERE joined = "1953" |
### Context: CREATE TABLE table_15532 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Country of origin for the film directed by George Miller?
### Qu... |
### Context: CREATE TABLE table_204_314 (
id number,
"pos" number,
"team" text,
"played" number,
"won" number,
"draw" number,
"lost" number,
"goals for" number,
"goals against" number,
"goal difference" number,
"points" number,
"notes" text
)
-- Using valid SQLite, answ... |
### Context: CREATE TABLE table_2562572_35 (
dominant_religion__2002_ VARCHAR,
type VARCHAR,
settlement VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the dominant religion 2002 for village banatski despotovac
### Query: SELECT dominant_religion__2... |
### Context: CREATE TABLE table_15981 (
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team is Keith Mccambridge on?
### Query: SE... |
### Context: CREATE TABLE table_name_40 (
player VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Player's Score is 69-68-66-70=273?
### Query: SELECT player FROM table_name_40 WHERE score = 69 - 68 - 66 - 70 = 273 |
### Context: CREATE TABLE table_20350118_1 (
obama_number VARCHAR,
obama_percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different results were there for the number of votes fro Obama in the county where he got 27.8% of the votes?
### Que... |
### Context: CREATE TABLE table_name_21 (
silver INTEGER,
rank VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the amount of silver for rank 11 having less than 0 gold?
### Query: SELECT MIN(silver) FROM table_name_21 WHERE rank = "... |
### Context: CREATE TABLE table_name_5 (
crowd INTEGER,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Lowest Crowd, when Home Team is Brisbane Lions?
### Query: SELECT MIN(crowd) FROM table_name_5 WHERE home_team = "brisbane lions" |
### Context: CREATE TABLE table_204_34 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the difference in gold between algeria and ca... |
### 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_14448 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... |
### Context: CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid n... |
### Context: CREATE TABLE table_name_38 (
gold VARCHAR,
bronze VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Gold has a Bronze larger than 1, and a Silver larger than 2?
### Query: SELECT COUNT(gold) FROM table_name_38 WHERE br... |
### Context: CREATE TABLE table_21796261_4 (
date VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the game on Taylor Field played?
### Query: SELECT date FROM table_21796261_4 WHERE location = "Taylor Field" |
### Context: CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
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,... |
### Context: CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM... |
### Context: CREATE TABLE table_43843 (
"School" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Nickname" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school has the nickname of Cardinals?
### Query: SELECT MIN("Founded") FROM t... |
### 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 txmzjzjlb (
HXPLC nu... |
### 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 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 zyb (
CLINIC_ID 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,
INSURED_STS text,
INSU_TYPE... |
### Context: CREATE TABLE table_name_42 (
score VARCHAR,
to_par VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When curtis strange had a to par +1, what was his score?
### Query: SELECT score FROM table_name_42 WHERE to_par = "+1" AND pl... |
### Context: CREATE TABLE table_29871617_1 (
coreceptor VARCHAR,
chromosomal_location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the coreceptors of the chromosomes in that location 11q22.2-q22.3?
### Query: SELECT coreceptor FROM table_29871617... |
### 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 student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE participates_in (
stuid number,
actid number
)
CREATE TABLE faculty (
facid number,
lname text,
fname text,
... |
### 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_34088 (
"Driver" text,
"Points" real,
"Season" real,
"Races" real,
"Percentage of possible points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points have a percentage of possible points of 67.22%?
### Qu... |
### Context: CREATE TABLE election (
election_id number,
counties_represented text,
district number,
delegate text,
party number,
first_elected number,
committee text
)
CREATE TABLE party (
party_id number,
year number,
party text,
governor text,
lieutenant_governor text... |
### Context: CREATE TABLE table_2933761_1 (
played_by VARCHAR,
occupation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played the mathematics student?
### Query: SELECT played_by FROM table_2933761_1 WHERE occupation = "Mathematics Student" |
### Context: CREATE TABLE table_58630 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"Podiums" real,
"Points" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of P... |
### Context: CREATE TABLE table_69929 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what tournament happened on may 2, 2011?
### Query: SELECT "Tournament" FROM table_69929... |
### 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_45 (
attendance INTEGER,
venue VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On 1 september 2007, at the Venue A, what was the average attendance?
### Query: SELECT AVG(attendance) FROM table_name_45 W... |
### Context: CREATE TABLE Nurse (
EmployeeID INTEGER,
Name VARCHAR(30),
Position VARCHAR(30),
Registered BOOLEAN,
SSN INTEGER
)
CREATE TABLE Room (
RoomNumber INTEGER,
RoomType VARCHAR(30),
BlockFloor INTEGER,
BlockCode INTEGER,
Unavailable BOOLEAN
)
CREATE TABLE Stay (
Sta... |
### Context: CREATE TABLE table_name_62 (
population__percentage_1971 VARCHAR,
population__percentage_1981 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the group with 1.92% population in 1981, what was their percentage of the population in 1971?
### Q... |
### Context: CREATE TABLE table_name_54 (
jersey_number_s_ VARCHAR,
years VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the jersey number of the player from years 1986 1991 1997 1999?
### Query: SELECT jersey_number_s_ FROM table_name_54 WHERE year... |
### Context: CREATE TABLE table_204_572 (
id number,
"rank" number,
"county" text,
"per capita\nincome" text,
"median\nhousehold\nincome" text,
"median\nfamily\nincome" text,
"population" number,
"number of\nhouseholds" number
)
-- Using valid SQLite, answer the following questions for... |
### Context: CREATE TABLE table_name_40 (
attendance INTEGER,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of all attendance on November 17, 1961?
### Query: SELECT SUM(attendance) FROM table_name_40 WHERE date = "november 17, 1961" |
### Context: CREATE TABLE table_39995 (
"Gill" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" text,
"Diameter (mi)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for the Diameter (km) when the Diameter (mi) is 8mi, and a Gill i... |
### Context: CREATE TABLE company (
Company_ID int,
Rank int,
Company text,
Headquarters text,
Main_Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value real
)
CREATE TABLE station_company (
Station_ID int,
Company_ID int,
Rank_of_th... |
### Context: CREATE TABLE table_2884 (
"Rank" real,
"Rider" text,
"Mon 24 Aug" text,
"Tues 25 Aug" text,
"Wed 26 Aug" text,
"Thurs 27 Aug" text,
"Fri 28 Aug" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every rider on Monday August... |
### Context: CREATE TABLE table_name_27 (
time VARCHAR,
rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What time did rider steve plater have?
### Query: SELECT time FROM table_name_27 WHERE rider = "steve plater" |
### 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 (
player_id number,
player text,
team text,
age number,
position text,
school_id number
)
CREATE TABLE school_details (
school_id number,
nickname text,
colors text,
league text,
class text,
division text
)
CREATE TABLE school_performanc... |
### Context: CREATE TABLE fgwyjzb (
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,
INSUR... |
### Context: CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int,
Member_in_charge_ID int
)
CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label... |
### Context: CREATE TABLE table_name_17 (
road_team VARCHAR,
home_team VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Road team has a Home team of portland, and a Date of may 31?
### Query: SELECT road_team FROM table_name_17 WHERE h... |
### Context: CREATE TABLE table_52782 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the friendly competition?
### Query: SELECT "Score" FROM table_52782 W... |
### 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_13 (
frequency_mhz INTEGER,
city_of_license VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is average frequency MHZ when is in portales, new mexico?
### Query: SELECT AVG(frequency_mhz) FROM table_name_13 WHERE city... |
### Context: CREATE TABLE table_name_90 (
profession VARCHAR,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the profession of the housemate from Leskovac city?
### Query: SELECT profession FROM table_name_90 WHERE city = "leskovac" |
### Context: CREATE TABLE table_name_71 (
tyre VARCHAR,
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tyre was used in the Zandvoort circuit?
### Query: SELECT tyre FROM table_name_71 WHERE circuit = "zandvoort" |
### Context: CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
cul... |
### 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_13623 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"# / County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location with enrollment of 316 and county is 6... |
### Context: CREATE TABLE table_80204 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Home Captain has Eng by 208 runs?
### Query: SELECT "Home captain" FROM table... |
### Context: CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
... |
### 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 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_name_28 (
to_par INTEGER,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the to par for the player with total of 155?
### Query: SELECT AVG(to_par) FROM table_name_28 WHERE total = 155 |
### Context: CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE documents_with_expenses (
document_id number,
budget_type_code text,
document_details text
)
CREATE TABLE statements (
statement_id number,
sta... |
### Context: CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
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_tests int,
good_feedback in... |
### Context: CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE labevents (
row_id... |
### Context: CREATE TABLE table_name_64 (
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 2006-07 Season, when Team is 'KF Fush Kosova'?
### Query: SELECT 2006 AS _07_season FROM table_name_64 WHERE team = "kf fushë kosova" |
### Context: CREATE TABLE table_name_26 (
loss INTEGER,
gain VARCHAR,
long VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Loss for the long of more than 12 with a name of opponents with a Gain larger than 1751?
### ... |
### Context: CREATE TABLE member (
card_number VARCHAR,
Hometown VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- list the card number of all members whose hometown address includes word 'Kentucky'.
### Query: SELECT card_number FROM member WHERE Hometown LIK... |
### Context: CREATE TABLE table_37050 (
"Athlete" text,
"Country" text,
"Run 1" real,
"Run 2" real,
"Run 3" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the run 3 of the athlete with a run 1 more than 53.75 and a run 2 less than 52.91?
##... |
### 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_67 (
institution VARCHAR,
chief_judge VARCHAR,
year VARCHAR,
award VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What institution won 2nd more recently than 2007 with Peter Agre as Chief Judge?
### Query: SELECT... |
### Context: CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
... |
### 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_2562572_53 (
settlement VARCHAR,
population__2011_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the settlement that had a population of 9443 in 2011?
### Query: SELECT settlement FROM table_2562572_53 WH... |
### Context: CREATE TABLE table_name_96 (
laps VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps were there in the race that netted the winner 19 points?
### Query: SELECT laps FROM table_name_96 WHERE points = 19 |
### 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE... |
### Context: CREATE TABLE table_24608 (
"Season" text,
"Timeslot Times listed are Eastern time" text,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Ranking" real,
"Viewers (in millions of households)" text
)
-- Using valid SQLite, answer the following questions for the t... |
### Context: CREATE TABLE table_name_51 (
tns_sofres_6_2_09 VARCHAR,
ipsos_6_3_09 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the TNS-Sofres when Ipsos was 27%?
### Query: SELECT tns_sofres_6_2_09 FROM table_name_51 WHERE ipsos_6_3_09 = "27%" |
### Context: CREATE TABLE table_29002641_1 (
into_service VARCHAR,
number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the into service for dh2
### Query: SELECT into_service FROM table_29002641_1 WHERE number = "DH2" |
### Context: CREATE TABLE table_204_143 (
id number,
"national park" text,
"region" text,
"land area (km2)" number,
"established" number,
"visitation (2009)" number,
"coordinates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the n... |
### 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_55490 (
"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.
-- How many points did the away team s... |
### Context: CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text... |
### Context: CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId nu... |
### Context: CREATE TABLE table_54520 (
"Species" text,
"Strain" text,
"Type" text,
"Base Pairs" real,
"Genes" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of genes in Rubrobacter Xylanophilus?
### Query: SELECT MIN("Gen... |
### Context: CREATE TABLE table_203_834 (
id number,
"rank" number,
"census subdivision" text,
"province" text,
"type" text,
"land area\n(km2, 2011)" number,
"population 2011" number,
"population 2006" number,
"population 2001" number,
"population 1996" number,
"change in % 2... |
### Context: CREATE TABLE students_in_detention (
student_id number,
detention_id number,
incident_id number
)
CREATE TABLE student_addresses (
student_id number,
address_id number,
date_address_from time,
date_address_to time,
monthly_rental number,
other_details text
)
CREATE TAB... |
### Context: CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5)
)
CREATE TABLE EMPLOYEE (
EMP_NUM int,
EMP_LNAME varchar(15),
EMP_FNAME varchar(12),
EMP_INITIAL varchar(1),
EMP_JOBCODE varc... |
### Context: CREATE TABLE t_kc21_t_kc24 (
MED_CLINIC_ID text,
MED_SAFE_PAY_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 hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE zyjybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH number,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JS... |
### Context: CREATE TABLE table_16252 (
"Season" text,
"Series" text,
"Team Name" text,
"Races" real,
"Poles" real,
"Wins" real,
"Points" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the least number of poles?
... |
### Context: CREATE TABLE table_31268 (
"Season" real,
"Apocalypstix" text,
"Denim Demons" text,
"Sake Tuyas" text,
"Toxic Shocks" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place did the Sake Tuyas come in when the Denim Demons were 4th?
... |
### Context: CREATE TABLE table_name_53 (
result VARCHAR,
captain_1 VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result has a Captain 1 of louis burger, and a Date of 30 october 2 november?
### Query: SELECT result FROM table_name_... |
### Context: CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE paperkeyphrase (
paperid in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.