context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_18662026_1 (
vault VARCHAR,
rings VARCHAR
) | If the rings number is 60.000, what is the number for the vault? | SELECT COUNT(vault) FROM table_18662026_1 WHERE rings = "60.000" | sql_create_context |
CREATE TABLE table_14417 (
"Year" real,
"Award" text,
"Category" text,
"Nominated Work" text,
"Result" text
) | What was album of the year after 2009? | SELECT "Result" FROM table_14417 WHERE "Year" > '2009' AND "Category" = 'album of the year' | 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 txmzjzjlb.SG, txmzjzjlb.TZ FROM person_info JOIN hz_info JOIN txmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE person_info.XM = '喻英朗' UNION SELECT ftxmzjzjlb.SG, ftxmzjzjlb.TZ FROM person_info JOIN hz_info JOIN ... | css |
CREATE TABLE table_name_29 (
attendance VARCHAR,
date VARCHAR,
away VARCHAR
) | When Platense was the away team on 16 August 2008 how many people attended the game? | SELECT attendance FROM table_name_29 WHERE date = "16 august 2008" AND away = "platense" | sql_create_context |
CREATE TABLE table_name_64 (
place VARCHAR,
country VARCHAR
) | What is the place of the player from Spain? | SELECT place FROM table_name_64 WHERE country = "spain" | sql_create_context |
CREATE TABLE table_9504 (
"Rank" text,
"Nation" text,
"Gold" text,
"Silver" text,
"Bronze" real,
"Total" real
) | What is the total number of bronzes with totals under 4 and ranks of 10? | SELECT COUNT("Bronze") FROM table_9504 WHERE "Total" < '4' AND "Rank" = '10' | wikisql |
CREATE TABLE table_name_85 (
attendance VARCHAR,
date VARCHAR
) | How many attended on may 6? | SELECT COUNT(attendance) FROM table_name_85 WHERE date = "may 6" | sql_create_context |
CREATE TABLE table_27012 (
"Vehicle" text,
"Operating mode" text,
"EPA rated All-electric range" text,
"EPA rated combined fuel economy" text,
"Clean electric grid California (San Francisco)" text,
"U.S. national average electric mix" text,
"Dirty electric grid Rocky Mountains (Denver)" text... | When 380 g/mi (236 g/km) is the dirty electric grid rocky mountains (denver) what is the u.s national average electric mix? | SELECT "U.S. national average electric mix" FROM table_27012 WHERE "Dirty electric grid Rocky Mountains (Denver)" = '380 g/mi (236 g/km)' | wikisql |
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE video_games (
gameid number,
gname text,
gtype text
)
CREATE TABLE sportsinfo (
stuid number,
sportname text,
hoursperw... | What is the name of the game that has been played the most? | SELECT gname FROM plays_games AS T1 JOIN video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY SUM(hours_played) DESC LIMIT 1 | spider |
CREATE TABLE device (
device_id number,
device text,
carrier text,
package_version text,
applications text,
software_platform text
)
CREATE TABLE shop (
shop_id number,
shop_name text,
location text,
open_date text,
open_year number
)
CREATE TABLE stock (
shop_id number... | Show the locations shared by shops with open year later than 2012 and shops with open year before 2008. | SELECT location FROM shop WHERE open_year > 2012 INTERSECT SELECT location FROM shop WHERE open_year < 2008 | spider |
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
) | Show the authors of their total submissions with a bar chart, and display by the x axis in asc. | SELECT Author, COUNT(Author) FROM submission GROUP BY Author ORDER BY Author | nvbench |
CREATE TABLE table_24634 (
"Team" text,
"Car(s)" text,
"#" real,
"Driver(s)" text,
"Primary Sponsor(s)" text,
"Listed Owner(s)" text,
"Crew Chief" text
) | What type of car does Jeff Fuller drive? | SELECT "Car(s)" FROM table_24634 WHERE "Driver(s)" = 'Jeff Fuller' | wikisql |
CREATE TABLE table_6712 (
"Season" text,
"Competition" text,
"Round" text,
"Opponent" text,
"Home" text,
"Away" text,
"Agg." text
) | Which Home has an Opponent of br ndby? | SELECT "Home" FROM table_6712 WHERE "Opponent" = 'brøndby' | wikisql |
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... | 在医院5414853的住院记录里面,列出74171548这位患者住院的时候入院的科室名里不带眼眶字样的住院记录 | SELECT * FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE hz_info.RYBH = '74171548' AND hz_info.YLJGDM = '5414853' AND NOT zyjzjlb.JZKSMC LIKE '%眼眶%' | css |
CREATE TABLE table_10537 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | Where did the home team score 14.13 (97)? | SELECT "Venue" FROM table_10537 WHERE "Home team score" = '14.13 (97)' | wikisql |
CREATE TABLE table_51649 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | Tell me the average gold for moldova and bronze less than 1 | SELECT AVG("Gold") FROM table_51649 WHERE "Nation" = 'moldova' AND "Bronze" < '1' | wikisql |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime tim... | when did patient 10425 first had the jackson pratt #2 output until 12/30/2105? | SELECT outputevents.charttime FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10425)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'jack... | mimic_iii |
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... | 列举出从06年3月16日至17年7月23日之间病人赵光远所有检验结果指标记录中的检测方法? | SELECT jyjgzbb.JCFF FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.... | css |
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE weather (
date TEX... | Count those days and in which zip code was the min dew point lower than any day in zip code 94107 using a bar graph, could you order X in desc order? | SELECT date, COUNT(date) FROM weather WHERE min_dew_point_f < (SELECT MIN(min_dew_point_f) FROM weather WHERE zip_code = 94107) GROUP BY date ORDER BY date DESC | nvbench |
CREATE TABLE bdmzjzjlb (
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... | 经过门诊就诊的病号97338418415用的卡的卡号以及卡类型是什么呢? | SELECT wdmzjzjlb.KH, wdmzjzjlb.KLX FROM wdmzjzjlb WHERE wdmzjzjlb.JZLSH = '97338418415' UNION SELECT bdmzjzjlb.KH, bdmzjzjlb.KLX FROM bdmzjzjlb WHERE bdmzjzjlb.JZLSH = '97338418415' | css |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | Average votes for all popular tags. | SELECT TagName, CNT, Score FROM (SELECT TagName, COUNT(*) AS CNT, AVG(CAST(Score AS FLOAT)) AS Score FROM (SELECT p.Id, T.TagName, p.Score FROM Posts AS p INNER JOIN PostTags AS pt ON pt.PostId = p.Id INNER JOIN Tags AS t ON t.Id = pt.TagId) AS t1 GROUP BY TagName) AS t2 WHERE CNT > 30000 ORDER BY Score DESC | sede |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
... | what is the name of the drug patient 60180 was prescribed within 2 days after having received a inj/inf platelet inhibit procedure in 09/2104. | SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 60180 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = ... | mimic_iii |
CREATE TABLE table_58831 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4? | SELECT AVG("Gold") FROM table_58831 WHERE "Total" < '4' AND "Nation" = 'brazil' AND "Bronze" > '1' | wikisql |
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 TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE T... | For those employees who did not have any job in the past, draw a bar chart about the distribution of job_id and the average of manager_id , and group by attribute job_id, rank by the bar in ascending. | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID | nvbench |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | how many patients whose primary disease is coronary artery disease\coronary artery bypass graft; myomectomy/sda and days of hospital stay is greater than 0? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT; MYOMECTOMY/SDA" AND demographic.days_stay > "0" | mimicsql_data |
CREATE TABLE table_name_42 (
score VARCHAR,
decision VARCHAR,
october VARCHAR
) | What was the score of the game on October 20 with a decision of Lundqvist? | SELECT score FROM table_name_42 WHERE decision = "lundqvist" AND october = "20" | sql_create_context |
CREATE TABLE table_name_53 (
music VARCHAR,
year INTEGER
) | What music is in the film before 1963? | SELECT music FROM table_name_53 WHERE year < 1963 | sql_create_context |
CREATE TABLE table_48240 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | What is Date, when Catalog is EPC 81436? | SELECT "Date" FROM table_48240 WHERE "Catalog" = 'epc 81436' | wikisql |
CREATE TABLE table_train_274 (
"id" int,
"gender" string,
"serum_bicarbonate" int,
"randomization_bg" int,
"positive_serum" bool,
"diabetic_ketoacidosis" bool,
"urinary_ketones" bool,
"diastolic_blood_pressure_dbp" int,
"heart_rate" int,
"body_mass_index_bmi" float,
"age" flo... | diastolic blood pressure between 65 and 100 mm hg | SELECT * FROM table_train_274 WHERE diastolic_blood_pressure_dbp >= 65 AND diastolic_blood_pressure_dbp <= 100 | criteria2sql |
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Participates_in (
stuid INTEGER... | Show how many rank from each rank | SELECT Rank, COUNT(Rank) FROM Faculty GROUP BY Rank | nvbench |
CREATE TABLE table_204_907 (
id number,
"lift name" text,
"type" text,
"top\nelevation\n(ft)" number,
"bottom\nelevation" number,
"vertical\nrise" number,
"length\n(ft)" number,
"slope\n(%)" text,
"capacity\n(rides/hr)" number,
"speed\n(ft/min)" number,
"lift\nmanufacturer" t... | how many of timberline lodge 's lifts were installed after 2000 ? | SELECT COUNT("lift name") FROM table_204_907 WHERE "year\ninstalled" > 2000 | squall |
CREATE TABLE code_description (
code varchar,
description text
)
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,
fligh... | i would like to know the flights from DENVER to PITTSBURGH leaving on monday | 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 = 'PITTSBURGH' AND date_day.day_number = 21 AND date_day.month_number = 2 AN... | atis |
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,... | morning flight from ATLANTA to PHILADELPHIA | 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 = 'ATLANTA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHILA... | atis |
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... | 列出编码为8988209的医院按不同的科室编码和出院诊断疾病名称所有医疗就诊记录中患者的平均年龄是哪些吗? | SELECT qtb.MED_ORG_DEPT_CD, qtb.OUT_DIAG_DIS_NM, AVG(qtb.PERSON_AGE) FROM qtb WHERE qtb.MED_SER_ORG_NO = '8988209' GROUP BY qtb.MED_ORG_DEPT_CD, qtb.OUT_DIAG_DIS_NM UNION SELECT gyb.MED_ORG_DEPT_CD, gyb.OUT_DIAG_DIS_NM, AVG(gyb.PERSON_AGE) FROM gyb WHERE gyb.MED_SER_ORG_NO = '8988209' GROUP BY gyb.MED_ORG_DEPT_CD, gyb.... | css |
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,
intime time,
outtime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
... | when was the last time when patient 25965 was prescribed syringe (chemo) and chlorhexidine gluconate 0.12% oral rinse at the same time until 08/2105? | SELECT t1.startdate FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'syringe (chemo)' AND admissions.subject_id = 25965 AND STRFTIME('%y-%m', prescriptions.startdate) <= '2105-08') AS t1 JOIN (SELECT ... | mimic_iii |
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 icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... | what was the number of patients who had a cholesterol, ldl, calculated lab test until 2100? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT labevents.hadm_id FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'cholesterol, ldl, calculated') AND STRFTIME('%y', labevents.charttime) <= '2100') | mimic_iii |
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum nu... | how many times have the endosc remove bile stone procedure been performed since 3 years ago? | SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'endosc remove bile stone') AND DATETIME(procedures_icd.charttime) >= DATETIME(CURRENT_TIME(), '-3 year') | mimic_iii |
CREATE TABLE market (
market_id number,
country text,
number_cities number
)
CREATE TABLE film (
film_id number,
title text,
studio text,
director text,
gross_in_dollar number
)
CREATE TABLE film_market_estimation (
estimation_id number,
low_estimate number,
high_estimate n... | How films are produced by each studio? | SELECT studio, COUNT(*) FROM film GROUP BY studio | spider |
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 lab (
labid numbe... | when is the first time patient 007-2001 had a minimum of rdw in 01/last year? | 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 = '007-2001')) AND lab.labname = 'rdw' AND DATETIME(lab.labresulttime, 'start of year'... | eicu |
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE jo... | What upper level ENSCEN classes are available Fall semester ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ENSCEN' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = 'Fall... | advising |
CREATE TABLE table_17968 (
"Round" real,
"Circuit" text,
"Date" text,
"Length" text,
"Pole Position" text,
"GT3 Winner" text,
"GTC Winner" text
) | what is the maximum round for gt3 winner hector lester tim mullen and pole position of jonny cocker paul drayson | SELECT MAX("Round") FROM table_17968 WHERE "GT3 Winner" = 'Hector Lester Tim Mullen' AND "Pole Position" = 'Jonny Cocker Paul Drayson' | wikisql |
CREATE TABLE table_1624 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | What team(s) did they play on april 23? | SELECT "Team" FROM table_1624 WHERE "Date" = 'April 23' | wikisql |
CREATE TABLE table_dev_55 (
"id" int,
"gender" string,
"serum_potassium_abnormality" float,
"hemoglobin_a1c_hba1c" float,
"body_weight" float,
"renal_disease" bool,
"serum_creatinine" float,
"body_mass_index_bmi" float,
"NOUSE" float
) | impaired renal function , defined as serum creatinine >= 125 umol / l ( >= 1.4 mg / dl ) for male and >= 110 umol / l ( >= 1.24 mg / dl ) for female | SELECT * FROM table_dev_55 WHERE renal_disease = 1 OR ((serum_creatinine >= 1.4 AND gender = 'male') OR (serum_creatinine >= 1.24 AND gender = 'female')) | criteria2sql |
CREATE TABLE table_2366 (
"Institution" text,
"Location" text,
"Year Joined" real,
"Affiliation" text,
"Enrollment" real,
"Mascot" text,
"Colors" text
) | what is the number of enrollment of the central institution? | SELECT "Enrollment" FROM table_2366 WHERE "Institution" = 'Central' | wikisql |
CREATE TABLE table_203_590 (
id number,
"date" text,
"venue" text,
"opponents" text,
"score" text,
"competition" text,
"scotland scorer(s)" text
) | scotland played their first match of the 1951 british home championship against which team ? | SELECT "opponents" FROM table_203_590 WHERE "date" = 1951 ORDER BY "date" LIMIT 1 | squall |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jybgb_jyjgzbb (
JYZBLSH number,
YLJGDM text,
jyjgzbb_id number
)
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
... | 门诊诊断患者柏飞鸿为煤工尘肺,他的检测指标223006的结果定量及其单位均为? | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_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 = j... | css |
CREATE TABLE table_train_187 (
"id" int,
"pregnancy_or_lactation" bool,
"renal_disease" bool,
"diabetic" string,
"liver_disease" bool,
"NOUSE" float
) | chronic liver disease | SELECT * FROM table_train_187 WHERE liver_disease = 1 | criteria2sql |
CREATE TABLE table_21606 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | Name the high assists for 29 game | SELECT "High assists" FROM table_21606 WHERE "Game" = '29' | wikisql |
CREATE TABLE table_73424 (
"Pos" real,
"Club" text,
"Games played" real,
"Red/Yellow cards" real,
"Positive play" real,
"Respect toward opponents" real,
"Respect toward referee" real,
"Behaviour of team officials" real,
"Points" real,
"Score" text,
"Average" text
) | Name the most pos for west bromwich albion club | SELECT MAX("Pos") FROM table_73424 WHERE "Club" = 'West Bromwich Albion' | wikisql |
CREATE TABLE table_59853 (
"Year" real,
"Song" text,
"Artist" text,
"Place" text,
"Points" text,
"Composer" text
) | Who is the Composer of ' peace will come '? | SELECT "Composer" FROM table_59853 WHERE "Song" = ' peace will come ' | wikisql |
CREATE TABLE table_23293785_3 (
race_2_pts_ VARCHAR,
race_1_pts_ VARCHAR
) | How many are the Race 2 points when Race 1 was 12? | SELECT race_2_pts_ FROM table_23293785_3 WHERE race_1_pts_ = 12 | sql_create_context |
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... | 患者姜慧美出院诊断疾病名称包含所致的医疗在医院6311609是什么就诊记录编号? | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_NM = '姜慧美' AND t_kc21.MED_SER_ORG_NO = '6311609' AND t_kc21.OUT_DIAG_DIS_NM LIKE '%所致%' | css |
CREATE TABLE Invoice (
InvoiceId integer,
CustomerId integer,
InvoiceDate datetime,
BillingAddress varchar(70),
BillingCity varchar(40),
BillingState varchar(40),
BillingCountry varchar(40),
BillingPostalCode varchar(10),
Total decimal(10,2)
)
CREATE TABLE Playlist (
PlaylistId ... | Show me a bar chart for what are the first names and support rep ids for employees serving 10 or more customers? | SELECT T1.FirstName, T1.SupportRepId FROM Customer AS T1 JOIN Employee AS T2 ON T1.SupportRepId = T2.EmployeeId | nvbench |
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8)
)
CREATE TABLE DEPARTMENT (
DEPT_CODE varchar(10),
DEPT_NAME varchar(30),
SCHOOL_CODE varchar(8),
EMP_NUM int,
DEPT_ADDRESS varchar(20),
DEPT_EXTENSION varchar(4)
... | How many hours do the students spend studying in each department Plot them as bar chart, and display from high to low by the X please. | SELECT DEPT_CODE, SUM(STU_HRS) FROM STUDENT GROUP BY DEPT_CODE ORDER BY DEPT_CODE DESC | nvbench |
CREATE TABLE table_203_212 (
id number,
"#" number,
"district" text,
"land area (km2)" number,
"population\n(2010 census)" number,
"density (persons/km2)" number
) | how many districts in saint lucia have populations greater than 10,000 people ? | SELECT COUNT("district") FROM table_203_212 WHERE "population\n(2010 census)" > 10000 | squall |
CREATE TABLE table_11018 (
"Year" real,
"Award" text,
"Category" text,
"Work" text,
"Result" text
) | Which category does drama league award belong to? | SELECT "Category" FROM table_11018 WHERE "Award" = 'drama league award' | wikisql |
CREATE TABLE table_25548213_1 (
series__number INTEGER,
us_viewers__million_ VARCHAR
) | What is the series number that had 5.31 million viewers? | SELECT MAX(series__number) FROM table_25548213_1 WHERE us_viewers__million_ = "5.31" | sql_create_context |
CREATE TABLE table_42215 (
"Player" text,
"Club" text,
"League" real,
"FA Cup" real,
"FA Trophy" real,
"League Cup" real,
"Total" real
) | How many league cups have yeovil town as the club, with a league less than 16? | SELECT COUNT("League Cup") FROM table_42215 WHERE "Club" = 'yeovil town' AND "League" < '16' | wikisql |
CREATE TABLE table_46210 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Points" text
) | Which Points difference has Played of 32, and Points for of 840? | SELECT "Points difference" FROM table_46210 WHERE "Played" = '32' AND "Points for" = '840' | wikisql |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime t... | the number of patients who have received a bronchoscopy - with brushings in this year. | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'bronchoscopy - with brushings' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')) | eicu |
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,
... | Most Prolific Editors (Last Editor). | SELECT Id AS "user_link", (SELECT COUNT(*) FROM Posts WHERE PostTypeId = 1 AND LastEditorUserId = Users.Id AND OwnerUserId != Users.Id) AS LastQuestionEditorEdits, (SELECT COUNT(*) FROM Posts WHERE PostTypeId = 2 AND LastEditorUserId = Users.Id AND OwnerUserId != Users.Id) AS LastAnswerEditorEdits, (SELECT COUNT(*) FRO... | sede |
CREATE TABLE table_name_40 (
athlete VARCHAR,
year VARCHAR,
event VARCHAR
) | Which athlete performed before 1984 in an 800 m event? | SELECT athlete FROM table_name_40 WHERE year < 1984 AND event = "800 m" | sql_create_context |
CREATE TABLE table_31024 (
"Artist" text,
"Jaanu N\u0151gisto" real,
"Iiris Vesik" real,
"Erik Morna" real,
"Veronika Portsmuth" real,
"Chalice" real,
"Kristo Rajasaare" real,
"Hannaliisa Uusmaa" real,
"Siim Nestor" real,
"Peeter V\u00e4hi" real,
"Helen Sildna" real,
"Ott... | How many scores did Helen Sildna give when Iiris Vesik gave a 3? | SELECT COUNT("Helen Sildna") FROM table_31024 WHERE "Iiris Vesik" = '3' | wikisql |
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
... | please show me the flights from BOSTON to SAN FRANCISCO | 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 = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRA... | atis |
CREATE TABLE table_11500 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | On October 25, when the visitor was Colorado, what is the score? | SELECT "Score" FROM table_11500 WHERE "Visitor" = 'colorado' AND "Date" = 'october 25' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | count the number of patients less than 76 years who have procedure icd9 code 2811. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "76" AND procedures.icd9_code = "2811" | mimicsql_data |
CREATE TABLE table_name_51 (
general_classification VARCHAR,
winner VARCHAR,
stage VARCHAR
) | What is guido bontempi's general classification when he has a stage of 6? | SELECT general_classification FROM table_name_51 WHERE winner = "guido bontempi" AND stage = "6" | sql_create_context |
CREATE TABLE table_22091 (
"Edition" text,
"Round" text,
"Date" text,
"Partnering" text,
"Against" text,
"Surface" text,
"Opponents" text,
"W\u2013L" text,
"Result" text
) | What country did Gil play against on 21 23 september 2007? | SELECT "Against" FROM table_22091 WHERE "Date" = '21–23 September 2007' | wikisql |
CREATE TABLE table_228973_3 (
title VARCHAR,
no_in_series VARCHAR
) | what is the name of the episode whose number of the series episode was 31? | SELECT title FROM table_228973_3 WHERE no_in_series = 31 | sql_create_context |
CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
JCZBJGDX text,
JCZBJGDL number,
JCZBJGDW text,
SBBM text,
YQBH text... | 查询住院就诊39253929827中所有患者的卡号还有卡的类型 | SELECT KH, KLX FROM zyjzjlb WHERE JZLSH = '39253929827' | css |
CREATE TABLE table_70331 (
"Tournament" text,
"2008" text,
"2010" text,
"2011" text,
"2012" text,
"2013" text
) | Name the 2012 for 2011 being qf | SELECT "2012" FROM table_70331 WHERE "2011" = 'qf' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
... | what is the number of patients whose year of birth is less than 2156 and procedure short title is endosc retro cholangiopa? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2156" AND procedures.short_title = "Endosc retro cholangiopa" | mimicsql_data |
CREATE TABLE table_name_18 (
data_limit__gb VARCHAR,
company VARCHAR,
plan_name VARCHAR
) | What is the data limit for a T-Mobile internet basic plan? | SELECT data_limit__gb FROM table_name_18 WHERE company = "t-mobile" AND plan_name = "internet basic" | sql_create_context |
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 ftxmzjzjlb (
HXPLC number,
HZ... | 从00年11月21日到17年6月25日,在门诊找医生75246625看病的人数有多少 | SELECT COUNT(hz_info.RYBH) FROM hz_info JOIN txmzjzjlb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE txmzjzjlb.ZZYSGH = '75246625' AND txmzjzjlb.JZKSRQ BETWEEN '2000-11-21' AND '2017-06-25' UNION SELECT COUNT(hz_info.RYBH) FROM hz_info JOIN ftxmzjzjlb ON hz_inf... | css |
CREATE TABLE table_17316 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | What was the score of the game played on December 8? | SELECT "Score" FROM table_17316 WHERE "Date" = 'December 8' | wikisql |
CREATE TABLE table_73939 (
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents in final" text,
"Score in final" text
) | Who was his partner in 1989? | SELECT "Partner" FROM table_73939 WHERE "Year" = '1989' | wikisql |
CREATE TABLE table_name_31 (
elector VARCHAR,
elevated VARCHAR
) | What Elector was Elevated on December 18, 1182? | SELECT elector FROM table_name_31 WHERE elevated = "december 18, 1182" | sql_create_context |
CREATE TABLE table_55668 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
) | On which date did the away team score 3.4 (22)? | SELECT "Date" FROM table_55668 WHERE "Away team score" = '3.4 (22)' | wikisql |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE... | For all employees who have the letters D or S in their first name, find hire_date and the average of manager_id bin hire_date by time, and visualize them by a bar chart, show by the y axis in ascending. | SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY AVG(MANAGER_ID) | nvbench |
CREATE TABLE table_49661 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
) | Name the Team which has Points larger than 9, and a Year larger than 1971, and a Class of 250cc? | SELECT "Team" FROM table_49661 WHERE "Points" > '9' AND "Year" > '1971' AND "Class" = '250cc' | wikisql |
CREATE TABLE table_1727 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
) | How many episodes did Julie Martin wrote for the show If every episode has its own production code? | SELECT COUNT("Production code") FROM table_1727 WHERE "Written by" = 'Julie Martin' | wikisql |
CREATE TABLE table_5623 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
) | Which Opponent has an Event of king of the cage: shock and awe? | SELECT "Opponent" FROM table_5623 WHERE "Event" = 'king of the cage: shock and awe' | wikisql |
CREATE TABLE table_204_944 (
id number,
"mine" text,
"province" text,
"coordinates" text,
"town" text,
"dates" text,
"comments" text
) | what town is listed the most ? | SELECT "town" FROM table_204_944 GROUP BY "town" ORDER BY COUNT(*) DESC LIMIT 1 | squall |
CREATE TABLE table_7751 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the average Total, when Gold is 0, and when Nation is Iran? | SELECT AVG("Total") FROM table_7751 WHERE "Gold" = '0' AND "Nation" = 'iran' | wikisql |
CREATE TABLE table_name_22 (
Id VARCHAR
) | Name the 2013 for 2010 of 1r | SELECT 2013 FROM table_name_22 WHERE 2010 = "1r" | sql_create_context |
CREATE TABLE table_name_77 (
subjunctive VARCHAR,
indicative VARCHAR
) | What subjunctive has the indicative of se m chan(t)? | SELECT subjunctive FROM table_name_77 WHERE indicative = "se måchan(t)" | sql_create_context |
CREATE TABLE table_60320 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | Wht did Mark O'Meara place when the to par was +2? | SELECT "Place" FROM table_60320 WHERE "To par" = '+2' AND "Player" = 'mark o''meara' | wikisql |
CREATE TABLE table_15187735_12 (
segment_a VARCHAR,
segment_b VARCHAR
) | What is Segment A where Segment B is Kevlar S Canoe? | SELECT segment_a FROM table_15187735_12 WHERE segment_b = "Kevlar s Canoe" | sql_create_context |
CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
) | Who are the nominees who were nominated for either of the Bob Fosse or Cleavant Derricks awards, and count them by a bar chart | SELECT Nominee, COUNT(Nominee) FROM musical WHERE Award = "Tony Award" OR Award = "Cleavant Derricks" GROUP BY Nominee | 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... | 孔傲晴病患在医院9262295的门诊就诊中,有哪些就诊科室名包含遗传的所有门诊就诊记录的流水号信息 | SELECT zzmzjzjlb.JZLSH 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 = '孔傲晴' AND hz_info.YLJGDM = '9262295' AND zzmzjzjlb.JZKSMC LIKE '%遗传%' UNION SELECT fzzmzjzjlb.... | css |
CREATE TABLE table_20246201_9 (
states___first_place VARCHAR,
office VARCHAR
) | How many states-first place are there for the office of Governor? | SELECT COUNT(states___first_place) FROM table_20246201_9 WHERE office = "Governor" | sql_create_context |
CREATE TABLE table_26454128_7 (
rank VARCHAR,
athlete VARCHAR
) | Name the total number of rank for tom churchill | SELECT COUNT(rank) FROM table_26454128_7 WHERE athlete = "Tom Churchill" | sql_create_context |
CREATE TABLE table_76472 (
"Round" real,
"Selection" real,
"Player" text,
"Position" text,
"College" text
) | Which Position has a Player of gibril wilson? | SELECT "Position" FROM table_76472 WHERE "Player" = 'gibril wilson' | wikisql |
CREATE TABLE table_12143 (
"Year" real,
"Title" text,
"Format/genre" text,
"Role" text,
"Staged by" text
) | In what title did he act in 1940? | SELECT "Title" FROM table_12143 WHERE "Year" = '1940' | wikisql |
CREATE TABLE table_64762 (
"Rank" real,
"Rower" text,
"Country" text,
"Time" text,
"Notes" text
) | What is the Rank of the rower with a Time of 8:23.02? | SELECT COUNT("Rank") FROM table_64762 WHERE "Time" = '8:23.02' | wikisql |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAno... | List bounties won by tag names. | SELECT p.Id AS "post_link", SUM(v.BountyAmount) AS BountyWon, p.Tags AS PostTags FROM Votes AS v JOIN Posts AS p ON v.PostId = p.Id JOIN PostTags AS pt ON pt.PostId = p.Id JOIN Tags AS t ON t.Id = pt.TagId WHERE (t.TagName = @TagName1 OR t.TagName = @TagName2 OR t.TagName = @TagName3) AND v.BountyAmount > 0 GROUP BY p.... | sede |
CREATE TABLE event (
Event_ID int,
Date text,
Venue text,
Name text,
Event_Attendance int
)
CREATE TABLE news_report (
journalist_ID int,
Event_ID int,
Work_Type text
)
CREATE TABLE journalist (
journalist_ID int,
Name text,
Nationality text,
Age text,
Years_working... | Show the names of journalists and the number of events they reported in a bar chart, show X from high to low order. | SELECT T3.Name, COUNT(*) FROM news_report AS T1 JOIN event AS T2 ON T1.Event_ID = T2.Event_ID JOIN journalist AS T3 ON T1.journalist_ID = T3.journalist_ID GROUP BY T3.Name ORDER BY T3.Name DESC | nvbench |
CREATE TABLE table_60912 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
) | Which event had 4th place and took place in the year 2007? | SELECT "Event" FROM table_60912 WHERE "Position" = '4th' AND "Year" = '2007' | wikisql |
CREATE TABLE geographic (
city_name varchar,
county varchar,
region varchar
)
CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_name varchar
)
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rati... | What is the best place in san francisco for french food ? | SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'san francisco' AND restaurant.food_type = 'french' AND restaurant.id = location.restaurant_id AND restaurant.rating = (SELECT MAX(RESTAURANTalias1.rating) FROM location AS LOCATIONalias1, restaurant AS RESTAURANTalias1 W... | restaurants |
CREATE TABLE table_49333 (
"Name" text,
"Built" text,
"Listed" text,
"Location" text,
"County" text
) | what's the listing date for the verdigris creek bridge in royal of antelope county? | SELECT "Listed" FROM table_49333 WHERE "County" = 'antelope' AND "Location" = 'royal' AND "Name" = 'verdigris creek bridge' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.