context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_5871 (
"Rank" real,
"Time" real,
"Athlete" text,
"Nation" text,
"Date" text,
"Location" text
) | What is the Athlete of the race with a Time of 9.78? | SELECT "Athlete" FROM table_5871 WHERE "Time" = '9.78' | wikisql |
CREATE TABLE table_name_78 (
week VARCHAR,
result VARCHAR
) | How many weeks have a Result of t 10-10? | SELECT COUNT(week) FROM table_name_78 WHERE result = "t 10-10" | sql_create_context |
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 procedures (
... | what is the number of patients whose days of hospital stay is greater than 13 and diagnoses short title is severe sepsis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "13" AND diagnoses.short_title = "Severe sepsis" | mimicsql_data |
CREATE TABLE driver (
name VARCHAR,
age VARCHAR
) | Show the name of drivers in descending order of age. | SELECT name FROM driver ORDER BY age DESC | sql_create_context |
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 demographic ... | how many male patients are diagnosed for intestinovesical fistula? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.long_title = "Intestinovesical fistula" | mimicsql_data |
CREATE TABLE table_name_39 (
lost VARCHAR,
draw INTEGER
) | How many games did they lose when they tied less than 2 games? | SELECT lost FROM table_name_39 WHERE draw < 2 | sql_create_context |
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
) | A line chart for what are the number of the dates of birth of entrepreneurs with investor 'Simon Woodroffe' or 'Peter Jones'? | SELECT Date_of_Birth, COUNT(Date_of_Birth) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones" | nvbench |
CREATE TABLE table_18760 (
"Season" text,
"Timeslot" text,
"Season Premiere" text,
"Season Finale" text,
"Episodes" real,
"TV Season" text,
"Ranking" text,
"Viewers (in millions)" text
) | What year did the season finale have a total of 10.29 million viewers? | SELECT "Season Finale" FROM table_18760 WHERE "Viewers (in millions)" = '10.29' | wikisql |
CREATE TABLE table_14197 (
"Name" text,
"Position" text,
"Apps" real,
"Goals" real,
"Assists" real
) | What is the total goals with 12 assists, and less than 291 apps? | SELECT SUM("Goals") FROM table_14197 WHERE "Assists" = '12' AND "Apps" < '291' | wikisql |
CREATE TABLE table_53927 (
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
) | What is on at 9:00 when at 10:00 it is local programming and at 8:30 it is decision house (reruns)? | SELECT "9:00" FROM table_53927 WHERE "10:00" = 'local programming' AND "8:30" = 'decision house (reruns)' | 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,
... | 从2016年2月15日到2018年4月16日,患者15906206,685363这个指标怎么样 | SELECT * FROM hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON 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 AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_i... | css |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | For those records from the products and each product's manufacturer, visualize the relationship between manufacturer and code , and group by attribute founder. | SELECT T1.Manufacturer, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder | nvbench |
CREATE TABLE table_name_74 (
class VARCHAR,
laps VARCHAR,
pos VARCHAR
) | In what class is the laps greater than 134 and the position is 4th? | SELECT class FROM table_name_74 WHERE laps > 134 AND pos = "4th" | sql_create_context |
CREATE TABLE table_name_8 (
venue VARCHAR,
away_team VARCHAR
) | Which venue has St Kilda as the away team? | SELECT venue FROM table_name_8 WHERE away_team = "st kilda" | 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... | 以往患者79096915门诊诊断呢都有什么? | SELECT zzmzjzjlb.JZZDBM, zzmzjzjlb.JZZDSM FROM hz_info JOIN zzmzjzjlb ON hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX WHERE hz_info.RYBH = '79096915' UNION SELECT fzzmzjzjlb.JZZDBM, fzzmzjzjlb.JZZDSM FROM hz_info JOIN fzzmzjzjlb ON hz_info.YLJGDM = fzzmzjzjlb.YLJGDM AN... | css |
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... | Find out the gender and type of admission for the patient with patient id 2560. | SELECT demographic.gender, demographic.admission_type FROM demographic WHERE demographic.subject_id = "2560" | mimicsql_data |
CREATE TABLE table_64969 (
"Year" real,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
) | What is the latest year when Call of Duty 4: Modern Warfare was the game? | SELECT MAX("Year") FROM table_64969 WHERE "Game" = 'call of duty 4: modern warfare' | wikisql |
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_descriptio... | how many DL flights leave from WASHINGTON | SELECT COUNT(DISTINCT flight.flight_id) FROM airport_service, city, flight WHERE city.city_code = airport_service.city_code AND city.city_name = 'WASHINGTON' AND flight.airline_code = 'DL' AND flight.from_airport = airport_service.airport_code | atis |
CREATE TABLE table_43231 (
"Family" text,
"Baltimore group" text,
"envelopment" text,
"Virion shape" text,
"Replication site" text
) | Which Baltimore group has a viron shape of icosahedral, replicates in the cytoplasm, is non-enveloped, and is from the astroviridae family? | SELECT "Baltimore group" FROM table_43231 WHERE "Virion shape" = 'icosahedral' AND "envelopment" = 'non-enveloped' AND "Replication site" = 'cytoplasm' AND "Family" = 'astroviridae' | wikisql |
CREATE TABLE table_1341604_10 (
district VARCHAR,
result VARCHAR
) | what's the district with result being new seat democratic gain | SELECT district FROM table_1341604_10 WHERE result = "New seat Democratic gain" | sql_create_context |
CREATE TABLE table_2589963_1 (
founded INTEGER,
color VARCHAR
) | What year was the school with green and white colors founded? | SELECT MAX(founded) FROM table_2589963_1 WHERE color = "Green and White" | sql_create_context |
CREATE TABLE table_name_86 (
year INTEGER,
points VARCHAR,
wins VARCHAR,
team VARCHAR
) | What was the earliest Year the Linto Team had less than 15 Points with more than 0 Wins? | SELECT MIN(year) FROM table_name_86 WHERE wins > 0 AND team = "linto" AND points < 15 | 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... | count the number of patients below the age of 80 whose lab test item id is 51108. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "80" AND lab.itemid = "51108" | mimicsql_data |
CREATE TABLE table_name_23 (
episode VARCHAR,
xii_season VARCHAR
) | What is Episode, when XII Season is 4 118 160 (26 september 2010)? | SELECT episode FROM table_name_23 WHERE xii_season = "4 118 160 (26 september 2010)" | sql_create_context |
CREATE TABLE table_10054 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | What is the country with a 68-73-69=210 score? | SELECT "Country" FROM table_10054 WHERE "Score" = '68-73-69=210' | wikisql |
CREATE TABLE table_203_637 (
id number,
"player" text,
"for" text,
"against" text,
"result" text,
"date" text
) | which player had the same result as mark robins ? | SELECT "player" FROM table_203_637 WHERE "player" <> 'mark robins' AND "result" = (SELECT "result" FROM table_203_637 WHERE "player" = 'mark robins') | squall |
CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of text
)
CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Male text,
Age int
)
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year ... | Show all countries and the number of people from each country, I want to display in asc by the y axis please. | SELECT Country, COUNT(*) FROM people GROUP BY Country ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_name_93 (
population_density INTEGER,
population__2011_ VARCHAR,
population__2006_ VARCHAR,
county VARCHAR,
area__km²_ VARCHAR
) | In the County of Prince, what was the highest Population density when the Area (km ) was larger than 3.02, and the Population (2006) was larger than 786, and the Population (2011) was smaller than 1135? | SELECT MAX(population_density) FROM table_name_93 WHERE county = "prince" AND area__km²_ > 3.02 AND population__2006_ > 786 AND population__2011_ < 1135 | sql_create_context |
CREATE TABLE table_21738 (
"Series #" real,
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Original airdate" text,
"Production Code" text
) | What is the air date when the U.S. viewers was 5.50 million? | SELECT "Original airdate" FROM table_21738 WHERE "U.S. viewers (million)" = '5.50' | wikisql |
CREATE TABLE table_22181 (
"Season" real,
"Average Attendance Home" text,
"Highest Attendance Home" text,
"Average Attendance Away" text,
"Highest Attendance Away" text,
"Division / Section" text,
"Level" text,
"Average Attendance League" text
) | When the home attendance is 3.123, what's the highest away attendance? | SELECT "Highest Attendance Away" FROM table_22181 WHERE "Average Attendance Home" = '3.123' | wikisql |
CREATE TABLE weather (
date text,
max_temperature_f number,
mean_temperature_f number,
min_temperature_f number,
max_dew_point_f number,
mean_dew_point_f number,
min_dew_point_f number,
max_humidity number,
mean_humidity number,
min_humidity number,
max_sea_level_pressure_inc... | What is the average latitude and longitude in San Jose? | SELECT AVG(lat), AVG(long) FROM station WHERE city = "San Jose" | spider |
CREATE TABLE table_27756164_11 (
team VARCHAR,
high_assists VARCHAR
) | What was the team where Darren Collison (7) scored high assists? | SELECT team FROM table_27756164_11 WHERE high_assists = "Darren Collison (7)" | sql_create_context |
CREATE TABLE table_38100 (
"Hindi" text,
"Romani" text,
"Domari" text,
"Lomavren" text,
"Persian" text
) | What is the Lomavren associated with a Hindi of s t? | SELECT "Lomavren" FROM table_38100 WHERE "Hindi" = 'sāt' | wikisql |
CREATE TABLE table_882 (
"Position" real,
"Artist" text,
"Song title" text,
"Highest position" real,
"Points" real
) | what's the song title with artbeingt being pat boone | SELECT "Song title" FROM table_882 WHERE "Artist" = 'Pat Boone' | wikisql |
CREATE TABLE table_name_83 (
week_2 VARCHAR,
week_1 VARCHAR
) | What is the week 2 with daniella mugnolo in week 1? | SELECT week_2 FROM table_name_83 WHERE week_1 = "daniella mugnolo" | sql_create_context |
CREATE TABLE table_204_748 (
id number,
"composer" text,
"born" number,
"died" number,
"nationality" text,
"notable works for piano" text,
"remarks" text
) | how many composers died before 1960 ? | SELECT COUNT("composer") FROM table_204_748 WHERE "died" < 1960 | squall |
CREATE TABLE table_name_45 (
gold INTEGER,
rank VARCHAR,
total VARCHAR
) | How many Gold does the Nation in Rank 12 with less than 2 Total medals have? | SELECT MAX(gold) FROM table_name_45 WHERE rank = "12" AND total < 2 | 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... | count the number of patients whose religion is episcopalian and diagnoses long title is personal history of malignant neoplasm of large intestine? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.religion = "EPISCOPALIAN" AND diagnoses.long_title = "Personal history of malignant neoplasm of large intestine" | mimicsql_data |
CREATE TABLE table_30677 (
"Couple" text,
"Style" text,
"Music" text,
"Trine Dehli Cleve" real,
"Tor Fl\u00f8ysvik" real,
"Karianne Gulliksen" real,
"Christer Tornell" real,
"Total" real
) | How many entries arr there for christer tornell for the song ' you light up my life ' whitney houston? | SELECT COUNT("Christer Tornell") FROM table_30677 WHERE "Music" = ' You Light Up My Life "— Whitney Houston' | wikisql |
CREATE TABLE Suppliers (
supplier_id INTEGER,
supplier_name VARCHAR(80),
supplier_phone VARCHAR(80)
)
CREATE TABLE Department_Stores (
dept_store_id INTEGER,
dept_store_chain_id INTEGER,
store_name VARCHAR(80),
store_address VARCHAR(255),
store_phone VARCHAR(80),
store_email VARCHAR... | Bar graph to show mean product price from different product type code, and I want to sort in asc by the y-axis. | SELECT product_type_code, AVG(product_price) FROM Products GROUP BY product_type_code ORDER BY AVG(product_price) | nvbench |
CREATE TABLE table_1258 (
"Name" text,
"Position" text,
"Number" real,
"School/Club Team" text,
"Season" text,
"Acquisition via" text
) | Name the name for san beda | SELECT "Name" FROM table_1258 WHERE "School/Club Team" = 'San Beda' | wikisql |
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 (
... | give me the number of patients whose primary disease is overdose? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "OVERDOSE" | mimicsql_data |
CREATE TABLE table_71808 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | How many golds have a Bronze of 0, a Total larger than 1, a Nation of chad, and a Silver larger than 0? | SELECT SUM("Gold") FROM table_71808 WHERE "Bronze" = '0' AND "Total" > '1' AND "Nation" = 'chad' AND "Silver" > '0' | wikisql |
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
) | For those records from the products and each product's manufacturer, draw a bar chart about the distribution of name and code , and group by attribute name, and list Y in descending order please. | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Code DESC | nvbench |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE diagnoses_icd (
... | have prednisone, metoprolol tartrate, or insulin been prescribed for patient 1462 since 08/2105? | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1462) AND prescriptions.drug IN ('prednisone', 'metoprolol tartrate', 'insulin') AND STRFTIME('%y-%m', prescriptions.startdate) >= '2105-08' | mimic_iii |
CREATE TABLE table_71598 (
"Draw" real,
"Artist" text,
"Song" text,
"Votes" real,
"Place" real
) | How many votes did Yvetta Kadakas & Ivo Linna, who had less than 4 draws, have? | SELECT SUM("Votes") FROM table_71598 WHERE "Draw" < '4' AND "Artist" = 'yvetta kadakas & ivo linna' | wikisql |
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE cour... | Is WRITING 120 needed to take WRITING 340 ? | SELECT COUNT(*) > 0 FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND COURSE_0.department = 'WRITING' AND COURSE_0.number = 120 AND COURSE_1.course_id = course_prerequisite.course_id AND COURSE_1.department = 'WRITING' AND COURSE_1.number =... | advising |
CREATE TABLE trip (
id number,
duration number,
start_date text,
start_station_name text,
start_station_id number,
end_date text,
end_station_name text,
end_station_id number,
bike_id number,
subscription_type text,
zip_code number
)
CREATE TABLE status (
station_id numb... | Give me the zip code where the average mean humidity is below 70 and at least 100 trips took place. | SELECT zip_code FROM weather GROUP BY zip_code HAVING AVG(mean_humidity) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING COUNT(*) >= 100 | spider |
CREATE TABLE table_26263954_1 (
kana_spelling VARCHAR,
english VARCHAR
) | how many kana spelling when english is mount fuji | SELECT kana_spelling FROM table_26263954_1 WHERE english = "Mount Fuji" | sql_create_context |
CREATE TABLE table_27427 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | Who was the partner when the score was 7 5, 7 6 (7 5)? | SELECT "Partner" FROM table_27427 WHERE "Score" = '7–5, 7–6 (7–5)' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text... | 从2001年5月7日到2020年7月12日这期间患者12121203曾在医院就诊过几次? | SELECT (SELECT COUNT(*) FROM hz_info JOIN mzjzjlb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_... | css |
CREATE TABLE table_65717 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) | What teams rank is higher than 4 with a speed of 104.574mph? | SELECT "Team" FROM table_65717 WHERE "Rank" > '4' AND "Speed" = '104.574mph' | wikisql |
CREATE TABLE gwyjzb (
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,
... | 医疗机构3974649做项目165044266-n的检查记录有多少 | SELECT COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.MED_SER_ORG_NO = '3974649' AND t_kc22.SOC_SRT_DIRE_CD = '165044266-n' UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE fgwyjzb.MED_SER_ORG_NO = '3974649' AND t_kc22.SOC... | css |
CREATE TABLE region (
Region_ID int,
Region_name text,
Date text,
Label text,
Format text,
Catalogue text
)
CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE party (
Party_ID int,
Minister text,
Took_office text,
... | Give me a bar chart showing the total number of each minister. | SELECT Minister, COUNT(Minister) FROM party GROUP BY Minister | nvbench |
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... | 患者编号是61727301,有哪些门诊就诊记录对应的检验报告单的报告日期均在03年9月15日以后?出门诊就诊流水号都列出来? | SELECT txmzjzjlb.JZLSH 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 = '61727301' AND NOT txmzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ <= '2003-09-15') UNION SELECT ftxmzjzjlb.JZLSH FROM hz_info JOI... | css |
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,
... | how many patients whose admission year is less than 2125 and lab test category is chemistry? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2125" AND lab."CATEGORY" = "Chemistry" | mimicsql_data |
CREATE TABLE table_name_82 (
date VARCHAR,
home VARCHAR,
score VARCHAR
) | When has winnipeg jets with a Score of 4 6? | SELECT date FROM table_name_82 WHERE home = "winnipeg jets" AND score = "4–6" | sql_create_context |
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 zzmzjzjlb.SG, zzmzjzjlb.TZ FROM person_info JOIN hz_info JOIN zzmzjzjlb 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 WHERE person_info.XM = '褚永福' UNION SELECT fzzmzjzjlb.SG, fzzmzjzjlb.TZ FROM person_info JOIN hz_info JOIN ... | css |
CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE category (
id int,
business_id varchar,
category_name varchar
)
CREATE TABLE review (
rid int,
business_id varchar,
user_id varchar,
rating float,
text longtext,
year int,
month varchar
)
CRE... | How many Dentists in ' Los Angeles ' have a rating above 4 ? | SELECT COUNT(DISTINCT (business.name)) FROM business, category WHERE business.city = 'Los Angeles' AND business.rating > 4 AND category.business_id = business.business_id AND category.category_name = 'Dentists' | yelp |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
... | how many patients had been staying in ward 57? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT transfers.hadm_id FROM transfers WHERE transfers.wardid = 57) | mimic_iii |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | 列一下医院4652099所有的记录里,按照不一样的科室名和入院时诊断的病名算一下患者平均是多大年纪 | SELECT qtb.MED_ORG_DEPT_NM, qtb.IN_DIAG_DIS_NM, AVG(qtb.PERSON_AGE) FROM qtb WHERE qtb.MED_SER_ORG_NO = '4652099' GROUP BY qtb.MED_ORG_DEPT_NM, qtb.IN_DIAG_DIS_NM UNION SELECT gyb.MED_ORG_DEPT_NM, gyb.IN_DIAG_DIS_NM, AVG(gyb.PERSON_AGE) FROM gyb WHERE gyb.MED_SER_ORG_NO = '4652099' GROUP BY gyb.MED_ORG_DEPT_NM, gyb.IN_... | css |
CREATE TABLE table_name_33 (
moving_from VARCHAR,
country VARCHAR
) | What is moving from fee in Hun country? | SELECT moving_from FROM table_name_33 WHERE country = "hun" | sql_create_context |
CREATE TABLE table_13810 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | What is the score for Todd Hamilton? | SELECT "Score" FROM table_13810 WHERE "Player" = 'todd hamilton' | wikisql |
CREATE TABLE table_22895 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | What is the production code of the title 'secret weapons'? | SELECT "Production code" FROM table_22895 WHERE "Title" = 'Secret Weapons' | wikisql |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE icustays (
row_id number,
subj... | calculate the number of patients who have had a skin scrapings microbiology test since 1 year ago. | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT microbiologyevents.hadm_id FROM microbiologyevents WHERE microbiologyevents.spec_type_desc = 'skin scrapings' AND DATETIME(microbiologyevents.charttime) >= DATETIME(CURRENT_TIME(), '-1 year')) | mimic_iii |
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,
... | 看一下医院2687252的小儿神内科室在01年5月5日到08年7月19日的这段时间里涉及到多少医疗费 | SELECT SUM(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '2687252' AND t_kc21.MED_ORG_DEPT_NM = '小儿神经内科') AND t_kc24.CLINIC_SLT_DATE BETWEEN '2001-05-05' AND '2008-07-19' | css |
CREATE TABLE table_15922 (
"Country ( exonym )" text,
"Capital ( exonym )" text,
"Country ( endonym )" text,
"Capital ( endonym )" text,
"Official or native language(s) (alphabet/script)" text
) | Which country (exonym) is the country (endonym) isle of man ellan vannin? | SELECT "Country ( exonym )" FROM table_15922 WHERE "Country ( endonym )" = 'Isle of Man Ellan Vannin' | wikisql |
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
... | For Computational Complexity , will there be a reading group this year ? | SELECT COUNT(*) > 0 FROM course, course_offering, semester WHERE (course.description LIKE '%reading group%' OR course.name LIKE '%reading group%') AND (course.description LIKE '%Computational Complexity%' OR course.name LIKE '%Computational Complexity%') AND course.course_id = course_offering.course_id AND semester.sem... | advising |
CREATE TABLE customer_contact_channels (
customer_id number,
channel_code text,
active_from_date time,
active_to_date time,
contact_number text
)
CREATE TABLE customers (
customer_id number,
payment_method text,
customer_name text,
date_became_customer time,
other_customer_detai... | What are all the payment methods? | SELECT DISTINCT payment_method FROM customers | spider |
CREATE TABLE table_42898 (
"Result" text,
"Opponent" text,
"Type" text,
"Rd., Time" text,
"Date" text,
"Location" text
) | What was the Rd. Time for October 3, 2009? | SELECT "Rd., Time" FROM table_42898 WHERE "Date" = 'october 3, 2009' | wikisql |
CREATE TABLE table_203_653 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | how many more silver medals did the united states win compared to russia ? | SELECT (SELECT "silver" FROM table_203_653 WHERE "nation" = 'united states') - (SELECT "silver" FROM table_203_653 WHERE "nation" = 'russia') | squall |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | provide the number of patients whose admission location is phys referral/normal deli and diagnoses short title is acute parametritis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND diagnoses.short_title = "Acute parametritis" | mimicsql_data |
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 demographic (
subject_id text,
hadm_id t... | tell me the type of admission and status of death for patient with patient id 25167. | SELECT demographic.admission_type, demographic.expire_flag FROM demographic WHERE demographic.subject_id = "25167" | mimicsql_data |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | 医院1900114中单价最高的患者21485538在被开出的药品编码和名称及其单价分别是? | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.UNIVALENT FROM t_kc22 WHERE t_kc22.MED_CLINIC_ID IN (SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_ID = '21485538' AND gwyjzb.MED_SER_ORG_NO = '1900114' UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '21485538' AND fg... | css |
CREATE TABLE employee (
eid number(9,0),
name varchar2(30),
salary number(10,2)
)
CREATE TABLE aircraft (
aid number(9,0),
name varchar2(30),
distance number(6,0)
)
CREATE TABLE certificate (
eid number(9,0),
aid number(9,0)
)
CREATE TABLE flight (
flno number(4,0),
origin var... | Show all destinations and the number of flights to each destination by a bar chart, and I want to display in desc by the x axis. | SELECT destination, COUNT(*) FROM flight GROUP BY destination ORDER BY destination DESC | nvbench |
CREATE TABLE table_67012 (
"Round" real,
"Pick" real,
"Name" text,
"Position" text,
"College" text
) | What was the average pick of northwestern state college under round 3? | SELECT AVG("Pick") FROM table_67012 WHERE "Round" < '3' AND "College" = 'northwestern state' | wikisql |
CREATE TABLE table_53401 (
"Date" text,
"Venue" text,
"Result" text,
"Goals" real,
"Competition" text
) | How many goals have a Result of 12 0? | SELECT "Goals" FROM table_53401 WHERE "Result" = '12 – 0' | wikisql |
CREATE TABLE enrollments (
campus number,
year number,
totalenrollment_ay number,
fte_ay number
)
CREATE TABLE csu_fees (
campus number,
year number,
campusfee number
)
CREATE TABLE faculty (
campus number,
year number,
faculty number
)
CREATE TABLE discipline_enrollments (
... | What campuses opened between 1935 and 1939? | SELECT campus FROM campuses WHERE year >= 1935 AND year <= 1939 | spider |
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
) | Show me a bar chart for how many movie reviews does each director get?, show in desc by the bar. | SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY director DESC | nvbench |
CREATE TABLE table_24431 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | Who is the original artist with a theme of N/A? | SELECT "Original artist" FROM table_24431 WHERE "Theme" = 'N/A' | wikisql |
CREATE TABLE table_63159 (
"Source" text,
"Date" text,
"Jody Wagner" text,
"Pat Edmonson" text,
"Michael Signer" text,
"Rich Savage" text,
"Jon Bowerbank" text,
"Undecided" text
) | On which date did Michael Signer earn 4%? | SELECT "Date" FROM table_63159 WHERE "Michael Signer" = '4%' | wikisql |
CREATE TABLE table_name_75 (
incumbent VARCHAR,
district VARCHAR
) | Which Incumbent has a District of California 8? | SELECT incumbent FROM table_name_75 WHERE district = "california 8" | sql_create_context |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | 在二零一五年三月二十日到二零二一年四月二十四日的这几年里,查一下医疗机构8772585转诊门诊的就诊记录数量 | SELECT COUNT(*) FROM txmzjzjlb WHERE txmzjzjlb.YLJGDM = '8772585' AND txmzjzjlb.JZKSRQ BETWEEN '2015-03-20' AND '2021-04-24' AND txmzjzjlb.ZZBZ > 0 UNION SELECT COUNT(*) FROM ftxmzjzjlb WHERE ftxmzjzjlb.YLJGDM = '8772585' AND ftxmzjzjlb.JZKSRQ BETWEEN '2015-03-20' AND '2021-04-24' AND ftxmzjzjlb.ZZBZ > 0 | css |
CREATE TABLE table_5382 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
) | What is the score of the match with a save postponed rescheduled for June 24? | SELECT "Score" FROM table_5382 WHERE "Save" = 'postponed rescheduled for june 24' | wikisql |
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 (... | provide the number of patients whose discharge location is snf and primary disease is bowel obstruction? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.diagnosis = "BOWEL OBSTRUCTION" | mimicsql_data |
CREATE TABLE table_16486 (
"Trim" text,
"Engine" text,
"Turbo" text,
"Fuel Delivery" text,
"Power" text,
"Torque" text,
"Transmission" text,
"Performance" text
) | what's the engine with turbo being yes (mitsubishi td04-15g ) | SELECT "Engine" FROM table_16486 WHERE "Turbo" = 'Yes (Mitsubishi TD04-15g )' | wikisql |
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... | 从11年6月24日起到21年7月31日在编号为2335631的医疗机构中未就业人员医疗就诊的医疗费总额达到7979.89元以上的就诊记录数量是多少啊? | SELECT COUNT(*) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '2335631' AND t_kc21.IN_HOSP_DATE BETWEEN '2011-06-24' AND '2021-07-31' AND t_kc21.INSURED_STS = '未就业' AND t_kc21.MED_AMOUT >= 7979.89 | css |
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... | How many patients admitted before the year 2162 were discharged to SNF? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.admityear < "2162" | mimicsql_data |
CREATE TABLE store_product (
store_id number,
product_id number
)
CREATE TABLE store (
store_id number,
store_name text,
type text,
area_size number,
number_of_product_category number,
ranking number
)
CREATE TABLE district (
district_id number,
district_name text,
headquar... | Find all the product whose name contains the word 'Scanner'. | SELECT product FROM product WHERE product LIKE "%Scanner%" | spider |
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... | 查询52622012病患的检验报告单中结果指标均异常的检验报告单?需要检验报告的单号 | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info... | css |
CREATE TABLE table_name_90 (
date VARCHAR,
venue VARCHAR
) | What date did the VFL play Punt Road Oval? | SELECT date FROM table_name_90 WHERE venue = "punt road oval" | sql_create_context |
CREATE TABLE table_39480 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | What was the margin of victory when the winning score was 14 (63-67-73-67=270)? | SELECT "Margin of victory" FROM table_39480 WHERE "Winning score" = '−14 (63-67-73-67=270)' | wikisql |
CREATE TABLE table_1769428_2 (
winning_driver VARCHAR,
team VARCHAR,
make VARCHAR
) | Who was the winning driver for Hendrick Motorsports in a Chevrolet Impala SS? | SELECT winning_driver FROM table_1769428_2 WHERE team = "Hendrick Motorsports" AND make = "Chevrolet Impala SS" | sql_create_context |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE T... | For those employees who did not have any job in the past, visualize a bar chart about the distribution of hire_date and the sum of employee_id bin hire_date by time, and order by the Y in descending. | SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(EMPLOYEE_ID) DESC | nvbench |
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... | Draw a bar chart of decor versus minimal baseprice, and sort by the X-axis in desc please. | SELECT decor, MIN(basePrice) FROM Rooms GROUP BY decor ORDER BY decor DESC | nvbench |
CREATE TABLE table_12702 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | What is the score for the game with 213 attending? | SELECT "Score" FROM table_12702 WHERE "Attendance" = '213' | wikisql |
CREATE TABLE table_1681535_1 (
release_date VARCHAR,
title VARCHAR
) | What is the release date for Destiny of the Daleks? | SELECT release_date FROM table_1681535_1 WHERE title = "Destiny of the Daleks" | sql_create_context |
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varch... | i need a list of late afternoon flights from CHICAGO to MILWAUKEE | 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 = 'MILWA... | atis |
CREATE TABLE table_32596 (
"Rank" real,
"Player" text,
"Nation" text,
"Assist" real,
"Games" real,
"Years" text
) | Which years did the USA have a rank lower than 6 and an assist number less than 26? | SELECT "Years" FROM table_32596 WHERE "Assist" < '26' AND "Rank" < '6' AND "Nation" = 'usa' | wikisql |
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
U... | Tag Wiki Excerpts that start with 'Do not use'. | SELECT Tags.TagName FROM Tags INNER JOIN Posts ON Tags.ExcerptPostId = Posts.Id WHERE LOWER(Posts.Body) LIKE '%off-topic%' OR LOWER(Posts.Body) LIKE '%don''t use%' | sede |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.