context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
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,... | 78850813555的医疗就诊中病人总共开出的药品编码和名称,以及金额请一一列出来,把金额最少的药品删掉,其余按金额从高到低排列 | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM, t_kc22.AMOUNT FROM t_kc22 WHERE t_kc21_t_kc22.MED_CLINIC_ID = '78850813555' AND t_kc22.AMOUNT > (SELECT MIN(t_kc22.AMOUNT) FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.ME... | css |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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... | tell me the diagnoses icd9 code and type of admission for the patient with patient id 28588. | SELECT demographic.admission_type, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "28588" | mimicsql_data |
CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
account_name VARCHAR(50),
other_account_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transaction_id INTEGER,
account_id INTEGER,
card_id INTEGER,
transaction_type VARCHA... | Display a bar chart for what are the different card types, and how many cards are there of each?, and could you rank in asc by the y-axis? | SELECT card_type_code, COUNT(*) FROM Customers_Cards GROUP BY card_type_code ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_202 (
"Round" real,
"Grand Prix" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
) | On which date was the winning driver Alain Prost and and had Damon Hill in the pole position? | SELECT "Date" FROM table_202 WHERE "Winning Driver" = 'Alain Prost' AND "Pole Position" = 'Damon Hill' | wikisql |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | Draw a scatter chart about the correlation between Team_ID and All_Games_Percent , and group by attribute All_Road. | SELECT Team_ID, All_Games_Percent FROM basketball_match GROUP BY All_Road | nvbench |
CREATE TABLE table_54242 (
"Name" text,
"Party" text,
"Province" text,
"Term expires" real,
"Term of office" text
) | Whose term expired in 1996 and was from the province of Central Highlands? | SELECT "Name" FROM table_54242 WHERE "Province" = 'central highlands' AND "Term expires" = '1996' | wikisql |
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 jyjgzbb (
BGDH text,
BGRQ tim... | 门诊诊断01248413这个病人患有精神抑郁症,611743检测指标的结果定量是什么?对应的单位呢 | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE mzjzjlb.JZZDSM = '精神抑郁症' AND hz_info.RYBH ... | css |
CREATE TABLE table_name_81 (
points VARCHAR,
name VARCHAR
) | What is Points, when Name is Ondrej Starosta? | SELECT points FROM table_name_81 WHERE name = "ondrej starosta" | sql_create_context |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | 那位在门诊就诊的84220777179号病人的中医诊断编号以及名字分别是什么? | SELECT zzmzjzjlb.MZZYZDZZBM, zzmzjzjlb.MZZYZDZZMC FROM zzmzjzjlb WHERE zzmzjzjlb.JZLSH = '84220777179' UNION SELECT fzzmzjzjlb.MZZYZDZZBM, fzzmzjzjlb.MZZYZDZZMC FROM fzzmzjzjlb WHERE fzzmzjzjlb.JZLSH = '84220777179' | css |
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 all employees who have the letters D or S in their first name, find job_id and the average of employee_id , and group by attribute job_id, and visualize them by a bar chart, and display by the names in ascending please. | SELECT JOB_ID, AVG(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY JOB_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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | provide the number of patients whose days of hospital stay is greater than 13 and diagnoses long title is other and unspecified angina pectoris? | 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.long_title = "Other and unspecified angina pectoris" | mimicsql_data |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | 编号为56236131患者在编号为6811873的医院出院诊断疾病名称不包含孤独症的医疗就诊记录编号是多少? | SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_ID = '56236131' AND MED_SER_ORG_NO = '6811873' AND NOT OUT_DIAG_DIS_NM LIKE '%孤独症%' | css |
CREATE TABLE table_25548630_1 (
podiums INTEGER
) | What is the least amount of podiums? | SELECT MIN(podiums) FROM table_25548630_1 | sql_create_context |
CREATE TABLE table_name_18 (
opponents_in_the_final VARCHAR,
score VARCHAR
) | Which Opponents in the final have a Score of 4 6, 6 4, 2 6, 4 6? | SELECT opponents_in_the_final FROM table_name_18 WHERE score = "4–6, 6–4, 2–6, 4–6" | sql_create_context |
CREATE TABLE lessons (
lesson_id number,
customer_id number,
lesson_status_code text,
staff_id number,
vehicle_id number,
lesson_date time,
lesson_time text,
price number
)
CREATE TABLE addresses (
address_id number,
line_1_number_building text,
city text,
zip_postcode t... | When are the birthdays of customer who are classified as 'Good Customer' status? | SELECT date_of_birth FROM customers WHERE customer_status_code = 'Good Customer' | spider |
CREATE TABLE table_53519 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | what was the total crowd in the game where the home teams score was 18.12 (120) | SELECT MIN("Crowd") FROM table_53519 WHERE "Home team score" = '18.12 (120)' | wikisql |
CREATE TABLE sportsinfo (
stuid number,
sportname text,
hoursperweek number,
gamesplayed number,
onscholarship text
)
CREATE TABLE video_games (
gameid number,
gname text,
gtype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text... | What are the advisors | SELECT advisor FROM student GROUP BY advisor HAVING COUNT(*) >= 2 | spider |
CREATE TABLE table_225102_4 (
reason_for_change VARCHAR,
district VARCHAR
) | Name the reason for change pennsylvania 13th | SELECT reason_for_change FROM table_225102_4 WHERE district = "Pennsylvania 13th" | sql_create_context |
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
... | what 's the cheapest flight from SAN FRANCISCO to BOSTON | 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, fare, flight, flight_fare WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND ... | atis |
CREATE TABLE table_410 (
"Name" text,
"Pennant" text,
"Builder" text,
"Laid Down" text,
"Launched" text,
"Commissioned" text,
"Fate" text
) | What are the commissioned for scotts, greenock and chieftain? | SELECT "Commissioned" FROM table_410 WHERE "Builder" = 'Scotts, Greenock' AND "Name" = 'Chieftain' | wikisql |
CREATE TABLE table_4151 (
"Episode #" real,
"Series #" real,
"Episode Title" text,
"Original air date" text,
"Production Code" real
) | when 68 is the episode number what is the series number? | SELECT "Series #" FROM table_4151 WHERE "Episode #" = '68' | 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... | give me the number of patients whose admission year is less than 2162 and item id is 51301? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2162" AND lab.itemid = "51301" | mimicsql_data |
CREATE TABLE zyjzjlb_jybgb (
YLJGDM_ZYJZJLB text,
BGDH number,
YLJGDM number
)
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
X... | 患者何歌韵的免疫球蛋白M(标准)在2007-12-19到2017-04-22期间是怎样的 | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM... | css |
CREATE TABLE catalogs (
catalog_id number,
catalog_name text,
catalog_publisher text,
date_of_publication time,
date_of_latest_revision time
)
CREATE TABLE catalog_contents_additional_attributes (
catalog_entry_id number,
catalog_level_number number,
attribute_id number,
attribute_v... | Which catalog publishers have substring 'Murray' in their names? | SELECT DISTINCT (catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE "%Murray%" | spider |
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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | give the number of patients under the age of 74 who had arterial catheterization. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "74" AND procedures.short_title = "Arterial catheterization" | mimicsql_data |
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
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 varch... | The easiest class I can take to fulfill the MDE requirement is what ? | SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%MDE%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_cou... | advising |
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,
... | how many male patients remained admitted in hospital for more than 5 days? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.days_stay > "5" | mimicsql_data |
CREATE TABLE table_20375 (
"N\u00b0" real,
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"DAR" text,
"HDTV" text,
"PPV" text,
"Package/Option" text
) | Name the least number for mydeejay | SELECT MIN("N\u00b0") FROM table_20375 WHERE "Television service" = 'myDeejay' | wikisql |
CREATE TABLE table_25898 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | Who directed the episode 'Woman'? | SELECT "Directed by" FROM table_25898 WHERE "Title" = 'Woman' | wikisql |
CREATE TABLE table_203_300 (
id number,
"year" number,
"tournament" text,
"venue" text,
"result" text,
"extra" text
) | how many summer olympics has yelena slesarenko participated in ? | SELECT COUNT(*) FROM table_203_300 WHERE "tournament" = 'summer olympics' | squall |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | what is date of birth and diagnoses short title of subject name jerry deberry? | SELECT demographic.dob, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Jerry Deberry" | mimicsql_data |
CREATE TABLE table_13003460_1 (
english_translation VARCHAR,
the_icelandic_of_the_glossary VARCHAR
) | Name the english translation of giefdu mier socka bond | SELECT english_translation FROM table_13003460_1 WHERE the_icelandic_of_the_glossary = "giefdu mier socka bond" | sql_create_context |
CREATE TABLE table_name_99 (
hometown VARCHAR,
college VARCHAR
) | What is the hometown of the player that attends UCLA? | SELECT hometown FROM table_name_99 WHERE college = "ucla" | sql_create_context |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id numbe... | when first patient 10765 was discharged from the hospital? | SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 10765 ORDER BY admissions.dischtime LIMIT 1 | mimic_iii |
CREATE TABLE table_name_27 (
name VARCHAR,
area VARCHAR,
roll VARCHAR
) | Tell me the name for kelston with roll less than 322 | SELECT name FROM table_name_27 WHERE area = "kelston" AND roll < 322 | sql_create_context |
CREATE TABLE table_name_14 (
median_family_income VARCHAR,
per_capita_income VARCHAR
) | What is the median income for a family whose per capita income is $18,296? | SELECT median_family_income FROM table_name_14 WHERE per_capita_income = "$18,296" | 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 demographic (... | how many patients whose admission type is elective and primary disease is hemopytsis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.diagnosis = "HEMOPYTSIS" | mimicsql_data |
CREATE TABLE table_52372 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What was the Away team score when the Home team had a score of 13.12 (90)? | SELECT "Away team score" FROM table_52372 WHERE "Home team score" = '13.12 (90)' | 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 (... | how many patients who stayed in the hospital for one or more than one day(s) were given tramadol? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "0" AND prescriptions.drug = "traMADOL" | mimicsql_data |
CREATE TABLE table_1134091_4 (
date_successor_seated VARCHAR,
district VARCHAR
) | When was the successor seated when the district was California 10th? | SELECT date_successor_seated FROM table_1134091_4 WHERE district = "California 10th" | sql_create_context |
CREATE TABLE table_name_25 (
played INTEGER,
season VARCHAR
) | What is the highest amount of games played in the 2003-04 season? | SELECT MAX(played) FROM table_name_25 WHERE season = "2003-04" | sql_create_context |
CREATE TABLE table_name_84 (
pick__number INTEGER,
player VARCHAR
) | What is the Pick # for Ryan Strong? | SELECT MAX(pick__number) FROM table_name_84 WHERE player = "ryan strong" | sql_create_context |
CREATE TABLE table_name_52 (
result VARCHAR,
date VARCHAR
) | What was the result on 10/08/1988? | SELECT result FROM table_name_52 WHERE date = "10/08/1988" | sql_create_context |
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adul... | Return the room and number of reservations made for each of the rooms to draw a bar chart, order by the x axis in asc. | SELECT Room, COUNT(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY Room | nvbench |
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | Give me a pie chart to reflect the proportion of Sex and the amount of Sex. | SELECT Sex, COUNT(Sex) FROM people GROUP BY Sex | nvbench |
CREATE TABLE table_22159 (
"Team" text,
"B10 Conference" text,
"B10 %" text,
"B10 Home" text,
"B10 Road" text,
"All Games" text,
"All Games %" text,
"All Home" text,
"All Road" text,
"All Neutral" text
) | What was the win/loss record for All Neutral games for the team whose Big 10 winning percentage was .833? | SELECT "All Neutral" FROM table_22159 WHERE "B10 %" = '.833' | wikisql |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE patient (
uniquep... | when had patient 027-154299 received the calcium lab test for the first time since 12/2105? | SELECT lab.labresulttime FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-154299')) AND lab.labname = 'calcium' AND STRFTIME('%y-%m', lab.labresulttime) ... | eicu |
CREATE TABLE table_31619 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | Tell me the least silver for total less than 6 and rank of 8 | SELECT MIN("Silver") FROM table_31619 WHERE "Total" < '6' AND "Rank" = '8' | wikisql |
CREATE TABLE table_1058787_1 (
significant_relationship VARCHAR,
virtues VARCHAR
) | How many significant relationships list Will as a virtue? | SELECT COUNT(significant_relationship) FROM table_1058787_1 WHERE virtues = "Will" | sql_create_context |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | 患者82905019在2000年9月22日到2002年6月22日内有多少就诊医生? | SELECT COUNT(txmzjzjlb.ZZYSGH) 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 = '82905019' AND txmzjzjlb.JZKSRQ BETWEEN '2000-09-22' AND '2002-06-22' UNION SELECT COUNT(ftxmzjzjlb.ZZYSGH) FROM hz_info JOIN ftxmzjzjlb ON h... | 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... | what is the marital status and the ethnic group of subject id 30011? | SELECT demographic.marital_status, demographic.ethnicity FROM demographic WHERE demographic.subject_id = "30011" | mimicsql_data |
CREATE TABLE table_name_61 (
name VARCHAR,
moving_to VARCHAR
) | Who was moved to barcelona? | SELECT name FROM table_name_61 WHERE moving_to = "barcelona" | sql_create_context |
CREATE TABLE table_36078 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | Which Netflix episode has an overall episode number under 69 and a Segment D of S Trombone? | SELECT "Netflix" FROM table_36078 WHERE "Episode" < '69' AND "Segment D" = 's trombone' | wikisql |
CREATE TABLE table_204_248 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | what is the difference in number between the total number of gold medals and the total number of bronze medals ? | SELECT ABS((SELECT SUM("gold") FROM table_204_248) - (SELECT SUM("bronze") FROM table_204_248)) | squall |
CREATE TABLE table_51375 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What date did North Melbourne score 22.14 (146) as the home team? | SELECT "Date" FROM table_51375 WHERE "Home team score" = '22.14 (146)' AND "Home team" = 'north melbourne' | wikisql |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 t... | count the number of patients whose admission location is phys referral/normal deli and diagnoses short title is subarachnoid hemorrhage? | 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 = "Subarachnoid hemorrhage" | mimicsql_data |
CREATE TABLE table_27155678_2 (
gene_name VARCHAR,
accession_number VARCHAR
) | Name the gene name for accession number bx897700.1 | SELECT gene_name FROM table_27155678_2 WHERE accession_number = "BX897700.1" | sql_create_context |
CREATE TABLE Songs (
Title VARCHAR,
SongId VARCHAR
)
CREATE TABLE Performance (
bandmate VARCHAR,
SongId VARCHAR
)
CREATE TABLE Band (
id VARCHAR,
firstname VARCHAR
) | Find all the songs produced by artists with first name 'Marianne'. | SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = "Marianne" | sql_create_context |
CREATE TABLE Catalogs (
catalog_id INTEGER,
catalog_name VARCHAR(50),
catalog_publisher VARCHAR(80),
date_of_publication DATETIME,
date_of_latest_revision DATETIME
)
CREATE TABLE Catalog_Contents (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
parent_entry_id INTEGER,
prev... | A bar chart for what are the number of the names of catalog entries with level number 8?, I want to sort by the names in ascending. | SELECT catalog_entry_name, COUNT(catalog_entry_name) FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" GROUP BY catalog_entry_name ORDER BY catalog_entry_name | nvbench |
CREATE TABLE table_63265 (
"City of license" text,
"Identifier" text,
"Frequency" text,
"Power" text,
"Class" text,
"RECNet" text
) | what is the recnet when the city of license is peterborough? | SELECT "RECNet" FROM table_63265 WHERE "City of license" = 'peterborough' | wikisql |
CREATE TABLE table_204_520 (
id number,
"outcome" text,
"no." number,
"date" number,
"championship" text,
"surface" text,
"opponent" text,
"score" text
) | which opponent is listed previous to j rgen fassbender ? | SELECT "opponent" FROM table_204_520 WHERE id = (SELECT id FROM table_204_520 WHERE "opponent" = 'jurgen fassbender') - 1 | squall |
CREATE TABLE table_54680 (
"Player" text,
"Tries" text,
"Conv" text,
"Venue" text,
"Date" text
) | What was Dick Hyland's conv? | SELECT "Conv" FROM table_54680 WHERE "Player" = 'dick hyland' | wikisql |
CREATE TABLE table_name_57 (
rank__number VARCHAR,
attendance VARCHAR
) | What was the rank# of the opponent when there was 93,829 in attendance? | SELECT rank__number FROM table_name_57 WHERE attendance = "93,829" | sql_create_context |
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_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE diagnoses_icd (
row_id numbe... | what are the three most commonly ordered specimen tests for patients who had been diagnosed with hemorrhage complic proc before within the same month until 2104? | SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 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_... | mimic_iii |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
... | how many hours have elapsed since the hospital admission of patient 55360? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', admissions.admittime)) FROM admissions WHERE admissions.subject_id = 55360 AND admissions.dischtime IS NULL | mimic_iii |
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,
... | how many days since patient 030-52327 received a procedure for the first time on this hospital visit? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', treatment.treatmenttime)) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-52327'... | eicu |
CREATE TABLE table_name_31 (
event VARCHAR,
sport VARCHAR,
games VARCHAR
) | Which wrestling event was at the 2008 Beijing games? | SELECT event FROM table_name_31 WHERE sport = "wrestling" AND games = "2008 beijing" | sql_create_context |
CREATE TABLE table_10812293_3 (
high_points VARCHAR,
game VARCHAR
) | Who scored the most points in game 4? | SELECT high_points FROM table_10812293_3 WHERE game = 4 | sql_create_context |
CREATE TABLE table_1726 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | What was the original air date of this episode that was written by Debbie Sarjeant? | SELECT "Original air date" FROM table_1726 WHERE "Written by" = 'Debbie Sarjeant' | wikisql |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE bdmzjzjlb (
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 num... | 患者褚博瀚腰部的各项指标检验结果是怎么样的? | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM... | css |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text
)
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 num... | 列举出在06年8月30日到2008年5月14日内蒋锐锋病患所有检验报告单的审核日期时间是那几天? | SELECT jybgb.SHSJ FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb 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 mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB ... | css |
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8)
)
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5)
)
CREATE TABLE ENROLL (... | how many credits does the department offer?, and could you order by the X in ascending? | SELECT DEPT_CODE, SUM(CRS_CREDIT) FROM COURSE GROUP BY DEPT_CODE ORDER BY DEPT_CODE | nvbench |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
value... | what were the four most commonly ordered lab tests for patients who were previously diagnosed with delirium tremens within 2 months, since 2105? | SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.i... | mimic_iii |
CREATE TABLE table_name_47 (
Id VARCHAR
) | What was the 2007 result for a 2008 result of 1R and 2009 result of 2R? | SELECT 2007 FROM table_name_47 WHERE 2009 = "2r" AND 2008 = "1r" | sql_create_context |
CREATE TABLE table_name_86 (
pct VARCHAR,
years VARCHAR
) | What was the winning percent of Notre Dame in 1905? | SELECT pct FROM table_name_86 WHERE years = "1905" | sql_create_context |
CREATE TABLE table_name_44 (
date VARCHAR,
week VARCHAR
) | Which date has a Week of 6? | SELECT date FROM table_name_44 WHERE week = 6 | sql_create_context |
CREATE TABLE table_12331 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | What is Score, when Away Team is 'Thame United'? | SELECT "Score" FROM table_12331 WHERE "Away team" = 'thame united' | wikisql |
CREATE TABLE Draft_Copies (
document_id INTEGER,
draft_number INTEGER,
copy_number INTEGER
)
CREATE TABLE Documents (
document_id INTEGER,
document_status_code CHAR(15),
document_type_code CHAR(15),
shipping_agent_code CHAR(15),
receipt_date DATETIME,
receipt_number VARCHAR(255),
... | Bar chart of the frequency from each receipt date, bin date by weekday, order y in desc order. | SELECT receipt_date, COUNT(receipt_date) FROM Documents ORDER BY COUNT(receipt_date) DESC | nvbench |
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId n... | Posts and tags since date. | SELECT MyDerivedTable.Id AS "post_link", MyDerivedTable.Title, MyDerivedTable.CreationDate, MyDerivedTable.Tags FROM (SELECT Id, Title, CreationDate, Tags, PostTypeId, Score, ROW_NUMBER() OVER (ORDER BY Id) AS RowNum FROM Posts WHERE PostTypeId = 1 AND Score >= 0 AND CreationDate >= '2019-01-01' AND CreationDate < '202... | sede |
CREATE TABLE table_36386 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | Which segment c's segment b is refrigerators? | SELECT "Segment C" FROM table_36386 WHERE "Segment B" = 'refrigerators' | wikisql |
CREATE TABLE table_name_93 (
title VARCHAR,
production_cost VARCHAR
) | What is the title of the film that had a production cost of $850,000? | SELECT title FROM table_name_93 WHERE production_cost = "$850,000" | sql_create_context |
CREATE TABLE table_59393 (
"Competition" text,
"Round" text,
"Date and time" text,
"Opponent team" text,
"Result" text
) | What is Competition, when Round is '8 A'? | SELECT "Competition" FROM table_59393 WHERE "Round" = '8 a' | wikisql |
CREATE TABLE table_74188 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | Name the number of high rebounds for january 5 | SELECT COUNT("High rebounds") FROM table_74188 WHERE "Date" = 'January 5' | 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
) | Select the names of all the products in the store, and count them by a bar chart, could you order X-axis in asc order? | SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY Name | nvbench |
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number... | Orig-Dupe pairs with disjunct tags. | SELECT Orig.Id AS OrigId, Orig.Id AS "post_link", Orig.Tags AS OrigTags, Orig.ViewCount AS OrigViewCount, Dupe.Id AS DupeId, Dupe.Id AS "post_link", Dupe.Tags AS DupeTags, Dupe.ViewCount AS DupeViewCount FROM PostLinks, Posts AS Orig, Posts AS Dupe WHERE PostLinks.Id NOT IN (SELECT PostLinks.Id FROM PostLinks, PostTags... | sede |
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,
... | what are the four most frequent specimen tests patients had within 2 months after being diagnosed with atrial fibrillation - with rapid ventricular response in the previous year? | SELECT t3.culturesite FROM (SELECT t2.culturesite, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'atrial fibrillation - with rapid ventricular... | eicu |
CREATE TABLE table_43432 (
"Year" text,
"Award" text,
"Production" text,
"Role" text,
"Result" text
) | Which award was An Officer and a Gentleman nominated for? | SELECT "Award" FROM table_43432 WHERE "Result" = 'nominated' AND "Production" = 'an officer and a gentleman' | wikisql |
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE... | Do we know for sure that 543 will be available sometime in the next 2 years ? | SELECT DISTINCT semester.semester, semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 543 AND semester.semester_id = course_offering.semester AND semester.year IN (2016, 2017) | advising |
CREATE TABLE table_13619053_9 (
team VARCHAR,
record VARCHAR
) | Which team was in a game with a record of 15-63? | SELECT team FROM table_13619053_9 WHERE record = "15-63" | sql_create_context |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | provide both the short title and long title of diagnosis for the patient with patient id 18077. | SELECT diagnoses.short_title, diagnoses.long_title FROM diagnoses WHERE diagnoses.subject_id = "18077" | mimicsql_data |
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases IN... | Give me a bar chart for how many grape of each grape | SELECT Grape, COUNT(Grape) FROM wine GROUP BY Grape | nvbench |
CREATE TABLE table_22690 (
"Rank" real,
"Peak" text,
"Country" text,
"Island" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
) | What is the elevation (m) of the Mount Wilhelm peak? | SELECT MAX("Elevation (m)") FROM table_22690 WHERE "Peak" = 'Mount Wilhelm' | wikisql |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25... | For those employees who was hired before 2002-06-21, find hire_date and the average of salary bin hire_date by time, and visualize them by a bar chart, display Y in desc order. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(SALARY) DESC | nvbench |
CREATE TABLE table_76141 (
"Title" text,
"Season" text,
"Winner" text,
"Score" text,
"Runner-up" text,
"Venue" text,
"Attendance" text
) | What is the Score when the winner was suntory sungoliath, and the number attendance was n/a? | SELECT "Score" FROM table_76141 WHERE "Winner" = 'suntory sungoliath' AND "Attendance" = 'n/a' | 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... | what is the number of white ethnic background patients who have congenital stenosis of pulmonary valve? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.ethnicity = "WHITE" AND diagnoses.short_title = "Cong pulmon valve stenos" | mimicsql_data |
CREATE TABLE table_75923 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | What is the Label of the B0011141-01 Catalog? | SELECT "Label" FROM table_75923 WHERE "Catalog" = 'b0011141-01' | wikisql |
CREATE TABLE table_22281 (
"Round" text,
"Clubs remaining" real,
"Clubs involved" real,
"Winners from previous round" text,
"New entries this round" text,
"Leagues entering at this round" text
) | How many clubs remain in the fourth round? | SELECT MIN("Clubs remaining") FROM table_22281 WHERE "Round" = 'Fourth round' | wikisql |
CREATE TABLE fzzmzjzjlb (
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,
MZZYZD... | 编号为43827517的患者被门诊诊断为胃炎,看看检测指标983873的结果定量及其单位 | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW 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 jyb... | css |
CREATE TABLE table_name_91 (
opponent VARCHAR,
week VARCHAR,
date VARCHAR
) | What team was the opponent in a week earlier than 17 on June 17, 2006? | SELECT opponent FROM table_name_91 WHERE week < 17 AND date = "june 17, 2006" | sql_create_context |
CREATE TABLE table_204_360 (
id number,
"year" number,
"host" text,
"gold" text,
"silver" text,
"bronze" text
) | how many times is the host country the same country that won silver ? | SELECT COUNT(*) FROM table_204_360 WHERE "host" = "silver" | squall |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.