context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_35866 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text
) | Which round has the record of 5-0? | SELECT "Round" FROM table_35866 WHERE "Record" = '5-0' | wikisql |
CREATE TABLE table_49816 (
"Date From" text,
"Date To" text,
"Pos." text,
"Name" text,
"Moving To" text
) | What is Date To, when Name is 'Lee Cook'? | SELECT "Date To" FROM table_49816 WHERE "Name" = 'lee cook' | wikisql |
CREATE TABLE table_74460 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) | How many different high points results are there for the game on May 15? | SELECT COUNT("High points") FROM table_74460 WHERE "Date" = 'May 15' | wikisql |
CREATE TABLE table_203_835 (
id number,
"season" text,
"club" text,
"country" text,
"competition" text,
"apps." number,
"goals" number
) | for 1 fc saabrucken how often did he have less than 20 appearances ? | SELECT COUNT(*) FROM table_203_835 WHERE "club" = '1. fc saarbrucken' AND "apps." < 20 | squall |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
... | what was the first height of patient 8016 since 09/2105? | 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 = 8016)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admit ht' ... | mimic_iii |
CREATE TABLE player (
player_id number,
player text,
years_played text,
total_wl text,
singles_wl text,
doubles_wl text,
team number
)
CREATE TABLE match_season (
season number,
player text,
position text,
country number,
team number,
draft_pick_number number,
dr... | Show all distinct positions of matches. | SELECT DISTINCT position FROM match_season | spider |
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 inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
... | how many cl reduct mandible fx procedures have occured? | SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'cl reduct mandible fx') | mimic_iii |
CREATE TABLE table_name_77 (
record VARCHAR,
date VARCHAR
) | What is the record on December 11? | SELECT record FROM table_name_77 WHERE date = "december 11" | sql_create_context |
CREATE TABLE table_name_39 (
show VARCHAR,
date VARCHAR
) | Which Show is dated 9 June? | SELECT show FROM table_name_39 WHERE date = "9 june" | sql_create_context |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | 自二零零零年九月十八日开始,截止到二零一三年十月十六日,患者章俊晤的主治医生是哪位 | SELECT qtb.OUT_DIAG_DOC_CD, qtb.OUT_DIAG_DOC_NM FROM qtb WHERE qtb.PERSON_NM = '章俊晤' AND qtb.IN_HOSP_DATE BETWEEN '2000-09-18' AND '2013-10-16' GROUP BY qtb.OUT_DIAG_DOC_CD ORDER BY COUNT(*) DESC LIMIT 1 UNION SELECT gyb.OUT_DIAG_DOC_CD, gyb.OUT_DIAG_DOC_NM FROM gyb WHERE gyb.PERSON_NM = '章俊晤' AND gyb.IN_HOSP_DATE BETW... | css |
CREATE TABLE table_9857 (
"Rank" real,
"Venue name" text,
"Highest attendance" text,
"Location" text,
"Current seating capacity" real
) | What is the lowest Rank, when the Current Seating Capacity is 137,000? | SELECT MIN("Rank") FROM table_9857 WHERE "Current seating capacity" = '137,000' | wikisql |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABL... | what is the top four most frequent diagnoses since 2102? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t1.icd9_code FROM (SELECT diagnoses_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM diagnoses_icd WHERE STRFTIME('%y', diagnoses_icd.charttime) >= '2102' GROUP BY diagnoses_icd.icd9_code) AS t1 WHERE ... | mimic_iii |
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 decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varc... | For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about employee_id over the phone_number by a bar chart, and order total number from high to low order. | SELECT PHONE_NUMBER, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMPLOYEE_ID DESC | nvbench |
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
)
... | what number of patients whose ethnicity is hispanic/latino-puerto rican were given the drug d5ns? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND prescriptions.drug = "D5NS" | mimicsql_data |
CREATE TABLE table_name_91 (
attendance VARCHAR,
date VARCHAR
) | What is the attendance number of the game on April 16? | SELECT COUNT(attendance) FROM table_name_91 WHERE date = "april 16" | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
... | 患者陶国兴之前就诊的医院是哪个 | SELECT wdmzjzjlb.YLJGDM FROM person_info JOIN hz_info JOIN wdmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX WHERE person_info.XM = '陶国兴' UNION SELECT bdmzjzjlb.YLJGDM FROM person_info JOIN hz_info JOIN bdmzjzjlb ON person_in... | css |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title te... | count the number of times patient 13806 had left arm drainage output since 152 months ago. | SELECT COUNT(*) FROM outputevents WHERE outputevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 13806)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'left arm drainage'... | mimic_iii |
CREATE TABLE table_4838 (
"Name" text,
"Bullet" text,
"Case Length" text,
"Base" text,
"Neck" text
) | Which Case Length has a Base of 14.96 (.589)? | SELECT "Case Length" FROM table_4838 WHERE "Base" = '14.96 (.589)' | wikisql |
CREATE TABLE table_name_90 (
name VARCHAR,
stage VARCHAR
) | What is the Name of the SS5 Stage? | SELECT name FROM table_name_90 WHERE stage = "ss5" | sql_create_context |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | Return a scatter chart about the correlation between Team_ID and ACC_Percent , and group by attribute All_Home. | SELECT Team_ID, ACC_Percent FROM basketball_match GROUP BY All_Home | nvbench |
CREATE TABLE table_1876825_2 (
production_code VARCHAR,
written_by VARCHAR,
directed_by VARCHAR
) | Name the total number of production code by david richardson and todd holland | SELECT COUNT(production_code) FROM table_1876825_2 WHERE written_by = "David Richardson" AND directed_by = "Todd Holland" | sql_create_context |
CREATE TABLE table_name_86 (
sack INTEGER,
totaltk VARCHAR,
asst VARCHAR
) | what is the total sack when totaltk is 1 and asst. is more than 0? | SELECT SUM(sack) FROM table_name_86 WHERE totaltk = 1 AND asst > 0 | sql_create_context |
CREATE TABLE table_11015 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | What driver has more than 39 laps on gird 15? | SELECT "Driver" FROM table_11015 WHERE "Laps" > '39' AND "Grid" = '15' | wikisql |
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city v... | What number of 10 -credit upper-level NEAREAST classes are being offered this Spring-Summer ? | SELECT COUNT(DISTINCT course.course_id) FROM course, course_offering, program_course, semester WHERE course.course_id = course_offering.course_id AND course.credits = 10 AND course.department = 'NEAREAST' AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester = '... | advising |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostHistory (
Id number,
Po... | Stack Overflow Closed, Low-Quality Questions Voted for Deletion (PHP Tag). | SELECT * FROM (SELECT Posts.Id AS "post_link", AVG(Posts.Score) AS "score", COUNT(*) AS "close_votes", MAX(Votes.CreationDate) AS "last_vote", MIN(Votes.CreationDate) AS "first_vote" FROM Posts INNER JOIN Votes ON Posts.Id = Votes.PostId WHERE Votes.VoteTypeId = 10 AND Posts.ClosedDate > 0 AND Posts.Tags LIKE '%<php>%'... | sede |
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
) | Give me a stacked bar chart for showing the total number of each ship type and categorize it by ship nationality. | SELECT Type, COUNT(Type) FROM ship GROUP BY Nationality, Type | nvbench |
CREATE TABLE table_4411 (
"Round" text,
"Club" text,
"Home" text,
"Away" text,
"Aggregate" text
) | Tell me the home of 2-3 | SELECT "Home" FROM table_4411 WHERE "Aggregate" = '2-3' | wikisql |
CREATE TABLE table_65360 (
"Place" text,
"Code" real,
"Area (km 2 )" real,
"Population" real,
"Most spoken language" text
) | What is the Population of the Place with an Area (km 2) larger than 498.77? | SELECT COUNT("Population") FROM table_65360 WHERE "Area (km 2 )" > '498.77' | 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 who had a procedure titled spinal tap that were admitted before the year 2190. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admityear < "2190" AND procedures.long_title = "Spinal tap" | mimicsql_data |
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... | Are undergrads able to take 587 ? | SELECT DISTINCT advisory_requirement, enforced_requirement, name FROM course WHERE department = 'EECS' AND number = 587 | advising |
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int... | Show me courses that incorporate Preliminary Exam and Viscous Flow . | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN area ON course.course_id = area.course_id WHERE (area.area LIKE '%Viscous Flow%' OR course.description LIKE '%Viscous Flow%' OR course.name LIKE '%Viscous Flow%') AND (area.area LIKE '%Preliminary Exam%' OR course.description LIKE '%Pr... | advising |
CREATE TABLE table_name_60 (
year VARCHAR,
ratt VARCHAR,
comp VARCHAR
) | What year has a RAtt of 1 and a comp of 49? | SELECT year FROM table_name_60 WHERE ratt = "1" AND comp = "49" | sql_create_context |
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,... | how many patients whose admission type is emergency and diagnoses long title is morbid obesity? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.long_title = "Morbid obesity" | mimicsql_data |
CREATE TABLE table_40776 (
"Ballarat FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | What is the lowest number of Against that Lake Wendouree had when they had more than 7 Losses? | SELECT MIN("Against") FROM table_40776 WHERE "Ballarat FL" = 'lake wendouree' AND "Losses" > '7' | 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
)
... | how many patients whose gender is m and drug code is metr500pm? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "M" AND prescriptions.formulary_drug_cd = "METR500PM" | mimicsql_data |
CREATE TABLE table_54367 (
"Season" text,
"Winner" text,
"Team" text,
"Position" text,
"Win #" real
) | Which position was morristown minutemen in? | SELECT "Position" FROM table_54367 WHERE "Team" = 'morristown minutemen' | wikisql |
CREATE TABLE table_16527640_2 (
vfl_club_s_ VARCHAR,
rank_held_at_time_of_death VARCHAR
) | What vfl club(s) for players ranked sergeant, 8th brigade australian field artillery at time of death? | SELECT vfl_club_s_ FROM table_16527640_2 WHERE rank_held_at_time_of_death = "Sergeant, 8th Brigade Australian Field Artillery" | sql_create_context |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | For those records from the products and each product's manufacturer, return a scatter chart about the correlation between manufacturer and code . | SELECT T1.Manufacturer, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code | nvbench |
CREATE TABLE domain (
did int,
name varchar
)
CREATE TABLE cite (
cited int,
citing int
)
CREATE TABLE keyword (
keyword varchar,
kid int
)
CREATE TABLE journal (
homepage varchar,
jid int,
name varchar
)
CREATE TABLE writes (
aid int,
pid int
)
CREATE TABLE domain_publi... | return me the total citations of all the papers in the VLDB conference . | SELECT SUM(publication.citation_num) FROM conference, publication WHERE conference.name = 'VLDB' AND publication.cid = conference.cid | academic |
CREATE TABLE table_name_22 (
surface VARCHAR,
tournament VARCHAR
) | What surface was the citt di caltanissetta played on? | SELECT surface FROM table_name_22 WHERE tournament = "città di caltanissetta" | sql_create_context |
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
)
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
) | Give me a histogram for how many workshops did each author submit to? Return the author name and the number of workshops, order in descending by the y axis. | SELECT Author, COUNT(DISTINCT T1.Workshop_ID) FROM Acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY COUNT(DISTINCT T1.Workshop_ID) DESC | nvbench |
CREATE TABLE Addresses (
address_id INTEGER,
address_details VARCHAR(255)
)
CREATE TABLE Departments (
department_id INTEGER,
dept_store_id INTEGER,
department_name VARCHAR(80)
)
CREATE TABLE Staff_Department_Assignments (
staff_id INTEGER,
department_id INTEGER,
date_assigned_from DAT... | Give me a bar chart showing the number of products supplied by supplier id 3 for different product type code, display by the y-axis in ascending. | SELECT product_type_code, COUNT(product_type_code) 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 COUNT(product_type_code) | nvbench |
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 days have elapsed since the first time patient 035-24054 had a lr intake on the current icu visit? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', 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 =... | eicu |
CREATE TABLE table_59584 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | What is the score of the game with a 3-0 record? | SELECT "Score" FROM table_59584 WHERE "Record" = '3-0' | wikisql |
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE treatment (
... | since 08/2103, what was the monthly average value of the -monos of patient 012-31116? | SELECT AVG(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 = '012-31116')) AND lab.labname = '-monos' AND STRFTIME('%y-%m', lab.labresulttime) >... | eicu |
CREATE TABLE fgwyjzb (
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,
... | 在编号为3775508的医院中根据入院诊断疾病名称算出不同疾病的平均患者年龄在多少岁呢? | SELECT gwyjzb.IN_DIAG_DIS_NM, AVG(gwyjzb.PERSON_AGE) FROM gwyjzb WHERE gwyjzb.MED_SER_ORG_NO = '3775508' GROUP BY gwyjzb.IN_DIAG_DIS_NM UNION SELECT fgwyjzb.IN_DIAG_DIS_NM, AVG(fgwyjzb.PERSON_AGE) FROM fgwyjzb WHERE fgwyjzb.MED_SER_ORG_NO = '3775508' GROUP BY fgwyjzb.IN_DIAG_DIS_NM | css |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDat... | Question Score June 2012, with Vote Creation Date. | SELECT SUM(CASE Votes.VoteTypeId WHEN 2 THEN 1 ELSE 0 END) - SUM(CASE Votes.VoteTypeId WHEN 3 THEN 1 ELSE 0 END) AS score, Users.DisplayName FROM Posts INNER JOIN Users ON Users.Id = Posts.OwnerUserId INNER JOIN Votes ON Votes.PostId = Posts.Id WHERE PostTypeId = 1 AND Posts.CreationDate BETWEEN '2012-06-01' AND '2012-... | sede |
CREATE TABLE table_name_9 (
Id VARCHAR
) | What is the 2010 with a qf in 2011? | SELECT 2010 FROM table_name_9 WHERE 2011 = "qf" | sql_create_context |
CREATE TABLE procedures (
code number,
name text,
cost number
)
CREATE TABLE on_call (
nurse number,
blockfloor number,
blockcode number,
oncallstart time,
oncallend time
)
CREATE TABLE block (
blockfloor number,
blockcode number
)
CREATE TABLE trained_in (
physician numbe... | List the name and cost of all procedures sorted by the cost from the highest to the lowest. | SELECT name, cost FROM procedures ORDER BY cost DESC | spider |
CREATE TABLE bank (
branch_id number,
bname text,
no_of_customers number,
city text,
state text
)
CREATE TABLE customer (
cust_id text,
cust_name text,
acc_type text,
acc_bal number,
no_of_loans number,
credit_score number,
branch_id number,
state text
)
CREATE TABL... | Find the name and account balance of the customer whose name includes the letter a . | SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%' | spider |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
... | Posts with [ibm] that don't have any product-specific tags. | SELECT p.Id AS "post_link", p.CreationDate AS "creation_date", p.Tags FROM Posts AS p LEFT JOIN PostTags AS pt ON p.Id = pt.PostId LEFT JOIN Tags AS t ON pt.TagId = t.Id WHERE t.TagName = 'ibm' AND NOT EXISTS(SELECT t2.Id FROM PostTags AS pt2 LEFT JOIN Tags AS t2 ON pt2.TagId = t2.Id WHERE p.Id = pt2.PostId AND t2.TagN... | sede |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... | how many dead patients had diagnoses of methicillin susceptible pneumonia due to staphylococcus aureus? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.short_title = "Meth sus pneum d/t Staph" | mimicsql_data |
CREATE TABLE table_216776_2 (
municipality VARCHAR,
pop_density__per_km²_ VARCHAR
) | In what municipality were there 757.5 people per km2? | SELECT municipality FROM table_216776_2 WHERE pop_density__per_km²_ = "757.5" | sql_create_context |
CREATE TABLE table_70545 (
"Production year" text,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real
) | What is the average 2001 value with a 2010 value greater than 414, a 2011 value of 7192, and a 2005 value larger than 7340? | SELECT AVG("2001") FROM table_70545 WHERE "2010" > '414' AND "2011" = '7192' AND "2005" > '7340' | wikisql |
CREATE TABLE table_28363 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Vessel Type" text,
"Vessel Operator" text,
"Narrated by" text,
"Original air date" real
) | What is the vessel type for vessel operator Jumbo shipping? | SELECT "Vessel Type" FROM table_28363 WHERE "Vessel Operator" = 'Jumbo Shipping' | 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 diagnoses (
... | give me the number of patients whose admission year is less than 2180 and item id is 50927? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2180" AND lab.itemid = "50927" | mimicsql_data |
CREATE TABLE table_40905 (
"Block" text,
"Launched" real,
"Operational" real,
"Not usable" real,
"Retired" real,
"Launch Failures" real
) | What is the total launch failures when there are 4 launches, and the not usable is greater than 0? | SELECT SUM("Launch Failures") FROM table_40905 WHERE "Launched" = '4' AND "Not usable" > '0' | wikisql |
CREATE TABLE table_name_34 (
opponent VARCHAR,
week VARCHAR
) | Who was the opponent in week 3? | SELECT opponent FROM table_name_34 WHERE week = 3 | sql_create_context |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_typ... | did any microbiology tests have been done for patient 10765 in 03/last year? | SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10765) AND DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', microbiologyevents.chartti... | mimic_iii |
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
... | Next Spring-Summer which upper level electives will be up for taking any time after 18:45 A.M. ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program_course, semester WHERE course_offering.start_time > '18:45' AND course.course_id = course_offering.course_id AND program_course.category LIKE '%ULCS%' AND program_course.course_id = course.course_id AND semester.semester... | advising |
CREATE TABLE table_73726 (
"Stage" real,
"Winner" text,
"General Classification" text,
"Youth Classification" text,
"Mountains Classification" text,
"Sprint Classification" text,
"Most Courageous" text,
"Team Classification" text
) | When Yaroslav Popovych won most corageous, who won the mountains classification? | SELECT "Mountains Classification" FROM table_73726 WHERE "Most Courageous" = 'Yaroslav Popovych' | wikisql |
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
... | what is the average value of ptt in patient 55503's body in 11/last year? | SELECT AVG(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 55503) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'ptt') AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT... | mimic_iii |
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 those employees who did not have any job in the past, give me the comparison about the amount of job_id over the job_id , and group by attribute job_id by a bar chart, and could you rank X-axis in desc order? | SELECT JOB_ID, COUNT(JOB_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_50787 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | What is the sum of Round(s), when Method is 'Submission (Banana Split)'? | SELECT SUM("Round") FROM table_50787 WHERE "Method" = 'submission (banana split)' | wikisql |
CREATE TABLE products (
product_id number,
color_code text,
product_category_code text,
product_name text,
typical_buying_price text,
typical_selling_price text,
product_description text,
other_product_details text
)
CREATE TABLE characteristics (
characteristic_id number,
chara... | How many characteristics are there? | SELECT COUNT(*) FROM characteristics | spider |
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE instructor (
ID varcha... | How many courses have more than one prerequisite for each department? Visualize with a bar chart, and order x-axis in desc order. | SELECT dept_name, COUNT(dept_name) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY dept_name ORDER BY dept_name DESC | nvbench |
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE time_interval (
period text,
begin_time in... | i would like a flight that leaves on sunday from MONTREAL QUEBEC to SAN DIEGO CALIFORNIA | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight, state AS STATE_0, state AS STATE_1 WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN DIEGO' AND date_day.day_number = ... | atis |
CREATE TABLE table_name_31 (
d_42 VARCHAR,
d_47 VARCHAR
) | What is the D42 associated with a D47 of d 27? | SELECT d_42 FROM table_name_31 WHERE d_47 = "d 27" | sql_create_context |
CREATE TABLE table_name_63 (
winner VARCHAR,
series VARCHAR
) | Who was the winner for ASTC round 8? | SELECT winner FROM table_name_63 WHERE series = "astc round 8" | sql_create_context |
CREATE TABLE table_76473 (
"Round" real,
"Selection" real,
"Player" text,
"Position" text,
"College" text
) | Which Position has a Round larger than 5, and a Selection of 168? | SELECT "Position" FROM table_76473 WHERE "Round" > '5' AND "Selection" = '168' | wikisql |
CREATE TABLE Customer_Addresses (
customer_id INTEGER,
address_id INTEGER,
date_from DATETIME,
date_to DATETIME
)
CREATE TABLE Department_Store_Chain (
dept_store_chain_id INTEGER,
dept_store_chain_name VARCHAR(80)
)
CREATE TABLE Order_Items (
order_item_id INTEGER,
order_id INTEGER,
... | Return a histogram on what are the names and ids of customers whose address contains TN?, rank bar in ascending order. | SELECT customer_name, customer_id FROM Customers WHERE customer_address LIKE "%TN%" ORDER BY customer_name | nvbench |
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... | the patient must be at least 18 _ 80 years of age. | SELECT * FROM table_test_24 WHERE age >= 18 AND age <= 80 | criteria2sql |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TI... | For those employees who was hired before 2002-06-21, draw a scatter chart about the correlation between salary and department_id . | SELECT SALARY, DEPARTMENT_ID FROM employees WHERE HIRE_DATE < '2002-06-21' | nvbench |
CREATE TABLE table_11713303_2 (
date_of_vacancy VARCHAR,
date_of_appointment VARCHAR,
manner_of_departure VARCHAR
) | What is the date of vacancy for 10 december 2007 when quit? | SELECT date_of_vacancy FROM table_11713303_2 WHERE date_of_appointment = "10 December 2007" AND manner_of_departure = "Quit" | sql_create_context |
CREATE TABLE table_57655 (
"Year" real,
"Award" text,
"Category" text,
"Nominee" text,
"Result" text
) | Which category was Gene Barry nominated in? | SELECT "Category" FROM table_57655 WHERE "Result" = 'nominated' AND "Nominee" = 'gene barry' | wikisql |
CREATE TABLE table_37077 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s) up" text
) | What is the margin of victory in WGC-Accenture Match Play Championship? | SELECT "Margin of victory" FROM table_37077 WHERE "Tournament" = 'wgc-accenture match play championship' | wikisql |
CREATE TABLE table_55564 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
) | Which college has a pick below 6 for the PBA team the Shell Turbo Chargers? | SELECT "College" FROM table_55564 WHERE "Pick" < '6' AND "PBA team" = 'shell turbo chargers' | wikisql |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | 编号为07717128027的这个住院就诊中,出院状态对应的编码是什么 | SELECT wdmzjzjlb.CYZTDM FROM wdmzjzjlb WHERE wdmzjzjlb.JZLSH = '07717128027' UNION SELECT bdmzjzjlb.CYZTDM FROM bdmzjzjlb WHERE bdmzjzjlb.JZLSH = '07717128027' | css |
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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
cha... | since 2 years ago what are the three most commonly ordered specimen tests? | SELECT t1.spec_type_desc FROM (SELECT microbiologyevents.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM microbiologyevents WHERE DATETIME(microbiologyevents.charttime) >= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY microbiologyevents.spec_type_desc) AS t1 WHERE t1.c1 <= 3 | mimic_iii |
CREATE TABLE table_26166836_1 (
location VARCHAR,
road_race VARCHAR
) | Where was the istanbul marathon? | SELECT location FROM table_26166836_1 WHERE road_race = "Istanbul Marathon" | sql_create_context |
CREATE TABLE table_3265 (
"Season #" real,
"Title Italian" text,
"Title English" text,
"Directed by" text,
"Original air date" text
) | Name the least season number for two marriage proposals | SELECT MIN("Season #") FROM table_3265 WHERE "Title English" = 'Two marriage proposals' | wikisql |
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 admission type and drug type of subject id 52012? | SELECT demographic.admission_type, prescriptions.drug_type FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "52012" | mimicsql_data |
CREATE TABLE table_2228 (
"Year" real,
"Fowler" real,
"Stanier, 3 cylinder" real,
"Stanier, 2 cylinder" real,
"Fairburn" real,
"BR Standard" real,
"Total" real
) | What is tops for Folwer? | SELECT MAX("Fowler") FROM table_2228 | wikisql |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),... | For those employees who was hired before 2002-06-21, show me about the change of employee_id over hire_date in a line chart, order X-axis in descending order. | SELECT HIRE_DATE, EMPLOYEE_ID FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE DESC | nvbench |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | 从17年2月5日到17年6月4日之间医院0863027在门诊就诊中开出检验报告单数量少于13张的有多少个科室? | SELECT COUNT(*) FROM (SELECT jybgb.KSBM FROM txmzjzjlb JOIN jybgb ON txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE txmzjzjlb.YLJGDM = '0863027' AND jybgb.BGRQ BETWEEN '2017-02-05' AND '2017-06-04' GROUP BY jybgb.KSBM HAVING COUNT(*) < 13 UNION SELECT jybgb.KSBM FROM ftxmzjzjlb ... | css |
CREATE TABLE table_1557752_1 (
platelet_count VARCHAR,
condition VARCHAR
) | What is the condition of the platelet counts in hemophilia? | SELECT platelet_count FROM table_1557752_1 WHERE condition = "Hemophilia" | sql_create_context |
CREATE TABLE Office_locations (
building_id int,
company_id int,
move_in_year int
)
CREATE TABLE buildings (
id int,
name text,
City text,
Height int,
Stories int,
Status text
)
CREATE TABLE Companies (
id int,
name text,
Headquarters text,
Industry text,
Sales_... | Plot the total number by grouped by industry as a bar graph, and sort in ascending by the Industry. | SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry ORDER BY Industry | nvbench |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
... | had patient 9038 gone through a sm bowel endoscopy nec procedure during the first hospital encounter? | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'sm bowel endoscopy nec') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9038 AND NOT admissions.... | mimic_iii |
CREATE TABLE table_28697228_4 (
total_offense INTEGER,
opponent VARCHAR
) | What is the number of total offense when the opponentis Penn State? | SELECT MAX(total_offense) FROM table_28697228_4 WHERE opponent = "Penn State" | sql_create_context |
CREATE TABLE table_name_25 (
cws_best_finish VARCHAR,
head_coach VARCHAR
) | What was Head Coach Jim Morris's best finish? | SELECT cws_best_finish FROM table_name_25 WHERE head_coach = "jim morris" | sql_create_context |
CREATE TABLE Player (
pName VARCHAR,
HS INTEGER
) | What are the names of players whose training hours is between 500 and 1500? | SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500 | sql_create_context |
CREATE TABLE table_name_32 (
away_team VARCHAR,
home_team VARCHAR
) | When north melbourne was the home team who was the Away team? | SELECT away_team FROM table_name_32 WHERE home_team = "north melbourne" | sql_create_context |
CREATE TABLE table_51900 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) | Which NBA draft has a School of st. mary's high school? | SELECT "NBA Draft" FROM table_51900 WHERE "School" = 'st. mary''s high school' | wikisql |
CREATE TABLE Aircraft (
distance INTEGER
) | How many aircrafts have distance between 1000 and 5000? | SELECT COUNT(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000 | sql_create_context |
CREATE TABLE table_name_95 (
home_team VARCHAR,
venue VARCHAR
) | Who is the home team who plays at Glenferrie Oval? | SELECT home_team FROM table_name_95 WHERE venue = "glenferrie oval" | sql_create_context |
CREATE TABLE table_72766 (
"School" text,
"Record" text,
"Conference" text,
"Conf. record" text,
"Seed" text,
"Round eliminated" text,
"Lost to (Seed)" text
) | Name the school where conference record is 12-6 | SELECT "School" FROM table_72766 WHERE "Conf. record" = '12-6' | wikisql |
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)... | what is the number of days that have passed since the first time patient 022-187132 received a enteral isosource intake on the current intensive care unit visit? | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', 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 =... | eicu |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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,
JOB_ID varchar(10),
... | Just show the first name of the employee and list their manager's id in the Y-axis of the bar chart, I want to order in ascending by the Y-axis please. | SELECT FIRST_NAME, MANAGER_ID FROM employees ORDER BY MANAGER_ID | nvbench |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostLinks (
Id number,
Crea... | Top Questions Without An Answer With A Tag. | SELECT q.Score, q.Id AS "post_link", q.OwnerUserId AS "user_link" FROM Posts AS q WHERE q.AnswerCount = 0 AND q.PostTypeId = @question AND q.ClosedDate IS NULL ORDER BY q.Score DESC LIMIT 25 | sede |
CREATE TABLE table_35507 (
"Dish" text,
"Callsign" text,
"Network" text,
"Resolution" text,
"City of License" text,
"Official Website" text
) | What is the resolution of the network Canal de las Estrellas? | SELECT "Resolution" FROM table_35507 WHERE "Network" = 'canal de las estrellas' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.