context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
)
CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
)
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
) | Group and count the name attribute for visualizing a bar chart, and display total number in asc order. | SELECT Name, COUNT(Name) FROM editor GROUP BY Name ORDER BY COUNT(Name) | nvbench |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm... | is the arterial bp mean value of patient 26817 last measured on the last icu visit less than second to last measured on the last icu visit? | SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26817) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents... | mimic_iii |
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... | how many patients are below 77 years of age and tested with lab item id 51032? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "77" AND lab.itemid = "51032" | mimicsql_data |
CREATE TABLE table_9634 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text
) | What is the record in the 2 round fight that ended by submission (injury)? | SELECT "Record" FROM table_9634 WHERE "Round" = '2' AND "Method" = 'submission (injury)' | wikisql |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime... | count the number of patients who were diagnosed with anemia - acute blood loss anemia and did not come back to the hospital within the same month in the last year. | SELECT (SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'anemia - acute blood loss anemia' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(... | eicu |
CREATE TABLE Customer_Orders (
order_id INTEGER,
customer_id INTEGER,
order_status_code VARCHAR(15),
shipping_method_code VARCHAR(15),
order_placed_datetime DATETIME,
order_delivered_datetime DATETIME,
order_shipping_charges VARCHAR(255)
)
CREATE TABLE Order_Items (
item_id INTEGER,
... | Show each premise type and the number of premises in that type Visualize by bar chart, and could you show premises_type in ascending order? | SELECT premises_type, COUNT(*) FROM Premises GROUP BY premises_type ORDER BY premises_type | nvbench |
CREATE TABLE table_1341598_22 (
result VARCHAR,
incumbent VARCHAR
) | What is the result for barney frank? | SELECT result FROM table_1341598_22 WHERE incumbent = "Barney Frank" | sql_create_context |
CREATE TABLE table_25604014_6 (
no_in_series VARCHAR,
directed_by VARCHAR,
no_in_season VARCHAR
) | What are the number in series of the pieces directed by Win Phelps and which number in season is 11? | SELECT no_in_series FROM table_25604014_6 WHERE directed_by = "Win Phelps" AND no_in_season = 11 | sql_create_context |
CREATE TABLE party (
Location VARCHAR,
Party_ID VARCHAR
)
CREATE TABLE party_host (
Host_ID VARCHAR,
Party_ID VARCHAR
)
CREATE TABLE HOST (
Name VARCHAR,
Host_ID VARCHAR,
Age VARCHAR
) | Show the locations of parties and the names of the party hosts in ascending order of the age of the host. | SELECT T3.Location, T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID ORDER BY T2.Age | sql_create_context |
CREATE TABLE Ref_Characteristic_Types (
characteristic_type_code VARCHAR(15),
characteristic_type_description VARCHAR(80)
)
CREATE TABLE Ref_Colors (
color_code VARCHAR(15),
color_description VARCHAR(80)
)
CREATE TABLE Characteristics (
characteristic_id INTEGER,
characteristic_type_code VARCH... | What are the number of the descriptions of the categories that products with product descriptions that contain the letter t are in?, and order product_category_description in ascending order. | SELECT product_category_description, COUNT(product_category_description) FROM Ref_Product_Categories AS T1 JOIN Products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' GROUP BY product_category_description ORDER BY product_category_description | nvbench |
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
) | Draw a bar chart to compare the stars of each movie by title, and show X-axis in descending order. | SELECT title, stars FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID ORDER BY title DESC | nvbench |
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_20... | Visualize a bar chart about the distribution of meter_700 and meter_100 , I want to rank y axis from low to high order. | SELECT meter_700, meter_100 FROM swimmer ORDER BY meter_100 | nvbench |
CREATE TABLE table_8754 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
) | Which Position has an Event of 10,000 m, and a Competition of world championships, and a Year larger than 1993? | SELECT "Position" FROM table_8754 WHERE "Event" = '10,000 m' AND "Competition" = 'world championships' AND "Year" > '1993' | wikisql |
CREATE TABLE table_1920271_3 (
partner VARCHAR,
outcome VARCHAR,
championship VARCHAR
) | Who was her partner at the US Open and they were runner-up? | SELECT partner FROM table_1920271_3 WHERE outcome = "Runner-up" AND championship = "US Open" | sql_create_context |
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE... | For those employees who did not have any job in the past, draw a bar chart about the distribution of hire_date and the average of salary bin hire_date by time, and display Y-axis in descending order. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY AVG(SALARY) DESC | nvbench |
CREATE TABLE table_12008 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | Who was the constructor when the grid was 11? | SELECT "Constructor" FROM table_12008 WHERE "Grid" = '11' | wikisql |
CREATE TABLE table_train_183 (
"id" int,
"anemia" bool,
"hiv_infection" bool,
"hemoglobin_a1c_hba1c" float,
"creatinine_clearance_cl" float,
"panel_reactive_antibodies" int,
"NOUSE" float
) | anemia ( hemoglobin < 12 ) | SELECT * FROM table_train_183 WHERE anemia = 1 OR hemoglobin_a1c_hba1c < 12 | criteria2sql |
CREATE TABLE table_name_81 (
wins VARCHAR,
losses VARCHAR,
goal_difference VARCHAR,
draws VARCHAR
) | What is the total number of wins of the club with a goal difference less than 21, 4 draws, and less than 21 losses? | SELECT COUNT(wins) FROM table_name_81 WHERE goal_difference < 21 AND draws = 4 AND losses < 21 | sql_create_context |
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stoc... | Show the proportion of names of phones with a pie chart. | SELECT Name, COUNT(Name) FROM phone_market AS T1 JOIN market AS T2 ON T1.Market_ID = T2.Market_ID JOIN phone AS T3 ON T1.Phone_ID = T3.Phone_ID GROUP BY Name | nvbench |
CREATE TABLE table_25401_2 (
romanian VARCHAR,
nuorese_sardinian VARCHAR
) | what is romanian when nuorese sardinian is [ kantata]? | SELECT romanian FROM table_25401_2 WHERE nuorese_sardinian = "[ˈkantata]" | sql_create_context |
CREATE TABLE table_56105 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"Attendance" text,
"Record" text
) | Which week has a result showing L 24-10? | SELECT "Week" FROM table_56105 WHERE "Result" = 'l 24-10' | wikisql |
CREATE TABLE table_12294557_3 (
title VARCHAR,
us_airdate VARCHAR
) | What is the total number of title with a u.s. air date of April 17, 2009 | SELECT COUNT(title) FROM table_12294557_3 WHERE us_airdate = "April 17, 2009" | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
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,
ZYLBDM te... | 名叫范寻芳的患者在门诊作诊断为疾病O57.354时的总蛋白的结果定量及其单位数据各自是多少? | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN person_info_hz_info ON person_info.RYBH = person_info_hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND... | css |
CREATE TABLE mzjzjlb_jybgb (
YLJGDM_MZJZJLB text,
BGDH number,
YLJGDM number
)
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
... | 陶梦秋病人做的下肢各项指标的检验情况咋样 | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jy... | css |
CREATE TABLE table_204_243 (
id number,
"year" number,
"album" text,
"song" text,
"duration" text,
"artist" text
) | what album was published next after mama ? | SELECT "album" FROM table_204_243 WHERE id = (SELECT id FROM table_204_243 WHERE "album" = 'mama') + 1 | squall |
CREATE TABLE table_19651669_1 (
mvp VARCHAR,
champion VARCHAR
) | Who was the MVP the season Scaligera Verona were Champions? | SELECT mvp FROM table_19651669_1 WHERE champion = "Scaligera Verona" | sql_create_context |
CREATE TABLE table_59929 (
"White" text,
"Black" text,
"Year" real,
"Result" text,
"Moves" real,
"Tournament" text,
"Opening" text
) | What's the black with 24 moves in the dortmund tournament? | SELECT "Black" FROM table_59929 WHERE "Moves" = '24' AND "Tournament" = 'dortmund' | wikisql |
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE airport_service (... | what is the cheapest one way fare from SAN FRANCISCO to BOSTON on wednesday august twenty first | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis, flight, flight_fare WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND C... | atis |
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... | 编号为34565955122的检验报告单的所有检验指标信息列一下,包括这几个方面:代码、名称、结果定性、结果定量、结果定量单位、参考值范围下限与上限 | SELECT jyjgzbb.JCZBDM, jyjgzbb.JCZBMC, jyjgzbb.JCZBJGDX, jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW, jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM jyjgzbb WHERE jyjgzbb.BGDH = '34565955122' | css |
CREATE TABLE table_9912 (
"Rank" text,
"Name" text,
"Sprint Points" text,
"Extra Laps" text,
"Total Points" text
) | How many sprint points contribute to 2 total points? | SELECT "Sprint Points" FROM table_9912 WHERE "Total Points" = '2' | wikisql |
CREATE TABLE table_name_99 (
result VARCHAR,
home_team VARCHAR,
game VARCHAR
) | Which Result has a Home Team of rochester, and a Game of game 5? | SELECT result FROM table_name_99 WHERE home_team = "rochester" AND game = "game 5" | sql_create_context |
CREATE TABLE table_27938 (
"meas. num." real,
"passed" text,
"YES votes" real,
"NO votes" real,
"% YES" text,
"Const. Amd.?" text,
"type" text,
"description" text
) | How many votes passed are listed on the measure that had 390338 yes votes? | SELECT COUNT("passed") FROM table_27938 WHERE "YES votes" = '390338' | wikisql |
CREATE TABLE table_10562 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | Which team played away at Victoria park? | SELECT "Away team score" FROM table_10562 WHERE "Venue" = 'victoria park' | wikisql |
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semest... | Is it possible to take 100 -level classes in Fall or Winter ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE ((semester.semester = 'FA' AND semester.year = 2016) OR (semester.semester = 'WN' AND semester.year = 2017)) AND course.course_id = course_offering.course_id AND course.department = 'EECS' AND c... | advising |
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,
... | 在患者81881911的诊疗记录里,从00年9月13日到12年2月14日这期间,为其检测转铁蛋白的医务人员有哪几位,报一下工号及姓名 | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.... | css |
CREATE TABLE table_20903658_1 (
medium VARCHAR,
artist VARCHAR
) | What medium was used for the sculpture by Ernest Richard Gause? | SELECT medium FROM table_20903658_1 WHERE artist = "Ernest Richard Gause" | sql_create_context |
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid ... | What is the most cited paper of behcet acikmese ? | SELECT DISTINCT cite.citedpaperid, COUNT(cite.citedpaperid) FROM author, cite, paper, writes WHERE author.authorname = 'behcet acikmese' AND paper.paperid = cite.citedpaperid AND writes.authorid = author.authorid AND writes.paperid = paper.paperid GROUP BY cite.citedpaperid ORDER BY COUNT(cite.citedpaperid) DESC | scholar |
CREATE TABLE table_name_86 (
draw INTEGER,
points VARCHAR
) | What is the draw number that has 59 points? | SELECT AVG(draw) FROM table_name_86 WHERE points = 59 | sql_create_context |
CREATE TABLE person_info (
RYBH text,
XBDM number,
XBMC text,
XM text,
CSRQ time,
CSD text,
MZDM text,
MZMC text,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
XLDM text,
XLMC text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_M... | 检验报告单01566167620是哪个机构申请检验的,又是哪个机构提供检验的,这两个机构分别是什么名称 | SELECT JYSQJGMC, JYJGMC FROM jybgb WHERE BGDH = '01566167620' | css |
CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
OVE_PAY numb... | 医疗就诊86429402057的公民身份号码、人员姓名、人员性别、人员年龄是什么? | SELECT PERSON_NM, PERSON_SEX, PERSON_AGE, IDENTITY_CARD FROM t_kc21 WHERE MED_CLINIC_ID = '86429402057' | css |
CREATE TABLE mzjybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH number,
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,
... | 申请检验报告单70072856056的科室名称以及编码都是什么呢? | SELECT zyjybgb.SQKS, zyjybgb.SQKSMC FROM zyjybgb WHERE zyjybgb.BGDH = '70072856056' UNION SELECT mzjybgb.SQKS, mzjybgb.SQKSMC FROM mzjybgb WHERE mzjybgb.BGDH = '70072856056' | css |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | find the drug route for the drug named buspirone. | SELECT prescriptions.route FROM prescriptions WHERE prescriptions.drug = "BusPIRone" | mimicsql_data |
CREATE TABLE table_41653 (
"Name" text,
"Height" text,
"Weight (lbs.)" real,
"Position" text,
"Class" text,
"Hometown" text
) | What is the Position with a weight of more than 195 pounds, height of 6'5', and named David Hoskins 3? | SELECT "Position" FROM table_41653 WHERE "Weight (lbs.)" > '195' AND "Height" = '6''5' AND "Name" = 'david hoskins 3' | wikisql |
CREATE TABLE table_4659 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What is the smallest crowd when the home team scored 7.11 (53)? | SELECT MIN("Crowd") FROM table_4659 WHERE "Home team score" = '7.11 (53)' | wikisql |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | How many patients born before the year 2109 were primarily diagnosed for guillain barre syndrome? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "GUILLAIN BARRE SYNDROME" AND demographic.dob_year < "2109" | mimicsql_data |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId numb... | What is my accepted answer percentage. | SELECT (CAST(COUNT(a.Id) AS FLOAT) / (SELECT COUNT(*) FROM Posts WHERE OwnerUserId = @UserId AND PostTypeId = 2) * 100) AS AcceptedPercentage FROM Posts AS q INNER JOIN Posts AS a ON q.AcceptedAnswerId = a.Id WHERE a.OwnerUserId = @UserId AND a.PostTypeId = 2 | sede |
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... | 通过哪些不一样的科室编码和出院诊断疾病编码,把号码是3425465的医院所有医疗就诊记录中病人的平均年龄算出是多少? | SELECT gwyjzb.MED_ORG_DEPT_CD, gwyjzb.OUT_DIAG_DIS_CD, AVG(gwyjzb.PERSON_AGE) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '3425465' GROUP BY gwyjzb.MED_ORG_DEPT_CD, gwyjzb.OUT_DIAG_DIS_CD UNION SELECT fgwyjzb.MED_ORG_DEPT_CD, fgwyjzb.OUT_DIAG_DIS_CD, AVG(fgwyjzb.PERSON_AGE) FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '34... | css |
CREATE TABLE table_name_9 (
team_2 VARCHAR,
team_1 VARCHAR
) | What was team 2 when team 1 was omonia? | SELECT team_2 FROM table_name_9 WHERE team_1 = "omonia" | sql_create_context |
CREATE TABLE table_26301697_2 (
age INTEGER,
represents VARCHAR
) | Name the least age for distrito nacional | SELECT MIN(age) FROM table_26301697_2 WHERE represents = "Distrito Nacional" | sql_create_context |
CREATE TABLE gas_station (
Station_ID int,
Open_Year int,
Location text,
Manager_Name text,
Vice_Manager_Name text,
Representative_Name text
)
CREATE TABLE station_company (
Station_ID int,
Company_ID int,
Rank_of_the_Year int
)
CREATE TABLE company (
Company_ID int,
Rank i... | Draw a bar chart of main industry versus total number of market value, order from high to low by the names. | SELECT Main_Industry, SUM(Market_Value) FROM company GROUP BY Main_Industry ORDER BY Main_Industry DESC | nvbench |
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | until 12/30/2105, what was first arterial bp [diastolic] for patient 26175? | SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26175)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial ... | mimic_iii |
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
)
CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE election (
... | Please compare the number of names of parties using a bar chart, show x axis in asc order. | SELECT T2.Party, COUNT(T2.Party) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party ORDER BY T2.Party | nvbench |
CREATE TABLE table_20376 (
"N\u00b0" real,
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"DAR" text,
"HDTV" text,
"PPV" text,
"Package/Option" text
) | Name the number of package options for music box italia | SELECT COUNT("Package/Option") FROM table_20376 WHERE "Television service" = 'Music Box Italia' | wikisql |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | 医院5236324给魏浩邈这个病人开过哪些单价最贵的药,这些药的编码和单价是什么 | SELECT SOC_SRT_DIRE_CD, SOC_SRT_DIRE_NM, UNIVALENT FROM t_kc22 WHERE MED_CLINIC_ID IN (SELECT MED_CLINIC_ID FROM t_kc21 WHERE PERSON_NM = '魏浩邈' AND MED_SER_ORG_NO = '5236324') ORDER BY UNIVALENT DESC LIMIT 1 | css |
CREATE TABLE table_203_172 (
id number,
"title" text,
"date of creation" text,
"surname" text,
"first titular" text
) | what duke has the newest date of creation ? | SELECT "title" FROM table_203_172 ORDER BY "date of creation" DESC LIMIT 1 | squall |
CREATE TABLE table_21904 (
"Year(s)" real,
"Final television commentator" text,
"Radio commentator" text,
"Spokesperson" text,
"Semi-final television commentator" text,
"Semi-final second television commentator" text
) | What is the latest year that the final television commentator was David Jacobs? | SELECT MAX("Year(s)") FROM table_21904 WHERE "Final television commentator" = 'David Jacobs' | wikisql |
CREATE TABLE table_name_63 (
intercontinental_cup_1999 VARCHAR,
copa_conmebol_1999 VARCHAR
) | What is the Intercontinental Cup 1999 result for the team with a Copa Conmebol 1999 result of runner-up? | SELECT intercontinental_cup_1999 FROM table_name_63 WHERE copa_conmebol_1999 = "runner-up" | sql_create_context |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid num... | how much is the maximum hospital cost with acute respiratory failure - due to atelectasis until 3 years ago? | SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'acute respiratory failure - due to atelectas... | eicu |
CREATE TABLE table_20483 (
"Office" text,
"Type" text,
"Location" text,
"Elected" real,
"Term began" text,
"Term ended" text
) | What year did the term end for the office elected in 1984 | SELECT "Term ended" FROM table_20483 WHERE "Elected" = '1984' | wikisql |
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE transfers (
row_id n... | what are the top three most frequent surgeries among patients aged 60 or above since 3 years ago? | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age >... | mimic_iii |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
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,... | 病人尤静逸在医院0738891的门诊中,诊断涉及神经衰弱的门诊就诊记录列一下 | SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN hz_info_mzjzjlb ON person_info.RYBH = hz_info.RYBH AND 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_mzjz... | css |
CREATE TABLE table_32425 (
"Team" text,
"Chassis" text,
"Engine" text,
"Tires" text,
"Drivers" text
) | What chassis belongs with the Cosworth Engine driven by Scott Pruett on the Dick Simon Racing team? | SELECT "Chassis" FROM table_32425 WHERE "Engine" = 'cosworth' AND "Drivers" = 'scott pruett' AND "Team" = 'dick simon racing' | wikisql |
CREATE TABLE table_45130 (
"Rank" real,
"Company" text,
"Headquarters" text,
"Industry" text,
"Sales (billion $)" real,
"Profits (billion $)" real,
"Assets (billion $)" real,
"Market Value (billion $)" real
) | What is the average sales in billions of walmart, which has more than 15.7 billion in profits? | SELECT AVG("Sales (billion $)") FROM table_45130 WHERE "Company" = 'walmart' AND "Profits (billion $)" > '15.7' | wikisql |
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,
... | 把医疗就诊06309706061的定点医疗机构编码提供一下 | SELECT t_kc21.FLX_MED_ORG_ID FROM t_kc21 WHERE t_kc21.MED_CLINIC_ID = '06309706061' | css |
CREATE TABLE table_name_5 (
winner VARCHAR,
mountains_classification VARCHAR,
combativity_award VARCHAR
) | Name the winner with mountains classification of franco pellizotti and combativity award of martijn maaskant | SELECT winner FROM table_name_5 WHERE mountains_classification = "franco pellizotti" AND combativity_award = "martijn maaskant" | sql_create_context |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TAB... | have there been any organisms found in the first microbiological stool test of patient 031-3507 on their last hospital visit? | SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3507' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospi... | eicu |
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... | what is the number of patients whose ethnicity is asian and drug name is neo*po*mct oil? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "ASIAN" AND prescriptions.drug = "NEO*PO*MCT Oil" | mimicsql_data |
CREATE TABLE Shipment_Items (
shipment_id INTEGER,
order_item_id INTEGER
)
CREATE TABLE Shipments (
shipment_id INTEGER,
order_id INTEGER,
invoice_number INTEGER,
shipment_tracking_number VARCHAR(80),
shipment_date DATETIME,
other_shipment_details VARCHAR(255)
)
CREATE TABLE Invoices (... | List the name and count of each product in all orders. | SELECT T3.product_name, SUM(COUNT(*)) FROM Orders AS T1 JOIN Order_Items AS T2 JOIN Products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_name | nvbench |
CREATE TABLE ref_transaction_types (
transaction_type_code text,
transaction_type_description text
)
CREATE TABLE transactions (
transaction_id number,
investor_id number,
transaction_type_code text,
date_of_transaction time,
amount_of_transaction number,
share_count text,
other_det... | What is the total share of transactions? | SELECT SUM(share_count) FROM transactions | spider |
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... | 患者67062634出院确诊疾病名称包含张力在医院7262008的医疗就诊记录编码是啥? | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '67062634' AND t_kc21.MED_SER_ORG_NO = '7262008' AND t_kc21.OUT_DIAG_DIS_NM LIKE '%张力%' | css |
CREATE TABLE table_75830 (
"Player" text,
"Att." real,
"Yards" text,
"Avg." text,
"Long" text,
"FumL" real
) | What is Domenik Hixon's average rush? | SELECT "Avg." FROM table_75830 WHERE "Player" = 'domenik hixon' | wikisql |
CREATE TABLE match_season (
Season real,
Player text,
Position text,
Country int,
Team int,
Draft_Pick_Number int,
Draft_Class text,
College text
)
CREATE TABLE team (
Team_id int,
Name text
)
CREATE TABLE country (
Country_id int,
Country_name text,
Capital text,
... | Show me a bar chart for how many players are from each country?, could you list in desc by the X-axis? | SELECT Country_name, COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name ORDER BY Country_name DESC | nvbench |
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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL v... | Just show the employee's last name and their manager's id using a bar chart, show in ascending by the x-axis. | SELECT LAST_NAME, MANAGER_ID FROM employees ORDER BY LAST_NAME | nvbench |
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... | how much weight does the weight of patient 15794 change last measured on the current hospital visit compared to the second to last value measured on the current hospital visit? | SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 15794 AND admissions.dischtime IS NULL)) AND chartevents.itemid IN (SELECT d_items.itemid FROM... | mimic_iii |
CREATE TABLE table_203_345 (
id number,
"name" text,
"party" text,
"took office" number,
"left office" number
) | how many conservative provincial representatives has gilbert plains had ? | SELECT COUNT("name") FROM table_203_345 WHERE "party" = 'conservative' | squall |
CREATE TABLE table_53419 (
"Team" text,
"Games Played" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Goals For" real,
"Goals Against" real
) | what is the total number of games played when the goals for is less than 30? | SELECT COUNT("Games Played") FROM table_53419 WHERE "Goals For" < '30' | wikisql |
CREATE TABLE table_21100348_11 (
rank INTEGER,
strike_rate VARCHAR
) | What is the rank for a strike rate of 91.67? | SELECT MAX(rank) FROM table_21100348_11 WHERE strike_rate = "91.67" | sql_create_context |
CREATE TABLE table_10323 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) | Who was the leading scorer when the visiting team was the Trail Blazers? | SELECT "Leading scorer" FROM table_10323 WHERE "Visitor" = 'trail blazers' | wikisql |
CREATE TABLE table_28885977_1 (
built_for VARCHAR,
location VARCHAR
) | What was the stadium in Adelaide, South Australia built for? | SELECT built_for FROM table_28885977_1 WHERE location = "Adelaide, South Australia" | sql_create_context |
CREATE TABLE Residents_Services (
resident_id INTEGER,
service_id INTEGER,
date_moved_in DATETIME,
property_id INTEGER,
date_requested DATETIME,
date_provided DATETIME,
other_details VARCHAR(255)
)
CREATE TABLE Timed_Locations_of_Things (
thing_id INTEGER,
Date_and_Time DATETIME,
... | Group and count the move in date in a bar chart, could you display X-axis from low to high order? | SELECT date_moved_in, COUNT(date_moved_in) FROM Customer_Events GROUP BY date_moved_in ORDER BY date_moved_in | nvbench |
CREATE TABLE table_13619135_5 (
record VARCHAR,
date VARCHAR
) | How many records are there for the games that took place on January 14. | SELECT COUNT(record) FROM table_13619135_5 WHERE date = "January 14" | sql_create_context |
CREATE TABLE table_28032 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | How many touchdowns did the left guard took? | SELECT MAX("Touchdowns") FROM table_28032 WHERE "Position" = 'Left guard' | wikisql |
CREATE TABLE table_204_64 (
id number,
"place" text,
"code" number,
"area (km2)" number,
"population" number,
"most spoken language" text
) | how many different languages are listed ? | SELECT COUNT(DISTINCT "most spoken language") FROM table_204_64 | squall |
CREATE TABLE table_name_78 (
total VARCHAR
) | What is the year 2013 with a total of 5, and 5th in 2009? | SELECT 2013 FROM table_name_78 WHERE total = 5 AND 2009 = "5th" | sql_create_context |
CREATE TABLE table_73275 (
"English Name" text,
"Simplified" text,
"Traditional" text,
"Pinyin" text,
"Area" real,
"Population" real,
"Density" real
) | How many areas have a population of 703379? | SELECT COUNT("Area") FROM table_73275 WHERE "Population" = '703379' | 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 demographic ... | how many patients whose death status is 1 and diagnoses short title is subarach hem-coma nos? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.short_title = "Subarach hem-coma NOS" | mimicsql_data |
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... | 把患者方宾鸿在医院9017572就诊的所有记录里出院科室名字不包括疼痛的住院记录列出来 | SELECT * FROM person_info JOIN hz_info JOIN zyjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE person_info.XM = '方宾鸿' AND hz_info.YLJGDM = '9017572' AND NOT zyjzjlb.CYKSMC LIKE '%疼痛%' | css |
CREATE TABLE table_name_59 (
melbourne VARCHAR,
sydney VARCHAR,
gold_coast VARCHAR,
adelaide VARCHAR
) | Which Melbourne had a gold coast and sydney which were yes, but an adelaide that was no? | SELECT melbourne FROM table_name_59 WHERE gold_coast = "yes" AND adelaide = "no" AND sydney = "yes" | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... | what is the number of patients whose discharge location is dead/expired and hospital stay is above 1 day? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "DEAD/EXPIRED" AND demographic.days_stay > "1" | mimicsql_data |
CREATE TABLE table_name_42 (
date VARCHAR,
home_team VARCHAR
) | What is the Date of the Middlesbrough Home game? | SELECT date FROM table_name_42 WHERE home_team = "middlesbrough" | sql_create_context |
CREATE TABLE table_52978 (
"Game" real,
"Date" text,
"Batting 1st" text,
"Batting 2nd" text,
"Result" text
) | what is the game for 23 april when batting 2nd is england 5/113 (19)? | SELECT MIN("Game") FROM table_52978 WHERE "Date" = '23 april' AND "Batting 2nd" = 'england 5/113 (19)' | wikisql |
CREATE TABLE table_39174 (
"Team" text,
"Copa Libertadores 1999" text,
"Copa Mercosur 1999" text,
"Copa CONMEBOL 1999" text,
"Intercontinental Cup 1999" text
) | What is the intercontinental cup 1999 result of the team who did not qualify for the Copa Libertadores 1999 and made quarterfinals in the Copa Mercosur 1999? | SELECT "Intercontinental Cup 1999" FROM table_39174 WHERE "Copa Libertadores 1999" = 'did not qualify' AND "Copa Mercosur 1999" = 'quarterfinals' | wikisql |
CREATE TABLE table_name_86 (
goals_conceded INTEGER,
points VARCHAR,
played VARCHAR
) | What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18? | SELECT SUM(goals_conceded) FROM table_name_86 WHERE points < 26 AND played < 18 | sql_create_context |
CREATE TABLE table_name_37 (
points VARCHAR,
entrant VARCHAR,
year VARCHAR
) | How many points did Bob Gerard Racing have in 1965? | SELECT points FROM table_name_37 WHERE entrant = "bob gerard racing" AND year = 1965 | sql_create_context |
CREATE TABLE table_49368 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | What is Home Team, when Date is '13 March 1985', and when Tie No is '1'? | SELECT "Home team" FROM table_49368 WHERE "Date" = '13 march 1985' AND "Tie no" = '1' | wikisql |
CREATE TABLE VISITORS (
Tourist_ID VARCHAR,
Tourist_Details VARCHAR
)
CREATE TABLE VISITS (
Visit_Date VARCHAR,
Visit_Details VARCHAR,
Tourist_ID VARCHAR
) | What are the visit date and details of the visitor whose detail is 'Vincent'? | SELECT T2.Visit_Date, T2.Visit_Details FROM VISITORS AS T1 JOIN VISITS AS T2 ON T1.Tourist_ID = T2.Tourist_ID WHERE T1.Tourist_Details = "Vincent" | sql_create_context |
CREATE TABLE table_name_66 (
socket VARCHAR,
multiplier_1 VARCHAR
) | What is the socket type for the processor with a multiplier 1 of 11.5x? | SELECT socket FROM table_name_66 WHERE multiplier_1 = "11.5x" | sql_create_context |
CREATE TABLE table_name_64 (
average INTEGER,
played VARCHAR
) | What is the sum of Average, when 2006 is '36/40', and when Played is greater than 126? | SELECT SUM(average) FROM table_name_64 WHERE 2006 = "36/40" AND played > 126 | sql_create_context |
CREATE TABLE table_43117 (
"Team" text,
"Country" text,
"Home" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | For what country is the skip Andy Kapp? | SELECT "Country" FROM table_43117 WHERE "Skip" = 'andy kapp' | wikisql |
CREATE TABLE table_203_115 (
id number,
"name of place" text,
"counties" number,
"principal county" text,
"lower zip code" number
) | how many total places are in greene county ? | SELECT COUNT("name of place") FROM table_203_115 WHERE "principal county" = 'greene county' | squall |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.