sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT Rank FROM table WHERE First quarter = industrial and commercial bank of china 277,236
CREATE TABLE INST, Here is a database schema( table schema);
What is the Rank of industrial and commercial bank of china 277,236?.It is not neccessary to use all the tables.
SELECT COUNT 1st prize ( $ ) FROM table WHERE Country = united states AND Score < 271 AND Year > 1964 AND Winner = bobby mitchell
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of 1st prize ($) that has a United States country with a score lower than 271 and in a year after 1964 with a winner of Bobby Mitchell?.It is not neccessary to use all the tables.
SELECT Athlete FROM table WHERE Round 3 = did not advance AND Event = 76 kg
CREATE TABLE INST, Here is a database schema( table schema);
Which athlete in the 76 kg class, did not advance at the end of Round 3..It is not neccessary to use all the tables.
SELECT enrollment FROM table_261946_3 WHERE location__all_in_ohio_ = "Ashland"
CREATE TABLE INST, Here is a database schema( table schema);
What is the enrollment for Ashland University?It is not neccessary to use all the tables.
SELECT Rank FROM table WHERE Final = 5:18.85
CREATE TABLE INST, Here is a database schema( table schema);
Which rank has final with 5:18.85?.It is not neccessary to use all the tables.
SELECT MIN Money Spent FROM table WHERE Total Debt = 374,164 AND Receipts w/o Loans > 3,898,226
CREATE TABLE INST, Here is a database schema( table schema);
What is the low money with 374,164$ of debt and receipts larger than 3,898,226 without loans?.It is not neccessary to use all the tables.
SELECT winner FROM table_name_21 WHERE score = "199 (-14)" AND date = "oct 31"
CREATE TABLE INST, Here is a database schema( table schema);
who won with a score of 199 (-14) on oct 31?It is not neccessary to use all the tables.
SELECT AVG(total) FROM table_name_75 WHERE bronze > 0 AND silver > 0 AND gold > 2 AND nation = "soviet union"
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Total when Bronze is greater than 0 when Silver is greater than 0 when Gold is greater than 2 and when Nation is Soviet Union?It is not neccessary to use all the tables.
SELECT Country FROM table WHERE Director(s) = julio robledo
CREATE TABLE INST, Here is a database schema( table schema);
Julio Robledo represents which country?.It is not neccessary to use all the tables.
SELECT "Power provided" FROM table_21674 WHERE "Transfer speed (MB/s)" = '1250'
CREATE TABLE INST, Here is a database schema( table schema);
Name the power provided for transfer speed mb/s is 1250It is not neccessary to use all the tables.
SELECT score FROM table_name_60 WHERE partner = "albert montañés"
CREATE TABLE INST, Here is a database schema( table schema);
What is the score for the match where albert monta s was the partner?It is not neccessary to use all the tables.
SELECT Player FROM table WHERE College = wyoming
CREATE TABLE INST, Here is a database schema( table schema);
Which player went to the College of Wyoming?.It is not neccessary to use all the tables.
SELECT composition FROM table_name_67 WHERE €_equiv = "0.30"
CREATE TABLE INST, Here is a database schema( table schema);
What is the coin with a € equivalency of 0.30 made of?It is not neccessary to use all the tables.
SELECT team FROM table_19908313_2 WHERE primary_sponsor_s_ = "D3 Outdoors"
CREATE TABLE INST, Here is a database schema( table schema);
What team is sponsored by d3 Outdoors?It is not neccessary to use all the tables.
SELECT 3rd place FROM table WHERE Runner-up = runner-up
CREATE TABLE INST, Here is a database schema( table schema);
What shows for 3rd place when Runner-up shows as runner-up?.It is not neccessary to use all the tables.
SELECT away_team AS score FROM table_name_85 WHERE home_team = "carlton"
CREATE TABLE INST, Here is a database schema( table schema);
What away team score has carlton home team?It is not neccessary to use all the tables.
SELECT MAX Rank FROM table WHERE Total < 10 AND 3rd run = 36.457 (2)
CREATE TABLE INST, Here is a database schema( table schema);
Which Rank has a Total smaller than 10, and a 3rd run of 36.457 (2)?.It is not neccessary to use all the tables.
SELECT COUNT("Game") FROM table_29738 WHERE "High rebounds" = 'Derrick Favors (8)'
CREATE TABLE INST, Here is a database schema( table schema);
In how many games were the high rebounds made by Derrick Favors (8)?It is not neccessary to use all the tables.
SELECT away FROM table_name_70 WHERE score = "46-82"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Away with a Score that is 46-82?It is not neccessary to use all the tables.
SELECT "Year" FROM table_15673 WHERE "Points" > '0'
CREATE TABLE INST, Here is a database schema( table schema);
What year has more than 0 points?It is not neccessary to use all the tables.
SELECT Innings FROM table WHERE Average = 22.61
CREATE TABLE INST, Here is a database schema( table schema);
How many innings for the player with an average of 22.61?.It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Date = september 1
CREATE TABLE INST, Here is a database schema( table schema);
What was the record as of September 1?.It is not neccessary to use all the tables.
SELECT 5:00 pm FROM table WHERE 2:00 pm = as the world turns
CREATE TABLE INST, Here is a database schema( table schema);
What is on at 5pm on the channel where As the World Turns is on at 2pm?.It is not neccessary to use all the tables.
SELECT security_forces FROM table_21636599_2 WHERE civilians = "202"
CREATE TABLE INST, Here is a database schema( table schema);
What are the security forces when the civilians are 202?It is not neccessary to use all the tables.
SELECT AVG(2010 AS _pop) FROM table_name_26 WHERE city = "frankfort" AND rank < 14
CREATE TABLE INST, Here is a database schema( table schema);
What was the 2010 population of frankfort which has a rank smaller than 14?It is not neccessary to use all the tables.
SELECT "Place" FROM table_12325 WHERE "Country" = 'trinidad and tobago'
CREATE TABLE INST, Here is a database schema( table schema);
Where did Trinidad and Tobago play?It is not neccessary to use all the tables.
SELECT free_agent_type FROM table_name_2 WHERE player = "bryant johnson"
CREATE TABLE INST, Here is a database schema( table schema);
What is the Free Agent Type for player bryant johnson?It is not neccessary to use all the tables.
SELECT T2.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name
CREATE TABLE INST, Here is a database schema( table schema);
For those records from the products and each product's manufacturer, find name and the average of manufacturer , and group by attribute name, and visualize them by a bar chart, I want to sort by the X-axis from low to high.It is not neccessary to use all the tables.
SELECT 2009 FROM table_name_53 WHERE tournament = "cincinnati"
CREATE TABLE INST, Here is a database schema( table schema);
What tournament what held in Cincinnati in 2009?It is not neccessary to use all the tables.
SELECT Birthplace FROM table WHERE Weight (kg) > 88 AND NHL rights, if any = 1999 draft eligible AND Birthdate = march 26, 1980
CREATE TABLE INST, Here is a database schema( table schema);
What is the birthplace of the person with a weight greater than 88 with NHL rights, 1999 draft eligible and born March 26, 1980?.It is not neccessary to use all the tables.
SELECT wins FROM table_name_10 WHERE league = "playoffs"
CREATE TABLE INST, Here is a database schema( table schema);
What is the number of wins in the playoffs league?It is not neccessary to use all the tables.
SELECT Lead Margin FROM table WHERE Democrat: John Lynch = 62%
CREATE TABLE INST, Here is a database schema( table schema);
Name the lead margin for democrat john lynch being 62%.It is not neccessary to use all the tables.
SELECT manner_of_departure FROM table_28181347_6 WHERE date_of_appointment = "6 November 2007"
CREATE TABLE INST, Here is a database schema( table schema);
One 6 November 2007 what was the manner of departure for the coach release in football league one?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Venue = jinan
CREATE TABLE INST, Here is a database schema( table schema);
What is the result of the game played at Jinan?.It is not neccessary to use all the tables.
SELECT SUM Points FROM table WHERE Against < 14
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the points of all teams that had against scores less than 14?.It is not neccessary to use all the tables.
SELECT COUNT(total) FROM table_name_37 WHERE player = "ahmad fouzee masuri" AND fa_cup > 0
CREATE TABLE INST, Here is a database schema( table schema);
How many totals have a Player of ahmad fouzee masuri and an FA Cup larger than 0?It is not neccessary to use all the tables.
SELECT No. FROM table WHERE Population (2010) = 171906
CREATE TABLE INST, Here is a database schema( table schema);
Name the number where population 2010 is 171906.It is not neccessary to use all the tables.
SELECT downhill FROM table_name_90 WHERE overall = "7"
CREATE TABLE INST, Here is a database schema( table schema);
Which downhill has 7 overalls?It is not neccessary to use all the tables.
SELECT Number & Name FROM table WHERE Date = undergoing overhaul, restoration or repairs
CREATE TABLE INST, Here is a database schema( table schema);
What is the number & name with an Undergoing overhaul, restoration or repairs date?.It is not neccessary to use all the tables.
SELECT COUNT(colors) FROM table_29612224_1 WHERE location = "Maroa, Illinois"
CREATE TABLE INST, Here is a database schema( table schema);
How many different combinations of team colors are there in all the schools in Maroa Illinois?It is not neccessary to use all the tables.
SELECT "Result" FROM table_48355 WHERE "Attendance" = '25,000'
CREATE TABLE INST, Here is a database schema( table schema);
What were the Results for 25,000 Attendance?It is not neccessary to use all the tables.
SELECT MIN Minutes Played FROM table WHERE Rebounds = 25 AND Field Goal % < 0.315
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest Minutes Played, when Rebounds is 25, and when Field Goal % is less than "0.315"?.It is not neccessary to use all the tables.
SELECT COUNT(order) FROM table_1818471_1 WHERE species = "Pavo cristatus"
CREATE TABLE INST, Here is a database schema( table schema);
How many orders when the species is Pavo Cristatus?It is not neccessary to use all the tables.
SELECT college_junior_club_team FROM table_2781227_1 WHERE player = "Mats Lindgren"
CREATE TABLE INST, Here is a database schema( table schema);
What is the college/junior/club team name of player Mats Lindgren?It is not neccessary to use all the tables.
SELECT amount_of_trees, _that_require_replacement FROM table_10342194_3 WHERE district = "Motovilikhinsky"
CREATE TABLE INST, Here is a database schema( table schema);
What is the amount of trees that require replacement when the district is motovilikhinsky?It is not neccessary to use all the tables.
SELECT AVG Overall Rank FROM table WHERE Share = 6 AND Timeslot Rank < 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the rank of the episode with a share of 6 and timeslot rank smaller than 4?.It is not neccessary to use all the tables.
SELECT name FROM table_name_97 WHERE score = "6–3, 6–3"
CREATE TABLE INST, Here is a database schema( table schema);
What is the name with a Score of 6–3 6–3?It is not neccessary to use all the tables.
SELECT Format FROM table WHERE Frequency = 00 96.3 fm
CREATE TABLE INST, Here is a database schema( table schema);
What was the format for the radio with a frequency of 00 96.3 fm?.It is not neccessary to use all the tables.
SELECT "Event" FROM table_68729 WHERE "Venue" = 'beijing'
CREATE TABLE INST, Here is a database schema( table schema);
Which event was held in Beijing?It is not neccessary to use all the tables.
SELECT MIN Heat FROM table WHERE Time = 1:02.85 AND Lane > 7
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest heat that had a time of 1:02.85 in a lane larger than 7?.It is not neccessary to use all the tables.
SELECT KINKA 1.3 FROM table WHERE KINKA Developer = yes AND Version = support mo 230
CREATE TABLE INST, Here is a database schema( table schema);
What is the KINKA 1.3 when the developer is yes and the support version is support mo 230?.It is not neccessary to use all the tables.
SELECT "Reverse" FROM table_39612 WHERE "Color" = 'green'
CREATE TABLE INST, Here is a database schema( table schema);
What reverse has a color of green?It is not neccessary to use all the tables.
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 = 'BALTIMORE' AND date_day.day_number = 3 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.airline_code = 'UA'
CREATE TABLE INST, Here is a database schema( table schema);
show me a list of flights from DENVER to BALTIMORE on UA for 8 3It is not neccessary to use all the tables.
SELECT name FROM table_name_65 WHERE year_completion_expected > 2016
CREATE TABLE INST, Here is a database schema( table schema);
What are the names for projects that will be completed after 2016?It is not neccessary to use all the tables.
SELECT MIN Production code FROM table WHERE Title = "You Don't Know Dick"
CREATE TABLE INST, Here is a database schema( table schema);
What is the production code when the title is "you don't know dick"?.It is not neccessary to use all the tables.
SELECT team_1 FROM table_18733480_1 WHERE team_2 = "Chalkheads"
CREATE TABLE INST, Here is a database schema( table schema);
Who was team 1 when the chalkheads were team 2?It is not neccessary to use all the tables.
SELECT title FROM table_name_54 WHERE role = "chris morrell"
CREATE TABLE INST, Here is a database schema( table schema);
In what movie did John Wayne play the role of Chris Morrell?It is not neccessary to use all the tables.
SELECT directed_by FROM table_name_85 WHERE written_by = "cyrus nowrasteh"
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode written cyrus nowrasteh?It is not neccessary to use all the tables.
SELECT T1.name, T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T2.balance DESC LIMIT 3
CREATE TABLE INST, Here is a database schema( table schema);
Find the name and savings balance of the top 3 accounts with the highest saving balance sorted by savings balance in descending order.It is not neccessary to use all the tables.
SELECT trofeo_fast_team FROM table_12261714_2 WHERE stage = "20"
CREATE TABLE INST, Here is a database schema( table schema);
What's the leader team in the Trofeo Fast Team in stage 20?It is not neccessary to use all the tables.
SELECT Race FROM table WHERE Fastest Lap = keke rosberg AND Location = paul ricard
CREATE TABLE INST, Here is a database schema( table schema);
What is the race in Paul Ricard with Keke Rosberg as the fastest lap?.It is not neccessary to use all the tables.
SELECT COUNT Swimsuit FROM table WHERE Evening Gown > 9 AND Interview > 8.405
CREATE TABLE INST, Here is a database schema( table schema);
How many swimsuits have an Evening Gown larger than 9, and an Interview larger than 8.405?.It is not neccessary to use all the tables.
SELECT SUM Clubs remaining FROM table WHERE New entries this round = 34 AND Clubs involved > 34
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of the clubs remaining with 34 new entries this round and more than 34 clubs involved?.It is not neccessary to use all the tables.
SELECT MAX(week) FROM table_name_47 WHERE attendance = "72,855"
CREATE TABLE INST, Here is a database schema( table schema);
Which Week has an Attendance of 72,855?It is not neccessary to use all the tables.
SELECT COUNT(date) FROM table_19778010_5 WHERE opponent = "Houston"
CREATE TABLE INST, Here is a database schema( table schema);
On how many different dates was a game against Houston played?It is not neccessary to use all the tables.
SELECT GenBank id FROM table WHERE 5’UTR splice = abd AND Variant id = abd1a 3
CREATE TABLE INST, Here is a database schema( table schema);
Which genbank id has a 5'utr splice of abd and a variant id that is abd1a 3?.It is not neccessary to use all the tables.
SELECT call_sign FROM table_name_20 WHERE erp_w = 4
CREATE TABLE INST, Here is a database schema( table schema);
Name the call sign for ERP W of 4It is not neccessary to use all the tables.
SELECT Record FROM table WHERE Visitor = edmonton oilers
CREATE TABLE INST, Here is a database schema( table schema);
What is the record of the game where the visitor team is the Edmonton Oilers?.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Date = 27 august 2003
CREATE TABLE INST, Here is a database schema( table schema);
What was the result on 27 august 2003?.It is not neccessary to use all the tables.
SELECT performer_s_ FROM table_name_45 WHERE recorded_at = "the cabin in the woods studio" AND time = "3:16"
CREATE TABLE INST, Here is a database schema( table schema);
Who performed the song recorded at the Cabin in the Woods Studio with a Time of 3:16?It is not neccessary to use all the tables.
SELECT current_conference FROM table_1973729_2 WHERE nickname = "Chargers"
CREATE TABLE INST, Here is a database schema( table schema);
Which conference has the nickname Chargers?It is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Chassis = mp4/1c AND Driver = niki lauda
CREATE TABLE INST, Here is a database schema( table schema);
Who is the constructor for driver Niki Lauda and a chassis of mp4/1c?.It is not neccessary to use all the tables.
SELECT studio FROM table_name_34 WHERE rank > 13 AND gross = "$83,531,958"
CREATE TABLE INST, Here is a database schema( table schema);
Which studio grossed $83531958 and ranked lower than 13?It is not neccessary to use all the tables.
SELECT T3.location FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.market_value > 100
CREATE TABLE INST, Here is a database schema( table schema);
Show all locations where a gas station for company with market value greater than 100 is located.It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Home/Away = home AND Date = august 14
CREATE TABLE INST, Here is a database schema( table schema);
What is the result of the home game on August 14?.It is not neccessary to use all the tables.
SELECT Home team FROM table WHERE Date = 13 march 1985 AND Tie no = 1
CREATE TABLE INST, Here is a database schema( table schema);
What is Home Team, when Date is "13 March 1985", and when Tie No is "1"?.It is not neccessary to use all the tables.
SELECT outcome FROM table_name_88 WHERE partner = "kang haeng-suk" AND year = "1982"
CREATE TABLE INST, Here is a database schema( table schema);
What was the outcome in 1982 with Kang Haeng-Suk as partner?It is not neccessary to use all the tables.
SELECT MAX(silver) FROM table_name_63 WHERE gold < 0
CREATE TABLE INST, Here is a database schema( table schema);
What is the largest silver with less than 0 gold?It is not neccessary to use all the tables.
SELECT name FROM table_2482547_5 WHERE average = "15.89"
CREATE TABLE INST, Here is a database schema( table schema);
What are the names of all the players with an average of 15.89?It is not neccessary to use all the tables.
SELECT Team FROM table WHERE Pick = 80
CREATE TABLE INST, Here is a database schema( table schema);
What team picked 80?.It is not neccessary to use all the tables.
SELECT date FROM table_27882867_9 WHERE high_assists = "G. Rivers (5)"
CREATE TABLE INST, Here is a database schema( table schema);
What was the date of the game when g. rivers (5) had the high assists?It is not neccessary to use all the tables.
SELECT la_crescenta__montrose FROM table_name_71 WHERE tujunga = "moderate"
CREATE TABLE INST, Here is a database schema( table schema);
When Tujunga is moderate what is La Crescenta-Montrose?It is not neccessary to use all the tables.
SELECT Director FROM table WHERE Airdate = February 19, 1968
CREATE TABLE INST, Here is a database schema( table schema);
Who directed the episode that aired on February 19, 1968?.It is not neccessary to use all the tables.
SELECT winning_driver FROM table_name_82 WHERE event = "200 miles of norisring"
CREATE TABLE INST, Here is a database schema( table schema);
Which Winning Driver has an Event of 200 miles of norisring?It is not neccessary to use all the tables.
SELECT Ergative FROM table WHERE Dative = chven
CREATE TABLE INST, Here is a database schema( table schema);
What is the ergative for the dative chven?.It is not neccessary to use all the tables.
SELECT AVG("Crowd") FROM table_55624 WHERE "Venue" = 'western oval'
CREATE TABLE INST, Here is a database schema( table schema);
What's the average crowd size when the venue is western oval?It is not neccessary to use all the tables.
SELECT round FROM table_28181401_4 WHERE scorers = "Roberts 86'"
CREATE TABLE INST, Here is a database schema( table schema);
when roberts 86' is the scorer what is the round?It is not neccessary to use all the tables.
SELECT Result FROM table WHERE Candidates = James Lent (J) 52.3% Silas Wood (AJ) 47.7%
CREATE TABLE INST, Here is a database schema( table schema);
Name the result for james lent (j) 52.3% silas wood (aj) 47.7%.It is not neccessary to use all the tables.
SELECT Engine FROM table WHERE Chassis = jbw AND Year = 1960
CREATE TABLE INST, Here is a database schema( table schema);
What engine had a JBW chassis in 1960?.It is not neccessary to use all the tables.
SELECT AVG Conference Finals FROM table WHERE Finals < 5
CREATE TABLE INST, Here is a database schema( table schema);
Can you tell me the average Conference Finals that has Finals smaller than 5?.It is not neccessary to use all the tables.
SELECT TV season FROM table WHERE Viewers in millions = 2.52
CREATE TABLE INST, Here is a database schema( table schema);
What season had 2.52 million viewers?.It is not neccessary to use all the tables.
SELECT Investor_details, COUNT(Investor_details) FROM Investors GROUP BY Investor_details ORDER BY COUNT(Investor_details) DESC
CREATE TABLE INST, Here is a database schema( table schema);
Plot the number of investor details by grouped by investor details as a bar graph, display Y from high to low order.It is not neccessary to use all the tables.
SELECT MAX Week FROM table WHERE Result = l 24-0
CREATE TABLE INST, Here is a database schema( table schema);
What is the Week of the game with a Result of L 24-0?.It is not neccessary to use all the tables.
SELECT Home team score FROM table WHERE Home team = essendon
CREATE TABLE INST, Here is a database schema( table schema);
What was the score when essendon was the home team?.It is not neccessary to use all the tables.
SELECT loss FROM table_name_46 WHERE record = "50-54"
CREATE TABLE INST, Here is a database schema( table schema);
What was the Loss when the Record was 50-54?It is not neccessary to use all the tables.
SELECT "Competition" FROM table_49588 WHERE "Man of the Match" = 'rick plant'
CREATE TABLE INST, Here is a database schema( table schema);
Rick Plant was the man of the match in what competition?It is not neccessary to use all the tables.
SELECT title, directed_by FROM film
CREATE TABLE INST, Here is a database schema( table schema);
Show the title and director for all films.It is not neccessary to use all the tables.
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 FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'asphyxiation/strangulat') AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, microbiologyevents.spec_type_desc, microbiologyevents.charttime FROM microbiologyevents JOIN admissions ON microbiologyevents.hadm_id = admissions.hadm_id WHERE DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t2.charttime) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 month') GROUP BY t2.spec_type_desc) AS t3 WHERE t3.c1 <= 5
CREATE TABLE INST, Here is a database schema( table schema);
what are the five most frequent specimen tests that patients took within 2 months after being diagnosed with asphyxiation/strangulat the last year?It is not neccessary to use all the tables.
SELECT SUM(blks) FROM table_name_49 WHERE stls = 1 AND rebs > 8.6
CREATE TABLE INST, Here is a database schema( table schema);
What is the sum of Blks when Stls is 1 and when Rebs is greater than 8.6?It is not neccessary to use all the tables.
SELECT reason FROM table_name_95 WHERE venue = "belk gymnasium"
CREATE TABLE INST, Here is a database schema( table schema);
Why did the Belk Gymnasium close?It is not neccessary to use all the tables.