context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | what is the number of patients whose diagnoses short title is fall on stair/step nec and drug route is buccal? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Fall on stair/step NEC" AND prescriptions.route = "BUCCAL" | mimicsql_data |
CREATE TABLE table_972 (
"Quarter" text,
"Android" text,
"iOS" text,
"Symbian" text,
"BlackBerry OS" text,
"Linux" text,
"Windows Phone" text,
"Other" text,
"Total" text
) | During the quarter 2012 Q4, how many millions of android phones were shipped? | SELECT COUNT("Android") FROM table_972 WHERE "Quarter" = '2012 Q4' | wikisql |
CREATE TABLE table_name_3 (
ncaa_tourn_appearances VARCHAR,
coach VARCHAR,
conference_titles VARCHAR,
ncaa_titles VARCHAR
) | Which NCAA Tournament Appearances have Conference Titles that are larger than 0, NCAA Titles of 0, and were coached by Lou Watson? | SELECT ncaa_tourn_appearances FROM table_name_3 WHERE conference_titles > "0" AND ncaa_titles = "0" AND coach = "lou watson" | sql_create_context |
CREATE TABLE table_27625 (
"Episode" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | What is the result where the original artist is Prince and the Revolution? | SELECT "Result" FROM table_27625 WHERE "Original artist" = 'Prince and The Revolution' | wikisql |
CREATE TABLE actor (
actor_id number,
name text,
musical_id number,
character text,
duration text,
age number
)
CREATE TABLE musical (
musical_id number,
name text,
year number,
award text,
category text,
nominee text,
result text
) | What are the characters and duration of actors? | SELECT character, duration FROM actor | spider |
CREATE TABLE table_204_933 (
id number,
"year" number,
"competition" text,
"date" text,
"location" text,
"opponent" text,
"score" text,
"result" text,
"bye" text
) | tell me the number of times they won . | SELECT COUNT(*) FROM table_204_933 WHERE "result" = 'win' | squall |
CREATE TABLE table_name_82 (
Id VARCHAR
) | What is the 2004 that has a of grand slam tournaments in2006 ? | SELECT 2004 FROM table_name_82 WHERE 2006 = "grand slam tournaments" | sql_create_context |
CREATE TABLE table_8298 (
"Player" text,
"Wkts" real,
"Runs" real,
"Econ" real,
"Ovrs" real
) | What is the lowest Ovrs, when Wkts is greater than 13, and when Econ is less than 3.21? | SELECT MIN("Ovrs") FROM table_8298 WHERE "Wkts" > '13' AND "Econ" < '3.21' | wikisql |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of headquarter and the average of code , and group by attribute headquarter, could you sort y axis in ascending order? | SELECT T2.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter ORDER BY T1.Code | nvbench |
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number... | Deep Learning over Time SO. | SELECT CAST(TIME_TO_STR(CreationDate, '%Y-%m-%d %H:%M:%S') AS TEXT(7)) AS "month", COUNT(*) AS "torch_count" FROM Posts AS p WHERE p.PostTypeId = 1 AND p.Tags LIKE '%<torch>%' GROUP BY CAST(TIME_TO_STR(CreationDate, '%Y-%m-%d %H:%M:%S') AS TEXT(7)) ORDER BY month | sede |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
ic... | count the number of patients for whom sennosides was prescribed within 2 months after they had been diagnosed with sepsis this year. | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'sepsis' AND DATETIME(diagnosis.diagnosistime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '... | eicu |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number... | what are the top four prescribed drugs among patients with age 20s until 3 years ago? | SELECT t1.drug FROM (SELECT prescriptions.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age BETWEEN 20 AND 29) AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-3 year') GROUP BY pres... | mimic_iii |
CREATE TABLE table_67128 (
"Year" real,
"Event" text,
"Venue" text,
"Driver" text,
"Result" text
) | What year was the Spanish Grand Prix where Emerson Fittipaldi drove? | SELECT "Year" FROM table_67128 WHERE "Event" = 'spanish grand prix' AND "Driver" = 'emerson fittipaldi' | wikisql |
CREATE TABLE table_57510 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | What is the average number of laps for the driver Piero Taruffi? | SELECT AVG("Laps") FROM table_57510 WHERE "Driver" = 'piero taruffi' | 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,
... | 这个叫章乐悦的团伙成员最常开的药品排序都是什么? | SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_NM = '章乐悦' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY COUNT(*) DESC | css |
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(... | For those employees who was hired before 2002-06-21, find job_id and the average of department_id , and group by attribute job_id, and visualize them by a bar chart, I want to display in ascending by the total number. | SELECT JOB_ID, AVG(DEPARTMENT_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY AVG(DEPARTMENT_ID) | nvbench |
CREATE TABLE table_name_52 (
round VARCHAR,
against VARCHAR,
date VARCHAR
) | What was the round for 29 January 1949, when the against was 1? | SELECT round FROM table_name_52 WHERE against = 1 AND date = "29 january 1949" | sql_create_context |
CREATE TABLE table_25016555_5 (
assists INTEGER
) | What is the lowest overall amount of assists? | SELECT MIN(assists) FROM table_25016555_5 | sql_create_context |
CREATE TABLE table_55200 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | What is the name of the opponent for the Sutton tournament? | SELECT "Opponents" FROM table_55200 WHERE "Tournament" = 'sutton' | 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,
... | 在2000年9月2日到2007年2月7日期间,医院9719119的科室9117涉及的医疗费总额有多少 | SELECT SUM(t_kc24.MED_AMOUT) FROM t_kc24 WHERE t_kc24.MED_CLINIC_ID IN (SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '9719119' AND t_kc21.MED_ORG_DEPT_CD = '9117') AND t_kc24.CLINIC_SLT_DATE BETWEEN '2000-09-02' AND '2007-02-07' | css |
CREATE TABLE competition_result (
Competition_ID int,
Club_ID_1 int,
Club_ID_2 int,
Score text
)
CREATE TABLE club (
Club_ID int,
name text,
Region text,
Start_year text
)
CREATE TABLE club_rank (
Rank real,
Club_ID int,
Gold real,
Silver real,
Bronze real,
Tota... | what is the number of players who have points less than 30 for each position?, show y axis from low to high order. | SELECT Position, COUNT(*) FROM player WHERE Points < 30 GROUP BY Position ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_76572 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | How many total golds do teams have when the total medals is less than 1? | SELECT SUM("Gold") FROM table_76572 WHERE "Total" < '1' | wikisql |
CREATE TABLE table_55476 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Events" real,
"Wins" real
) | What is the high earnings for players with 34 events and over 2 wins? | SELECT MAX("Earnings ( $ )") FROM table_55476 WHERE "Events" = '34' AND "Wins" > '2' | wikisql |
CREATE TABLE table_20250 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
) | IN WHAT ISSUE OF PLAYBOY WAS SHEPARD SMITH INTERVIEWED? | SELECT "Date" FROM table_20250 WHERE "Interview subject" = 'Shepard Smith' | wikisql |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | 在2007年4月22日至2019年12月24日之间医生59407914的门诊病人数有多少人? | SELECT COUNT(person_info.RYBH) FROM hz_info JOIN mzjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_info.YLJGD... | css |
CREATE TABLE table_name_79 (
year INTEGER,
points VARCHAR
) | What is the earliest year for 9 points? | SELECT MIN(year) FROM table_name_79 WHERE points = 9 | sql_create_context |
CREATE TABLE table_68427 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | What was the earliest year for the Ligier Gitanes? | SELECT MIN("Year") FROM table_68427 WHERE "Entrant" = 'ligier gitanes' | wikisql |
CREATE TABLE table_name_16 (
attendance VARCHAR,
result VARCHAR,
week VARCHAR
) | What is the total attendance in a week less than 5 when the result was l 24-20? | SELECT COUNT(attendance) FROM table_name_16 WHERE result = "l 24-20" AND week < 5 | sql_create_context |
CREATE TABLE table_37593 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | what team won the friendly match | SELECT "Result" FROM table_37593 WHERE "Competition" = 'friendly match' | wikisql |
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, return a bar chart about the distribution of hire_date and the sum of department_id bin hire_date by time, rank by the Y from low to high. | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY SUM(DEPARTMENT_ID) | nvbench |
CREATE TABLE table_74336 (
"Team" text,
"Stadium" text,
"Home Games" real,
"Average Attendance" real,
"Total Attendance" real,
"Capacity Percentage" text
) | What was average attendance when total attendance was 541380? | SELECT "Average Attendance" FROM table_74336 WHERE "Total Attendance" = '541380' | wikisql |
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,... | all flights from WASHINGTON to SAN FRANCISCO leaving after 200 | 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_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.departure_time > 200 AND flight.to_airport = AIRPORT_SERVICE_1.... | atis |
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... | 在2007-08-06到2021-12-19期间内,患者70148968被开出的所有检验报告单中的标本采集部位需要列出来 | SELECT jybgb.BBCJBW FROM hz_info JOIN wdmzjzjlb JOIN jybgb ON hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '70148968' AND jybgb.BGRQ BETWEEN '2007-08-06' AND '202... | css |
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline... | what types of ground transportation are there to SFO airport | SELECT DISTINCT ground_service.transport_type FROM airport, ground_service WHERE airport.airport_code = 'SFO' AND ground_service.airport_code = airport.airport_code | atis |
CREATE TABLE stadium (
id int,
name text,
Home_Games int,
Average_Attendance real,
Total_Attendance real,
Capacity_Percentage real
)
CREATE TABLE game (
stadium_id int,
id int,
Season int,
Date text,
Home_team text,
Away_team text,
Score text,
Competition text
)
... | Give me a pie to show how many home team from different home team. | SELECT Home_team, COUNT(Home_team) FROM game GROUP BY Home_team | nvbench |
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 treatment (
treat... | what is the change in the bedside glucose of patient 007-1517's value last measured on the first hospital visit compared to the value second to last measured on the first hospital visit? | SELECT (SELECT lab.labresult FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-1517' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospit... | eicu |
CREATE TABLE table_name_27 (
sprint_points VARCHAR,
total_points VARCHAR
) | How many sprint points contribute to 2 total points? | SELECT sprint_points FROM table_name_27 WHERE total_points = "2" | sql_create_context |
CREATE TABLE table_name_70 (
country VARCHAR,
name VARCHAR
) | What is the country of cordier? | SELECT country FROM table_name_70 WHERE name = "cordier" | sql_create_context |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | find out the maximum age of male patients who were discharged to their homes. | SELECT MAX(demographic.age) FROM demographic WHERE demographic.gender = "M" AND demographic.discharge_location = "HOME" | mimicsql_data |
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
... | Reviews Over Time (per month). | SELECT DATEADD(DAY, -(DATEPART(DAY, rtr.CreationDate) % 30), rtr.CreationDate) AS "date", COUNT(rt.Id) AS "reviews_completed" FROM ReviewTasks AS rt INNER JOIN ReviewTaskResults AS rtr ON rtr.ReviewTaskId = rt.Id WHERE rt.ReviewTaskStateId = 2 GROUP BY DATEADD(DAY, -(DATEPART(DAY, rtr.CreationDate) % 30), rtr.CreationD... | sede |
CREATE TABLE table_61258 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the total number of bronze medals for teams with less than 0 silver? | SELECT COUNT("Bronze") FROM table_61258 WHERE "Silver" < '0' | wikisql |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
... | Check Post Id and Date covariance. | SELECT low.Id AS "post_link", low.Id AS LowId, low.CreationDate AS LowDate, hi.Id AS "high_link", hi.CreationDate AS HighDate FROM Posts AS low, Posts AS hi WHERE low.Id > hi.Id AND low.CreationDate < hi.CreationDate AND low.CreationDate > '1 jan 2012' AND hi.CreationDate > '1 jan 2012' | sede |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | Mean Expertise Contribution (MEC) in a tag. | WITH answers AS (SELECT a.OwnerUserId AS UserId, 1.0 / RANK() OVER (PARTITION BY q.Id ORDER BY a.Score DESC) AS utility, 1.0 * q.AnswerCount AS debatableness, 1.0 / RANK() OVER (PARTITION BY q.Id ORDER BY a.Score DESC) * q.AnswerCount / @tag_debate AS EC FROM Posts AS q JOIN Posts AS a ON q.Id = a.ParentId JOIN PostTag... | sede |
CREATE TABLE table_name_83 (
score VARCHAR,
player VARCHAR
) | what was the score of bert yancey | SELECT score FROM table_name_83 WHERE player = "bert yancey" | sql_create_context |
CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar... | Give me a bar chart for the total number of each dept name, I want to show by the the total number in ascending. | SELECT dept_name, COUNT(*) FROM student GROUP BY dept_name ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_76470 (
"Round" real,
"Selection" real,
"Player" text,
"Position" text,
"College" text
) | Which Selection has a College of texas a&m? | SELECT SUM("Selection") FROM table_76470 WHERE "College" = 'texas a&m' | wikisql |
CREATE TABLE table_name_33 (
date VARCHAR,
competition VARCHAR,
score VARCHAR
) | In the 1936 summer Olympics what was the date of a match that ended with a score of 6-1? | SELECT date FROM table_name_33 WHERE competition = "1936 summer olympics" AND score = "6-1" | sql_create_context |
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... | 参与04488736077医疗就诊的有哪些人?他们的姓名、性别、年龄、身份号码分别是什么 | SELECT PERSON_NM, PERSON_SEX, PERSON_AGE, IDENTITY_CARD FROM t_kc21 WHERE MED_CLINIC_ID = '24731815249' | css |
CREATE TABLE table_20816 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | What position did Gene Stahl play | SELECT "Position" FROM table_20816 WHERE "Player" = 'Gene Stahl' | wikisql |
CREATE TABLE table_22329326_1 (
owned_since VARCHAR,
station VARCHAR
) | When was the station WLS-TV owned since? | SELECT owned_since FROM table_22329326_1 WHERE station = "WLS-TV" | sql_create_context |
CREATE TABLE table_13071 (
"Actor/actress" text,
"Character" text,
"Rank" text,
"Tenure" text,
"Episodes" text
) | What is the Rank of the Character with Tenure of 2011? | SELECT "Rank" FROM table_13071 WHERE "Tenure" = '2011' | wikisql |
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester i... | Which is the easiest class for the Core requirement ? | SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%Core%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_co... | advising |
CREATE TABLE table_21578303_2 (
stage VARCHAR,
time__eet_ VARCHAR
) | Which stage has 15:17 as time? | SELECT stage FROM table_21578303_2 WHERE time__eet_ = "15:17" | sql_create_context |
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... | 从二00四年八月八日到二0一九年九月三日这段时间内,患者75340002开出的药品有多少是自费金额高于8808.11元的 | SELECT COUNT(*) FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_ID = '75340002' AND t_kc22.STA_DATE BETWEEN '2004-08-08' AND '2019-09-03' AND t_kc22.SELF_PAY_AMO > 8808.11 | css |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
... | Accept rate by rep (only questions with good answers). | SELECT COUNT(*) / (SUM(CASE WHEN acc.Id != NULL THEN 1 ELSE 0 END) + 1) AS rate FROM Users INNER JOIN Posts AS q ON q.OwnerUserId = Users.Id INNER JOIN PostTags AS pt ON q.Id = pt.PostId INNER JOIN Tags AS t ON t.Id = pt.TagId LEFT OUTER JOIN Posts AS acc ON acc.Id = q.AcceptedAnswerId INNER JOIN Posts AS ans ON ans.Pa... | sede |
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 average age of patients whose primary disease is copd exacerbation and year of death is less than 2158? | SELECT AVG(demographic.age) FROM demographic WHERE demographic.diagnosis = "COPD EXACERBATION" AND demographic.dod_year < "2158.0" | mimicsql_data |
CREATE TABLE table_name_21 (
runner_s__up VARCHAR,
date VARCHAR
) | Which Runner(s)-up has a Date of may 19, 1973? | SELECT runner_s__up FROM table_name_21 WHERE date = "may 19, 1973" | sql_create_context |
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time... | what does fare code QX mean | SELECT DISTINCT fare_basis_code FROM fare_basis WHERE fare_basis_code = 'QX' | atis |
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... | 在两千零四年十月十七日至两千一六年六月四日内医院9602560有多少科室在门诊就诊中开出超过27张检验报告单啊? | SELECT COUNT(*) FROM (SELECT jybgb.KSBM FROM wdmzjzjlb JOIN jybgb ON wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE wdmzjzjlb.YLJGDM = '9602560' AND jybgb.BGRQ BETWEEN '2004-10-17' AND '2016-06-04' GROUP BY jybgb.KSBM HAVING COUNT(*) > 27 UNION SELECT jybgb.KSBM FROM bdmzjzjlb J... | css |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid numb... | does patient 027-85328 produce any output (ml)-urethral catheter diana acuna, rn latex;straight-tip 14 fr. since 09/2105. | SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-85328')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutpu... | eicu |
CREATE TABLE table_38990 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the lowest total for the silver less than 1, and a rank more than 5, more than 1 bronze? | SELECT MIN("Total") FROM table_38990 WHERE "Silver" < '1' AND "Rank" > '5' AND "Bronze" > '1' | wikisql |
CREATE TABLE table_name_63 (
time VARCHAR,
country VARCHAR
) | What is the time for the race with the United States? | SELECT time FROM table_name_63 WHERE country = "united states" | sql_create_context |
CREATE TABLE table_19716 (
"Rank" real,
"Name" text,
"Nationality" text,
"Total points" text,
"Oberstdorf (Rk)" text,
"Ga-Pa (Rk)" text,
"Bhofen#1 (Rk)" text,
"Bhofen#2 (Rk)" text
) | What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 227.5 (19)? | SELECT "Bhofen#2 (Rk)" FROM table_19716 WHERE "Ga-Pa (Rk)" = '227.5 (19)' | wikisql |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
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,
... | calculate the difference between patient 8016's total input and the patient's output on last month/23. | SELECT (SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8016)) AND DATETIME(inputevents_cv.charttime, 'start of month') = DATETIME(CURRENT... | mimic_iii |
CREATE TABLE table_61310 (
"Player" text,
"Club" text,
"Qualifying Goals" real,
"Finals Goals" real,
"Total Goals" real
) | What is the Average Qualifying Goals for Jack Froggatt where the Final Goals is greater than 0? | SELECT AVG("Qualifying Goals") FROM table_61310 WHERE "Player" = 'jack froggatt' AND "Finals Goals" > '0' | wikisql |
CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stoc... | A bar chart about what are the memories and carriers of phones?, and show by the total number in desc. | SELECT Carrier, AVG(Memory_in_G) FROM phone GROUP BY Carrier ORDER BY AVG(Memory_in_G) DESC | nvbench |
CREATE TABLE table_29135051_2 (
ratings VARCHAR,
guest_s_ VARCHAR
) | Name the number of ratings for bruce forsyth | SELECT COUNT(ratings) FROM table_29135051_2 WHERE guest_s_ = "Bruce Forsyth" | sql_create_context |
CREATE TABLE table_17751 (
"Clinical Status" text,
"Compound Name" text,
"Trademark" text,
"Marine Organism \u03b1" text,
"Chemical Class" text,
"Molecular Target" text,
"Clinical Trials \u03b2" text,
"Disease Area" text
) | What is the molecular target listed under the compounded name of hemiasterlin (e7974) | SELECT "Molecular Target" FROM table_17751 WHERE "Compound Name" = 'Hemiasterlin (E7974)' | wikisql |
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
P... | Average question score for popular tags. | SELECT T.TagName, T.Count AS tagCount, SUM(P.Score) / CAST(COUNT(P.Score) AS FLOAT) AS avgScore FROM Tags AS T JOIN PostTags AS PT ON PT.TagId = T.Id JOIN Posts AS P ON P.Id = PT.PostId WHERE T.Count > 10 AND P.PostTypeId = 1 GROUP BY T.TagName, T.Count ORDER BY avgScore DESC | sede |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | how many patients whose gender is f and lab test name is o2 flow? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.label = "O2 Flow" | mimicsql_data |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE diagnoses_icd (
row_id number,
... | calculate the number of medications that were prescribed to patient 2482 in 2105. | SELECT COUNT(*) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2482) AND STRFTIME('%y', prescriptions.startdate) = '2105' | mimic_iii |
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code tex... | what was the last height of patient 027-149724 this month. | SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-149724') AND NOT patient.admissionheight IS NULL AND DATETIME(patient.unitadmittime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month',... | eicu |
CREATE TABLE table_14951643_1 (
result VARCHAR,
opponent VARCHAR
) | how many result with opponent being cleveland browns | SELECT COUNT(result) FROM table_14951643_1 WHERE opponent = "Cleveland Browns" | sql_create_context |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost numbe... | what was the total urine output since 1118 days ago that patient 010-29887 had? | SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '010-29887')) AND intakeoutput.celllabel = 'urine... | eicu |
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
) | What is the average training hours of all players? | SELECT AVG(hs) FROM player | spider |
CREATE TABLE table_72469 (
"Name" text,
"First operational" text,
"Numeral system" text,
"Computing mechanism" text,
"Programming" text,
"Turing complete" text
) | what's the first operational with programming being not programmable single purpose | SELECT "First operational" FROM table_72469 WHERE "Programming" = 'Not programmable—single purpose' | wikisql |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | 看一下病患鲁同济的医疗记录中哪几次开的药品金额大于8376.61元?列出医疗就诊编码 | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_NM = '鲁同济' AND t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT > 8376.61) | css |
CREATE TABLE people_addresses (
person_address_id number,
person_id number,
address_id number,
date_from time,
date_to time
)
CREATE TABLE student_course_attendance (
student_id number,
course_id number,
date_of_attendance time
)
CREATE TABLE candidate_assessments (
candidate_id nu... | What are the ids of the candidates that have an outcome code of Pass? | SELECT candidate_id FROM candidate_assessments WHERE asessment_outcome_code = "Pass" | spider |
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id num... | CASE Statement in WHERE clause renders query non-sargable?. | SELECT Id FROM Posts WHERE 1 = CASE WHEN Id = 4 THEN 1 WHEN Id = 6 THEN 1 ELSE 0 END | sede |
CREATE TABLE table_name_90 (
degree VARCHAR,
award_year VARCHAR,
award VARCHAR
) | Tell me the degree for chemistry 1965 | SELECT degree FROM table_name_90 WHERE award_year = 1965 AND award = "chemistry" | sql_create_context |
CREATE TABLE table_2273738_1 (
metropolitan_area VARCHAR,
county VARCHAR
) | Tyne and Wear County has what total membership for their metropolitan area? | SELECT metropolitan_area FROM table_2273738_1 WHERE county = "Tyne and Wear" | 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40)... | For those employees who did not have any job in the past, give me the comparison about the sum of manager_id over the job_id , and group by attribute job_id by a bar chart, I want to sort by the names from high to low. | SELECT JOB_ID, SUM(MANAGER_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) GROUP BY JOB_ID ORDER BY JOB_ID DESC | nvbench |
CREATE TABLE table_203_753 (
id number,
"rank" number,
"name" text,
"caps" number,
"goals" number,
"years" text
) | which name is listed after alan smith ? | SELECT "name" FROM table_203_753 WHERE id = (SELECT id FROM table_203_753 WHERE "name" = 'alan smith') + 1 | squall |
CREATE TABLE table_55845 (
"Animal Name" text,
"Species" text,
"Books" text,
"TV Series" text,
"Gender" text,
"TV Seasons" text
) | Which species is male? | SELECT "Species" FROM table_55845 WHERE "Gender" = 'male' | wikisql |
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 me the number of patients whose diagnoses long title is unspecified procedure as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at time of procedure and lab test abnormal status is delta? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Unspecified procedure as the cause of abnormal reaction of patient, or of later complication, without mention o... | mimicsql_data |
CREATE TABLE table_2248784_4 (
country VARCHAR
) | What 2011 GDP (PPP) billions of USD does Israel have? | SELECT 2011 AS _gdp__ppp__billions_of_usd FROM table_2248784_4 WHERE country = "Israel" | sql_create_context |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
... | how much is a diagnosis of fx astragalus-closed going to cost? | SELECT DISTINCT cost.cost FROM cost WHERE cost.event_type = 'diagnoses_icd' AND cost.event_id IN (SELECT diagnoses_icd.row_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'fx astragalus-closed')) | mimic_iii |
CREATE TABLE table_204_297 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | what is the number of silver medals won by italy ? | SELECT "silver" FROM table_204_297 WHERE "nation" = 'italy' | squall |
CREATE TABLE table_28068063_3 (
proceed_to_quarter_final VARCHAR,
eliminated_from_competition VARCHAR
) | Who proceeded to the quarter final when the london irish were eliminated from competition? | SELECT proceed_to_quarter_final FROM table_28068063_3 WHERE eliminated_from_competition = "London Irish" | sql_create_context |
CREATE TABLE table_name_39 (
country VARCHAR,
money___$__ VARCHAR
) | What country was the golfer from who had a money amount of 45,000? | SELECT country FROM table_name_39 WHERE money___$__ = "45,000" | sql_create_context |
CREATE TABLE table_name_31 (
top_10 INTEGER,
top_25 VARCHAR,
cuts_made VARCHAR
) | What is the average number of top-10s for the major with 2 top-25s and fewer than 10 cuts made? | SELECT AVG(top_10) FROM table_name_31 WHERE top_25 = 2 AND cuts_made < 10 | sql_create_context |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtim... | what is the average amount of total hospital cost including congestive heart failure - diastolic during this year? | SELECT AVG(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 = 'congestive heart failure - diastolic')) AND ... | eicu |
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 Residents (
resident_id INTEGER,
property_id INTEGER,
date_moved_in ... | Give me a bar chart that the X-axis is the date_moved_in and the Y-axis is Count them, please bin X-axis into Day of Week interval, list from high to low by the how many date moved in. | SELECT date_moved_in, COUNT(date_moved_in) FROM Customer_Events ORDER BY COUNT(date_moved_in) DESC | nvbench |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
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,... | how much is the difference of heart rate in patient 14397 last measured on the last icu visit compared to the second to last value 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 = 14397) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime DESC LIMIT 1) AND chartevents... | mimic_iii |
CREATE TABLE table_38265 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | What is the date of the game held at Lahore? | SELECT "Date" FROM table_38265 WHERE "Venue" = 'lahore' | wikisql |
CREATE TABLE table_test_11 (
"id" int,
"left_ventricular_ejection_fraction_lvef" int,
"systolic_blood_pressure_sbp" int,
"tachycardia" int,
"bradycardia" int,
"renal_disease" bool,
"allergy_to_aspirin" bool,
"temperature" float,
"creatinine_clearance_cl" float,
"diastolic_blood_p... | uncontrolled hypertension, defined as sustained blood pressure >= 180 / 110 mm hg ( systolic bp >= 180 mm hg and / or diastolic bp >= 110 mm hg ) prior to randomisation | SELECT * FROM table_test_11 WHERE hypertension = 1 OR systolic_blood_pressure_sbp >= 180 OR diastolic_blood_pressure_dbp >= 110 | criteria2sql |
CREATE TABLE table_43007 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"Location Attendance" text,
"Record" text
) | Which Team has a Score of 108-107? | SELECT "Team" FROM table_43007 WHERE "Score" = '108-107' | wikisql |
CREATE TABLE table_name_40 (
college VARCHAR,
player VARCHAR
) | What college did Keith Shologan play for? | SELECT college FROM table_name_40 WHERE player = "keith shologan" | sql_create_context |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | 在患者81881911的诊疗记录里,从00年9月13日到12年2月14日这期间,为其检测转铁蛋白的医务人员有哪几位,报一下工号及姓名 | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb ON 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 jybgb.YLJGDM = jyjgzbb.YLJGD... | css |
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimme... | Bar chart x axis meter 600 y axis id, sort X-axis in descending order. | SELECT meter_600, ID FROM swimmer ORDER BY meter_600 DESC | nvbench |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.