context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_45929 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
) | What is the score of player dick metz? | SELECT "Score" FROM table_45929 WHERE "Player" = 'dick metz' | wikisql |
CREATE TABLE table_6686 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | What is the overall of the player with a pick # higher than 13? | SELECT "Overall" FROM table_6686 WHERE "Pick #" < '13' | wikisql |
CREATE TABLE table_12710 (
"Year" real,
"Championship" text,
"Partnering" text,
"Opponents in Final" text,
"Score in Final" text
) | What year were the opponents Shingo Kunieda Satoshi Saida? | SELECT MIN("Year") FROM table_12710 WHERE "Opponents in Final" = 'shingo kunieda satoshi saida' | wikisql |
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
g... | Are any 300 -level classes being offered in the Fall or Winter term ? | SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND semester.semester IN ('FA', 'WN') AND semester.semester_id = course_of... | advising |
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE schedule... | Give me a bar chart showing the number of cinemas open for each year in descending order of opening year. | SELECT Openning_year, COUNT(Openning_year) FROM cinema GROUP BY Openning_year ORDER BY Openning_year DESC | nvbench |
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar... | What are some pertinent courses to take before doing ECON 661 ? | SELECT DISTINCT advisory_requirement FROM course WHERE department = 'ECON' AND number = 661 | advising |
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 is the number of patients whose diagnosis is bradycardia and age below 63? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BRADYCARDIA" AND demographic.age < "63" | mimicsql_data |
CREATE TABLE table_79849 (
"Rider" text,
"Date" text,
"Place" text,
"Race" text,
"Event" text,
"Machine" text
) | What machine did Keith T. Gawler ride? | SELECT "Machine" FROM table_79849 WHERE "Rider" = 'keith t. gawler' | wikisql |
CREATE TABLE table_203_3 (
id number,
"province" text,
"capital" text,
"population" number,
"density" text,
"municipalities" text,
"legal districts" number
) | how many provinces in andalusia have at least 100 municipalities ? | SELECT COUNT("province") FROM table_203_3 WHERE "municipalities" >= 100 | squall |
CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adul... | What is the minimum price of the rooms for each different decor? Show me a bar chart! | SELECT decor, MIN(basePrice) FROM Rooms GROUP BY decor | nvbench |
CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_cit... | Show the name for regions and the number of storms for each region by a bar chart, and order total number from low to high order please. | SELECT Region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.Region_id = T2.Region_id GROUP BY T1.Region_id ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_64563 (
"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 team geraint williams is the replacement? | SELECT "Team" FROM table_64563 WHERE "Replaced by" = 'geraint williams' | wikisql |
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 admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dis... | when was the last time in 2105 that patient 4900 received a endo emb hd/nk,bare coil treatment? | SELECT procedures_icd.charttime FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'endo emb hd/nk,bare coil') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 4900) AND ... | mimic_iii |
CREATE TABLE table_11285 (
"Season Number" text,
"Premiere Date" text,
"Winner" text,
"Runner Up" text,
"2nd Runner-up" text,
"3rd Runner-up" text
) | Name the 3rd runner-up for wu si ai, usay( ) | SELECT "3rd Runner-up" FROM table_11285 WHERE "2nd Runner-up" = 'wu si ai, usay(舞思愛)' | wikisql |
CREATE TABLE gwyjzb (
CLINIC_ID text,
CLINIC_TYPE text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
... | 把团伙成员65616004最常选择去的几家医院排序查看一下 | SELECT gwyjzb.MED_SER_ORG_NO FROM gwyjzb WHERE gwyjzb.PERSON_ID = '65616004' GROUP BY gwyjzb.MED_SER_ORG_NO ORDER BY COUNT(*) DESC UNION SELECT fgwyjzb.MED_SER_ORG_NO FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '65616004' GROUP BY fgwyjzb.MED_SER_ORG_NO ORDER BY COUNT(*) DESC | css |
CREATE TABLE table_17111 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | Where is Norco HIgh School? | SELECT "Hometown" FROM table_17111 WHERE "School" = 'Norco High School' | wikisql |
CREATE TABLE table_41276 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
) | What is Film title used in nomination, when Year (Ceremony) is 1968 (41st)? | SELECT "Film title used in nomination" FROM table_41276 WHERE "Year (Ceremony)" = '1968 (41st)' | wikisql |
CREATE TABLE table_name_57 (
last_aired VARCHAR,
retitled_as_same VARCHAR
) | Which Last Aired has a Retitled as/Same of classic concentration? | SELECT last_aired FROM table_name_57 WHERE retitled_as_same = "classic concentration" | sql_create_context |
CREATE TABLE table_79692 (
"Round" real,
"Pick" real,
"Player" text,
"Nationality" text,
"College/Junior/Club Team" text
) | Can you tell me the Nationality that has the Round smaller than 5, and the Player of bruce affleck? | SELECT "Nationality" FROM table_79692 WHERE "Round" < '5' AND "Player" = 'bruce affleck' | wikisql |
CREATE TABLE table_11674683_2 (
swimsuit VARCHAR,
delegate VARCHAR
) | Name the number of swimsuit for israel | SELECT COUNT(swimsuit) FROM table_11674683_2 WHERE delegate = "Israel" | sql_create_context |
CREATE TABLE table_26538035_1 (
title_and_source VARCHAR,
developer VARCHAR
) | What is the title and source for the game developed by Hydravision Entertainment? | SELECT title_and_source FROM table_26538035_1 WHERE developer = "Hydravision Entertainment" | sql_create_context |
CREATE TABLE table_17085724_1 (
indianapolis_concerts VARCHAR,
sarasota VARCHAR
) | Name the indianapolis concerts for les minski | SELECT indianapolis_concerts FROM table_17085724_1 WHERE sarasota = "Les Minski" | sql_create_context |
CREATE TABLE table_203_539 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" number
) | how many 110 m hurdles did china compete in ? | SELECT COUNT(*) FROM table_203_539 WHERE "event" = '110 m hurdles' | squall |
CREATE TABLE table_name_7 (
game VARCHAR,
year VARCHAR
) | What game was in 2011? | SELECT game FROM table_name_7 WHERE year = 2011 | sql_create_context |
CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(5... | What are the number of start date of the apartment bookings made by female guests (gender code 'Female') for each year? Plot a bar chart, I want to order Y in descending order. | SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = "Female" ORDER BY COUNT(booking_start_date) DESC | nvbench |
CREATE TABLE table_name_54 (
date VARCHAR,
results¹ VARCHAR
) | What day were the results 3:2? | SELECT date FROM table_name_54 WHERE results¹ = "3:2" | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
ic... | what's the name of a drug that patient 013-3028 was prescribed within the same hospital visit after being diagnosed with bacteremia in 09/2104? | SELECT t2.drugname FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid =... | eicu |
CREATE TABLE table_name_75 (
streak VARCHAR,
location_attendance VARCHAR,
record VARCHAR
) | Which Streak is in new orleans arena and a Record of 31 33? | SELECT streak FROM table_name_75 WHERE location_attendance = "new orleans arena" AND record = "31–33" | sql_create_context |
CREATE TABLE Attribute_Definitions (
attribute_id INTEGER,
attribute_name VARCHAR(30),
attribute_data_type VARCHAR(10)
)
CREATE TABLE Catalog_Contents_Additional_Attributes (
catalog_entry_id INTEGER,
catalog_level_number INTEGER,
attribute_id INTEGER,
attribute_value VARCHAR(255)
)
CREATE... | Which catalog contents has price above 700 dollars? Show their catalog entry names and capacities in a bar chart, and could you list catalog_entry_name from high to low order please? | SELECT catalog_entry_name, capacity FROM Catalog_Contents WHERE price_in_dollars > 700 ORDER BY catalog_entry_name DESC | nvbench |
CREATE TABLE photos (
photo_id number,
tourist_attraction_id number,
name text,
description text,
filename text,
other_details text
)
CREATE TABLE visitors (
tourist_id number,
tourist_details text
)
CREATE TABLE ref_attraction_types (
attraction_type_code text,
attraction_type... | What is the average price range of five star hotels that allow pets? | SELECT AVG(price_range) FROM hotels WHERE star_rating_code = "5" AND pets_allowed_yn = 1 | spider |
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefin... | Count of first-posts by month. | SELECT DATEFROMPARTS(TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%M'), 1) AS Month, COUNT(*) AS Count FROM Posts WHERE Id IN (SELECT MIN(Id) AS Id FROM Posts WHERE OwnerUserId > 0 GROUP BY OwnerUserId) GROUP BY DATEFROMPARTS(TIME_TO_STR(CreationDate, '%Y'), TIME_TO_STR(CreationDate, '%M'), 1) ORDER BY M... | sede |
CREATE TABLE table_dev_29 (
"id" int,
"gender" string,
"white_blood_cell_count_wbc" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"renal_disease" bool,
"creatinine_clearance_cl" float,
"post_load_glucose" int,
"platelet_count" float,
"fasting_plasma_glucos... | proteinuria ( urine protein > 200 mg / dl ) or a creatinine > 1.5 mg / dl ( male ) or 1.4 mg / dl ( female ) , suggestive of severe renal disease | SELECT * FROM table_dev_29 WHERE proteinuria = 1 OR urine_protein > 200 OR (creatinine_clearance_cl > 1.5 AND gender = 'female') OR (creatinine_clearance_cl > 1.4 AND gender = 'male') AND renal_disease = 1 | criteria2sql |
CREATE TABLE geographic (
city_name varchar,
county varchar,
region varchar
)
CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_name varchar
)
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rati... | where can i find a restaurant in the bay area ? | SELECT location.house_number, restaurant.name FROM location, restaurant WHERE restaurant.city_name IN (SELECT GEOGRAPHICalias0.city_name FROM geographic AS GEOGRAPHICalias0 WHERE GEOGRAPHICalias0.region = 'bay area') AND restaurant.id = location.restaurant_id | restaurants |
CREATE TABLE table_30057 (
"Outcome" text,
"Edition" text,
"Opponent Team" text,
"Surface" text,
"Opponent" text,
"Score" text
) | For score 6 2, 6 3 and outcome is loser mention all the edition. | SELECT "Edition" FROM table_30057 WHERE "Outcome" = 'Loser' AND "Score" = '6–2, 6–3' | wikisql |
CREATE TABLE table_name_97 (
state VARCHAR,
first_elected VARCHAR,
member VARCHAR
) | Which state was first elected in 1914, and a Member of edward jolley? | SELECT state FROM table_name_97 WHERE first_elected = "1914" AND member = "edward jolley" | sql_create_context |
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 hz_info (
KH text,
KLX number... | 从08年10月22日起的2年内,患者66306240的395514指标情况记录 | SELECT * FROM hz_info JOIN mzjzjlb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE hz_info.RYBH = '66306240' AND jyjgzbb.JYRQ BETWEEN '2008-10-22' AND '2010-1... | css |
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 employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
... | Draw a bar chart of last name versus department_id, sort in ascending by the total number. | SELECT LAST_NAME, DEPARTMENT_ID FROM employees ORDER BY DEPARTMENT_ID | nvbench |
CREATE TABLE table_2679061_6 (
pick__number INTEGER,
nhl_team VARCHAR
) | What is the pick # for nhl team vancouver canucks? | SELECT MIN(pick__number) FROM table_2679061_6 WHERE nhl_team = "Vancouver Canucks" | sql_create_context |
CREATE TABLE table_name_50 (
opponent VARCHAR,
record VARCHAR
) | Who is the opponent of the game that had a record of 24-26-4? | SELECT opponent FROM table_name_50 WHERE record = "24-26-4" | sql_create_context |
CREATE TABLE table_26916717_1 (
name VARCHAR,
home_town VARCHAR
) | What is the name of the player from purcell, ok? | SELECT name FROM table_26916717_1 WHERE home_town = "Purcell, OK" | sql_create_context |
CREATE TABLE table_37150 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text
) | What is the frequency of the soft adult contemporary stations? | SELECT "Frequency" FROM table_37150 WHERE "Format" = 'soft adult contemporary' | wikisql |
CREATE TABLE table_77884 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | On which date was the 2006 FIFA World Cup Qualification in Manama, Bahrain? | SELECT "Date" FROM table_77884 WHERE "Venue" = 'manama, bahrain' AND "Competition" = '2006 fifa world cup qualification' | wikisql |
CREATE TABLE table_9883 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score in the final" text
) | What was the score of the French Open? | SELECT "Score in the final" FROM table_9883 WHERE "Championship" = 'french open' | wikisql |
CREATE TABLE table_18221 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Opponent" text
) | What location is Vin Weber from? | SELECT "District" FROM table_18221 WHERE "Incumbent" = 'Vin Weber' | wikisql |
CREATE TABLE station (
id int,
network_name text,
services text,
local_authority text
)
CREATE TABLE weekly_weather (
station_id int,
day_of_week text,
high_temperature int,
low_temperature int,
precipitation real,
wind_speed_mph int
)
CREATE TABLE train (
id int,
train... | Find times of trains that run through stations for the local authority Chiltern, compare the total number of different times, and I want to order by the Y-axis in desc. | SELECT time, COUNT(time) FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id JOIN train AS t3 ON t2.train_id = t3.id WHERE t1.local_authority = "Chiltern" GROUP BY time ORDER BY COUNT(time) DESC | nvbench |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medication... | when did patient 031-3355 have the last test for microbiology on their current hospital visit? | SELECT microlab.culturetakentime 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 patient.hospitaldischargetime IS NULL)) ORDER BY mi... | eicu |
CREATE TABLE table_36492 (
"Year" real,
"Edition" text,
"Course" text,
"Location" text,
"Dates" text
) | What was the course called that had an Edition of 117th? | SELECT "Course" FROM table_36492 WHERE "Edition" = '117th' | wikisql |
CREATE TABLE table_46232 (
"Tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text
) | What is the 1993 value of the 1994 atp masters series? | SELECT "1993" FROM table_46232 WHERE "1994" = 'atp masters series' | wikisql |
CREATE TABLE table_43412 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | What is the highest Game when Morris Peterson (8) had the high assists? | SELECT MAX("Game") FROM table_43412 WHERE "High assists" = 'morris peterson (8)' | wikisql |
CREATE TABLE table_73977 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
) | What was the first episode in the season directed by nelson mccormick? | SELECT MIN("No. in season") FROM table_73977 WHERE "Directed by" = 'Nelson McCormick' | wikisql |
CREATE TABLE table_1971074_1 (
founded VARCHAR,
type VARCHAR
) | When was the private/non-sectarian school founded? | SELECT founded FROM table_1971074_1 WHERE type = "Private/Non-sectarian" | sql_create_context |
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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 TABLE departments (
DEPARTME... | 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, find hire_date and the average of employee_id bin hire_date by time, and visualize them by a bar chart, and could you show by the Y from low to high? | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(EMPLOYEE_ID) | nvbench |
CREATE TABLE table_26154 (
"Edition" text,
"Round" text,
"Date" text,
"Against" text,
"Surface" text,
"Opponent" text,
"W/L" text,
"Result" text
) | What were the w/l when the final score was 2 6, 5 7, 7 6 (11 9) , 1 6? | SELECT "W/L" FROM table_26154 WHERE "Result" = '2–6, 5–7, 7–6 (11–9) , 1–6' | wikisql |
CREATE TABLE table_204_398 (
id number,
"title" text,
"year" number,
"publisher" text,
"developer" text,
"platforms" text
) | how many titles did melbourne house publish | SELECT COUNT("title") FROM table_204_398 WHERE "publisher" = 'melbourne house' | squall |
CREATE TABLE table_1671401_1 (
top_5 INTEGER
) | Name the least top 5 | SELECT MIN(top_5) FROM table_1671401_1 | sql_create_context |
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE PostHistoryTypes (
Id number,
Name te... | My Activity in Sri Lankan time. | SELECT TIME_TO_STR(CreationDate, '%h') + 5.30 AS hour, COUNT(CASE WHEN PostTypeId = 1 THEN 1 END) AS questions, COUNT(CASE WHEN PostTypeId = 2 THEN 1 END) AS answers FROM Posts WHERE PostTypeId IN (1, 2) AND OwnerUserId = '##UserID##' GROUP BY TIME_TO_STR(CreationDate, '%h') + 5.30 ORDER BY hour | sede |
CREATE TABLE table_57383 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | What is the sum of grids with an engine in Time/Retired with less than 45 laps for Giancarlo Baghetti? | SELECT SUM("Grid") FROM table_57383 WHERE "Time/Retired" = 'engine' AND "Laps" < '45' AND "Driver" = 'giancarlo baghetti' | wikisql |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | 在哪几家医院患者陈乐湛被开出过药品213784238? | SELECT gwyjzb.MED_SER_ORG_NO FROM gwyjzb WHERE gwyjzb.PERSON_NM = '陈乐湛' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.SOC_SRT_DIRE_CD = '213784238') UNION SELECT fgwyjzb.MED_SER_ORG_NO FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '陈乐湛' AND fgwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC... | css |
CREATE TABLE device (
Device_ID int,
Device text,
Carrier text,
Package_Version text,
Applications text,
Software_Platform text
)
CREATE TABLE stock (
Shop_ID int,
Device_ID int,
Quantity int
)
CREATE TABLE shop (
Shop_ID int,
Shop_Name text,
Location text,
Open_Dat... | Show how many carrriers for each shops in a bar chart, could you list y-axis in asc order? | SELECT Shop_Name, COUNT(Shop_Name) FROM stock AS T1 JOIN device AS T2 ON T1.Device_ID = T2.Device_ID JOIN shop AS T3 ON T1.Shop_ID = T3.Shop_ID GROUP BY Shop_Name ORDER BY COUNT(Shop_Name) | nvbench |
CREATE TABLE table_25011 (
"Year" real,
"Song title" text,
"Artist" text,
"Master recording" text,
"NA/UK/AUS/JPN/NL tier" text,
"European tier" text
) | Name the master recording for europe | SELECT "Master recording" FROM table_25011 WHERE "Artist" = 'Europe' | wikisql |
CREATE TABLE body_builder (
People_ID VARCHAR
)
CREATE TABLE people (
Name VARCHAR,
People_ID VARCHAR,
Weight VARCHAR
) | What is the name of the body builder with the greatest body weight? | SELECT T2.Name FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight DESC LIMIT 1 | sql_create_context |
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
h... | what was the highest four diagnosis, which had the highest one year mortality rate? | SELECT t4.diagnosisname FROM (SELECT t3.diagnosisname, DENSE_RANK() OVER (ORDER BY t3.c1 DESC) AS c2 FROM (SELECT t2.diagnosisname, 100 - SUM(CASE WHEN patient.hospitaldischargestatus = 'alive' THEN 1 WHEN STRFTIME('%j', patient.hospitaldischargetime) - STRFTIME('%j', t2.diagnosistime) > 1 * 365 THEN 1 ELSE 0 END) * 10... | eicu |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | Give me a bar chart for total number of team id of each acc road | SELECT ACC_Road, SUM(Team_ID) FROM basketball_match GROUP BY ACC_Road | nvbench |
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id num... | Comments by a specific user, sorted by score. | SELECT p.Id AS "Post Link", p.Score AS "P.Score", p.Body AS "P.Body", c.Text AS "C.Text", c.Score AS "C.Score", c.CreationDate FROM Posts AS p JOIN Comments AS c ON p.Id = c.PostId WHERE c.UserId = '##CommenterID:int##' AND c.Score >= '##MinimumCommentScore##' ORDER BY c.Score DESC | sede |
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Activity (
actid INTEGER,
a... | A bar chart showing the number of male and female faculty, order by the Y-axis in desc please. | SELECT Sex, COUNT(*) FROM Faculty GROUP BY Sex ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE STUDENT (
STU_NUM int,
STU_LNAME varchar(15),
STU_FNAME varchar(15),
STU_INIT varchar(1),
STU_DOB datetime,
STU_HRS int,
STU_CLASS varchar(2),
STU_GPA float(8),
STU_TRANSFER numeric,
DEPT_CODE varchar(18),
STU_PHONE varchar(4),
PROF_NUM int
)
CREATE TABLE CL... | Draw a bar chart for what is the first name and GPA of every student that has a GPA lower than average?, display in asc by the Y-axis. | SELECT STU_FNAME, SUM(STU_GPA) FROM STUDENT WHERE STU_GPA < (SELECT AVG(STU_GPA) FROM STUDENT) GROUP BY STU_FNAME ORDER BY SUM(STU_GPA) | 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... | 自2009年12月28起,到2021年9月30日,编号为68417064的患者在医疗机构1278762看过几次门诊 | SELECT COUNT(*) FROM hz_info JOIN mzjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_info.YLJGDM AND person_in... | css |
CREATE TABLE table_55654 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | What grid features 6 laps? | SELECT "Grid" FROM table_55654 WHERE "Laps" = '6' | wikisql |
CREATE TABLE table_12479 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
) | Who has the height of m (ft 9in) and was born on 1980-03-05? | SELECT "Name" FROM table_12479 WHERE "Height" = 'm (ft 9in)' AND "Date of Birth" = '1980-03-05' | wikisql |
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime tim... | when was patient 57023's first discharge from the hospital in 2105? | SELECT admissions.dischtime FROM admissions WHERE admissions.subject_id = 57023 AND STRFTIME('%y', admissions.dischtime) = '2105' ORDER BY admissions.dischtime LIMIT 1 | mimic_iii |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime... | count the number of times that patient 004-65311 was prescribed carvedilol 12.5 mg po tabs until 03/2103. | SELECT COUNT(*) FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-65311')) AND medication.drugname = 'carvedilol 12.5 mg po tabs' AND STRFTI... | eicu |
CREATE TABLE table_name_35 (
location VARCHAR,
points VARCHAR
) | Where was the game where the senators scored 80 points? | SELECT location FROM table_name_35 WHERE points = 80 | sql_create_context |
CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Male text,
Age int
)
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year int
)
CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of t... | How many churches open each year? Convert the year into the weekday interval and visualize with a bar chart. | SELECT Open_Date, COUNT(Open_Date) FROM church | nvbench |
CREATE TABLE table_65265 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" real,
"Water (sqmi)" real,
"Latitude" real,
"Longitude" real,
"GEO ID" real,
"ANSI code" real
) | What is the total latitude of the greenland township with more than 34.846 sqmi of land, a geo id less than 3805529660, and an ANSI code greater than 1036405? | SELECT COUNT("Latitude") FROM table_65265 WHERE "Land ( sqmi )" > '34.846' AND "GEO ID" < '3805529660' AND "Township" = 'greenland' AND "ANSI code" > '1036405' | wikisql |
CREATE TABLE table_11970 (
"CERCLIS ID" text,
"Name" text,
"County" text,
"Partially deleted" text,
"Deleted" text
) | Which Superfund site has the CERCLIS ID fld980494959? | SELECT "Partially deleted" FROM table_11970 WHERE "CERCLIS ID" = 'fld980494959' | wikisql |
CREATE TABLE table_name_2 (
club VARCHAR,
points VARCHAR
) | What is the name of the club with 22 points? | SELECT club FROM table_name_2 WHERE points = "22" | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | count the number of patients whose year of birth is less than 2168 and procedure icd9 code is 66? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dob_year < "2168" AND procedures.icd9_code = "66" | mimicsql_data |
CREATE TABLE zyjzjlb_jybgb (
YLJGDM_ZYJZJLB text,
BGDH number,
YLJGDM number
)
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC te... | 能列出在二零零二年九月十日到二零一九年十月十七日内患者严秀越被开出的所有检验报告单的科室编号以及名字给我看一下吗? | SELECT jybgb.KSBM, jybgb.KSMC 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 = '严... | 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,
... | 在00年6月14日到2015年5月27日之内名叫沈景辉的患者被开出的所有检验报告单的检验报告单号都有什么? | SELECT jybgb.BGDH FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb 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 AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = '沈... | css |
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... | let me know the age and religion of patient with patient id 29961. | SELECT demographic.age, demographic.religion FROM demographic WHERE demographic.subject_id = "29961" | mimicsql_data |
CREATE TABLE table_28122 (
"Series #" real,
"Season #" real,
"Title" text,
"Director" text,
"Writer(s)" text,
"Airdate" text
) | Who was the director for the episode on May 2, 1959? | SELECT "Director" FROM table_28122 WHERE "Airdate" = 'May 2, 1959' | wikisql |
CREATE TABLE table_name_82 (
athlete VARCHAR,
nationality VARCHAR,
group VARCHAR,
rank VARCHAR,
result VARCHAR
) | Which athlete's rank is more than 15 when the result is less than 7.68, the group is b, and the nationality listed is Great Britain? | SELECT athlete FROM table_name_82 WHERE rank > 15 AND result < 7.68 AND group = "b" AND nationality = "great britain" | sql_create_context |
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 the number of patients whose year of birth is less than 2156 and diagnoses short title is chrnc hpt c wo hpat coma? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.dob_year < "2156" AND diagnoses.short_title = "Chrnc hpt C wo hpat coma" | mimicsql_data |
CREATE TABLE table_name_36 (
result VARCHAR,
date VARCHAR
) | What were the results for november 25, 1973? | SELECT result FROM table_name_36 WHERE date = "november 25, 1973" | sql_create_context |
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE college (
cname text,
state text,
enr number
) | Find the names of schools that have some players in the mid position but not in the goalie position. | SELECT cname FROM tryout WHERE ppos = 'mid' EXCEPT SELECT cname FROM tryout WHERE ppos = 'goalie' | spider |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions... | How many of the patients admitted before the year 2156 belonged to White ethnic origin? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "WHITE" AND demographic.admityear < "2156" | mimicsql_data |
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
) | What are the number of the dates of birth of entrepreneurs with investor 'Simon Woodroffe' or 'Peter Jones'? | SELECT Date_of_Birth, COUNT(Date_of_Birth) FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Investor = "Simon Woodroffe" OR T1.Investor = "Peter Jones" | nvbench |
CREATE TABLE table_name_76 (
güzelçamlı’s_lost_panther VARCHAR
) | Which 2005 has a G zel aml s Lost Panther of green fairy? | SELECT 2005 FROM table_name_76 WHERE güzelçamlı’s_lost_panther = "green fairy" | sql_create_context |
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardi... | what are the top four most frequent specimen tests that patients were given within the same hospital visit after being diagnosed with pneumococcal septicemia? | SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnos... | mimic_iii |
CREATE TABLE table_35835 (
"Year" real,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
) | Who won the silver medal in the games where Hong Chia-yuh took home bronze? | SELECT "Silver" FROM table_35835 WHERE "Bronze" = 'hong chia-yuh' | wikisql |
CREATE TABLE table_name_22 (
record VARCHAR,
date VARCHAR
) | What is Record, when Date is 'December 30'? | SELECT record FROM table_name_22 WHERE date = "december 30" | sql_create_context |
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4... | Find the sum of credits of courses that have more than one prerequisite for each title with a bar chart, could you order in descending by the names? | SELECT title, SUM(credits) FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY title ORDER BY title DESC | nvbench |
CREATE TABLE table_name_85 (
german VARCHAR,
macedonian VARCHAR
) | What's the German Pluperfect when the Macedonian is /- /- ? | SELECT german FROM table_name_85 WHERE macedonian = "беше слушнал/-а/-о" | sql_create_context |
CREATE TABLE table_26659 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
) | What geographical region is contestant laura jim nez ynoa from? | SELECT "Geographical Regions" FROM table_26659 WHERE "Contestant" = 'Laura Jiménez Ynoa' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | count the number of patients whose admission type is emergency and procedure icd9 code is 4233? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.icd9_code = "4233" | mimicsql_data |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | what number of patients admitted in urgent care had lab test item id 50802? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "URGENT" AND lab.itemid = "50802" | mimicsql_data |
CREATE TABLE table_38282 (
"Game" real,
"January" real,
"Opponent" text,
"Score" text,
"Record" text
) | What was the score when the Rangers were playing against the Vancouver Canucks? | SELECT "Score" FROM table_38282 WHERE "Opponent" = 'vancouver canucks' | wikisql |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | what is the primary disease of the patient name jerry deberry? | SELECT demographic.diagnosis FROM demographic WHERE demographic.name = "Jerry Deberry" | mimicsql_data |
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE jyjgzbb (
JYZBLSH text,
YLJGDM text,
BGDH text,
BGRQ time,
JYRQ time,
JCRGH text,
JCRXM text,
SHRGH text,
SHRXM text,
JCXMMC text,
JCZBDM text,
JCFF text,
JCZBMC text,
... | 编码为80525175494检验报告单的检验科室编码和名称都分别是什么? | SELECT JYKSBM, JYKSMC FROM jybgb WHERE BGDH = '80525175494' | css |
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDispl... | DBA - Total Posts by Database Server Per Month - AmazonRDS. | SELECT CONCAT(YEAR(P.CreationDate), '-', MONTH(P.CreationDate)) AS YearMonth, 'AmazonRDS' AS TagName, COUNT(*) AS PostCount FROM Posts AS P INNER JOIN PostTags AS PT ON (P.Id = PT.PostId) INNER JOIN Tags AS T ON (PT.TagId = T.Id) WHERE T.TagName LIKE 'amazonrds%' GROUP BY YEAR(P.CreationDate), MONTH(P.CreationDate) ORD... | sede |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.