instruction stringlengths 151 7.46k | output stringlengths 2 4.44k | source stringclasses 26
values |
|---|---|---|
CREATE TABLE table_name_29 (
dots VARCHAR,
ellipsis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the dot value when the ellipsis is 0.012345679 ?
| SELECT dots FROM table_name_29 WHERE ellipsis = "0.012345679…" | sql_create_context |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | SELECT SOC_SRT_DIRE_CD, SOC_SRT_DIRE_NM FROM t_kc22 WHERE MED_CLINIC_ID = '90485002015' GROUP BY SOC_SRT_DIRE_CD ORDER BY SUM(SELF_PAY_AMO) DESC LIMIT 1 | css |
CREATE TABLE table_name_7 (
monarch VARCHAR,
left_office VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the monarch that left office circa 1886?
| SELECT monarch FROM table_name_7 WHERE left_office = "circa 1886" | sql_create_context |
CREATE TABLE Products (
product_id INTEGER,
product_type_code VARCHAR(10),
product_name VARCHAR(80),
product_price DECIMAL(19,4)
)
CREATE TABLE Departments (
department_id INTEGER,
dept_store_id INTEGER,
department_name VARCHAR(80)
)
CREATE TABLE Customer_Orders (
order_id INTEGER,
... | SELECT product_type_code, MAX(product_price) FROM Products GROUP BY product_type_code ORDER BY product_type_code DESC | nvbench |
CREATE TABLE table_dev_23 (
"id" int,
"anemia" bool,
"gender" string,
"thyroid_disease" bool,
"hemoglobin_a1c_hba1c" float,
"tsh" int,
"renal_disease" bool,
"estimated_glomerular_filtration_rate_egfr" int,
"hba1c" float,
"insulin_requirement" float,
"body_mass_index_bmi" floa... | SELECT * FROM table_dev_23 WHERE hba1c < 10 OR (hemoglobin_a1c_hba1c < 6 AND insulin_requirement >= 0.5) | criteria2sql |
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,... | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%india' AND LOWER(Id) LIKE '%taurus05' ORDER BY Reputation DESC LIMIT 100000 | sede |
CREATE TABLE table_name_7 (
player VARCHAR,
to_par VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has a To par of 2, and a Country of wales?
| SELECT player FROM table_name_7 WHERE to_par = "–2" AND country = "wales" | sql_create_context |
CREATE TABLE wdmzjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH number,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZD... | SELECT * FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_info.RYBH = '... | css |
CREATE TABLE table_5808 (
"Date" text,
"Venue" text,
"Opponent" text,
"Score" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which competition had an opponent of Police at the Selayang Stadium?
| SELECT "Competition" FROM table_5808 WHERE "Opponent" = 'police' AND "Venue" = 'selayang stadium' | wikisql |
CREATE TABLE table_456 (
"Episode" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the song choice when the theme is not aired?
| SELECT "Theme" FROM table_456 WHERE "Song choice" = 'Not Aired' | wikisql |
CREATE TABLE table_11449 (
"Date" text,
"Opponents" text,
"Result" text,
"Score" text,
"Competition" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When were scottish football league xi the opponents with a score of 1-5?
| SELECT "Date" FROM table_11449 WHERE "Opponents" = 'scottish football league xi' AND "Score" = '1-5' | wikisql |
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 * FROM hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_i... | css |
CREATE TABLE table_9906 (
"Generation" text,
"Birthday" text,
"Birthplace" text,
"Blood Type" text,
"Agency" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What generation is the member born on 1992.12.23 in?
| SELECT "Generation" FROM table_9906 WHERE "Birthday" = '1992.12.23' | wikisql |
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE cine... | SELECT Title, Price FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Name, Title | nvbench |
CREATE TABLE genre (
g_name varchar2(20),
rating varchar2(10),
most_popular_in varchar2(50)
)
CREATE TABLE artist (
artist_name varchar2(50),
country varchar2(20),
gender varchar2(20),
preferred_genre varchar2(50)
)
CREATE TABLE song (
song_name varchar2(50),
artist_name varchar2(5... | SELECT g_name, rating FROM genre ORDER BY g_name | nvbench |
CREATE TABLE person_info_hz_info (
RYBH text,
KH number,
KLX number,
YLJGDM number
)
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... | SELECT * FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN person_info_hz_info JOIN person_info 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 AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.... | css |
CREATE TABLE table_15383 (
"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("Losses") FROM table_15383 WHERE "Wins" = '12' AND "Points" = '40-4' AND "Goals for" > '57' | wikisql |
CREATE TABLE table_name_17 (
played INTEGER,
goals_for VARCHAR,
goals_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fewest games played for teams with 73 goals for and more than 69 goals against?
| SELECT MIN(played) FROM table_name_17 WHERE goals_for = 73 AND goals_against > 69 | sql_create_context |
CREATE TABLE table_name_28 (
power VARCHAR,
model VARCHAR,
years VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the power for model 2.0 tdi (cr) dpf, and a Years of 2010 2011?
| SELECT power FROM table_name_28 WHERE model = "2.0 tdi (cr) dpf" AND years = "2010–2011" | sql_create_context |
CREATE TABLE table_name_27 (
matches VARCHAR,
goals INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals/matches have 153 as the goals with matches greater than 352?
| SELECT SUM(goals) / matches FROM table_name_27 WHERE goals = 153 AND matches > 352 | sql_create_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,
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 = "EMERGENCY" AND prescriptions.route = "IV" | mimicsql_data |
CREATE TABLE table_62261 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"Facility ID" real,
"ERP W" real,
"Height m ( ft )" text,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Class has ... | SELECT "Class" FROM table_62261 WHERE "Facility ID" > '85076' AND "Call sign" = 'k289au' | wikisql |
CREATE TABLE table_76087 (
"engine model" text,
"engine displacement" text,
"valvetrain" text,
"max. power : kW ( PS )" text,
"rpm for max. power" text,
"max. torque : Nm ( ft\u00b7lbf )" text,
"rpm for max. torque" text
)
-- Using valid SQLite, answer the following questions for the table... | SELECT "valvetrain" FROM table_76087 WHERE "engine model" = 'engine model' | wikisql |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
... | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid =... | eicu |
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,
gender text,
... | 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.short_title = "Perforation of intestine" AND prescriptions.route = "SL" | mimicsql_data |
CREATE TABLE table_17346 (
"#" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the leading scorer ... | SELECT "Leading scorer" FROM table_17346 WHERE "Date" = 'February 1' | wikisql |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE m... | SELECT diagnoses_icd.charttime FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'hemopericardium') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 70950) AND STRFTIME('%y', ... | mimic_iii |
CREATE TABLE table_name_78 (
against INTEGER,
lost INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which average against has a lost less than 1?
| SELECT AVG(against) FROM table_name_78 WHERE lost < 1 | sql_create_context |
CREATE TABLE table_name_46 (
place VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place did Paul McGinley finish in?
| SELECT place FROM table_name_46 WHERE player = "paul mcginley" | sql_create_context |
CREATE TABLE table_34300 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average pick number of Pennsylvania?
| SELECT AVG("Pick") FROM table_34300 WHERE "School/Club Team" = 'pennsylvania' | wikisql |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
... | SELECT Id, Name FROM VoteTypes | sede |
CREATE TABLE table_name_24 (
laps VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps were ridden in the race that had a Time/Retired of +37.351?
| SELECT COUNT(laps) FROM table_name_24 WHERE time_retired = "+37.351" | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text
)
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX num... | SELECT mzjzjlb.JZLSH FROM hz_info JOIN mzjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_info.YLJGDM AND pers... | css |
CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
available_yn BIT
)
CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
... | SELECT booking_status_code, COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code | nvbench |
CREATE TABLE table_204_778 (
id number,
"code" number,
"county" text,
"former province" text,
"area (km2)" number,
"population\ncensus 2009" number,
"capital" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is the top county in terms of... | SELECT "county" FROM table_204_778 ORDER BY "area (km2)" DESC LIMIT 1 | squall |
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
)
CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
)
CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
)
-- Using valid SQLite, answer the following questions for the ... | SELECT T1.Name, T1.Editor_ID FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID ORDER BY T1.Editor_ID | nvbench |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "SNF" AND diagnoses.short_title = "Coagulat defect NEC/NOS" | mimicsql_data |
CREATE TABLE table_name_62 (
jersey__number INTEGER,
birthplace VARCHAR,
weight__kg_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest jersey # that has evergreen park, illinois as the birthplace, with a weight (km) greater than 86?
| SELECT MIN(jersey__number) FROM table_name_62 WHERE birthplace = "evergreen park, illinois" AND weight__kg_ > 86 | sql_create_context |
CREATE TABLE table_name_6 (
brilliance_grade VARCHAR,
crown_angle VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Brilliance Grade has a Crown angle of 41.1 ?
| SELECT brilliance_grade FROM table_name_6 WHERE crown_angle = "41.1°" | sql_create_context |
CREATE TABLE table_name_99 (
numeric_decline_from_peak_population VARCHAR,
percent_decline_from_peak_population VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the numeric decline from peak population when the perfect decline from peak population is -... | SELECT numeric_decline_from_peak_population FROM table_name_99 WHERE percent_decline_from_peak_population = "-16.76%" | sql_create_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,
culturetakentime... | SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355')) AND microlab.culturesite = 'other' AND DATETIME(microlab.cultureta... | eicu |
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 jybgb (
BBCJBW text,
BBDM tex... | SELECT jybgb.SQKS, jybgb.SQKSMC FROM jybgb WHERE jybgb.BGDH = '46976563661' | css |
CREATE TABLE table_15824796_3 (
title VARCHAR,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes aired on february 13, 1954?
| SELECT COUNT(title) FROM table_15824796_3 WHERE original_air_date = "February 13, 1954" | sql_create_context |
CREATE TABLE table_37553 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score on March 23?
| SELECT "Score" FROM table_37553 WHERE "Date" = 'march 23' | wikisql |
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 t_kc21.MED_ORG_DEPT_CD, AVG(t_kc24.OVE_PAY / t_kc24.MED_AMOUT) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '7883638' GROUP BY t_kc21.MED_ORG_DEPT_CD | css |
CREATE TABLE table_name_84 (
hdtv VARCHAR,
content VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the HDTV when documentaries are the content?
| SELECT hdtv FROM table_name_84 WHERE content = "documentaries" | sql_create_context |
CREATE TABLE table_name_97 (
year VARCHAR,
supplier VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Year for Supplier Kooga?
| SELECT year FROM table_name_97 WHERE supplier = "kooga" | sql_create_context |
CREATE TABLE table_name_82 (
death VARCHAR,
image VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the death date of elisabeth of lorraine?
| SELECT death FROM table_name_82 WHERE image = "elisabeth of lorraine" | sql_create_context |
CREATE TABLE table_49220 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record for the Detroit Pistons on March 7?
| SELECT "Record" FROM table_49220 WHERE "Opponent" = 'detroit pistons' AND "Date" = 'march 7' | wikisql |
CREATE TABLE table_72537 (
"Celebrity" text,
"Famous for" text,
"Entered" text,
"Exited" text,
"Finished" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the finished for exited day 13
| SELECT "Finished" FROM table_72537 WHERE "Exited" = 'Day 13' | wikisql |
CREATE TABLE table_203_38 (
id number,
"#" number,
"title" text,
"producer(s)" text,
"performer(s)" text,
"length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is longer , fire or die 4 ?
| SELECT "title" FROM table_203_38 WHERE "title" IN ('"fire"', '"die 4"') ORDER BY "length" DESC LIMIT 1 | squall |
CREATE TABLE table_name_93 (
decile INTEGER,
name VARCHAR,
gender VARCHAR,
authority VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many deciles have a Gender of coed, an Authority of state, and a Name of mount maunganui school?
| SELECT SUM(decile) FROM table_name_93 WHERE gender = "coed" AND authority = "state" AND name = "mount maunganui school" | sql_create_context |
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE Apartment_Bookings (
apt_bookin... | SELECT facility_code, COUNT(facility_code) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 GROUP BY facility_code ORDER BY facility_code | nvbench |
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
... | 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 = 'ath ext nt... | mimic_iii |
CREATE TABLE table_name_47 (
loss VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What loss has october 1 as the date?
| SELECT loss FROM table_name_47 WHERE date = "october 1" | sql_create_context |
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varch... | SELECT DISTINCT course_offering.friday, course_offering.monday, course_offering.saturday, course_offering.sunday, course_offering.thursday, course_offering.tuesday, course_offering.wednesday FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_i... | advising |
CREATE TABLE procedures (
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
)
... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.discharge_location = "REHAB/DISTINCT PART HOSP" | mimicsql_data |
CREATE TABLE table_name_55 (
team VARCHAR,
location_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team did the Heat play against at the TD Waterhouse Centre?
| SELECT team FROM table_name_55 WHERE location_attendance = "td waterhouse centre" | sql_create_context |
CREATE TABLE order_items (
product_id VARCHAR,
order_id VARCHAR
)
CREATE TABLE orders (
customer_id VARCHAR,
order_id VARCHAR
)
CREATE TABLE products (
product_name VARCHAR,
product_id VARCHAR
)
CREATE TABLE customers (
customer_name VARCHAR,
customer_id VARCHAR
)
-- Using valid SQL... | SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = "food" GROUP BY T1.customer_id HAVING COUNT(*) >= 1 | sql_create_context |
CREATE TABLE table_name_67 (
away_team VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the away team that played home team Footscray?
| SELECT away_team FROM table_name_67 WHERE home_team = "footscray" | sql_create_context |
CREATE TABLE Employees (
employee_name VARCHAR,
employee_id VARCHAR
)
CREATE TABLE Documents_to_be_destroyed (
Destruction_Authorised_by_Employee_ID VARCHAR,
Destroyed_by_Employee_ID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names ... | SELECT T2.employee_name, T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id | sql_create_context |
CREATE TABLE table_name_58 (
additional_major_sponsor_s_ VARCHAR,
additional_colour_s_ VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the additional major sponsors which correspond to the additional color black and a year 1984?
| SELECT additional_major_sponsor_s_ FROM table_name_58 WHERE additional_colour_s_ = "black" AND year = 1984 | sql_create_context |
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
-- Using valid SQLite, answer the ... | SELECT Author, COUNT(DISTINCT T1.Workshop_ID) FROM Acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY Author DESC | nvbench |
CREATE TABLE table_21317 (
"Game" real,
"Date" text,
"Opponent" 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.
-- Na... | SELECT "Record" FROM table_21317 WHERE "Score" = 'W 76-67' | wikisql |
CREATE TABLE table_name_53 (
place VARCHAR,
to_par VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich Place has a To par of 2, and a Player of bernhard langer?
| SELECT place FROM table_name_53 WHERE to_par = "–2" AND player = "bernhard langer" | sql_create_context |
CREATE TABLE table_4864 (
"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 name of the away team with glenferrie... | SELECT "Away team" FROM table_4864 WHERE "Venue" = 'glenferrie oval' | wikisql |
CREATE TABLE table_name_83 (
seat_order__right_to_left_ VARCHAR,
series_3 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Seat Orders (Right to Left) have a Series 3 of deborah meaden?
| SELECT COUNT(seat_order__right_to_left_) FROM table_name_83 WHERE series_3 = "deborah meaden" | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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,
... | SELECT demographic.insurance, demographic.diagnosis FROM demographic WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE finrev_fed_key_17 (
state_code number,
state text,
#_records text
)
CREATE TABLE finrev_fed_17 (
state_code number,
idcensus number,
school_district text,
nces_id text,
yr_data number,
t_fed_rev number,
c14 number,
c25 number
)
CREATE TABLE ndecoreexcel_math_gr... | SELECT T2.state FROM finrev_fed_key_17 AS T2 JOIN finrev_fed_17 AS T1 ON T1.state_code = T2.state_code GROUP BY T1.state_code ORDER BY SUM(t_fed_rev) | studentmathscore |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
war... | SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 22782) AND DATETIME(prescriptions.startdate) >= DATETIME(CURRENT_TIME(), '-92 month') ORDER BY prescriptions.startdate LIMIT 1 | mimic_iii |
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,... | 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 = 'ATLANTA' AND date_day.day_number = 22 AND date_day.month_number = 3 AND ... | atis |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = "LIVER TRANSPLANT" | mimicsql_data |
CREATE TABLE table_76568 (
"Edition" text,
"Round" text,
"Date" text,
"Partnering" text,
"Against" text,
"Surface" text,
"Opponents" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Edition had a Result of 6-3, 6-0, 6-2... | SELECT "Edition" FROM table_76568 WHERE "Result" = '6-3, 6-0, 6-2' | wikisql |
CREATE TABLE table_name_60 (
non__stop VARCHAR,
aspirated_stop VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Non- stop has an Aspirated stop of ?
| SELECT non__stop FROM table_name_60 WHERE aspirated_stop = "ㅎ" | sql_create_context |
CREATE TABLE furniture (
furniture_id number,
name text,
num_of_component number,
market_rate number
)
CREATE TABLE manufacturer (
manufacturer_id number,
open_year number,
name text,
num_of_factories number,
num_of_shops number
)
CREATE TABLE furniture_manufacte (
manufacturer... | SELECT name, manufacturer_id FROM manufacturer ORDER BY open_year | spider |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... | SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 14990) AND prescriptions.drug = 'nevirapine suspension' AND STRFTIME('%y-%m', prescriptions.startdate) <= '2104-11' ORDER BY prescriptions.startdate DESC LIMIT 1 | mimic_iii |
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
)
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
baseP... | SELECT decor, COUNT(decor) FROM Rooms WHERE bedType = 'King' GROUP BY decor | nvbench |
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
... | WITH bounty_answers AS (SELECT 1.0 * a.Score AS Score, CASE WHEN q.AcceptedAnswerId = a.Id THEN 1 ELSE 0 END AS accepted, CASE WHEN a.CreationDate < v.CreationDate THEN 'before' WHEN a.CreationDate > v.CreationDate THEN 'after' END AS rel_date FROM Posts AS q JOIN Posts AS a ON a.ParentId = q.Id JOIN Votes AS v ON v.Po... | sede |
CREATE TABLE table_63393 (
"Year" real,
"Competition Description" text,
"Location" text,
"Apparatus" text,
"Rank-Final" real,
"Score-Final" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score-Final has an Apparatus of floor exercise?
| SELECT MAX("Score-Final") FROM table_63393 WHERE "Apparatus" = 'floor exercise' | wikisql |
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 AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND mzjzjlb_jybgb.YLJGDM = jybgb.YLJ... | css |
CREATE TABLE table_34742 (
"Year" text,
"Regular Season Champion(s)" text,
"Record" text,
"Tournament Champion" text,
"Tournament venue" text,
"Tournament city" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich Tournament venue has a Tourname... | SELECT "Tournament venue" FROM table_34742 WHERE "Tournament Champion" = 'duke' AND "Record" = '15–1' | wikisql |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type t... | SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'albumin, body fluid')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'sta... | mimic_iii |
CREATE TABLE table_name_18 (
pos VARCHAR,
date_to VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Pos., when Date To is '30 June 2009', and when Name is 'Eddie Johnson'?
| SELECT pos FROM table_name_18 WHERE date_to = "30 june 2009" AND name = "eddie johnson" | sql_create_context |
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY SUM(EMPLOYEE_ID) DESC | nvbench |
CREATE TABLE table_name_81 (
town VARCHAR,
population_rank VARCHAR,
municipality VARCHAR,
population__2001_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What town is from the mol tai district municipality and has a population rank of 187 and a popu... | SELECT town FROM table_name_81 WHERE municipality = "molėtai district municipality" AND population__2001_ < 470 AND population_rank = 187 | sql_create_context |
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_proje... | SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.end_time <= '3:00' AND course_offering.start_time >= '9:00' AND course.course_id = course_offering.course_id AND course.department = 'ENSCEN' AND course.numbe... | advising |
CREATE TABLE Customers (
customer_id INTEGER,
customer_type_code VARCHAR(20),
address_line_1 VARCHAR(80),
address_line_2 VARCHAR(80),
town_city VARCHAR(80),
state VARCHAR(80),
email_address VARCHAR(255),
phone_number VARCHAR(80)
)
CREATE TABLE Complaints (
complaint_id INTEGER,
... | SELECT product_category_code, AVG(product_price) FROM Products GROUP BY product_category_code ORDER BY product_category_code | nvbench |
CREATE TABLE assessment_notes (
notes_id number,
student_id number,
teacher_id number,
date_of_notes time,
text_of_notes text,
other_details text
)
CREATE TABLE behavior_incident (
incident_id number,
incident_type_code text,
student_id number,
date_incident_start time,
date... | SELECT T2.email_address FROM addresses AS T1 JOIN teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = "918" | spider |
CREATE TABLE table_64510 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"# / County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the IHSAA class with 395 in enr... | SELECT "IHSAA Class" FROM table_64510 WHERE "Enrollment" = '395' | wikisql |
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes nu... | SELECT questions.Id AS "post_link" FROM Posts AS questions JOIN Posts AS answers ON answers.ParentId = questions.Id WHERE questions.PostTypeId = 1 AND answers.PostTypeId = 2 AND questions.AcceptedAnswerId IS NULL AND questions.ClosedDate IS NULL GROUP BY questions.Id, questions.CreationDate HAVING MAX(answers.Score) = ... | sede |
CREATE TABLE table_52618 (
"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 was the score of the home team when they pl... | SELECT "Home team score" FROM table_52618 WHERE "Away team" = 'carlton' | wikisql |
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
... | SELECT pName, COUNT(pName) FROM Player AS T1 JOIN Tryout AS T2 ON T1.pID = T2.pID GROUP BY pName ORDER BY T1.pName | nvbench |
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,
hospitaladmittime time,
... | SELECT 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 = '007-1517') AND NOT patient.unitdischargetime IS NULL OR... | eicu |
CREATE TABLE table_27821 (
"Position" real,
"Sail Number" text,
"Yacht" text,
"State/Country" text,
"Yacht Type" text,
"LOA (Metres)" text,
"Skipper" text,
"Elapsed Time d:hh:mm:ss" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many... | SELECT COUNT("Elapsed Time d:hh:mm:ss") FROM table_27821 WHERE "LOA (Metres)" = '20.49' | wikisql |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,... | SELECT MIN(vitalperiodic.heartrate) FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-73237')) AND NOT vitalperiodic.heartrate IS NULL... | eicu |
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
... | SELECT DISTINCT booking_class FROM class_of_service WHERE booking_class = 'Y' | atis |
CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
... | SELECT pPos, MIN(T2.HS) FROM Tryout AS T1 JOIN Player AS T2 ON T1.pID = T2.pID GROUP BY pPos | nvbench |
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 jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN person_info_hz_info ON person_info.RYBH = person_info_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... | css |
CREATE TABLE table_22795 (
"Year" real,
"Host" text,
"1st Place" text,
"2nd Place" text,
"3rd Place" text,
"4th Place" text,
"5th Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was in 4th place when Missouri finished in 3rd place?... | SELECT "4th Place" FROM table_22795 WHERE "3rd Place" = 'Missouri' | wikisql |
CREATE TABLE table_32525 (
"Year" real,
"Name" text,
"Date" text,
"Stages" text,
"Distance" text,
"Winner" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the Fedex tour of Calabarzon?
| SELECT "Winner" FROM table_32525 WHERE "Name" = 'fedex tour of calabarzon' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.