context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_13018091_1 (
won VARCHAR,
pts_for VARCHAR
) | How many teams scored 616 points? | SELECT COUNT(won) FROM table_13018091_1 WHERE pts_for = 616 | sql_create_context |
CREATE TABLE table_33285 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What was the largest crowd when the home team scored 14.7 (91)? | SELECT MAX("Crowd") FROM table_33285 WHERE "Home team score" = '14.7 (91)' | wikisql |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | 诊断门诊诊断31016439849的中医编号以及名称各是什么? | SELECT wdmzjzjlb.MZZYZDZZBM, wdmzjzjlb.MZZYZDZZMC FROM wdmzjzjlb WHERE wdmzjzjlb.JZLSH = '31016439849' UNION SELECT bdmzjzjlb.MZZYZDZZBM, bdmzjzjlb.MZZYZDZZMC FROM bdmzjzjlb WHERE bdmzjzjlb.JZLSH = '31016439849' | 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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
... | how many patients have received contrast arteriogram nec during the same hospital encounter after the first treatment of infusion of vasopressor? | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_... | mimic_iii |
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayNa... | Last answers with figures hoster on imgur.com. | SELECT Score, Id AS "post_link" FROM Posts WHERE Body LIKE '%<img src%' AND ParentId > 0 ORDER BY LastEditDate DESC | sede |
CREATE TABLE table_name_13 (
elevated VARCHAR,
nationality VARCHAR
) | When was the elector from pisa elevated? | SELECT elevated FROM table_name_13 WHERE nationality = "pisa" | 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 bar chart about the distribution of name and the amount of name , and group by attribute name. | SELECT T1.Name, COUNT(T1.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name | nvbench |
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE journal (
journalid int,
journalname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE venue (
venueid int,
venuename var... | papers written by srinivasan iyer | SELECT DISTINCT writes.paperid FROM author, writes WHERE author.authorname = 'srinivasan iyer' AND writes.authorid = author.authorid | scholar |
CREATE TABLE table_48347 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
) | What is the total number of Total, when To Par is '7'? | SELECT COUNT("Total") FROM table_48347 WHERE "To par" = '7' | wikisql |
CREATE TABLE table_name_2 (
tournament VARCHAR
) | what is the 2011 performance for the US open? | SELECT 2011 FROM table_name_2 WHERE tournament = "us open" | sql_create_context |
CREATE TABLE table_5972 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) | Team of honda 250cc, and a Rank larger than 2, and a Rider of chris palmer is what time? | SELECT "Time" FROM table_5972 WHERE "Team" = 'honda 250cc' AND "Rank" > '2' AND "Rider" = 'chris palmer' | 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,
... | 在11年3月24日到16年7月23日这段时间,患者陶展鹏一共有多少检验报告单,把这些检验报告单的审核日期列出来 | SELECT jybgb.SHSJ FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = '陶展鹏' AND jybg... | css |
CREATE TABLE table_name_26 (
country VARCHAR,
rank VARCHAR,
time VARCHAR
) | What is the Country of the Rowers with a Rank larger than 4 and Time of 5:59.56? | SELECT country FROM table_name_26 WHERE rank > 4 AND time = "5:59.56" | sql_create_context |
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 (
... | specify the diagnosis long title for icd9 code 23875 | SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "23875" | mimicsql_data |
CREATE TABLE table_26572 (
"Processor" text,
"Brand name" text,
"Model (list)" text,
"Cores" real,
"L2 Cache" text,
"Socket" text,
"TDP" text
) | What is the brand name associated with the model named e4xxx? | SELECT "Brand name" FROM table_26572 WHERE "Model (list)" = 'E4xxx' | wikisql |
CREATE TABLE table_32192 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What is the home team's score at kardinia park? | SELECT "Home team score" FROM table_32192 WHERE "Venue" = 'kardinia park' | wikisql |
CREATE TABLE table_46866 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | What is Score, when Competition is 'Euro 2004 Qualifier'? | SELECT "Score" FROM table_46866 WHERE "Competition" = 'euro 2004 qualifier' | wikisql |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | what is days of hospital stay and drug route of subject name darlene martin? | SELECT demographic.days_stay, prescriptions.route FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Darlene Martin" | mimicsql_data |
CREATE TABLE table_name_28 (
audio VARCHAR,
just_ratio VARCHAR
) | what is the value of the audio with a just ratio 21:20 | SELECT audio FROM table_name_28 WHERE just_ratio = "21:20" | sql_create_context |
CREATE TABLE table_name_64 (
total_goals VARCHAR,
league_cup_apps VARCHAR,
fa_cup_goals VARCHAR
) | What is the goals number of goals for the player who had 2 league cup apps and 0 FA cup goals? | SELECT COUNT(total_goals) FROM table_name_64 WHERE league_cup_apps = "2" AND fa_cup_goals < 0 | 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... | At what point will Practicum Kines be offered ? | SELECT DISTINCT semester.semester, semester.year FROM semester INNER JOIN course_offering ON semester.semester_id = course_offering.semester INNER JOIN course ON course.course_id = course_offering.course_id WHERE course.name LIKE '%Practicum Kines%' AND semester.semester_id > (SELECT SEMESTERalias1.semester_id FROM sem... | advising |
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),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
... | For those employees who was hired before 2002-06-21, give me the comparison about the amount of hire_date over the hire_date bin hire_date by weekday, could you list by the Y in descending? | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY COUNT(HIRE_DATE) DESC | nvbench |
CREATE TABLE table_19764 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
) | Where did the team play the Detroit Lions? | SELECT "Game Site" FROM table_19764 WHERE "Opponent" = 'Detroit Lions' | wikisql |
CREATE TABLE table_178398_1 (
year_built INTEGER,
location_of_the_church VARCHAR
) | What is the year that the oldest church was built in Jostedal? | SELECT MIN(year_built) FROM table_178398_1 WHERE location_of_the_church = "Jostedal" | sql_create_context |
CREATE TABLE table_name_60 (
pal_b VARCHAR,
g VARCHAR,
h VARCHAR,
pal_i VARCHAR
) | What is the PAL B, G, H for the PAL I 4.43361875mhz? | SELECT pal_b, g, h FROM table_name_60 WHERE pal_i = "4.43361875mhz" | sql_create_context |
CREATE TABLE table_203_723 (
id number,
"year" number,
"song" text,
"us hot 100" number,
"us msr" number,
"us a.c." number,
"can" number,
"uk singles" number,
"album" text
) | what was the first song to be in the top ten of the us hot 100 list ? | SELECT "song" FROM table_203_723 WHERE "us hot 100" < 10 ORDER BY "year" LIMIT 1 | squall |
CREATE TABLE zyjzjlb_jybgb (
YLJGDM_ZYJZJLB text,
BGDH number,
YLJGDM number
)
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 te... | 患者编号为99506528136在治疗的时候名中没管镜的科室开了编号为什么的检验报告单? | SELECT jybgb.BGDH FROM jybgb WHERE jybgb.JZLSH = '99506528136' AND NOT jybgb.KSMC LIKE '%管镜%' | css |
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_... | what is the seating capacity of a BOEING 767 | SELECT DISTINCT aircraft_code FROM aircraft WHERE basic_type = '767' AND manufacturer = 'BOEING' | atis |
CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num... | Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes' by a bar chart, and could you order in asc by the x axis? | SELECT Name, AVG(Num_Employees) FROM department AS T1 JOIN management AS T2 ON T1.department_ID = T2.department_ID WHERE T2.temporary_acting = 'Yes' GROUP BY Name ORDER BY Name | nvbench |
CREATE TABLE table_name_1 (
bookmarking VARCHAR,
_tagging VARCHAR,
_rating_and_comments VARCHAR,
name VARCHAR,
web_publishing VARCHAR,
list_management VARCHAR,
charting VARCHAR
) | WHAT IS THE BOOKMARKING, TAGGING, RATING AND COMMENTS WITH NO LIST MANAGEMENT, NO CHARTING, NO WEB PUBLISHING, OF MICROSOFT EXCHANGE SERVER? | SELECT bookmarking, _tagging, _rating_and_comments FROM table_name_1 WHERE list_management = "no" AND charting = "no" AND web_publishing = "no" AND name = "microsoft exchange server" | sql_create_context |
CREATE TABLE table_40739 (
"City/State" text,
"Members" text,
"Team" text,
"First round" text,
"Final round" text
) | What was the final round value for member Chris Webber? | SELECT "Final round" FROM table_40739 WHERE "Members" = 'chris webber' | wikisql |
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
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,
admittime time,
dischtime t... | what time was the last time that patient 9241 was prescribed medicine during the first hospital encounter? | SELECT prescriptions.startdate FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9241 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1) ORDER BY prescriptions.startdate DESC LIMIT 1 | mimic_iii |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id... | give me the number of patients whose admission location is trsf within this facility and lab test fluid is pleural? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND lab.fluid = "Pleural" | mimicsql_data |
CREATE TABLE table_name_31 (
years VARCHAR,
name VARCHAR
) | What are asashio's years? | SELECT years FROM table_name_31 WHERE name = "asashio" | sql_create_context |
CREATE TABLE table_47011 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
) | What was the method of resolution when LaVerne Clark's record was 23-16-1? | SELECT "Method" FROM table_47011 WHERE "Record" = '23-16-1' | wikisql |
CREATE TABLE table_name_30 (
population__2010_11_01_ VARCHAR,
hanzi VARCHAR
) | What is the population for the area that has a Hanzi of ? | SELECT population__2010_11_01_ FROM table_name_30 WHERE hanzi = "延寿县" | sql_create_context |
CREATE TABLE table_203_394 (
id number,
"title" text,
"author" text,
"date" number,
"length\n(first edition)" text
) | which author had all of his titles ' first edition lengths above 300 pp ? | SELECT "author" FROM table_203_394 GROUP BY "author" HAVING MIN("length\n(first edition)") > 300 | squall |
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 products with a price between 60 and 120, return a bar chart about the distribution of name and price , I want to display bars in asc order. | SELECT Name, Price FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Name | nvbench |
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE fligh... | i want information on flights from ATLANTA to WASHINGTON i want to leave after 1600 on wednesday or before 900 on thursday | 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 WHERE ((date_day.day_number = 24 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.departure_time... | atis |
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 zyjybgb (
BBCJBW text,
BBDM t... | 二零零二年三月二十五号之后患者18605753的住院就诊记录对应的检验报告单都有哪些都是什么住院就诊流水号? | SELECT zyjzjlb.JZLSH FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE hz_info.RYBH = '18605753' AND NOT zyjzjlb.JZLSH IN (SELECT zyjybgb.JZLSH FROM zyjybgb WHERE zyjybgb.BGRQ <= '2020-03-25' UNION SELECT mzjybgb.JZLSH FROM mzjybgb WHERE mzjybgb... | css |
CREATE TABLE table_name_9 (
year VARCHAR,
score VARCHAR
) | How many years had a score of 734-5d? | SELECT COUNT(year) FROM table_name_9 WHERE score = "734-5d" | sql_create_context |
CREATE TABLE table_name_12 (
earnings___ INTEGER,
rank INTEGER
) | Which Earnings ($) is the lowest one that has a Rank smaller than 1? | SELECT MIN(earnings___) AS $__ FROM table_name_12 WHERE rank < 1 | sql_create_context |
CREATE TABLE table_22493 (
"Athlete" text,
"Class" text,
"Event" text,
"Round of 64" text,
"Round of 32" text,
"Round of 16" text,
"Quarterfinals" text,
"Semifinals" text,
"Final/ Bronze medal match" text
) | When in round of 16 it was did not advance what was it in round of 32? | SELECT "Round of 32" FROM table_22493 WHERE "Round of 16" = 'Did not advance' | 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 diagnosis (
diagnosisid number,
... | what are the top three most prescribed drugs for patients 60 or above since 2 years ago? | SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age >= 60) AND DATETIME(medication.drugstarttime) >= DATETIME(CURRENT_TIME(), '-2 year') GROUP BY medic... | eicu |
CREATE TABLE table_36772 (
"Call sign" text,
"Frequency" text,
"City of license" text,
"Facility ID" real,
"ERP / Power W" real,
"Height m ( ft )" text,
"Class" text
) | Which Frequency has a Facility ID of 13598? | SELECT "Frequency" FROM table_36772 WHERE "Facility ID" = '13598' | wikisql |
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE writes (
paperid int,
authorid int
... | does Li Dong or Luke Zettlemoyer have more papers ? | SELECT DISTINCT author.authorname, COUNT(writes.paperid) FROM author, writes WHERE author.authorname IN ('Li Dong', 'Luke Zettlemoyer') AND writes.authorid = author.authorid GROUP BY author.authorname ORDER BY COUNT(writes.paperid) DESC | scholar |
CREATE TABLE table_name_32 (
producer VARCHAR,
director VARCHAR
) | What is Director Bona Fajardo's Producer? | SELECT producer FROM table_name_32 WHERE director = "bona fajardo" | sql_create_context |
CREATE TABLE table_name_29 (
team VARCHAR,
division VARCHAR,
home_arena VARCHAR
) | Which team is in the Southeast with a home at Philips Arena? | SELECT team FROM table_name_29 WHERE division = "southeast" AND home_arena = "philips arena" | sql_create_context |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE person_info (
RYBH text,
XBDM number,
XBMC text,
XM text,
CSRQ time,
CSD text,
MZDM text,
MZMC text,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
XLDM text,
XLMC text... | 两千年十一月九日到二零一五年三月十七日,310科室的门诊数量情况 | SELECT COUNT(*) FROM mzjzjlb WHERE JZKSBM = '310' AND JZKSRQ BETWEEN '2000-11-09' AND '2015-03-17' | css |
CREATE TABLE table_203_506 (
id number,
"opponent" text,
"played" number,
"won" number,
"lost" number,
"drawn" number,
"% won overall" text
) | what is the total number of games played by all teams ? | SELECT SUM("played") FROM table_203_506 | squall |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text,
person_info_CSD text,
person_info_CSRQ time,
person_info_GJDM text,
person_info_GJMC text,
person_info_JGDM text,
person_info_JGMC text,
person_info_MZDM text,
person_info_MZMC text,
person_info_XBDM ... | 张天蓝这个患者之前看病的医院在哪 | SELECT mzjzjlb.YLJGDM FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.person_info_XM = '张天蓝' UNION SELECT zyjzjlb.YLJGDM FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb... | css |
CREATE TABLE table_17066 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | What position belonged to the player from Paramus, New Jersey? | SELECT "Position" FROM table_17066 WHERE "Hometown" = 'Paramus, New Jersey' | wikisql |
CREATE TABLE table_name_31 (
result VARCHAR,
date VARCHAR
) | Which result has a Date of 2007-08-22? | SELECT result FROM table_name_31 WHERE date = "2007-08-22" | sql_create_context |
CREATE TABLE table_name_68 (
fuel_system VARCHAR,
displacement VARCHAR
) | Which fuel system has a displacement of 1490cc? | SELECT fuel_system FROM table_name_68 WHERE displacement = "1490cc" | sql_create_context |
CREATE TABLE table_name_89 (
top_5 INTEGER,
events VARCHAR,
cuts_made VARCHAR,
tournament VARCHAR
) | What is the average value for Top-5, when the value Cuts is 5, and when the tournament is the Open Championship, and when the value Events is less than 6? | SELECT AVG(top_5) FROM table_name_89 WHERE cuts_made = 5 AND tournament = "the open championship" AND events < 6 | sql_create_context |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | 47601904病患的药品消费高于871.18元的医疗记录有哪几次?整理出医疗就诊编号 | SELECT gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_ID = '47601904' AND NOT gwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT <= 871.18) UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '47601904' AND NOT fgwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLI... | css |
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... | 在那个号码是4285739医院从04年12月12日到05年4月19日这几个月开出的检验报告单中检测指标名称和检测指标结果定量单位都不同的时候,检测指标结果定量值的平均数最小的前俩数是多些? | SELECT jyjgzbb.JCZBMC, jyjgzbb.JCZBJGDW, AVG(jyjgzbb.JCZBJGDL) FROM jyjgzbb JOIN jybgb_jyjgzbb JOIN jybgb ON jybgb_jyjgzbb.JYZBLSH = jyjgzbb.JYZBLSH AND jybgb_jyjgzbb.jyjgzbb_id = jyjgzbb.jyjgzbb_id AND jybgb_jyjgzbb.YLJGDM = jybgb.YLJGDM WHERE jybgb.YLJGDM = '4285739' AND jyjgzbb.BGRQ BETWEEN '2004-12-12' AND '2005-04... | css |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,... | how many days has it been since patient 013-38992 first had a hypertonic saline administration on the current hospital visit. | SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', treatment.treatmenttime)) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '013-38992'... | eicu |
CREATE TABLE table_203_857 (
id number,
"denomination" text,
"1870" text,
"1880" text,
"1890" text,
"1900" text,
"1910" text,
"1920" text,
"1930" text,
"1941" text,
"1949" text,
"2001" text,
"2011" text
) | what is the largest religious denomination in budapest ? | SELECT "denomination" FROM table_203_857 ORDER BY "1870" DESC LIMIT 1 | squall |
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,... | can you show me what flights are available on 12 16 going from OAKLAND to DALLAS | 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 WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND date_day.day_number = 16 AND date_day.month_number = 12 AND d... | atis |
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
... | How Many of My Answers Have Been Accepted?. Returns the number of accepted answers for a given User ID on Stack Overflow. | SELECT COUNT(*) AS "#_of_accepted_answers" FROM Posts AS q INNER JOIN Posts AS a ON q.AcceptedAnswerId = a.Id WHERE a.OwnerUserId = '##UserId##' | sede |
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 cost (
costid number,
uniquepid text,... | in 07/this year was sodium chloride 0.9 % iv soln prescribed to patient 030-84846? | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '030-84846')) AND medication.drugname = 'sodium chloride 0.9 % iv soln' AND... | eicu |
CREATE TABLE table_name_73 (
ag VARCHAR,
transmitter VARCHAR,
d3 VARCHAR
) | What is the A.G. value associated with D3&4 of 46 and transmitter of Seaham? | SELECT ag FROM table_name_73 WHERE d3 & 4 = "46" AND transmitter = "seaham" | sql_create_context |
CREATE TABLE submission (
Submission_ID int,
Scores real,
Author text,
College text
)
CREATE TABLE Acceptance (
Submission_ID int,
Workshop_ID int,
Result text
)
CREATE TABLE workshop (
Workshop_ID int,
Date text,
Venue text,
Name text
) | Draw a bar chart that counts the number of venues of each workshop, and rank by the Y-axis in descending. | SELECT Venue, COUNT(Venue) FROM workshop GROUP BY Venue ORDER BY COUNT(Venue) DESC | nvbench |
CREATE TABLE table_13506 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
) | What is the Heat of the 34 Rank swimmer with a Time of 49.49 or less? | SELECT AVG("Heat") FROM table_13506 WHERE "Rank" = '34' AND "Time" < '49.49' | wikisql |
CREATE TABLE table_name_3 (
laps VARCHAR,
qual VARCHAR
) | How many laps were there for the car with a qual of 138.750? | SELECT laps FROM table_name_3 WHERE qual = "138.750" | sql_create_context |
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,
... | what is the average hospital cost when it involves pleural effusion - transudate by lab analysis in a year before? | SELECT AVG(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'pleural effusion - transudate by lab analysi... | eicu |
CREATE TABLE table_60746 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
) | How many years had a 100 m hurdles event at the world championships in Osaka, Japan? | SELECT SUM("Year") FROM table_60746 WHERE "Event" = '100 m hurdles' AND "Competition" = 'world championships' AND "Venue" = 'osaka, japan' | wikisql |
CREATE TABLE table_1740431_3 (
season_in_tamil VARCHAR,
season_in_sanskrit VARCHAR
) | How many seasons in Tamil occur when the season in Sanskrit is Grishma? | SELECT COUNT(season_in_tamil) FROM table_1740431_3 WHERE season_in_sanskrit = "Grishma" | sql_create_context |
CREATE TABLE table_71041 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | Which record has a Date of april 25? | SELECT "Record" FROM table_71041 WHERE "Date" = 'april 25' | wikisql |
CREATE TABLE table_64889 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | What method was used in the Pride 17 event? | SELECT "Method" FROM table_64889 WHERE "Event" = 'pride 17' | wikisql |
CREATE TABLE table_name_71 (
date VARCHAR,
new_entries_this_round VARCHAR
) | What is the date for the row with a new entries this round of 44? | SELECT date FROM table_name_71 WHERE new_entries_this_round = "44" | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | among those who remained admitted in hospital for 29 days, calculate the maximum age of widowed patients. | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.days_stay = "29" | mimicsql_data |
CREATE TABLE table_name_96 (
score VARCHAR,
record VARCHAR
) | What is the score from the 21-27 Record? | SELECT score FROM table_name_96 WHERE record = "21-27" | sql_create_context |
CREATE TABLE table_67176 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | what was the score on 6 june 2010? | SELECT "Score" FROM table_67176 WHERE "Date" = '6 june 2010' | wikisql |
CREATE TABLE table_21191496_1 (
report VARCHAR,
country VARCHAR
) | When Netherlands is the country what is the report? | SELECT report FROM table_21191496_1 WHERE country = "Netherlands" | sql_create_context |
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
... | Number of posts a user got downvoted in a time span. | SELECT Users.Id AS "user_link", COUNT(*) AS Downvotes FROM (SELECT DISTINCT Votes.PostId FROM Votes WHERE Votes.CreationDate BETWEEN '2012-01-01' AND '2012-01-31' AND Votes.VoteTypeId = 3) AS Votes INNER JOIN Posts ON Votes.PostId = Posts.Id INNER JOIN Users ON Posts.OwnerUserId = Users.Id GROUP BY Users.Id ORDER BY Do... | sede |
CREATE TABLE table_41436 (
"Date" text,
"Location" text,
"Country" text,
"Event" text,
"Winner" text,
"Runner-up" text
) | What is Event, when Date is August 20-August 27? | SELECT "Event" FROM table_41436 WHERE "Date" = 'august 20-august 27' | wikisql |
CREATE TABLE table_1341453_20 (
results VARCHAR,
incumbent VARCHAR
) | What were the results for incumbent Jim McCrery? | SELECT results FROM table_1341453_20 WHERE incumbent = "Jim McCrery" | sql_create_context |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TA... | Rise and fall of the Close Vote Queue. | WITH minmax AS (SELECT MIN(CreationDate) AS mindate, MAX(DeletionDate) AS maxdate FROM ReviewTasks WHERE ReviewTaskTypeId = 2), days AS (SELECT DISTINCT DATE(CreationDate) AS utcdate FROM Posts WHERE CreationDate BETWEEN (SELECT mindate FROM minmax) AND (SELECT maxdate FROM minmax)) SELECT utcdate, COUNT(*) AS "#_of_ta... | sede |
CREATE TABLE table_name_12 (
began_operation INTEGER,
length__km_ VARCHAR,
stations VARCHAR
) | What is the average operation beginning with a length of ampang and over 27 stations? | SELECT AVG(began_operation) FROM table_name_12 WHERE length__km_ = "ampang" AND stations > 27 | sql_create_context |
CREATE TABLE table_12886178_5 (
played VARCHAR,
tries_for VARCHAR
) | How many clubs have tries for count of 50? | SELECT COUNT(played) FROM table_12886178_5 WHERE tries_for = "50" | sql_create_context |
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 prescriptions (
subject_id text,
hadm_id... | provide the number of patients whose insurance is private and procedure icd9 code is 4523? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.icd9_code = "4523" | mimicsql_data |
CREATE TABLE jybgb_jyjgzbb (
JYZBLSH number,
YLJGDM text,
jyjgzbb_id number
)
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 tex... | 门诊诊断为疾病Y80.333的病人的检测指标145181数值的平均值是多少?最值是多少? | SELECT AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_jyjgzbb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jybgb_jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND jybgb_jyjgzbb.JYZBLSH = jyjgzbb.JY... | css |
CREATE TABLE table_name_48 (
notes VARCHAR,
country VARCHAR
) | What is the notes for the team from Denmark? | SELECT notes FROM table_name_48 WHERE country = "denmark" | sql_create_context |
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... | what is the last hospital admission time that patient 32804 was admitted via transfer from hosp/extram since 2105? | SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 32804 AND admissions.admission_location = 'transfer from hosp/extram' AND STRFTIME('%y', admissions.admittime) >= '2105' ORDER BY admissions.admittime DESC LIMIT 1 | mimic_iii |
CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM text,
RZBQMC text,
RYCWH text,
CYKSDM text,
CYKSMC text,
CYBQDM tex... | 检验结果指标记录号码是30535578307的结果定性和结果定量以及定量单位都是什么? | SELECT JCZBJGDX, JCZBJGDL, JCZBJGDW FROM jyjgzbb WHERE JYZBLSH = '30535578307' | css |
CREATE TABLE school (
School_ID int,
Grade text,
School text,
Location text,
Type text
)
CREATE TABLE school_bus (
School_ID int,
Driver_ID int,
Years_Working int,
If_full_time bool
)
CREATE TABLE driver (
Driver_ID int,
Name text,
Party text,
Home_city text,
Ag... | Show the proportion of the home city of all drivers with a pie chart. | SELECT Home_city, COUNT(Home_city) FROM driver GROUP BY Home_city | nvbench |
CREATE TABLE table_46005 (
"Position" real,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | What is the total of the goal difference entries for entries with fewer than 49 goals and position smaller than 8? | SELECT COUNT("Goal Difference") FROM table_46005 WHERE "Goals for" < '49' AND "Position" < '8' | wikisql |
CREATE TABLE t_kc22 (
MED_EXP_DET_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
MED_EXP_BILL_ID text,
SOC_SRT_DIRE_CD text,
SOC_SRT_DIRE_NM text,
DIRE_TYPE number,
CHA_ITEM_LEV number,
MED_INV_ITEM_TYPE text,
MED_DIRE_CD text,
MED_DIRE_NM text,... | 根据不同的入院诊断疾病名称和科室编码,编码为9224891的医院所有医疗就诊记录中患者的平均年龄列出来都是多少? | SELECT MED_ORG_DEPT_CD, IN_DIAG_DIS_NM, AVG(PERSON_AGE) FROM t_kc21 WHERE MED_SER_ORG_NO = '9224891' GROUP BY MED_ORG_DEPT_CD, IN_DIAG_DIS_NM | css |
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,
... | 在08年1月31日到11年3月15日这三年里,患者58099146有什么检验结果指标记录中的仪器编号以及名称? | SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM hz_info JOIN txmzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH ... | css |
CREATE TABLE branch (
Branch_ID int,
Name text,
Open_year text,
Address_road text,
City text,
membership_amount text
)
CREATE TABLE member (
Member_ID int,
Card_Number text,
Name text,
Hometown text,
Level int
)
CREATE TABLE membership_register_branch (
Member_ID int,
... | Bar chart of the number of hometown from each hometown, could you display X-axis from low to high order? | SELECT Hometown, COUNT(Hometown) FROM member GROUP BY Hometown ORDER BY Hometown | nvbench |
CREATE TABLE table_16566 (
"Character" text,
"Portrayed by" text,
"Relationship" text,
"First appearance" text,
"Last appearance" text
) | Which characters were portrayed by reed garrett? | SELECT "Portrayed by" FROM table_16566 WHERE "Character" = 'Reed Garrett' | wikisql |
CREATE TABLE table_name_6 (
call_sign VARCHAR,
branding VARCHAR
) | What's the call sign if the branding is 1062 DXKI Koronadal? | SELECT call_sign FROM table_name_6 WHERE branding = "1062 dxki koronadal" | sql_create_context |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospita... | does patient 021-25705 had any bulb #2 output this month? | SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-25705')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutpu... | eicu |
CREATE TABLE table_8153 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" real,
"Finish" real,
"Team" text
) | For any races with a start of 14 what was the lowest finish? | SELECT MIN("Finish") FROM table_8153 WHERE "Start" = '14' | wikisql |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | 在医院9220092出院诊断患者71205137的疾病名称不包含2的医疗就诊记录编号都有哪些? | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_ID = '71205137' AND t_kc21.MED_SER_ORG_NO = '9220092' AND NOT t_kc21.OUT_DIAG_DIS_NM LIKE '%2%' | css |
CREATE TABLE table_204_616 (
id number,
"township" text,
"fips" number,
"population\ncenter" text,
"population" number,
"population\ndensity\n/km2 (/sq mi)" text,
"land area\nkm2 (sq mi)" text,
"water area\nkm2 (sq mi)" text,
"water %" text,
"geographic coordinates" text
) | was delaware 's land area above or below 45 square miles ? | SELECT (SELECT "land area\nkm2 (sq mi)" FROM table_204_616 WHERE "township" = 'delaware') > 45 | squall |
CREATE TABLE table_68880 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | What was the record after the fight that lasted 8:17? | SELECT "Record" FROM table_68880 WHERE "Time" = '8:17' | wikisql |
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,
... | Analyse Number of Users Joining SO Over Time, Per Month and Year. | SELECT COUNT(*) AS "Number of Users", TIME_TO_STR('creationdate', '%-mONT%-H') AS "Month", TIME_TO_STR('creationdate', '%YEAR') AS "Year" FROM Users GROUP BY TIME_TO_STR('creationdate', '%YEAR'), TIME_TO_STR('creationdate', '%-mONT%-H') ORDER BY TIME_TO_STR('creationdate', '%YEAR'), TIME_TO_STR('creationdate', '%-mONT%... | sede |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.