context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE p... | when was the first intake of patient 004-13127 in yesterday? | SELECT intakeoutput.intakeoutputtime FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-13127')) AND intakeoutput.cellpath LIKE '%intake%... | eicu |
CREATE TABLE table_name_99 (
tournament VARCHAR,
surface VARCHAR,
score VARCHAR
) | Tell me the tournament with a hard surface for 6 1, 6 2 | SELECT tournament FROM table_name_99 WHERE surface = "hard" AND score = "6–1, 6–2" | sql_create_context |
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... | Do all upper-level classes contain exams ? | SELECT COUNT(*) = 0 FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.has_exams = 'N' AND program_course.category LIKE '%ULCS%' | advising |
CREATE TABLE table_22464685_1 (
author VARCHAR,
transliteration VARCHAR
) | who is the auther when the transliteration is lasha-giorgis droindeli matiane? | SELECT author FROM table_22464685_1 WHERE transliteration = "lasha-giorgis droindeli matiane" | sql_create_context |
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 ... | 在02年2月21日到04年4月10日期间作为患者91814247检测指标506686的医务人员的工号及姓名分别是什么? | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM ... | css |
CREATE TABLE table_name_99 (
rank INTEGER,
team VARCHAR,
games VARCHAR
) | What is Grupo Capitol Valladolid's highest rank with more than 34 games? | SELECT MAX(rank) FROM table_name_99 WHERE team = "grupo capitol valladolid" AND games > 34 | 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_DIRE_CD text,
MED_DIRE_NM text,... | 请提供编号77219096这位团伙成员最喜欢去的医院排序 | SELECT t_kc21.MED_SER_ORG_NO FROM t_kc21 WHERE t_kc21.PERSON_ID = '77219096' GROUP BY t_kc21.MED_SER_ORG_NO ORDER BY COUNT(*) DESC | css |
CREATE TABLE table_22050544_4 (
event VARCHAR,
event__number VARCHAR
) | What is the event name with the number 8M? | SELECT event FROM table_22050544_4 WHERE event__number = "8M" | sql_create_context |
CREATE TABLE table_78204 (
"Date(s) conducted" text,
"Polling organisation/client" text,
"Cons" text,
"Plaid Cymru" text,
"Lib Dem" text,
"Others" text,
"Lead" text
) | What is the cons for lib dem of 8% and a lead of 27% | SELECT "Cons" FROM table_78204 WHERE "Lib Dem" = '8%' AND "Lead" = '27%' | wikisql |
CREATE TABLE table_3101 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | What episode number has 2j5352 as a production code? | SELECT "No." FROM table_3101 WHERE "Production code" = '2J5352' | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | provide the number of patients whose discharge location is rehab/distinct part hosp and lab test name is alkaline phosphatase? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND lab.label = "Alkaline Phosphatase" | mimicsql_data |
CREATE TABLE table_39437 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" real,
"2nd (m)" real,
"Points" real,
"Overall NT points" text,
"Overall WC points (Rank)" text
) | What is the sum of the distances in 2nd for ranks higher than 4 and distance for 1st less than 111.5? | SELECT SUM("2nd (m)") FROM table_39437 WHERE "Rank" > '4' AND "1st (m)" < '111.5' | wikisql |
CREATE TABLE table_name_76 (
school_club_team VARCHAR,
player VARCHAR
) | What school does Wayne Cooper play for? | SELECT school_club_team FROM table_name_76 WHERE player = "wayne cooper" | sql_create_context |
CREATE TABLE table_30160 (
"Proceed to Quarter-final" text,
"Match points" text,
"Aggregate score" text,
"Points margin" real,
"Eliminated from competition" text
) | What was the aggregate score for Montauban? | SELECT "Aggregate score" FROM table_30160 WHERE "Proceed to Quarter-final" = 'Montauban' | wikisql |
CREATE TABLE table_name_60 (
date VARCHAR,
label VARCHAR
) | When did sony music direct a label? | SELECT date FROM table_name_60 WHERE label = "sony music direct" | sql_create_context |
CREATE TABLE documents_with_expenses (
document_id number,
budget_type_code text,
document_details text
)
CREATE TABLE documents (
document_id number,
document_type_code text,
project_id number,
document_date time,
document_name text,
document_description text,
other_details tex... | What are the ids and details of all statements? | SELECT statement_id, statement_details FROM statements | spider |
CREATE TABLE table_6454 (
"Driver" text,
"Points" real,
"Season" text,
"Races" real,
"Percentage of possible points" real
) | Which season with 16 races had less than 321 points and a larger percent than 65.78 possible? | SELECT "Season" FROM table_6454 WHERE "Points" < '321' AND "Percentage of possible points" > '65.78' AND "Races" = '16' | wikisql |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | Metrics - Users - Accumulated PU Ratio by Quarter. | SELECT r AS Registrated, COUNT(1) AS Users, SUM(s) AS Writers, ROUND(SUM(s) * 100.0 / COUNT(1), 2) AS "writers_%" FROM (SELECT u.Id, (CASE WHEN SUM(CASE WHEN p.PostTypeId = 2 AND (p.Score >= @minVote) THEN 1 ELSE 0 END) >= @minPost THEN 1 ELSE 0 END) AS s, (TIME_TO_STR(u.CreationDate, '%Y') * 100 + TIME_TO_STR(u.Creati... | sede |
CREATE TABLE cinema (
cinema_id number,
name text,
openning_year number,
capacity number,
location text
)
CREATE TABLE schedule (
cinema_id number,
film_id number,
date text,
show_times_per_day number,
price number
)
CREATE TABLE film (
film_id number,
rank_in_series nu... | Find the distinct locations that has a cinema. | SELECT DISTINCT location FROM cinema | spider |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date... | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by weekday. | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | nvbench |
CREATE TABLE table_46682 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | What is Partner, when Outcome is Winner, and when Date is 12 October 2003? | SELECT "Partner" FROM table_46682 WHERE "Outcome" = 'winner' AND "Date" = '12 october 2003' | wikisql |
CREATE TABLE table_70656 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the average Total, when the value for Silver is less than 1, when the value for Gold is 0, when the Nation is Switzerland, and when the value for Bronze is 2? | SELECT AVG("Total") FROM table_70656 WHERE "Silver" < '1' AND "Gold" = '0' AND "Nation" = 'switzerland' AND "Bronze" < '2' | wikisql |
CREATE TABLE table_46169 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Record" text
) | Which Score has an Opponent of @ seattle? | SELECT "Score" FROM table_46169 WHERE "Opponent" = '@ seattle' | wikisql |
CREATE TABLE table_name_9 (
score VARCHAR,
home_team VARCHAR
) | What is the score when Darlington is the home team? | SELECT score FROM table_name_9 WHERE home_team = "darlington" | 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 whose first name is ending with the letter m, visualize a bar chart to show each employee's salary by the last name, and could you show in desc by the y-axis please? | SELECT LAST_NAME, SALARY FROM employees WHERE FIRST_NAME LIKE '%m' ORDER BY SALARY DESC | nvbench |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE hz_info_zyjzjlb (
JZLSH number,
YLJGDM number,
zyjzjlb_id number
)
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
... | 检验报告单33959685545对应的患者在住院就诊中叫什么名字? | SELECT person_info.XM FROM person_info JOIN hz_info JOIN zyjzjlb JOIN jybgb JOIN hz_info_zyjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = hz_info_zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND hz_info_zyjzjlb.YLJGDM = jybgb.YLJGDM_ZYJZJLB AND zyjzjlb.JZLSH = jybgb.JZLSH_ZYJZ... | css |
CREATE TABLE table_25352318_1 (
poles INTEGER
) | What is the lowest overall amount of poles? | SELECT MIN(poles) FROM table_25352318_1 | sql_create_context |
CREATE TABLE table_71187 (
"Event" text,
"Time" text,
"Venue" text,
"Date" text,
"Notes" text
) | Which event had the time 45.74? | SELECT "Event" FROM table_71187 WHERE "Time" = '45.74' | wikisql |
CREATE TABLE table_name_53 (
away_team VARCHAR,
tie_no VARCHAR,
home_team VARCHAR
) | Who was the away team that played Northampton Town at home with a tie number of replay? | SELECT away_team FROM table_name_53 WHERE tie_no = "replay" AND home_team = "northampton town" | sql_create_context |
CREATE TABLE Detention (
detention_id INTEGER,
detention_type_code VARCHAR(10),
teacher_id INTEGER,
datetime_detention_start DATETIME,
datetime_detention_end DATETIME,
detention_summary VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Ref_Detention_Type (
detention_type_code VARC... | Return a bar chart about the distribution of date_address_from and the sum of monthly_rental bin date_address_from by weekday. | SELECT date_address_from, SUM(monthly_rental) FROM Student_Addresses ORDER BY monthly_rental DESC | nvbench |
CREATE TABLE table_name_32 (
points INTEGER,
nationality VARCHAR,
name VARCHAR
) | Which Points is the highest one that has a Nationality of aut, and a Name of thomas morgenstern? | SELECT MAX(points) FROM table_name_32 WHERE nationality = "aut" AND name = "thomas morgenstern" | sql_create_context |
CREATE TABLE table_18429 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | What district featured an election between james a. byrne (d) 59.3% joseph r. burns (r) 40.7%? | SELECT "District" FROM table_18429 WHERE "Candidates" = 'James A. Byrne (D) 59.3% Joseph R. Burns (R) 40.7%' | wikisql |
CREATE TABLE table_14956 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" text
) | Name the game site for october 4, 1992 | SELECT "Game site" FROM table_14956 WHERE "Date" = 'october 4, 1992' | wikisql |
CREATE TABLE table_204_978 (
id number,
"position" number,
"nation" number,
"number" number,
"name" text,
"soproni liga" number,
"uefa cup" number,
"hungarian cup" number,
"league cup" number,
"total" number
) | how many more total goals does leandro de almeida has than zsombor kerekes ? | SELECT (SELECT "total" FROM table_204_978 WHERE "name" = 'leandro de almeida') - (SELECT "total" FROM table_204_978 WHERE "name" = 'zsombor kerekes') | squall |
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
... | i need to go from BOSTON to DENVER and then to SAN FRANCISCO | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER... | atis |
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE admis... | the first intake patient 366 had until 828 days ago what was the name of that? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT inputevents_cv.itemid 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 = 366)) AND DATETIME(inputevents_cv.ch... | mimic_iii |
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... | provide the number of patients whose primary disease is s/p fall and lab test fluid is ascites? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "S/P FALL" AND lab.fluid = "Ascites" | mimicsql_data |
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,... | count the number of patients whose age is less than 74 and procedure short title is arterial catheterization? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "74" AND procedures.short_title = "Arterial catheterization" | mimicsql_data |
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text,
ZYLBDM text,
ZYMC text
)
CREATE TABLE zzmzjzjlb (
HXPLC number,
HZX... | 为韩飞双这个患者在05年4月12日到12年6月12日内检测过尿素的医务人员工号及姓名分别是什么? | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM person_info JOIN hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZ... | css |
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... | tell me the diagnoses icd9 code and short title of diagnoses for patient with patient id 28588. | SELECT diagnoses.icd9_code, diagnoses.short_title FROM diagnoses WHERE diagnoses.subject_id = "28588" | mimicsql_data |
CREATE TABLE table_72435 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | who is the candidate in district south carolina 2? | SELECT "Candidates" FROM table_72435 WHERE "District" = 'South Carolina 2' | wikisql |
CREATE TABLE table_name_38 (
average INTEGER,
rank_by_average VARCHAR,
total VARCHAR,
number_of_dances VARCHAR
) | Which Average is the lowest one that has a Total smaller than 134, and a Number of dances smaller than 3, and a Rank by average smaller than 12? | SELECT MIN(average) FROM table_name_38 WHERE total < 134 AND number_of_dances < 3 AND rank_by_average < 12 | sql_create_context |
CREATE TABLE table_name_37 (
points INTEGER,
games VARCHAR,
losses VARCHAR
) | What is the average number of points for a team that played 17 games and had more than 15 losses? | SELECT AVG(points) FROM table_name_37 WHERE games = 17 AND losses > 15 | sql_create_context |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate t... | Users' aggregated comments and posts in parent posts. User id's which are null or less than 0 have been removed | SELECT DISTINCT a.UserId, a.QuestionId AS PostId, COUNT(a.QuestionId) AS Aggregate FROM (SELECT Posts.OwnerUserId AS UserId, COALESCE(Posts.ParentId, Posts.Id) AS QuestionId FROM Posts WHERE NOT Posts.OwnerUserId IS NULL AND Posts.OwnerUserId > 0 UNION ALL SELECT b.UserId AS UserId, COALESCE(b.ParentId, b.PostId) AS Qu... | sede |
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | how many patients were diagnosed with hyperlipidemia since 2104 after having previously been diagnosed with diabetes mellitus - type ii within the same month? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'hyperlipidemia' AND STRFTIME('%y', diagnosis.diagnosistime) >= '2104') AS t1 JOIN (SELECT patient.uniquepid,... | eicu |
CREATE TABLE table_29063233_1 (
directed_by VARCHAR,
uk_viewers__million_ VARCHAR
) | Who directed the episode with UK viewership of 6.09 million? | SELECT directed_by FROM table_29063233_1 WHERE uk_viewers__million_ = "6.09" | sql_create_context |
CREATE TABLE customer (
cust_ID varchar(3),
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20)
)
CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state ... | Visualize a bar chart for what are the names and account balances of customers with the letter 'a' in their names? | SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%' | nvbench |
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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY... | 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 amount of hire_date bin hire_date by weekday, list by the Y in asc. | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY COUNT(HIRE_DATE) | nvbench |
CREATE TABLE table_name_18 (
team VARCHAR,
make VARCHAR,
year VARCHAR
) | what is the team when the make is dodge and the year is after 2008? | SELECT team FROM table_name_18 WHERE make = "dodge" AND year > 2008 | sql_create_context |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,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 locations (
LOCAT... | For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of hire_date and the average of salary bin hire_date by time. | SELECT HIRE_DATE, AVG(SALARY) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | nvbench |
CREATE TABLE table_299 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
) | WHAT TOWN IS WEST BROOK SENIOR HIGH SCHOOL FROM? | SELECT "Hometown" FROM table_299 WHERE "School" = 'West Brook Senior High School' | wikisql |
CREATE TABLE t_kc21_t_kc22 (
MED_CLINIC_ID text,
MED_EXP_DET_ID number
)
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 ... | 从2010年5月27日到2021年2月21日,医疗机构3892472有多少公务员有医疗就诊记录? | SELECT COUNT(*) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '3892472' AND t_kc21.IN_HOSP_DATE BETWEEN '2010-05-27' AND '2021-02-21' AND t_kc21.SERVANT_FLG = '公务员' | css |
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patie... | have there been any microbiological test history for patient 031-3355 in 12/2105? | 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-3355')) AND STRFTIME('%y-%m', microlab.culturetakentime) = '2105-12' | eicu |
CREATE TABLE table_48667 (
"Cat. #" text,
"Artist" text,
"Title" text,
"Release date" text,
"Format" text,
"Other information" text
) | What is the release date with par116 as the cat. #? | SELECT "Release date" FROM table_48667 WHERE "Cat. #" = 'par116' | wikisql |
CREATE TABLE table_11944282_1 (
allied_unrelated VARCHAR,
component VARCHAR
) | What is the total amount of allied-unrelated where the component is human capital? | SELECT COUNT(allied_unrelated) FROM table_11944282_1 WHERE component = "Human Capital" | sql_create_context |
CREATE TABLE table_19845 (
"No." real,
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner-up" text
) | What are all values for 'to par' for the winning score of 67-67-69-69=272? | SELECT "To par" FROM table_19845 WHERE "Winning score" = '67-67-69-69=272' | wikisql |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE cost (
costid number,
uniquepi... | what is the maximum hospital cost for a drug with a name called amiodarone 200 mg tab since 5 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 medication.patientunitstayid FROM medication WHERE medication.drugname = 'amiodarone 200 mg tab')) AND DATETIME(cost.cha... | eicu |
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 Student... | A bar chart for what are the number of the enrollment dates of all the tests that have result 'Pass'?, I want to show by the the number of date of enrolment in descending. | 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" ORDER BY COUNT(date_of_enrolment) DESC | nvbench |
CREATE TABLE table_name_39 (
tujunga VARCHAR,
pasadena VARCHAR
) | What is the figure for Tujunga when Pasadena is 134,941? | SELECT tujunga FROM table_name_39 WHERE pasadena = "134,941" | sql_create_context |
CREATE TABLE table_28348 (
"Road race" text,
"Distance" text,
"Location" text,
"Country" text,
"Month held" text
) | What month is the Paris 20k Road Race held? | SELECT "Month held" FROM table_28348 WHERE "Location" = 'Paris' | wikisql |
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varc... | Can I get a list of Italian Romanticism courses that satisfy the Other requirement ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (area.area LIKE '%Italian Romanticism%' OR course.description LIKE '%Italian Romanticism%' OR course.name LIKE '%I... | advising |
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
) | A bar chart about how many captains are in each rank? | SELECT Rank, COUNT(*) FROM captain GROUP BY Rank | nvbench |
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE paperkeyphrase (
paperid int,
keyphraseid int
)
CREATE TABLE field (
fieldid int
)
CREATE TA... | TAIL papers used in NIPS | SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase, venue WHERE keyphrase.keyphrasename = 'TAIL' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND venue.venueid = paper.venueid AND venue.venuename = 'NIPS' | scholar |
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,
... | give me the number of patients whose admission year is less than 2131 and procedure icd9 code is 3895? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2131" AND procedures.icd9_code = "3895" | mimicsql_data |
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, give me the comparison about the sum of salary over the job_id , and group by attribute job_id, and could you rank by the x axis in desc? | SELECT JOB_ID, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY JOB_ID DESC | nvbench |
CREATE TABLE jybgb (
YLJGDM text,
YLJGDM_MZJZJLB text,
YLJGDM_ZYJZJLB text,
BGDH text,
BGRQ time,
JYLX number,
JZLSH text,
JZLSH_MZJZJLB text,
JZLSH_ZYJZJLB text,
JZLX number,
KSBM text,
KSMC text,
SQRGH text,
SQRXM text,
BGRGH text,
BGRXM text,
SHRGH ... | 查一下医疗就诊75568480479中审核超过29份检验报告单的都有哪些人?把这些审核人工号和姓名给列出来 | SELECT SHRGH, SHRXM FROM jybgb WHERE JZLSH = '75568480479' GROUP BY SHRGH HAVING COUNT(*) > 29 | css |
CREATE TABLE table_27155990_1 (
total_usd INTEGER,
creator VARCHAR
) | What was the maximum total USD collected by Pebble Technology? | SELECT MAX(total_usd) FROM table_27155990_1 WHERE creator = "Pebble Technology" | sql_create_context |
CREATE TABLE table_57325 (
"Week" real,
"Date" text,
"Opponent" text,
"Home/Away Game" text,
"Result" text
) | What is the result where the opponent is Columbus Destroyers? | SELECT "Result" FROM table_57325 WHERE "Opponent" = 'columbus destroyers' | wikisql |
CREATE TABLE election (
Election_ID int,
Representative_ID int,
Date text,
Votes real,
Vote_Percent real,
Seats real,
Place real
)
CREATE TABLE representative (
Representative_ID int,
Name text,
State text,
Party text,
Lifespan text
) | What are the different parties of representative? Show the party name and the number of representatives in each party, and could you show total number in descending order? | SELECT Party, COUNT(*) FROM representative GROUP BY Party ORDER BY COUNT(*) DESC | nvbench |
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, give me the comparison about the sum of price over the name , and group by attribute name, sort by the Name in descending. | SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC | nvbench |
CREATE TABLE Order_Items (
order_item_id INTEGER,
order_id INTEGER,
product_id INTEGER
)
CREATE TABLE Customers (
customer_id INTEGER,
payment_method_code VARCHAR(10),
customer_code VARCHAR(20),
customer_name VARCHAR(80),
customer_address VARCHAR(255),
customer_phone VARCHAR(80),
... | Show the sum of price supplied by supplier id 3 for different product type code in a bar chart, and sort from high to low by the bars please. | SELECT product_type_code, SUM(product_price) FROM Product_Suppliers AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id WHERE T1.supplier_id = 3 GROUP BY product_type_code ORDER BY product_type_code DESC | nvbench |
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABL... | Users with most Revival badges. Most decorated users | SELECT UserId AS "user_link", COUNT(*) AS Badges FROM Badges WHERE Badges.Name = 'Necromancer' OR Badges.Name = 'Revival' GROUP BY UserId ORDER BY Badges DESC LIMIT 100 | sede |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
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,
JO... | Does it have something interesting about the manager id and the department id? | SELECT T1.MANAGER_ID, T1.DEPARTMENT_ID FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID WHERE T1.EMPLOYEE_ID = T2.MANAGER_ID | nvbench |
CREATE TABLE table_27893892_2 (
opponent VARCHAR,
game_site VARCHAR,
week VARCHAR
) | what was the opposition where the field is waldstadion during time 6 | SELECT opponent FROM table_27893892_2 WHERE game_site = "Waldstadion" AND week = 6 | sql_create_context |
CREATE TABLE table_1474 (
"Player" text,
"VFL Games" real,
"VFL Club(s)" text,
"Rank held at time of death" text,
"Date of death" text,
"Location" text
) | What locations did sid o'neill play football? | SELECT "Location" FROM table_1474 WHERE "Player" = 'Sid O''Neill' | wikisql |
CREATE TABLE farm (
farm_id number,
year number,
total_horses number,
working_horses number,
total_cattle number,
oxen number,
bulls number,
cows number,
pigs number,
sheep_and_goats number
)
CREATE TABLE city (
city_id number,
official_name text,
status text,
ar... | List the most common type of Status across cities. | SELECT status FROM city GROUP BY status ORDER BY COUNT(*) DESC LIMIT 1 | spider |
CREATE TABLE table_13547 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | what is the manner of departure when the date of vacancy is 15 september 2008? | SELECT "Manner of departure" FROM table_13547 WHERE "Date of vacancy" = '15 september 2008' | wikisql |
CREATE TABLE table_58617 (
"Rank 2014" real,
"Rank 2013" real,
"Mvmt" text,
"Club" text,
"Country" text,
"2009\u201310" real,
"2010\u201311" real,
"2011\u201312" real,
"2012\u201313" real,
"2013\u201314" real,
"Coeff." real
) | Which 2013 14 has a Rank 2014 smaller than 23, and a 2011 12 larger than 19.1, and a Rank 2013 of 14? | SELECT AVG("2013\u201314") FROM table_58617 WHERE "Rank 2014" < '23' AND "2011\u201312" > '19.1' AND "Rank 2013" = '14' | wikisql |
CREATE TABLE Addresses (
zip_postcode VARCHAR,
address_id VARCHAR
)
CREATE TABLE Staff (
staff_address_id VARCHAR,
first_name VARCHAR,
last_name VARCHAR
) | What is the zip code of staff with first name as Janessa and last name as Sawayn lived? | SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
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 te... | 列出患者20499920在10年5月11日到20年4月9日内被开出的所有检验报告单的检验报告单号是多少? | SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb 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 WHERE hz_info.RYBH = '20499920' AND jybgb.BGRQ BETWEEN '2010-05-11' AND '2020-04-09' UNION... | css |
CREATE TABLE table_22278 (
"Departure" text,
"Going to" text,
"Calling at" text,
"Arrival" text,
"Operator" text
) | when does the train arriving at stamford east at 11.45 departure | SELECT "Departure" FROM table_22278 WHERE "Arrival" = '11.45' AND "Going to" = 'Stamford East' | wikisql |
CREATE TABLE table_173103_1 (
bullet_weight VARCHAR,
max_pressure VARCHAR
) | What is the bullet weight when the max pressure is 12,000 cup? | SELECT bullet_weight FROM table_173103_1 WHERE max_pressure = "12,000 CUP" | sql_create_context |
CREATE TABLE table_68833 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
) | What is the IATA for the city of Amsterdam? | SELECT "IATA" FROM table_68833 WHERE "City" = 'amsterdam' | wikisql |
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... | what were the three most frequent drugs that were prescribed during the same month to the patients of age 30s after having been diagnosed with copd until 3 years ago? | SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'copd' AND DATETIME(diagnosis.diagnosistime) <= DAT... | eicu |
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwner... | Most recent comments on my posts. | SELECT c.Id AS "comment_link", c.Text, c.UserId AS "user_link", c.CreationDate FROM Comments AS c INNER JOIN Posts AS p ON c.PostId = p.Id WHERE (p.OwnerUserId = '##UserId?8297##') ORDER BY c.CreationDate DESC LIMIT 100 | sede |
CREATE TABLE table_name_34 (
course VARCHAR,
jockey VARCHAR,
odds VARCHAR
) | What course did Fergal Lynch end up with 5/1 odds? | SELECT course FROM table_name_34 WHERE jockey = "fergal lynch" AND odds = "5/1" | sql_create_context |
CREATE TABLE table_43383 (
"Name" text,
"Processor" text,
"Hard Drive" text,
"Ethernet Ports" text,
"Dimensions" text
) | What is the ethernet ports of the u10 appliance? | SELECT "Ethernet Ports" FROM table_43383 WHERE "Name" = 'u10' | wikisql |
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... | count the number of visits to the icu of patient 27242 since 3 years ago. | SELECT COUNT(DISTINCT icustays.icustay_id) FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 27242) AND DATETIME(icustays.intime) >= DATETIME(CURRENT_TIME(), '-3 year') | mimic_iii |
CREATE TABLE table_20683381_2 (
date_of_opinion_poll VARCHAR,
conductor VARCHAR
) | When was Quantum Research's poll conducted? | SELECT date_of_opinion_poll FROM table_20683381_2 WHERE conductor = "Quantum Research" | sql_create_context |
CREATE TABLE branch (
branch_id number,
name text,
open_year text,
address_road text,
city text,
membership_amount text
)
CREATE TABLE purchase (
member_id number,
branch_id text,
year text,
total_pounds number
)
CREATE TABLE membership_register_branch (
member_id number,
... | What are the names, address roads, and cities of the branches ordered by opening year? | SELECT name, address_road, city FROM branch ORDER BY open_year | spider |
CREATE TABLE table_12159115_2 (
written_by VARCHAR,
us_viewers__millions_ VARCHAR
) | Who's the writer of the episode see by 12.13 million US viewers? | SELECT written_by FROM table_12159115_2 WHERE us_viewers__millions_ = "12.13" | sql_create_context |
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId numb... | Programming languages trends - inc. related tags. | SELECT YEAR(p.CreationDate), 100.0 * SUM(CASE WHEN t.Id IN (5, 21, 382, 75151, 3988, 57799, 106940, 114990, 8945, 8279, 14642, 984, 1581, 92312, 1661, 3437, 104777, 60676, 105840, 7528, 112569, 120888, 357, 78546, 26762, 3262, 63960, 98900, 99724, 2290, 66821, 1380, 81001, 5505, 107832, 85709, 2857, 72364, 44230, 38663... | sede |
CREATE TABLE table_65512 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
) | What is the total number of rank for the country of greece? | SELECT COUNT("Rank") FROM table_65512 WHERE "Country" = 'greece' | wikisql |
CREATE TABLE table_name_84 (
regulations VARCHAR,
winning_constructor VARCHAR
) | What regulations have hudson as the winning constructor? | SELECT regulations FROM table_name_84 WHERE winning_constructor = "hudson" | sql_create_context |
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CR... | what was the name of the medicine that patient 60180 was prescribed with after having had a inj/inf platelet inhibit procedure in 09/2104 within 2 days? | SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 60180 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = ... | mimic_iii |
CREATE TABLE table_11236195_2 (
gf_attendance VARCHAR,
location VARCHAR
) | What was the GF attendance at the location of Sydney Football Stadium, Sydney (6)? | SELECT COUNT(gf_attendance) FROM table_11236195_2 WHERE location = "Sydney Football Stadium, Sydney (6)" | sql_create_context |
CREATE TABLE table_name_60 (
avg_g INTEGER,
name VARCHAR,
gain VARCHAR
) | Which Avg/G has a Name of david allen, and a Gain larger than 371? | SELECT AVG(avg_g) FROM table_name_60 WHERE name = "david allen" AND gain > 371 | sql_create_context |
CREATE TABLE table_59901 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | What country has the t7 place, and player Peter Oosterhuis? | SELECT "Country" FROM table_59901 WHERE "Place" = 't7' AND "Player" = 'peter oosterhuis' | wikisql |
CREATE TABLE table_76697 (
"Position" text,
"Team #1" text,
"Agg." text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
) | What position has a 2-6 agg.? | SELECT "Position" FROM table_76697 WHERE "Agg." = '2-6' | wikisql |
CREATE TABLE table_name_46 (
size VARCHAR,
metal VARCHAR,
denomination VARCHAR
) | What is the size that has nickel as the metal, and one rupee as the denomination? | SELECT size FROM table_name_46 WHERE metal = "nickel" AND denomination = "one rupee" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.