instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_6234 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average attendance that has april 12 as the date?
| SELECT AVG("Attendance") FROM table_6234 WHERE "Date" = 'april 12' | wikisql |
CREATE TABLE table_74772 (
"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 venue when fitzroy was the away team... | SELECT "Venue" FROM table_74772 WHERE "Away team" = 'fitzroy' | wikisql |
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId... | SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS MayRank, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, rate.Rate AS QuestionsInMay, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AN... | sede |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
... | SELECT STRFTIME('%j', admissions.dischtime) - STRFTIME('%j', admissions.admittime) FROM admissions WHERE admissions.subject_id = 60142 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1 | mimic_iii |
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
countr... | SELECT DISTINCT advisory_requirement, enforced_requirement, name FROM course WHERE department = 'EECS' AND number = 698 | advising |
CREATE TABLE table_65798 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponent in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent in the final of the Senegal f2 tour... | SELECT "Opponent in the final" FROM table_65798 WHERE "Tournament" = 'senegal f2' | wikisql |
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 demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2121" AND procedures.long_title = "Biopsy of tonsils and adenoids" | mimicsql_data |
CREATE TABLE table_name_54 (
region VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest value for 1990, when the Region is East Asia (10 Economies), and when 1960 has a value less than 12.6?
| SELECT MIN(1990) FROM table_name_54 WHERE region = "east asia (10 economies)" AND 1960 < 12.6 | sql_create_context |
CREATE TABLE table_name_65 (
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the highest 3rd place for nation of perak fa
| SELECT MAX(3 AS rd_place) FROM table_name_65 WHERE nation = "perak fa" | sql_create_context |
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
... | 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 = 'SEATTLE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'KANSA... | atis |
CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM text,
RZBQMC text,
RYCWH text,
CYKSDM text,
CYKSMC text,
CYBQDM tex... | SELECT SHRGH, SHRXM FROM jybgb WHERE JZLSH = '72786598852' | css |
CREATE TABLE table_name_26 (
headquarters VARCHAR,
company VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the headquarters of the getinge group located?
| SELECT headquarters FROM table_name_26 WHERE company = "getinge group" | sql_create_context |
CREATE TABLE table_53046 (
"Date" text,
"Opponent" text,
"Home/Away" text,
"Field" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent at Bishop Kearney Field?
| SELECT "Opponent" FROM table_53046 WHERE "Field" = 'bishop kearney field' | wikisql |
CREATE TABLE table_name_15 (
notes VARCHAR,
channel VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the notes of the transmission on channel bbc four and a time of 22:30?
| SELECT notes FROM table_name_15 WHERE channel = "bbc four" AND time = "22:30" | sql_create_context |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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 ... | SELECT t_kc21.OUT_DIAG_DIS_CD, t_kc21.OUT_DIAG_DIS_NM FROM t_kc21 WHERE t_kc21.PERSON_NM = '苗嘉美' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT > 3577.79) | css |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE c... | SELECT COUNT(DISTINCT t2.subject_id) FROM (SELECT t1.subject_id, t1.charttime FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_di... | mimic_iii |
CREATE TABLE table_name_33 (
name VARCHAR,
term_expires VARCHAR,
appointing_governor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a term that expires on December 31, 2020 and Terry Branstad for an appointing governor?
| SELECT name FROM table_name_33 WHERE term_expires = "december 31, 2020" AND appointing_governor = "terry branstad" | sql_create_context |
CREATE TABLE table_name_90 (
home_team VARCHAR,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team played Essendon?
| SELECT home_team FROM table_name_90 WHERE away_team = "essendon" | sql_create_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_DIRE_CD text,
MED_DIRE_NM text,... | SELECT AVG(t_kc21.MED_AMOUT) FROM t_kc21 WHERE t_kc21.MED_ORG_DEPT_CD = '5788' AND t_kc21.IN_HOSP_DATE BETWEEN '2007-06-11' AND '2021-09-04' AND t_kc21.IN_DIAG_DIS_NM = '酒精性肝硬化' AND t_kc21.CLINIC_TYPE = '住院' | css |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
... | SELECT (SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'opioid dep... | mimic_iii |
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Age int
)
CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time bool
)
CREATE TABLE school (
School_ID int,
Grade text,
School text,
Location text,
Type... | SELECT Name, Age FROM driver ORDER BY Name | nvbench |
CREATE TABLE table_23402 (
"Rd." real,
"Circuit" text,
"City / State" text,
"Date" text,
"Format" text,
"Round winner" text,
"Car" text,
"Entrant" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which circuit has two heats as the format?
| SELECT "Circuit" FROM table_23402 WHERE "Format" = 'Two heats' | wikisql |
CREATE TABLE table_41192 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date for a week higher than 7 with a record of 9 1?... | SELECT "Date" FROM table_41192 WHERE "Week" > '7' AND "Record" = '9–1' | wikisql |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversa... | SELECT u.DisplayName, u.Reputation, u.Location, u.Age, u.Views, u.UpVotes FROM Users AS u WHERE u.Location LIKE '%Portugal%' GROUP BY u.DisplayName, u.Reputation, u.Location, u.Age, u.Views, u.UpVotes ORDER BY Reputation DESC LIMIT 150 | sede |
CREATE TABLE table_75750 (
"Election" real,
"Liberal Party" text,
"Conservative Party" text,
"Labour Party" text,
"Independents" text,
"Control" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Liberal Party result from the election h... | SELECT "Liberal Party" FROM table_75750 WHERE "Conservative Party" = '16 (-1)' AND "Labour Party" = '6 (+2)' | wikisql |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
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 d... | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT inputevents_cv.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM inputevents_cv WHERE STRFTIME('%y', inputevents_cv.charttime) >= '2103' GROUP BY inputevents_cv.itemid) AS t1 WHERE t1.c1 <= 4) | mimic_iii |
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 qtb.MED_SER_ORG_NO FROM qtb WHERE qtb.PERSON_ID = '37552103' AND qtb.IN_HOSP_DATE BETWEEN '2000-07-24' AND '2006-09-16' GROUP BY qtb.MED_SER_ORG_NO ORDER BY COUNT(*) DESC LIMIT 1 UNION SELECT gyb.MED_SER_ORG_NO FROM gyb WHERE gyb.PERSON_ID = '37552103' AND gyb.IN_HOSP_DATE BETWEEN '2000-07-24' AND '2006-09-16' G... | css |
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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "43820" AND prescriptions.drug_type = "BASE" | mimicsql_data |
CREATE TABLE diagnoses (
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 demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.discharge_location = "SNF" AND lab.label = "Bilirubin" | mimicsql_data |
CREATE TABLE table_10609 (
"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 was the attendance on week 12?
| SELECT "Attendance" FROM table_10609 WHERE "Week" = '12' | wikisql |
CREATE TABLE table_47543 (
"Elector" text,
"Nationality" text,
"Order" text,
"Title" text,
"Elevated" text,
"Elevator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Nationality of the Deacon of S. Maria in Via Lata?
| SELECT "Nationality" FROM table_47543 WHERE "Title" = 'deacon of s. maria in via lata' | wikisql |
CREATE TABLE table_name_41 (
not_outs VARCHAR,
average VARCHAR,
runs VARCHAR,
innings VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of Not Outs when there were more than 327 runs and 24 innings, and an average of 29.54
| SELECT not_outs FROM table_name_41 WHERE runs > 327 AND innings > 24 AND average = 29.54 | sql_create_context |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
h... | SELECT SUM(outputevents.value) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2127)) AND DATETIME(outputevents.charttime) <= DATETIME(CURRENT_TIME(), '-1489 day') | mimic_iii |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
... | SELECT FIRST_NAME, AVG(SALARY) FROM employees WHERE FIRST_NAME LIKE '%m' GROUP BY FIRST_NAME ORDER BY AVG(SALARY) | nvbench |
CREATE TABLE table_48321 (
"Year" real,
"Venue" text,
"Winner" text,
"Runner Up" text,
"Third Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the runner-up at the event held in Tartu, Estonia?
| SELECT "Runner Up" FROM table_48321 WHERE "Venue" = 'tartu, estonia' | wikisql |
CREATE TABLE table_51085 (
"American name" text,
"British name" text,
"Value" text,
"Dotted Value" text,
"Double Dotted Value" text,
"Triple Dotted Value" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the value when the british name is ... | SELECT "Value" FROM table_51085 WHERE "British name" = 'maxima' | wikisql |
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
... | SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight AS FLIGHT_0, flight AS FLIGHT_1, flight AS FLIGHT_2 WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.cit... | atis |
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jo... | SELECT DISTINCT semester.semester, semester.year FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.number = 962 AND course_offering.semester = semester.semester_id AND instructor.name LIKE '%Finn Bell%' AND offering_instructor.instructo... | advising |
CREATE TABLE table_17662 (
"Strongs #" text,
"Hebrew word" text,
"Strongs Transliteration" text,
"Strongs Words Compounded" text,
"English Spelling" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the hebrew word for the strongs words compounded... | SELECT "Hebrew word" FROM table_17662 WHERE "Strongs Words Compounded" = 'adown [# 113] & Yahu' | wikisql |
CREATE TABLE table_39254 (
"Rank" real,
"Town" text,
"Population" real,
"Year" real,
"Borough" text,
"Definition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rank is the lowest one that has a Borough of richmondshire, and a Population l... | SELECT MIN("Rank") FROM table_39254 WHERE "Borough" = 'richmondshire' AND "Population" > '8,178' | wikisql |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | SELECT COUNT(Id) FROM Users WHERE DisplayName LIKE ('Mary %') | sede |
CREATE TABLE table_name_62 (
swedish_championship_titles INTEGER,
introduced INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest amount of swedish championship titles for the team that was introduced before 2006?
| SELECT MAX(swedish_championship_titles) FROM table_name_62 WHERE introduced < 2006 | sql_create_context |
CREATE TABLE Dorm (
dormid INTEGER,
dorm_name VARCHAR(20),
student_capacity INTEGER,
gender VARCHAR(1)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREAT... | SELECT gender, COUNT(*) FROM Dorm GROUP BY gender ORDER BY COUNT(*) | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "4" AND diagnoses.long_title = "Unspecified osteomyelitis, other specified sites" | mimicsql_data |
CREATE TABLE table_name_9 (
call_sign VARCHAR,
frequency VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the call sign of 1200 am?
| SELECT call_sign FROM table_name_9 WHERE frequency = "1200 am" | sql_create_context |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE intakeoutput (
intakeou... | SELECT t1.diagnosisname FROM (SELECT diagnosis.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 40 AND 49) AND STRFTIME('%y', diagnosis.diagnosistime) >= '2104' GROUP BY diagnosis.... | eicu |
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 diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "WIDOWED" | mimicsql_data |
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | SELECT inputevents_cv.charttime 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 = 20332)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label... | mimic_iii |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propul... | SELECT DISTINCT airline.airline_code FROM airline, airport_service, city, flight WHERE city.city_code = airport_service.city_code AND city.city_name = 'ATLANTA' AND flight.airline_code = airline.airline_code AND flight.from_airport = airport_service.airport_code | atis |
CREATE TABLE wdmzjzjlb (
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 jybgb.BBCJBW FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = ... | css |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY SUM(EMPLOYEE_ID) DESC | nvbench |
CREATE TABLE table_42294 (
"Season" text,
"Series" text,
"Team" text,
"Races" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season has 6 races and the team is Australia?
| SELECT "Season" FROM table_42294 WHERE "Races" = '6' AND "Team" = 'australia' | wikisql |
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_40... | SELECT name, meter_100 FROM swimmer ORDER BY name | 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 COUNT(*) FROM t_kc21 WHERE PERSON_ID = '49189270' AND IN_HOSP_DATE BETWEEN '2006-04-30' AND '2019-03-21' AND CLINIC_TYPE = '住院' | css |
CREATE TABLE table_15276 (
"Championship" text,
"Current champion(s)" text,
"Reign" text,
"Date won" text,
"Days held" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date won for wwe intercontinental championship
| SELECT "Date won" FROM table_15276 WHERE "Championship" = 'wwe intercontinental championship' | wikisql |
CREATE TABLE table_name_69 (
grid VARCHAR,
laps VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the laps driven were under 9 and the time/retired recorded was engine, what's the total number of grid values?
| SELECT COUNT(grid) FROM table_name_69 WHERE laps < 9 AND time_retired = "engine" | sql_create_context |
CREATE TABLE table_name_26 (
country VARCHAR,
indigenous_mining_production_2006 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has an Indigenous mining production 2006 of 0?
| SELECT country FROM table_name_26 WHERE indigenous_mining_production_2006 = "0" | sql_create_context |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid num... | SELECT DISTINCT t1.c1 FROM (SELECT lab.labresult, PERCENT_RANK() OVER (ORDER BY lab.labresult) AS c1 FROM lab WHERE lab.labname = 'rbc' AND lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age = (SELECT patient.age FROM patient WHERE patient.uniquepid = '027-142451' AND patient.hosp... | eicu |
CREATE TABLE table_9896 (
"Rank" real,
"Title" text,
"Studio" text,
"Director(s)" text,
"Worldwide gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of American Pie 2?
| SELECT MIN("Rank") FROM table_9896 WHERE "Title" = 'american pie 2' | wikisql |
CREATE TABLE table_20004 (
"Year" real,
"Dates" text,
"Champion" text,
"Country" text,
"Score" text,
"Tournament location" text,
"Purse ($)" real,
"Winners share ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the tournamen... | SELECT "Tournament location" FROM table_20004 WHERE "Champion" = 'Misun Cho' | wikisql |
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
... | SELECT DISTINCT fare_basis_code FROM fare_basis WHERE fare_basis_code = 'Y' | atis |
CREATE TABLE table_68168 (
"Position" real,
"Club" text,
"Played" real,
"Points" text,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT SUM("Played") FROM table_68168 WHERE "Goal Difference" = '-8' AND "Position" < '12' | wikisql |
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.admityear < "2195" AND lab.label = "Free Calcium" | mimicsql_data |
CREATE TABLE table_22773 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first year in the competition?
| SELECT MIN("Year") FROM table_22773 | wikisql |
CREATE TABLE table_1604579_2 (
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of government does Kyrgyzstan have?
| SELECT 2012 AS _democracy_index FROM table_1604579_2 WHERE country = "Kyrgyzstan" | sql_create_context |
CREATE TABLE table_name_99 (
year INTEGER,
detroit__dtw_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For how many years did Detroit have a passenger fare of $307.29?
| SELECT SUM(year) FROM table_name_99 WHERE detroit__dtw_ = "$307.29" | sql_create_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,
MZZYZDZZMC ... | SELECT jybgb.KSBM, jybgb.KSMC 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 = '吕... | css |
CREATE TABLE table_71429 (
"Country" text,
"Film title used in nomination" text,
"Language" text,
"Original title" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the original title directed by luis bu uel
| SELECT "Original title" FROM table_71429 WHERE "Director" = 'luis buñuel' | wikisql |
CREATE TABLE table_name_40 (
top_5 INTEGER,
cuts_made INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest top-5 when cuts made is more than 39?
| SELECT MAX(top_5) FROM table_name_40 WHERE cuts_made > 39 | sql_create_context |
CREATE TABLE jybgb_jyjgzbb (
JYZBLSH number,
YLJGDM text,
jyjgzbb_id number
)
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 nu... | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb ON 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 hz_info.RYBH = '00922703' AND NOT jybgb.BGDH IN (SELECT jyjgzbb.BGDH FROM jyjgzbb WH... | css |
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
)
CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEG... | SELECT Document_Date, COUNT(Document_Date) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code | nvbench |
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 zyjzjlb (
CYBQDM text,
CYBQMC... | SELECT jybgb.BGDH FROM jybgb WHERE jybgb.JZLSH = '66434833127' AND NOT jybgb.KSMC LIKE '%麻醉%' | css |
CREATE TABLE table_name_65 (
part_4 VARCHAR,
part_3 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was part 4 when part 3 was *hleupun?
| SELECT part_4 FROM table_name_65 WHERE part_3 = "*hleupun" | sql_create_context |
CREATE TABLE table_name_63 (
engine VARCHAR,
entrant VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What engine did the Team Lotus have after 1965?
| SELECT engine FROM table_name_63 WHERE entrant = "team lotus" AND year > 1965 | sql_create_context |
CREATE TABLE table_31552 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What score does Vasil Levski National Stadium, Sofia earn?
| SELECT "Score" FROM table_31552 WHERE "Venue" = 'vasil levski national stadium, sofia' | wikisql |
CREATE TABLE table_13082 (
"Date (dd.mm.yyyy)" text,
"Soviet Unit" text,
"Aircraft flown" text,
"Enemy Aircraft" text,
"Axis Unit" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the aircraft flown when the axis unit was luftwaffe (**) and t... | SELECT "Aircraft flown" FROM table_13082 WHERE "Axis Unit" = 'luftwaffe (**)' AND "Enemy Aircraft" = 'ju.88' | wikisql |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment tex... | SELECT P.Id, REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(P.Title, ',', ' '), '?', ''), ' ', ' '), '/', ''), ':', '') FROM Posts AS P INNER JOIN PostHistory AS PH ON PH.PostId = P.Id WHERE PH.Comment = '3' LIMIT 1000 | sede |
CREATE TABLE table_name_97 (
crowd INTEGER,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average crowd for the home team of North Melbourne?
| SELECT AVG(crowd) FROM table_name_97 WHERE home_team = "north melbourne" | sql_create_context |
CREATE TABLE table_61423 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Tatyana Gubina's Weight?
| SELECT "Weight" FROM table_61423 WHERE "Name" = 'tatyana gubina' | wikisql |
CREATE TABLE table_12910 (
"Elector" text,
"Nationality" text,
"Order" text,
"Title" text,
"Elevated" text,
"Elevator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Elector has a Title of s. cecilia?
| SELECT "Elector" FROM table_12910 WHERE "Title" = 'title of s. cecilia' | wikisql |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY... | SELECT SALARY, MANAGER_ID FROM employees WHERE HIRE_DATE < '2002-06-21' | nvbench |
CREATE TABLE table_79544 (
"Mountain" text,
"Height (m)" real,
"Prominence (m)" real,
"Range" text,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Country has a Prominence (m) smaller than 1540, and a Height (m) smaller than 3530, an... | SELECT "Country" FROM table_79544 WHERE "Prominence (m)" < '1540' AND "Height (m)" < '3530' AND "Range" = 'virunga mountains' AND "Mountain" = 'nyiragongo' | wikisql |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE c... | SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 11914) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') ORDER BY procedures_icd.charttime LIMIT 1 | mimic_iii |
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
CREATE TABLE reviewer (
rid number,
name text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT COUNT(*) FROM reviewer | spider |
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId... | SELECT COUNT(Id) AS count, TIME_TO_STR('creationdate', '%Year') AS year FROM Posts WHERE AcceptedAnswerId != 0 AND PostTypeId = 1 GROUP BY TIME_TO_STR('creationdate', '%Year') | sede |
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_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25... | SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID | nvbench |
CREATE TABLE table_52095 (
"Round" real,
"Pick" real,
"Name" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest round for Georgia Tech?
| SELECT MIN("Round") FROM table_52095 WHERE "School" = 'georgia tech' | wikisql |
CREATE TABLE table_23242933_2 (
written_by VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episode with production code 1AJN05?
| SELECT written_by FROM table_23242933_2 WHERE production_code = "1AJN05" | sql_create_context |
CREATE TABLE table_16408 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of position where the pick number is 43?
| SELECT COUNT("Position") FROM table_16408 WHERE "Pick #" = '43' | wikisql |
CREATE TABLE table_56687 (
"Route Name" text,
"Direction" text,
"Termini" text,
"Junctions" text,
"Length" text,
"Population Area" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the junctions of the route with termini aguilares, texas u... | SELECT "Junctions" FROM table_56687 WHERE "Termini" = 'aguilares, texas us 59' | wikisql |
CREATE TABLE table_59665 (
"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 what year(s) did Raymond Floyd have a total of less than 291 and a To par of +1... | SELECT "Year(s) won" FROM table_59665 WHERE "Total" < '291' AND "To par" = '+10' AND "Player" = 'raymond floyd' | wikisql |
CREATE TABLE zzmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | SELECT * FROM hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON 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 = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_i... | css |
CREATE TABLE table_42588 (
"Average population (x 1,000)" text,
"Live births" text,
"Deaths" text,
"Natural change" text,
"Migration" text,
"Crude birth rate (per 1,000)" real,
"Crude death rate (per 1,000)" real,
"Natural change (per 1,000)" real,
"Migration (per 1,000)" real
)
--... | SELECT SUM("Migration (per 1,000)") FROM table_42588 WHERE "Crude birth rate (per 1,000)" = '17.54' AND "Natural change (per 1,000)" > '10.95' | wikisql |
CREATE TABLE table_72203 (
"Acquisition" text,
"knowledge" text,
"penance" text,
"permanence of the body" text,
"constancy" text,
"purity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the permanence of the body where purity is rudra
| SELECT "permanence of the body" FROM table_72203 WHERE "purity" = 'Rudra' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.short_title = "Open liver biopsy" | mimicsql_data |
CREATE TABLE table_name_24 (
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 1987-88, when Points is '136'?
| SELECT 1987 AS _88 FROM table_name_24 WHERE points = 136 | sql_create_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 questions for the... | SELECT T2.Founder, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Founder ORDER BY T2.Founder DESC | nvbench |
CREATE TABLE table_18980 (
"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.
-- How ma... | SELECT COUNT("High rebounds") FROM table_18980 WHERE "Record" = '19-13' | wikisql |
CREATE TABLE table_76159 (
"Season" text,
"Winner" text,
"Winning Song" text,
"Winning Song (English Title)" text,
"Debut Album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which album debuted in season 2 (2005)?
| SELECT "Debut Album" FROM table_76159 WHERE "Season" = 'season 2 (2005)' | wikisql |
CREATE TABLE table_name_91 (
venue VARCHAR,
away_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the venue that away team footscray played at?
| SELECT venue FROM table_name_91 WHERE away_team = "footscray" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.