instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_44106 (
"Model" text,
"Years" text,
"Engine" text,
"Displacement" text,
"Power" text,
"Fuel system" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much power does the 1500 model have with a displacement of 1490cc?
| SELECT "Power" FROM table_44106 WHERE "Model" = '1500' AND "Displacement" = '1490cc' | wikisql |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE medication (
med... | SELECT MAX(vitalperiodic.respiration) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-146876')) AND NOT vitalperiodic.respiration IS... | eicu |
CREATE TABLE gyb (
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 text,
IN... | SELECT COUNT(*) FROM (SELECT qtb.MED_ORG_DEPT_CD FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '5878641' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2008-10-14' AND '2015-11-15' GROUP BY qtb.MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) >= 1815.95 UNION SELECT gyb.MED_ORG_DEPT_CD FR... | css |
CREATE TABLE table_203_440 (
id number,
"rank" number,
"player" text,
"from" text,
"to" text,
"transfer fee\n(\u20ac million)" number,
"year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which player paid the most in transfer fees ?
| SELECT "player" FROM table_203_440 ORDER BY "transfer fee\n(\u20ac million)" DESC LIMIT 1 | squall |
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,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "VENTRICULAR TACHYCARDIA" AND lab.flag = "abnormal" | mimicsql_data |
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE FlagTypes (
Id ... | SELECT DATEADD(wk, DATEDIFF(wk, 0, CreationDate), 0) AS PostWeek, Tags.TagName, COUNT(Posts.Id) AS QuestionCount FROM Posts JOIN PostTags ON Posts.Id = PostTags.PostId JOIN Tags ON PostTags.TagId = Tags.Id WHERE Tags.TagName IN ('clojurescript') GROUP BY DATEADD(wk, DATEDIFF(wk, 0, CreationDate), 0), Tags.TagName ORDER... | sede |
CREATE TABLE table_44863 (
"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 above.
-- In the... | SELECT "Score" FROM table_44863 WHERE "High points" = 'joe johnson (31)' | wikisql |
CREATE TABLE STUDENT (
STU_NUM int,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int
)
CREATE TABLE CO... | SELECT CRS_DESCRIPTION, COUNT(CRS_DESCRIPTION) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE GROUP BY EMP_FNAME, CRS_DESCRIPTION ORDER BY COUNT(CRS_DESCRIPTION) | nvbench |
CREATE TABLE table_name_33 (
manager VARCHAR,
home_city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the manager in the city of Osijek?
| SELECT manager FROM table_name_33 WHERE home_city = "osijek" | sql_create_context |
CREATE TABLE table_71540 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance at the game that had a loss of Mercker (3-1)?
| SELECT "Attendance" FROM table_71540 WHERE "Loss" = 'mercker (3-1)' | wikisql |
CREATE TABLE salary (
year number,
team_id text,
league_id text,
player_id text,
salary number
)
CREATE TABLE player_award (
player_id text,
award_id text,
year number,
league_id text,
tie text,
notes text
)
CREATE TABLE hall_of_fame (
player_id text,
yearid number,... | SELECT T1.birth_month FROM player AS T1 JOIN hall_of_fame AS T2 ON T1.player_id = T2.player_id WHERE T2.inducted = "Y" GROUP BY T1.birth_month ORDER BY COUNT(*) DESC LIMIT 1 | thehistoryofbaseball |
CREATE TABLE table_29583818_3 (
place VARCHAR,
couple VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times is the couple kerry & daniel?
| SELECT COUNT(place) FROM table_29583818_3 WHERE couple = "Kerry & Daniel" | sql_create_context |
CREATE TABLE table_name_7 (
opponent VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What opponent has an attendance of 20,456?
| SELECT opponent FROM table_name_7 WHERE attendance = "20,456" | sql_create_context |
CREATE TABLE table_name_93 (
final_episode VARCHAR,
actor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the last episode featuring Rob Estes?
| SELECT final_episode FROM table_name_93 WHERE actor = "rob estes" | sql_create_context |
CREATE TABLE table_32351 (
"Name" text,
"Took office" text,
"Left office" text,
"Party" text,
"Governor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which governor took office on January 13, 1877
| SELECT "Governor" FROM table_32351 WHERE "Took office" = 'january 13, 1877' | wikisql |
CREATE TABLE table_61882 (
"Tie no" text,
"Home team" text,
"Score 1" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Attendance at the Hereford United Away game?
| SELECT "Attendance" FROM table_61882 WHERE "Away team" = 'hereford united' | wikisql |
CREATE TABLE table_27622417_1 (
prod_code VARCHAR,
no_in_series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is the production code when the number of the episode in series is 87?
| SELECT prod_code FROM table_27622417_1 WHERE no_in_series = 87 | sql_create_context |
CREATE TABLE table_74226 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Rank (week)" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did the epi... | SELECT "Rank (week)" FROM table_74226 WHERE "Written by" = 'Thomas L. Moran' | wikisql |
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departu... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MILWAUKEE' AND date_day.day_number = 23 AND date_day.month_number = 4 AN... | atis |
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 questions for the... | SELECT Name, SUM(Revenue) FROM Manufacturers GROUP BY Name ORDER BY Name DESC | nvbench |
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,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.drug = "Milrinone" | mimicsql_data |
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 number,
F... | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_NM = '陈敏才' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT > 1086.52) | css |
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,
JYZBLSH text,
... | SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_jyjgzbb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jybgb_jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND jybgb_jyjgzbb.JYZBLSH = jyjgzbb.JYZBLSH AND jybgb_jyjgzbb.jyjgzbb_id ... | css |
CREATE TABLE table_26815674_1 (
wins VARCHAR,
final_placing VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 12th is the final placing what is the wins?
| SELECT wins FROM table_26815674_1 WHERE final_placing = "12th" | sql_create_context |
CREATE TABLE table_10608 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Channel" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the week 17 game played on?
| SELECT "Date" FROM table_10608 WHERE "Week" = '17' | wikisql |
CREATE TABLE table_name_11 (
game INTEGER,
march VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest game number of the game after March 2 with the minnesota north stars as the opponent?
| SELECT MIN(game) FROM table_name_11 WHERE march > 2 AND opponent = "minnesota north stars" | sql_create_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 text,
JY... | SELECT jybgb.BGDH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = '姜岚翠' AND NOT ... | css |
CREATE TABLE table_26561506_1 (
_number INTEGER,
patient_portrayer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest numbered episode with patient portrayer doug savant?
| SELECT MAX(_number) FROM table_26561506_1 WHERE patient_portrayer = "Doug Savant" | sql_create_context |
CREATE TABLE table_31180 (
"#" real,
"Title" text,
"Author" text,
"Doctor" text,
"Featuring" text,
"Read by" text,
"Published" text,
"ISBN" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The Ring of Steel possesses what ISBN?
| SELECT "ISBN" FROM table_31180 WHERE "Title" = 'The Ring Of Steel' | wikisql |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
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... | SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID | nvbench |
CREATE TABLE table_name_87 (
record VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record on July 28?
| SELECT record FROM table_name_87 WHERE date = "july 28" | sql_create_context |
CREATE TABLE table_35380 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Partnering of franco ferreiro had what tournament?
| SELECT "Tournament" FROM table_35380 WHERE "Partnering" = 'franco ferreiro' | wikisql |
CREATE TABLE table_203_399 (
id number,
"pos." text,
"driver" text,
"co-driver" text,
"car" text,
"time" text,
"difference" text,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what driver was the only one to score 8 points wh... | SELECT "driver" FROM table_203_399 WHERE "points" = 8 AND "car" = 'mitsubishi lancer evo ix' | squall |
CREATE TABLE table_32345 (
"Rank" real,
"Player" text,
"Nation" text,
"Shutouts" real,
"Games" real,
"Years" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player has less than 201 games, is ranked 2, and played between 2007-2012?
| SELECT "Player" FROM table_32345 WHERE "Games" < '201' AND "Rank" = '2' AND "Years" = '2007-2012' | wikisql |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAd... | SELECT COUNT(*) AS ClosedNonDupes, (SELECT COUNT(*) FROM Posts AS p WHERE p.PostTypeId = 1) AS Questions FROM PostHistory AS q WHERE q.PostHistoryTypeId = 10 AND q.Comment != 1 | sede |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABL... | SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 24517) ORDER BY labevents.charttime DESC LIMIT 1 | mimic_iii |
CREATE TABLE table_name_10 (
country VARCHAR,
city VARCHAR,
rank VARCHAR,
capacity VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country is ranked higher than 68, with a city named Santa Fe and a stadium that has a capacity of 32,000?
| SELECT country FROM table_name_10 WHERE rank > 68 AND capacity = "32,000" AND city = "santa fe" | sql_create_context |
CREATE TABLE table_26806 (
"Episode no." real,
"Airdate" text,
"Viewers" text,
"BBC Three weekly ranking" text,
"Cable rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which episode had bbc ranking and canle ranking of n/a?
| SELECT COUNT("Episode no.") FROM table_26806 WHERE "BBC Three weekly ranking" = 'N/A' AND "Cable rank" = 'N/A' | wikisql |
CREATE TABLE table_2822193_1 (
poles INTEGER,
races VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many poles are there with 2 races?
| SELECT MAX(poles) FROM table_2822193_1 WHERE races = 2 | sql_create_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,
INSURED_STS text,
... | SELECT t_kc21.MED_CLINIC_ID, t_kc21.PERSON_ID, t_kc21.PERSON_NM, t_kc21.IDENTITY_CARD, t_kc21.PERSON_SEX, t_kc21.PERSON_AGE FROM t_kc21 JOIN t_kc24 JOIN t_kc21_t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc24.MED_CLINIC_ID AND t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID WHERE t_kc24.MED_AMOUT = (SELECT t_kc24.... | css |
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,
MZZYZDZZBM... | SELECT * FROM person_info JOIN hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jy... | css |
CREATE TABLE qtb (
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 text,
IN... | SELECT * FROM qtb WHERE qtb.PERSON_ID = '58275827' AND qtb.MED_SER_ORG_NO = '6736860' AND NOT qtb.MED_ORG_DEPT_NM LIKE '%儿保科%' UNION SELECT * FROM gyb WHERE gyb.PERSON_ID = '58275827' AND gyb.MED_SER_ORG_NO = '6736860' AND NOT gyb.MED_ORG_DEPT_NM LIKE '%儿保科%' UNION SELECT * FROM zyb WHERE zyb.PERSON_ID = '58275827' AND... | css |
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CRE... | SELECT DISTINCT advance_purchase, application, maximum_stay, minimum_stay, no_discounts, restriction_code, saturday_stay_required, stopovers FROM restriction WHERE restriction_code = 'AP/68' | atis |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
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_... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY COUNT(HIRE_DATE) | nvbench |
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 (
Id numb... | SELECT Score, Id AS "post_link", AnswerCount FROM Posts WHERE Title LIKE '%worst%' OR Title LIKE '%best%' ORDER BY Score DESC | sede |
CREATE TABLE table_74202 (
"No. in series" text,
"No. in season" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Directed by" FROM table_74202 WHERE "U.S. viewers (millions)" = '6.3' | wikisql |
CREATE TABLE table_3467 (
"Player" text,
"Number Of Selections" real,
"First Team" real,
"Second Team" real,
"Season MVP" real,
"Final Four MVP" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when season mvp is larger than 1.0 what is the maximu... | SELECT MAX("Number Of Selections") FROM table_3467 WHERE "Season MVP" > '1.0' | wikisql |
CREATE TABLE table_55517 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the european indoor championships after 1974?
| SELECT "Result" FROM table_55517 WHERE "Tournament" = 'european indoor championships' AND "Year" > '1974' | wikisql |
CREATE TABLE apartment_facilities (
apt_id number,
facility_code text
)
CREATE TABLE apartment_buildings (
building_id number,
building_short_name text,
building_full_name text,
building_description text,
building_address text,
building_manager text,
building_phone text
)
CREATE TA... | SELECT apt_type_code, MAX(room_count), MIN(room_count) FROM apartments GROUP BY apt_type_code | spider |
CREATE TABLE table_72917 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the census ranking(s) of maugerville?
| SELECT "Census Ranking" FROM table_72917 WHERE "Official Name" = 'Maugerville' | wikisql |
CREATE TABLE table_79033 (
"Shooter" text,
"Event" text,
"Rank points" text,
"Score points" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a total of 11, what is the score points?
| SELECT "Score points" FROM table_79033 WHERE "Total" = '11' | wikisql |
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,
value_unit text,... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.ethnicity = "WHITE - RUSSIAN" | mimicsql_data |
CREATE TABLE table_name_37 (
label VARCHAR,
date VARCHAR,
format VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What label released a CD in 1988?
| SELECT label FROM table_name_37 WHERE date = "1988" AND format = "cd" | sql_create_context |
CREATE TABLE zyjzjlb_jybgb (
YLJGDM_ZYJZJLB text,
BGDH number,
YLJGDM number
)
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,
X... | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jy... | css |
CREATE TABLE table_16951593_1 (
written_by VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name who wrote the episode that had 7.56 million viewers
| SELECT written_by FROM table_16951593_1 WHERE us_viewers__millions_ = "7.56" | sql_create_context |
CREATE TABLE table_68162 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points have a Year larger than 1966?
| SELECT COUNT("Points") FROM table_68162 WHERE "Year" > '1966' | wikisql |
CREATE TABLE txmzjzjlb (
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,
MZZYZDZ... | SELECT txmzjzjlb.YLJGDM FROM hz_info JOIN txmzjzjlb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE hz_info.RYBH = '68891668' UNION SELECT ftxmzjzjlb.YLJGDM FROM hz_info JOIN ftxmzjzjlb ON hz_info.YLJGDM = ftxmzjzjlb.YLJGDM AND hz_info.KH = ftxmzjzjlb.KH AND hz_i... | css |
CREATE TABLE table_name_20 (
hometown VARCHAR,
position VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the hometown for the player that is defensive back and went to alabama?
| SELECT hometown FROM table_name_20 WHERE position = "defensive back" AND college = "alabama" | sql_create_context |
CREATE TABLE table_2182562_2 (
winnings VARCHAR,
avg_finish VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different amounts of winnings were there for the year when the team had an average finish of 17.4?
| SELECT COUNT(winnings) FROM table_2182562_2 WHERE avg_finish = "17.4" | sql_create_context |
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE member_of (
facid number,
dno number,
appt_type text
)
CREATE TABLE minor_in (
stuid number,
dno number
)
CREATE TABLE fac... | SELECT dphone FROM department WHERE room = 268 | spider |
CREATE TABLE table_69115 (
"City" text,
"Jan." text,
"Feb." text,
"Mar." text,
"Apr." text,
"Jun." text,
"Jul." text,
"Aug." text,
"Sep." text,
"Oct." text,
"Nov." text,
"Dec." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Jun." FROM table_69115 WHERE "Jul." = '84 °f / 28.9 °c' | wikisql |
CREATE TABLE table_name_48 (
round INTEGER,
college VARCHAR,
pick__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average round that the player from USF was picked in when his draft pick number was less than 24?
| SELECT AVG(round) FROM table_name_48 WHERE college = "usf" AND pick__number < 24 | sql_create_context |
CREATE TABLE table_9820 (
"Division" text,
"1999" real,
"2000" real,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
)
-- Using valid SQLite, answer the following quest... | SELECT MAX("2002") FROM table_9820 WHERE "2008" > '19.5' AND "2006" < '24.5' AND "1999" = '18.3' | wikisql |
CREATE TABLE table_46454 (
"Date" text,
"Venue" text,
"Score" text,
"Competition" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE VENUE ON MARCH 28, 2008?
| SELECT "Venue" FROM table_46454 WHERE "Date" = 'march 28, 2008' | wikisql |
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTyp... | SELECT CONCAT(YEAR(P.CreationDate), '-', MONTH(P.CreationDate)) AS YearMonth, 'DigitalOcean' AS TagName, COUNT(*) AS PostCount FROM Posts AS P INNER JOIN PostTags AS PT ON (P.Id = PT.PostId) INNER JOIN Tags AS T ON (PT.TagId = T.Id) WHERE T.TagName LIKE 'digital-ocean' GROUP BY YEAR(P.CreationDate), MONTH(P.CreationDat... | sede |
CREATE TABLE table_56718 (
"Athlete" text,
"Event" text,
"Round of 16" text,
"Quarterfinal" text,
"Semifinal" text,
"Final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Hossein Ojaghi participated in what semifinal.
| SELECT "Semifinal" FROM table_56718 WHERE "Athlete" = 'hossein ojaghi' | wikisql |
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
-- Using valid SQLite, answer the following questions for the tabl... | SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor ORDER BY Investor | nvbench |
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 treatment (
... | SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-200601') AND NOT patient.unitdischargetime IS NULL ORDER BY patient.un... | eicu |
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_PLACE_FLG numb... | SELECT AVG(IN_HOSP_DAYS) FROM t_kc21 WHERE MED_SER_ORG_NO = '6831757' AND IN_HOSP_DATE BETWEEN '2006-09-17' AND '2011-03-29' | css |
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id nu... | SELECT Type, Title FROM ((SELECT Id, 'Question' AS Type, Title FROM Posts WHERE PostTypeId = 1) UNION ALL (SELECT A.Id, 'Answer' AS Type, Q.Title FROM Posts AS A INNER JOIN Posts AS Q ON Q.Id = A.ParentId)) AS O LEFT JOIN (SELECT PostId FROM Votes WHERE UserId = '##Voter##') AS V ON V.PostId = O.Id WHERE V.PostId IS NU... | sede |
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 prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "LEFT COLON CANCER" AND demographic.age < "67" | mimicsql_data |
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId numbe... | SELECT PostId AS "post_link", CreationDate AS "protection_date" FROM PostHistory WHERE PostHistoryTypeId = 19 AND UserId = '##UserId:int##' ORDER BY CreationDate DESC | sede |
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 university (
Scho... | SELECT ACC_Regular_Season, School_ID FROM basketball_match | nvbench |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID... | SELECT FIRST_NAME, COUNT(FIRST_NAME) FROM employees WHERE FIRST_NAME LIKE '%m' GROUP BY FIRST_NAME | nvbench |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
)
C... | SELECT demographic.diagnosis, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Jane Dillard" | mimicsql_data |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id... | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT inputevents_cv.itemid FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14458)) AND DATETIME(inputevents_cv.... | mimic_iii |
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
-- Using valid SQLite, answer the ... | SELECT Author, COUNT(Author) FROM submission GROUP BY Author | nvbench |
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_DIRE_NM text,... | SELECT MED_ORG_DEPT_NM, IN_DIAG_DIS_NM, AVG(PERSON_AGE) FROM t_kc21 WHERE MED_SER_ORG_NO = '7863848' GROUP BY MED_ORG_DEPT_NM, IN_DIAG_DIS_NM | css |
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 questions for the... | SELECT T2.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Manufacturer | nvbench |
CREATE TABLE table_45528 (
"Rider" text,
"Manufacturer" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps does grid 4 have?
| SELECT "Laps" FROM table_45528 WHERE "Grid" = '4' | wikisql |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY ... | SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(DEPARTMENT_ID) DESC | nvbench |
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,... | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'CHICAGO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DETRO... | atis |
CREATE TABLE table_name_7 (
round VARCHAR,
venue VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round was at the A venue with a attendance more than 14,314?
| SELECT round FROM table_name_7 WHERE venue = "a" AND attendance > 14 OFFSET 314 | sql_create_context |
CREATE TABLE table_24233 (
"Name" text,
"Municipal status" text,
"Census division" text,
"Population (2011)" real,
"Population (2006)" real,
"Change (%)" text,
"Area (km\u00b2)" text,
"Population density" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Name" FROM table_24233 WHERE "Population density" = '200' | wikisql |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm... | SELECT patients.dob FROM patients WHERE patients.subject_id = 19175 | mimic_iii |
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 prescription... | SELECT demographic.insurance FROM demographic WHERE demographic.name = "Morgan Mcgee" | mimicsql_data |
CREATE TABLE table_name_73 (
assist_pass VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Assist/pass has a Result of 6-2?
| SELECT assist_pass FROM table_name_73 WHERE result = "6-2" | sql_create_context |
CREATE TABLE table_22514845_4 (
trophy_presentation VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the trophy presentation in the year 1987?
| SELECT trophy_presentation FROM table_22514845_4 WHERE year = 1987 | sql_create_context |
CREATE TABLE table_name_75 (
model VARCHAR,
sail_area VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Model has a Sail Area of 24.5 m ?
| SELECT model FROM table_name_75 WHERE sail_area = "24.5 m²" | sql_create_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 number,
... | SELECT t_kc21.MED_ORG_DEPT_CD, t_kc21.OUT_DIAG_DIS_NM, AVG(t_kc21.PERSON_AGE) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '1534416' GROUP BY t_kc21.MED_ORG_DEPT_CD, t_kc21.OUT_DIAG_DIS_NM | css |
CREATE TABLE table_15463188_7 (
position VARCHAR,
school_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the position for san beda
| SELECT position FROM table_15463188_7 WHERE school_club_team = "San Beda" | sql_create_context |
CREATE TABLE table_name_14 (
wins VARCHAR,
engine VARCHAR,
racing_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times did Super Nova Racing win with a zytek engine?
| SELECT wins FROM table_name_14 WHERE engine = "zytek" AND racing_team = "super nova racing" | sql_create_context |
CREATE TABLE table_name_3 (
country VARCHAR,
to_par VARCHAR,
year_s__won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1
| SELECT country FROM table_name_3 WHERE to_par > 3 AND year_s__won = "1979" | sql_create_context |
CREATE TABLE table_58397 (
"Grand Prix" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Grand Prix for pole position of kimi r ikk nen
| SELECT "Grand Prix" FROM table_58397 WHERE "Pole Position" = 'kimi räikkönen' | wikisql |
CREATE TABLE table_name_34 (
election VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 1st party during the 1857 election?
| SELECT 1 AS st_party FROM table_name_34 WHERE election = "1857" | sql_create_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 PostNoticeTypes (
Id number,
ClassId number,
Na... | SELECT DATEADD(MONTH, DATEDIFF(MONTH, 0, CreationDate), 0) AS "month", COUNT(DISTINCT Posts.Id) AS Count FROM Posts INNER JOIN PostTags ON PostTags.PostId = Posts.Id INNER JOIN Tags ON PostTags.TagId = Tags.Id WHERE Tags.TagName LIKE '%cassandra%' AND PostTypeId = 1 AND CreationDate > '2012-01-01' GROUP BY DATEADD(MONT... | sede |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
E... | SELECT CreationDate - minDate.firstGame, Score FROM Posts, (SELECT MIN(CreationDate) AS firstGame FROM Posts WHERE Posts.ParentId = 1356) AS minDate WHERE Posts.ParentId = 1356 UNION SELECT CreationDate - minDate.firstGame, Score FROM Posts, (SELECT MIN(CreationDate) AS firstGame FROM Posts WHERE Posts.ParentId = 1449)... | sede |
CREATE TABLE table_name_96 (
director VARCHAR,
gross VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What director grossed $200,512,643
| SELECT director FROM table_name_96 WHERE gross = "$200,512,643" | sql_create_context |
CREATE TABLE table_59961 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What status has France as the opposing teams?
| SELECT "Status" FROM table_59961 WHERE "Opposing Teams" = 'france' | wikisql |
CREATE TABLE table_43271 (
"Position" real,
"Artist" text,
"Song" text,
"Lyrics (l) / Music (m)" text,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest Position for the Song, 'If I Can't Find My Love'?
| SELECT MIN("Position") FROM table_43271 WHERE "Song" = 'if i can''t find my love' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.