context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
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... | 病患51529676买了多少次西药,在01年12月7日到06年4月8日这段时间里? | SELECT COUNT(*) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_ID = '51529676' AND t_kc22.STA_DATE BETWEEN '2001-12-07' AND '2006-04-08' AND t_kc22.MED_INV_ITEM_TYPE = '西药费' | css |
CREATE TABLE table_256286_43 (
description VARCHAR,
_percentage_yes VARCHAR
) | What is every entry for description when the value of %yes is 51.82%? | SELECT description FROM table_256286_43 WHERE _percentage_yes = "51.82%" | sql_create_context |
CREATE TABLE table_3953 (
"Code" text,
"District" text,
"Headquarters" text,
"Population (2001 Census)" real,
"Population (2011 Census)" real,
"Area (km\u00b2)" real,
"Density in 2011 (/km\u00b2)" text
) | What's the code of the district with 800.5 people per km2? | SELECT "Code" FROM table_3953 WHERE "Density in 2011 (/km\u00b2)" = '800.5' | 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... | 患者郎清俊药品金额不低于7585.12元的在哪几次医疗记录中被开出过以及医疗就诊编号是多少? | SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '郎清俊' AND t_kc22.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT >= 7585.12) | css |
CREATE TABLE table_3184 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | When 2010 is the first elected and Florida 7 is the district who are the candidates? | SELECT "Candidates" FROM table_3184 WHERE "District" = 'Florida 7' AND "First elected" = '2010' | 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,
... | Among patients who had a lab test for other body fluid,how many of them were born before the year 2089? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2089" AND lab.fluid = "Other Body Fluid" | mimicsql_data |
CREATE TABLE train (
id int,
train_number int,
name text,
origin text,
destination text,
time text,
interval text
)
CREATE TABLE route (
train_id int,
station_id int
)
CREATE TABLE station (
id int,
network_name text,
services text,
local_authority text
)
CREATE TA... | Compute the number of local authorities by local authorities and then split by services Show the result with a stacked bar graph, I want to order y axis from low to high order please. | SELECT services, COUNT(services) FROM station GROUP BY local_authority, services ORDER BY COUNT(services) | nvbench |
CREATE TABLE table_61779 (
"Year" real,
"Award ceremony" text,
"Role" text,
"Production" text,
"Result" text
) | Which Production in 2009 had a Result of Nominated at the Helpmann awards Award Ceremony? | SELECT "Production" FROM table_61779 WHERE "Result" = 'nominated' AND "Year" = '2009' AND "Award ceremony" = 'helpmann awards' | wikisql |
CREATE TABLE table_name_32 (
year INTEGER,
grand_slam VARCHAR,
loser VARCHAR
) | In which year did Misaki Doi lose the Australian Open Grand Slam? | SELECT SUM(year) FROM table_name_32 WHERE grand_slam = "australian open" AND loser = "misaki doi" | sql_create_context |
CREATE TABLE table_name_23 (
total INTEGER,
fa_cup_goals VARCHAR,
league_goals VARCHAR
) | Which Total has an FA Cup goals of 1, and a League goals of 4 + 7? | SELECT AVG(total) FROM table_name_23 WHERE fa_cup_goals = "1" AND league_goals = "4 + 7" | sql_create_context |
CREATE TABLE table_7499 (
"Player" text,
"Matches" real,
"Innings" real,
"Not Out" real,
"Runs" real,
"High Score" text,
"Average" text,
"Strike Rate" text,
"100s" real
) | What was Matthew Hoggard's high score when he had a strike rate of n/a? | SELECT "High Score" FROM table_7499 WHERE "Strike Rate" = 'n/a' AND "Player" = 'matthew hoggard' | wikisql |
CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CH... | How many bookings does each booking status have? List the booking status code and the number of corresponding bookings, sort booking_status_code from low to high order. | SELECT booking_status_code, COUNT(*) FROM Apartment_Bookings GROUP BY booking_status_code ORDER BY booking_status_code | nvbench |
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 suffering from nutritional marasmus were born before the year 1850 | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "1850" AND diagnoses.short_title = "Nutritional marasmus" | mimicsql_data |
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttim... | what were the number of sertraline hcl prescriptions that were made? | SELECT COUNT(*) FROM prescriptions WHERE prescriptions.drug = 'sertraline hcl' | mimic_iii |
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
) | Show me a bar chart comparing the total number of captains in each rank, and rank total number in descending order please. | SELECT Rank, COUNT(Rank) FROM captain GROUP BY Rank ORDER BY COUNT(Rank) DESC | nvbench |
CREATE TABLE dorm (
dormid number,
dorm_name text,
student_capacity number,
gender text
)
CREATE TABLE lives_in (
stuid number,
dormid number,
room_number number
)
CREATE TABLE has_amenity (
dormid number,
amenid number
)
CREATE TABLE dorm_amenity (
amenid number,
amenity_... | Find the first name of students living in city PHL whose age is between 20 and 25. | SELECT fname FROM student WHERE city_code = 'PHL' AND age BETWEEN 20 AND 25 | spider |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count ... | Difference in score by delay between answers, if more than 30 days. | WITH two_answers AS (SELECT MIN(a.Id) AS first, MAX(a.Id) AS last FROM Posts AS q JOIN Posts AS a ON q.Id = a.ParentId WHERE q.AnswerCount = 2 GROUP BY q.Id HAVING GETDATE() - MAX(a.CreationDate) > 30) SELECT MIN(DATEDIFF(hour, f.CreationDate, CreationDate)), AVG(CAST(ISNULL(f.Score, 0) AS FLOAT) - CAST(ISNULL(l.Score,... | sede |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE patient (
uniquep... | what percentile is 30.7 mch in a patient of the same age as patient 009-2181 in their first hospital encounter? | SELECT DISTINCT t1.c1 FROM (SELECT lab.labresult, PERCENT_RANK() OVER (ORDER BY lab.labresult) AS c1 FROM lab WHERE lab.labname = 'mch' AND lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age = (SELECT patient.age FROM patient WHERE patient.uniquepid = '009-2181' AND NOT patient.ho... | eicu |
CREATE TABLE table_name_40 (
year_of_release INTEGER,
label VARCHAR
) | What was the last year MCA had a Release? | SELECT MAX(year_of_release) FROM table_name_40 WHERE label = "mca" | sql_create_context |
CREATE TABLE weekly_weather (
station_id int,
day_of_week text,
high_temperature int,
low_temperature int,
precipitation real,
wind_speed_mph int
)
CREATE TABLE train (
id int,
train_number int,
name text,
origin text,
destination text,
time text,
interval text
)
CR... | Give me a bar chart for the number of services of each services, and rank by the y-axis in descending please. | SELECT services, COUNT(services) FROM station GROUP BY services ORDER BY COUNT(services) DESC | nvbench |
CREATE TABLE table_10470082_4 (
villains VARCHAR,
_number VARCHAR
) | Who is the villain in episode #7? | SELECT villains FROM table_10470082_4 WHERE _number = 7 | sql_create_context |
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,... | what does fare code M mean | SELECT DISTINCT fare_basis_code FROM fare_basis WHERE fare_basis_code = 'M' | atis |
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,
... | 病人任阳焱在门诊诊断为2型糖尿病的检测指标983934的结果定量和单位是多少啊? | SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZ... | css |
CREATE TABLE diagnoses_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 cost (
row_id number,
subject_id number,
hadm_id ... | what is the name of the organism found in the first swab microbiology test of patient 31325 in 06/last year? | SELECT microbiologyevents.org_name FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31325) AND microbiologyevents.spec_type_desc = 'swab' AND NOT microbiologyevents.org_name IS NULL AND DATETIME(microbiologyevents.charttime, 'start of y... | mimic_iii |
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewRejectionReasons (
Id number,
N... | Top 100 users from India. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%india%' OR UPPER(Location) LIKE '%INDIA' ORDER BY Reputation DESC LIMIT 100 | sede |
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,
... | 47260453566这次住院就诊的入院途径是什么?对应的代码是什么 | SELECT zyjzjlb.RYTJDM, zyjzjlb.RYTJMC FROM zyjzjlb WHERE zyjzjlb.JZLSH = '47260453566' | css |
CREATE TABLE Agreements (
Document_ID INTEGER,
Event_ID INTEGER
)
CREATE TABLE Assets (
Asset_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Finances (
Finance_ID INTEGER,
Other_Details VARCHAR(255)
)
CREATE TABLE Locations (
Location_ID INTEGER,
Other_Details VARCHAR(255)
)
C... | Visualize a bar chart for showing the total number of different product type codes, and could you order in descending by the names? | SELECT Product_Type_Code, COUNT(Product_Type_Code) FROM Products GROUP BY Product_Type_Code ORDER BY Product_Type_Code DESC | nvbench |
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... | which ethnic background does the patient with patient id 6983 belong to? | SELECT demographic.ethnicity FROM demographic WHERE demographic.subject_id = "6983" | mimicsql_data |
CREATE TABLE table_41249 (
"Event" text,
"2006\u201307" text,
"2007\u201308" text,
"2008\u201309" text,
"2009\u201310" text,
"2010\u201311" text,
"2011\u201312" text,
"2012\u201313" text
) | What is the 2008-09 result has Masters as the event? | SELECT "2008\u201309" FROM table_41249 WHERE "Event" = 'masters' | wikisql |
CREATE TABLE table_204_885 (
id number,
"season" text,
"competition" text,
"round" text,
"opponent" text,
"home" text,
"away" text,
"agg." text,
"bye" text
) | how many european cups has this team been a part of ? | SELECT COUNT(DISTINCT ("season")) FROM table_204_885 WHERE "competition" = 'european cup' | squall |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE medication (
medicationid n... | what the first height of patient 004-86136 in 08/this year. | SELECT patient.admissionheight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-86136') AND NOT patient.admissionheight IS NULL AND DATETIME(patient.unitadmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-... | eicu |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
... | i'm curious as to how many hours have passed since patient 12726's first intake of lipids 20% on the current icu visit? | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', inputevents_cv.charttime)) 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 = 12726) AND icustays.outtime IS NULL)... | mimic_iii |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... | Questions answered by two specific users. | SELECT a1.ParentId AS "post_link", a1.CreationDate FROM Posts AS a1 INNER JOIN Posts AS a2 ON a1.ParentId = a2.ParentId WHERE a1.OwnerUserId = '##UserId1:int##' AND a2.OwnerUserId = '##UserId2:int##' | sede |
CREATE TABLE table_74147 (
"Institution" text,
"Team" text,
"City" text,
"Province" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Endowment" text,
"Football stadium" text,
"Capacity" real
) | What year was mcmahon stadium founded? | SELECT MAX("Founded") FROM table_74147 WHERE "Football stadium" = 'McMahon Stadium' | wikisql |
CREATE TABLE state (
state_code text,
state_name text,
country_name 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 ... | list the WEDNESDAY flights from DENVER to BALTIMORE arriving in BALTIMORE between 1115 and 1245pm | 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, days, flight WHERE (((flight.arrival_time <= 1245 AND flight.arrival_time >= 1115) AND days.day_name = 'WEDNESDAY' AND flight.flight_days = days.days_code) AND CITY_1.city_co... | atis |
CREATE TABLE table_5618 (
"Crop" text,
"Area" text,
"Output (2007)" text,
"% of national" text,
"Main location(s)" text
) | What's the Area with an Output (2007) of 12,332 T? | SELECT "Area" FROM table_5618 WHERE "Output (2007)" = '12,332 t' | wikisql |
CREATE TABLE gwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | 在哪几次医疗记录中病患77275514被开出过金钱数额超过9201.03人民币的药物?怎样列出医疗就诊编号? | SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_ID = '77275514' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT > 9201.03) UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '77275514' AND fgwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID F... | css |
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
)
CREATE TABLE Subject... | Find the enrollment date for all the tests that have 'Pass' result, and count them by a line chart, and I want to display x axis in ascending order. | SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" GROUP BY date_of_enrolment ORDER BY date_of_enrolment | nvbench |
CREATE TABLE table_26222 (
"Season" real,
"Champion" text,
"Count" real,
"Runners-up" text,
"Third place" text,
"Top scorer" text,
"Top scorers club" text,
"Goals" text
) | Who was in third place in the 1980 season? | SELECT "Third place" FROM table_26222 WHERE "Season" = '1980' | wikisql |
CREATE TABLE table_name_60 (
win__percentage VARCHAR
) | What is 2012 that has a winning % of 67%? | SELECT 2012 FROM table_name_60 WHERE win__percentage = "67%" | sql_create_context |
CREATE TABLE table_201_19 (
id number,
"rank" number,
"title" text,
"studio" text,
"director" text,
"actors" text,
"gross" text
) | which film was the best in terms of profit for walt disney productions ? | SELECT "title" FROM table_201_19 WHERE "studio" = 'walt disney productions' ORDER BY "gross" DESC LIMIT 1 | squall |
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,
... | 列出患者苏明知从06年8月16日到2010年2月4日内检测人为14927928的所有检验结果指标记录的检验指数流水编号都是啥? | SELECT jyjgzbb.JYZBLSH 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.BGDH WHERE hz... | css |
CREATE TABLE table_name_53 (
surface VARCHAR,
opponent_in_final VARCHAR
) | What is the surface of the tournament with david nalbandian as the opponent in the final? | SELECT surface FROM table_name_53 WHERE opponent_in_final = "david nalbandian" | sql_create_context |
CREATE TABLE table_name_90 (
q1_pos INTEGER,
q1_time VARCHAR,
q1_order VARCHAR
) | WHAT IS THE Q1 POS WITH A 1:31.826 Q1 TIME, AND Q1 ORDER OF 7? | SELECT MAX(q1_pos) FROM table_name_90 WHERE q1_time = "1:31.826" AND q1_order > 7 | sql_create_context |
CREATE TABLE table_22955 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | When was the new manager of the team on 21st position appointed? | SELECT "Date of appointment" FROM table_22955 WHERE "Position in table" = '21st' | wikisql |
CREATE TABLE table_53484 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
) | What was the latest year that resulted in won? | SELECT MAX("Year") FROM table_53484 WHERE "Result" = 'won' | wikisql |
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... | 郑子珍这位参保人在门诊就医一年共发生多少医疗费 | SELECT SUM(gwyjzb.MED_AMOUT) FROM gwyjzb WHERE gwyjzb.PERSON_NM = '郑子珍' AND gwyjzb.CLINIC_TYPE = '门诊' UNION SELECT SUM(fgwyjzb.MED_AMOUT) FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '郑子珍' AND fgwyjzb.CLINIC_TYPE = '门诊' | css |
CREATE TABLE table_27721131_2 (
game INTEGER,
high_rebounds VARCHAR
) | What's the maximum game in the javale mcgee (5) high rebounds? | SELECT MAX(game) FROM table_27721131_2 WHERE high_rebounds = "JaVale McGee (5)" | sql_create_context |
CREATE TABLE table_test_24 (
"id" int,
"history_of_bleeding_diathesis" bool,
"bleeding" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"blood_draw" bool,
"renal_disease" bool,
"allergy_to_aspirin" bool,
"allergy_to_clopidogrel" bool,
"cardiogenic_shock" boo... | severe renal insufficiency ( serum creatine > 2.5 mg / dl ) | SELECT * FROM table_test_24 WHERE renal_disease = 1 OR serum_creatinine > 2.5 | criteria2sql |
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,
... | 医院1943196的医疗记录中,入院诊断为慢性支气管炎的最低医疗费总额是多少?最高的金额又是多少 | SELECT MIN(t_kc24.MED_AMOUT), MAX(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 = '1943196' AND t_kc21.IN_DIAG_DIS_NM = '慢性支气管炎') | css |
CREATE TABLE pilot_record (
record_id number,
pilot_id number,
aircraft_id number,
date text
)
CREATE TABLE pilot (
pilot_id number,
pilot_name text,
rank number,
age number,
nationality text,
position text,
join_year number,
team text
)
CREATE TABLE aircraft (
airc... | What are the positions and teams of pilots? | SELECT position, team FROM pilot | spider |
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 text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | provide the number of patients whose admission location is clinic referral/premature and year of birth is less than 2031? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" AND demographic.dob_year < "2031" | mimicsql_data |
CREATE TABLE table_29679 (
"Tournament" text,
"Games played" real,
"Points per game" text,
"Rebounds per game" text,
"Assists per game" text
) | How many rebounds per game did he have at the 2006 fiba world championship? | SELECT "Rebounds per game" FROM table_29679 WHERE "Tournament" = '2006 FIBA World Championship' | wikisql |
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... | 这位邹鹏举的患者在13年9月4日到19年6月28日期间医保的消费金额有多少 | SELECT SUM(t_kc24.PER_ACC_PAY) FROM t_kc21 JOIN t_kc24 JOIN t_kc21_t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc24.MED_CLINIC_ID AND t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID WHERE t_kc21.PERSON_NM = '邹鹏举' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2013-09-04' AND '2019-06-28' | css |
CREATE TABLE table_68711 (
"Date" text,
"Visiting team" text,
"Final score" text,
"Host team" text,
"Stadium" text
) | What team visited the Jacksonville Municipal Stadium? | SELECT "Visiting team" FROM table_68711 WHERE "Stadium" = 'jacksonville municipal stadium' | wikisql |
CREATE TABLE table_41756 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
) | What was the nationality of the player Pat Garrity? | SELECT "Nationality" FROM table_41756 WHERE "Player" = 'pat garrity' | wikisql |
CREATE TABLE table_name_55 (
start VARCHAR,
duration VARCHAR
) | Which Start has a Duration of 6 months 2 days? | SELECT start FROM table_name_55 WHERE duration = "6 months 2 days" | sql_create_context |
CREATE TABLE table_67509 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | What was the record for the game that had a loss of Williams (3-1)? | SELECT "Record" FROM table_67509 WHERE "Loss" = 'williams (3-1)' | wikisql |
CREATE TABLE table_17537 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Joined" real,
"Nickname" text,
"Colors" text
) | What are the school colors of the University of New Hampshire? | SELECT "Colors" FROM table_17537 WHERE "Institution" = 'University of New Hampshire' | wikisql |
CREATE TABLE table_name_35 (
result VARCHAR,
title VARCHAR,
genre VARCHAR,
label VARCHAR
) | Which result's genre was jazz when its label was columbia and its title was requiem? | SELECT result FROM table_name_35 WHERE genre = "jazz" AND label = "columbia" AND title = "requiem" | sql_create_context |
CREATE TABLE table_10797463_1 (
percent_of_slovenes_1991 VARCHAR,
village__slovenian_ VARCHAR
) | what percent of slovenes did the village called ahor e in slovenian have in 1991? | SELECT percent_of_slovenes_1991 FROM table_10797463_1 WHERE village__slovenian_ = "Čahorče" | sql_create_context |
CREATE TABLE table_name_89 (
side VARCHAR,
inscription VARCHAR
) | Which side has Orcagna as the inscription? | SELECT side FROM table_name_89 WHERE inscription = "orcagna" | sql_create_context |
CREATE TABLE projects (
project_id number,
project_details text
)
CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE statements (
statement_id number,
statement_details text
)
CREATE TABLE documents_with_expens... | What is the id of the project with least number of documents? | SELECT project_id FROM documents GROUP BY project_id ORDER BY COUNT(*) LIMIT 1 | spider |
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_proje... | In the next semester , how many classes are being offered ? | SELECT COUNT(DISTINCT course_offering.course_id) FROM course_offering, semester WHERE semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016 | advising |
CREATE TABLE table_29202276_2 (
destination VARCHAR,
train_number VARCHAR
) | What is the destination when the train number is 16526? | SELECT destination FROM table_29202276_2 WHERE train_number = 16526 | sql_create_context |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE medication (
med... | since 09/11/2104, what was the first value of systemicdiastolic for patient 006-140729? | SELECT vitalperiodic.systemicdiastolic FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-140729')) AND NOT vitalperiodic.systemicdiast... | eicu |
CREATE TABLE table_name_94 (
crowd INTEGER,
away_team VARCHAR
) | What was the biggest crowd when South Melbourne was an away team? | SELECT MAX(crowd) FROM table_name_94 WHERE away_team = "south melbourne" | sql_create_context |
CREATE TABLE table_42422 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
) | What is the total number of picks for PBA team san miguel beermen who picked rommel daep? | SELECT COUNT("Pick") FROM table_42422 WHERE "PBA team" = 'san miguel beermen' AND "Player" = 'rommel daep' | wikisql |
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 admissions (
row_id number,
subject_id number,
hadm_id number,
... | when was the last time of intake time of patient 27242 since 1020 days ago? | SELECT inputevents_cv.charttime 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 = 27242)) AND DATETIME(inputevents_cv.charttime) >= DATETIME(CURRENT_TIME(), '-1020 day') ORDE... | mimic_iii |
CREATE TABLE table_72555 (
"Rank" real,
"Place" text,
"County" text,
"Per Capita Income" text,
"Median House- hold Income" text,
"Population" real,
"Number of Households" real
) | What is the per capita income for Fayette County? | SELECT "Per Capita Income" FROM table_72555 WHERE "County" = 'Fayette County' | wikisql |
CREATE TABLE table_78908 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | What is the Score of the Tournament played on Clay Surface on May 5, 1999? | SELECT "Score" FROM table_78908 WHERE "Surface" = 'clay' AND "Date" = 'may 5, 1999' | wikisql |
CREATE TABLE table_1342149_24 (
candidates VARCHAR,
result VARCHAR
) | Name the candidates for result of lost renomination democratic loss | SELECT candidates FROM table_1342149_24 WHERE result = "Lost renomination Democratic loss" | sql_create_context |
CREATE TABLE table_75127 (
"Year" real,
"Chart" text,
"Track" text,
"Peak" real,
"Weeks on Chart" real
) | Name the least weeks for year less than 2000 | SELECT MIN("Weeks on Chart") FROM table_75127 WHERE "Year" < '2000' | wikisql |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid nu... | what were the numbers of patients that received microbiology tests in the tissue during a year before? | SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT microbiologyevents.hadm_id FROM microbiologyevents WHERE microbiologyevents.spec_type_desc = 'tissue' AND DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) | mimic_iii |
CREATE TABLE table_57441 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" text
) | When was the general foods pga seniors' championship tournament? | SELECT "Date" FROM table_57441 WHERE "Tournament" = 'general foods pga seniors'' championship' | wikisql |
CREATE TABLE table_23794 (
"Interior/Roof" text,
"Black (UA)" real,
"Red (E8)" real,
"White (ZR)" real,
"Green (SW)" real,
"Totals" real
) | What's the green (SW) of the model with charcoal/white interior/roof? | SELECT MIN("Green (SW)") FROM table_23794 WHERE "Interior/Roof" = 'Charcoal/white' | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | provide the number of patients taking drug via td route who have procedure icd9 code 2501. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "2501" AND prescriptions.route = "TD" | mimicsql_data |
CREATE TABLE table_name_79 (
home VARCHAR,
leading_scorer VARCHAR,
score VARCHAR
) | Which Home has a Leading scorer of dajuan wagner (25) and a Score of 89 82? Question 3 | SELECT home FROM table_name_79 WHERE leading_scorer = "dajuan wagner (25)" AND score = "89–82" | sql_create_context |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | 医疗机构4226388的就诊记录里,住院天数超过30天的有多少人数 | SELECT COUNT(hz_info.RYBH) FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE zyjzjlb.YLJGDM = '4226388' AND DATEDIFF(zyjzjlb.CYSJ, zyjzjlb.RYSJ) > 30 | css |
CREATE TABLE table_name_70 (
score VARCHAR,
tie_no VARCHAR
) | What's the score when the tie number was replay? | SELECT score FROM table_name_70 WHERE tie_no = "replay" | sql_create_context |
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE paper (
paperid int,
title varchar,
venueid int,
year int,
numciting int,
numcitedby int,
journalid int
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE author (
authorid i... | who has written the most papers on semantic parsing since 2005 ? | SELECT DISTINCT COUNT(paper.paperid), writes.authorid FROM keyphrase, paper, paperkeyphrase, writes WHERE keyphrase.keyphrasename = 'semantic parsing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year > 2005 AND writes.paperid = paper.paperid GROUP BY write... | scholar |
CREATE TABLE table_203_634 (
id number,
"date" text,
"venue" text,
"score" text,
"victor" text,
"comments" text,
"match reports" text
) | who won the highest amount of rugby matches between new zealand and wales for the last 100 years ? | SELECT "victor" FROM table_203_634 WHERE "victor" IN ('new zealand', 'wales') GROUP BY "victor" ORDER BY COUNT(*) DESC LIMIT 1 | squall |
CREATE TABLE table_19461 (
"Year" real,
"Category" text,
"English title" text,
"Original title" text,
"Author" text,
"Nationality" text
) | What is the English version of Mariusz Szczygie book? | SELECT "English title" FROM table_19461 WHERE "Author" = 'Mariusz Szczygieł' | wikisql |
CREATE TABLE table_name_24 (
time VARCHAR,
rank VARCHAR,
speed VARCHAR
) | What is the time of the rider who has a rank smaller than 8 and speed of 104.567mph? | SELECT time FROM table_name_24 WHERE rank < 8 AND speed = "104.567mph" | sql_create_context |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
war... | what are the five most frequently used procedures for patients who were diagnosed with hyp ht dis nos w ht fail previously in the same hospital encounter during this year? | SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_i... | mimic_iii |
CREATE TABLE table_40965 (
"Average population (x 1000)" real,
"Live births" real,
"Deaths" real,
"Natural change" real,
"Crude birth rate (per 1000)" real,
"Crude death rate (per 1000)" real,
"Natural change (per 1000)" real
) | What is the sum of Natural Change, when Natural Change (Per 1000) is greater than 5.4, when Crude Death Rate (Per 1000) is less than 14.3, when Live Births is less than 6,950, and when Crude Birth Rate (Per 1000) is less than 28.2? | SELECT SUM("Natural change") FROM table_40965 WHERE "Natural change (per 1000)" > '5.4' AND "Crude death rate (per 1000)" < '14.3' AND "Live births" < '6,950' AND "Crude birth rate (per 1000)" < '28.2' | 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 ... | mention the long title of the procedure of procedure icd9 code 9955. | SELECT procedures.long_title FROM procedures WHERE procedures.icd9_code = "9955" | mimicsql_data |
CREATE TABLE Student (
city_code VARCHAR
) | Show all cities where students live. | SELECT DISTINCT city_code FROM Student | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellv... | what was the four most common procedures for patients of the age of 50s until 2102? | SELECT t1.treatmentname FROM (SELECT treatment.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 50 AND 59) AND STRFTIME('%y', treatment.treatmenttime) <= '2102' GROUP BY treatment.... | eicu |
CREATE TABLE table_1300525_1 (
pinyin VARCHAR,
simplified VARCHAR
) | What is the capital of the district who's simplified name is ? | SELECT COUNT(pinyin) FROM table_1300525_1 WHERE simplified = "信州区" | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
a... | count the number of times that patient 006-99708 had had a output (ml)-urethral catheter vina sananikone, rn latex 16 fr. out until 02/2105. | SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-99708')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.ce... | eicu |
CREATE TABLE orders (
order_id VARCHAR
)
CREATE TABLE order_items (
order_id VARCHAR,
product_id VARCHAR
)
CREATE TABLE products (
product_name VARCHAR,
product_id VARCHAR
) | List the name and count of each product in all orders. | SELECT T3.product_name, 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_id | sql_create_context |
CREATE TABLE table_46946 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | what is the tournament on august 17, 2008? | SELECT "Tournament" FROM table_46946 WHERE "Date" = 'august 17, 2008' | wikisql |
CREATE TABLE table_name_59 (
pts_game INTEGER,
name VARCHAR,
points VARCHAR
) | Can you tell me the lowest Pts/game that has the Name of philippa tuttiett, and the Points larger then 6? | SELECT MIN(pts_game) FROM table_name_59 WHERE name = "philippa tuttiett" AND points > 6 | sql_create_context |
CREATE TABLE aircraft (
aid number,
name text,
distance number
)
CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,
aid number
)
CREATE TABLE employee (
eid number,
name text,
... | What are the names and distances for all airplanes? | SELECT name, distance FROM aircraft | spider |
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 lab (
subject_id text,
hadm_id text,
... | how many patients admitted urgently have undergone the procedure laparoscopic lysis of peritoneal adhesions? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "URGENT" AND procedures.long_title = "Laparoscopic lysis of peritoneal adhesions" | mimicsql_data |
CREATE TABLE table_28533 (
"Rd." real,
"Grand Prix" text,
"Pole position" text,
"Fastest lap" text,
"Winning driver" text,
"Winning constructor" text,
"Report" text
) | Who had the pole position in the Canadian Grand Prix? | SELECT "Pole position" FROM table_28533 WHERE "Grand Prix" = 'Canadian Grand Prix' | wikisql |
CREATE TABLE table_name_93 (
avg_g INTEGER,
yards VARCHAR,
long VARCHAR,
gp_gs VARCHAR
) | What is the highest average for a long less than 24, a GP-GS of 2-0, and less than 7 yards? | SELECT MAX(avg_g) FROM table_name_93 WHERE long < 24 AND gp_gs = "2-0" AND yards < 7 | sql_create_context |
CREATE TABLE member_of (
facid number,
dno number,
appt_type text
)
CREATE TABLE gradeconversion (
lettergrade text,
gradepoint number
)
CREATE TABLE minor_in (
stuid number,
dno number
)
CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
sex text,... | What are the full names of faculty members who are a part of department 520? | SELECT T1.fname, T1.lname FROM faculty AS T1 JOIN member_of AS T2 ON T1.facid = T2.facid WHERE T2.dno = 520 | spider |
CREATE TABLE table_71267 (
"Year" real,
"Venue" text,
"Winner" text,
"Country" text,
"Score" real
) | What was France's highest score when the venue was Bokskogens? | SELECT MAX("Score") FROM table_71267 WHERE "Country" = 'france' AND "Venue" = 'bokskogens' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.