answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT date FROM table_name_3 WHERE week < 12 AND result = "bye"
What was the date of the game with a result of bye before week 12?
CREATE TABLE table_name_3 (date VARCHAR, week VARCHAR, result VARCHAR)
SELECT MAX(modified_speed__6th_gear_) FROM table_19704392_1 WHERE standard_speed__6th_gear_ = "98"
when the max speed for modified speed (6th gear) where standard speed (6th gear) is 98
CREATE TABLE table_19704392_1 ( modified_speed__6th_gear_ INTEGER, standard_speed__6th_gear_ VARCHAR )
SELECT high_rebounds FROM table_27723228_12 WHERE game = 81
Name the high rebounds for 81 game
CREATE TABLE table_27723228_12 (high_rebounds VARCHAR, game VARCHAR)
SELECT record FROM table_name_25 WHERE opponent = "los angeles rams"
What was the record at the game against the Los Angeles Rams?
CREATE TABLE table_name_25 (record VARCHAR, opponent VARCHAR)
SELECT episodes_used FROM table_2144389_9 WHERE _number = 1
When 1 is the number what episodes were used?
CREATE TABLE table_2144389_9 ( episodes_used VARCHAR, _number VARCHAR )
SELECT score FROM table_27723228_12 WHERE team = "Indiana"
Name the score for indiana
CREATE TABLE table_27723228_12 (score VARCHAR, team VARCHAR)
SELECT opponent FROM table_name_13 WHERE date = "september 28"
Who is the opponent from September 28?
CREATE TABLE table_name_13 (opponent VARCHAR, date VARCHAR)
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, 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_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'hx of kidney malignancy') AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, labevents.itemid, labevents.charttime, admissions.hadm_id FROM labevents JOIN admissions ON labevents.hadm_id = admissions.hadm_id WHERE DATETIME(labevents.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 t1.hadm_id = t2.hadm_id GROUP BY t2.itemid) AS t3 WHERE t3.c1 <= 4)
what are the four most commonly given lab tests last year for patients who were previously diagnosed with hx of kidney malignancy in the same hospital visit?
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) 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 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) 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 d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number )
SELECT location_attendance FROM table_27723228_11 WHERE team = "Dallas"
What was the location and attendance of the game against Dallas?
CREATE TABLE table_27723228_11 (location_attendance VARCHAR, team VARCHAR)
SELECT opponent FROM table_name_56 WHERE game > 22 AND record = "17-10-4"
Who was the opponent at the game later than game 22 when the record was 17-10-4?
CREATE TABLE table_name_56 (opponent VARCHAR, game VARCHAR, record VARCHAR)
SELECT rider FROM table_name_64 WHERE laps < 22 AND grid > 19 AND time = "retirement" AND bike = "kawasaki zx-6r"
Who was the rider riding the Kawasaki ZX-6r, that rode less than 22 laps, and the grid was greater than 19, and retirement was the time?
CREATE TABLE table_name_64 ( rider VARCHAR, bike VARCHAR, time VARCHAR, laps VARCHAR, grid VARCHAR )
SELECT high_rebounds FROM table_27723228_8 WHERE record = "14–7"
Who had the high rebounds when the record was 14–7?
CREATE TABLE table_27723228_8 (high_rebounds VARCHAR, record VARCHAR)
SELECT opponents FROM table_name_95 WHERE year < 2008 AND progress = "third round"
What were the Opponents of the team, that made it to the third round, before 2008?
CREATE TABLE table_name_95 (opponents VARCHAR, year VARCHAR, progress VARCHAR)
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'piperacillin-tazobactam 3.375 g ivpb')
piperacillin-tazobactam 3.375 g ivpb what is the price?
CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) 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 diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) 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, hospitaladmitsource text, unitadmittime time, unitdischargetime time, hospitaldischargetime time, hospitaldischargestatus text ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number )
SELECT COUNT(high_rebounds) FROM table_27723228_8 WHERE game = 30
How many people are listed for high rebounds on game 30?
CREATE TABLE table_27723228_8 (high_rebounds VARCHAR, game VARCHAR)
SELECT score FROM table_name_83 WHERE progress = "no entrants" AND year = 1997
What was the score in 1997 for the team that has a Progress of no entrants?
CREATE TABLE table_name_83 (score VARCHAR, progress VARCHAR, year VARCHAR)
SELECT demographic.admittime, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "813"
what is admission time and diagnoses long title of subject id 813?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid 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, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) 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 )
SELECT record FROM table_27723228_8 WHERE high_points = "Chris Paul (16)"
What was the record when chris paul (16) had the high points?
CREATE TABLE table_27723228_8 (record VARCHAR, high_points VARCHAR)
SELECT SUM(att) FROM table_name_65 WHERE yards = 43 AND long > 43
How many Atts that have Yards of 43 and a Long larger than 43?
CREATE TABLE table_name_65 (att INTEGER, yards VARCHAR, long VARCHAR)
SELECT "Location Attendance" FROM table_25882 WHERE "Game" = '5'
Where was game number 5 played?
CREATE TABLE table_25882 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text )
SELECT record FROM table_27723228_8 WHERE score = "L 84–96 (OT)"
What is the record when the score was l 84–96 (ot)?
CREATE TABLE table_27723228_8 (record VARCHAR, score VARCHAR)
SELECT AVG(int) FROM table_name_19 WHERE rating < 87 AND yards > 4
How many Ints have a Rating smaller than 87, and Yards larger than 4?
CREATE TABLE table_name_19 (int INTEGER, rating VARCHAR, yards VARCHAR)
SELECT DISTINCT CONCAT('https://worldbuilding.stackexchange.com/questions/', Posts.ParentId, '/', CommentsAboutOntopic.PostId, '#comment', CommentsAboutOntopic.Id, '_', CommentsAboutOntopic.PostId) AS Link, CommentsAboutOntopic.Text, CommentsAboutOntopic.CreationDate FROM (SELECT * FROM Comments WHERE LOWER(Text) LIKE '%real%world%questions%on-topic%') AS CommentsAboutOntopic, Posts AS Posts WHERE Posts.Id = CommentsAboutOntopic.PostId ORDER BY CommentsAboutOntopic.CreationDate DESC
Starting point for 'real world questions are on-topic' comments.
CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) 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 ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) 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, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text )
SELECT location_attendance FROM table_27723228_8 WHERE record = "16–11"
Where was the game played when the record was 16–11?
CREATE TABLE table_27723228_8 (location_attendance VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_76 WHERE home = "detroit" AND date = "february 24"
Which visitor has detroit as the home, and february 24 as the date?
CREATE TABLE table_name_76 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT COUNT("Date") FROM table_24111 WHERE "Record" = '1-0'
Name the number of date for 1-0 record
CREATE TABLE table_24111 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Black Knights points" real, "Opponents" real, "Record" text )
SELECT score FROM table_27723228_7 WHERE team = "Miami"
Name the score for miami
CREATE TABLE table_27723228_7 (score VARCHAR, team VARCHAR)
SELECT score FROM table_name_6 WHERE home = "detroit" AND date = "february 17"
What score has detroit as the home and february 17 as the date?
CREATE TABLE table_name_6 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND flight.departure_time = 645 AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
do you have a flight leaving BOSTON at 645 going to WASHINGTON
CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_trip_cost int, round_trip_required varchar ) 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_miles int, pressurized varchar ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE airport ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, time_zone_code varchar, minimum_connect_time int ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) 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 restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time int, dual_carrier text, flight_days text, flight_id int, flight_number int, from_airport varchar, meal_code text, stops int, time_elapsed int, to_airport varchar )
SELECT high_assists FROM table_27723228_7 WHERE score = "W 107–99 (OT)"
Name the high assists for w 107–99 (ot)
CREATE TABLE table_27723228_7 (high_assists VARCHAR, score VARCHAR)
SELECT scorers FROM table_name_31 WHERE opponent = "west germany" AND date = "october 7"
What shows for Scorers when the Opponent was west germany on October 7?
CREATE TABLE table_name_31 (scorers VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT "Females (%)" FROM table_19425 WHERE "State/UT Code" = '4'
What is the percentage of females where the state code is a 4?
CREATE TABLE table_19425 ( "State/UT Code" real, "India/State/UT" text, "Literate Persons (%)" text, "Males (%)" text, "Females (%)" text )
SELECT predecessor FROM table_27730_9 WHERE ekavian = "vreme"
What's the predecessor of the Ekavian word vreme?
CREATE TABLE table_27730_9 (predecessor VARCHAR, ekavian VARCHAR)
SELECT director FROM table_name_72 WHERE platform_s_ = "gcn" AND year > 2004 AND title = "battalion wars 2"
Who was the director of Battalion Wars 2 which was released on GCN after 2004?
CREATE TABLE table_name_72 (director VARCHAR, title VARCHAR, platform_s_ VARCHAR, year VARCHAR)
SELECT TIME_TO_STR(Posts.CreationDate, '%h') AS Hour, COUNT(Posts.Id) AS Questions FROM Posts WHERE PostTypeId = 2 GROUP BY TIME_TO_STR(Posts.CreationDate, '%h') ORDER BY TIME_TO_STR(Posts.CreationDate, '%h')
Answers by Time of Day. Designed to consider whether 'night' questions have more visibility than 'day' questions
CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) 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 CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) 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, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number )
SELECT ikavian FROM table_27730_9 WHERE ijekavian = "lijep"
What's the Ikavian translation of the Ijekavian word lijep?
CREATE TABLE table_27730_9 (ikavian VARCHAR, ijekavian VARCHAR)
SELECT SUM(year) FROM table_name_7 WHERE title = "metroid prime hunters 5"
What year was Metroid Prime Hunters 5 released?
CREATE TABLE table_name_7 (year INTEGER, title VARCHAR)
SELECT A.Id AS "post_link", A.Score, (CASE WHEN Q.AcceptedAnswerId = A.Id THEN 1 ELSE 0 END) AS Accepted, A.OwnerUserId AS "user_link" FROM Posts AS A INNER JOIN Posts AS Q ON A.ParentId = Q.Id WHERE A.CreationDate BETWEEN @StartTime AND @EndTime AND Q.PostTypeId = 1 AND Q.ClosedDate IS NULL AND Q.CreationDate < @AskTime AND NOT EXISTS(SELECT * FROM Posts AS B WHERE B.ParentId = Q.Id AND B.CreationDate < @StartTime) ORDER BY A.Score DESC, Accepted DESC
Answers to old unanswered questions.
CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) 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 Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE VoteTypes ( Id number, Name text ) 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, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE PostTypes ( Id number, Name text )
SELECT ijekavian FROM table_27730_9 WHERE ikavian = "grijati"
What's the ijekavian translation of the ikavian word grijati?
CREATE TABLE table_27730_9 (ijekavian VARCHAR, ikavian VARCHAR)
SELECT platform_s_ FROM table_name_45 WHERE year > 2006 AND director = "bryan walker"
What platform was used for the game directed by Bryan Walker after 2006?
CREATE TABLE table_name_45 (platform_s_ VARCHAR, year VARCHAR, director VARCHAR)
SELECT MIN("Population (2000 Census)") FROM table_41124 WHERE "Municipality" = 'suwon' AND "Population (2010 Census)" > '1,071,913'
What is the lowest population (2000 Census) that has a population (2010 Census) larger than 1,071,913 and municipality of Suwon?
CREATE TABLE table_41124 ( "Rank" real, "Municipality" text, "Population (2010 Census)" real, "Population (2005 Census)" real, "Population (2000 Census)" real )
SELECT COUNT(high_assists) FROM table_27723526_9 WHERE date = "December 21"
Who had highest assists at game on December 21?
CREATE TABLE table_27723526_9 (high_assists VARCHAR, date VARCHAR)
SELECT title FROM table_name_72 WHERE platform_s_ = "3ds" AND director = "naohiko aoyama"
What 3ds game did Naohiko Aoyama direct?
CREATE TABLE table_name_72 (title VARCHAR, platform_s_ VARCHAR, director VARCHAR)
SELECT census_ranking FROM table_name_36 WHERE population < 879 AND area_km_2 > 537.62
Which Census Ranking has a Population smaller than 879, and an Area km 2 larger than 537.62?
CREATE TABLE table_name_36 ( census_ranking VARCHAR, population VARCHAR, area_km_2 VARCHAR )
SELECT location_attendance FROM table_27723526_9 WHERE team = "Milwaukee"
What location did the Mavericks play against Milwaukee?
CREATE TABLE table_27723526_9 (location_attendance VARCHAR, team VARCHAR)
SELECT score FROM table_name_57 WHERE loss = "hideo nomo (3–5)"
What was the score when the loss was hideo nomo (3–5)?
CREATE TABLE table_name_57 (score VARCHAR, loss VARCHAR)
SELECT "Opponent" FROM table_69657 WHERE "Ground" = 'waca ground' AND "Score" = '79'
Who played on waca ground and scored 79 points?
CREATE TABLE table_69657 ( "Player" text, "Score" text, "Balls" real, "Opponent" text, "Ground" text )
SELECT high_rebounds FROM table_27723526_17 WHERE date = "June 9"
What is the high rebound for June 9?
CREATE TABLE table_27723526_17 (high_rebounds VARCHAR, date VARCHAR)
SELECT score FROM table_name_77 WHERE date = "may 19"
What was the score on may 19?
CREATE TABLE table_name_77 (score VARCHAR, date VARCHAR)
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'delayed clos abd wound') AND STRFTIME('%y', procedures_icd.charttime) = '2103')
what is the number of patients having delayed clos abd wound in 2103?
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) 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 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) 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 d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number )
SELECT high_rebounds FROM table_27723526_17 WHERE game = 5
Who is the high rebound where game is 5?
CREATE TABLE table_27723526_17 (high_rebounds VARCHAR, game VARCHAR)
SELECT MAX(pick) FROM table_name_9 WHERE round > 5 AND player = "tom ivey"
Name of the highest Pick is also a Round greater than 5 and Player as Tom Ivey?
CREATE TABLE table_name_9 (pick INTEGER, round VARCHAR, player VARCHAR)
SELECT state, acc_type, credit_score FROM customer WHERE no_of_loans = 0
Find the state, account type, and credit score of the customer whose number of loan is 0.
CREATE TABLE customer ( state VARCHAR, acc_type VARCHAR, credit_score VARCHAR, no_of_loans VARCHAR )
SELECT team FROM table_27733258_11 WHERE date = "April 1"
What company plays on april 1?
CREATE TABLE table_27733258_11 (team VARCHAR, date VARCHAR)
SELECT nationality FROM table_name_92 WHERE pick = 116
What Nationality is the Pick that is 116?
CREATE TABLE table_name_92 (nationality VARCHAR, pick VARCHAR)
SELECT finish FROM table_name_51 WHERE country = "united states" AND player = "tiger woods"
what is the finish when the country is united states and the player is tiger woods?
CREATE TABLE table_name_51 ( finish VARCHAR, country VARCHAR, player VARCHAR )
SELECT high_points FROM table_27733258_6 WHERE score = "L 110–112 (OT)"
Name the high points for l 110–112 (ot)
CREATE TABLE table_27733258_6 (high_points VARCHAR, score VARCHAR)
SELECT SUM(pick) FROM table_name_61 WHERE position = "n/a" AND player = "greg wendt" AND round < 6
What is the total of Pick with a Position of n/a and Greg Wendt as Player with a Round less than 6?
CREATE TABLE table_name_61 (pick INTEGER, round VARCHAR, position VARCHAR, player VARCHAR)
SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'lt heart angiocardiogram') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26469)
patient 26469 underwent any lt heart angiocardiogram procedure?
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) 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 time, valuenum number, valueuom text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) 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 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 )
SELECT location_attendance FROM table_27733258_6 WHERE score = "L 105–123 (OT)"
Name the location attendance for l 105–123 (ot)
CREATE TABLE table_27733258_6 (location_attendance VARCHAR, score VARCHAR)
SELECT score FROM table_name_8 WHERE time = "3:27"
What was the score at 3:27?
CREATE TABLE table_name_8 (score VARCHAR, time VARCHAR)
SELECT "Hometown" FROM table_17053 WHERE "Position" = 'Pitcher' AND "School" = 'Saint Joseph Regional High School'
What is the hometown of the pitcher who's school was Saint Joseph Regional High School?
CREATE TABLE table_17053 ( "Player" text, "Position" text, "School" text, "Hometown" text, "MLB Draft" text )
SELECT date FROM table_27733258_7 WHERE game = 29
what date was game 29?
CREATE TABLE table_27733258_7 (date VARCHAR, game VARCHAR)
SELECT cardinal_direction FROM table_name_84 WHERE english = "monday"
What is the cardinal direction of Monday in English?
CREATE TABLE table_name_84 (cardinal_direction VARCHAR, english VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Medicaid" AND diagnoses.long_title = "Retained plastic fragments"
how many patients are with medicaid insurance and diagnosed with retained plastic fragments?
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 text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear 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 ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT team FROM table_27733258_8 WHERE date = "January 9"
Who did the team play on january 9?
CREATE TABLE table_27733258_8 (team VARCHAR, date VARCHAR)
SELECT english FROM table_name_31 WHERE cardinal_direction = "northwest"
What is the cardinal direction northwest in English?
CREATE TABLE table_name_31 (english VARCHAR, cardinal_direction VARCHAR)
SELECT "High points" FROM table_2856 WHERE "Team" = 'Indiana'
Who led with the highest points during the game against Indiana?
CREATE TABLE table_2856 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT high_assists FROM table_27733909_10 WHERE game = 75
Who had the highest assists in game 75?
CREATE TABLE table_27733909_10 (high_assists VARCHAR, game VARCHAR)
SELECT sign FROM table_name_87 WHERE burmese = "taninganwe တနင်္ဂနွေ"
What is the sign of Burmese taninganwe တနင်္ဂနွေ?
CREATE TABLE table_name_87 (sign VARCHAR, burmese VARCHAR)
SELECT MIN("Pick #") FROM table_39493 WHERE "College" = 'troy state' AND "Name" = 'reggie dwight' AND "Overall" < '217'
Which Pick # is the lowest one that has a College of troy state, and a Name of reggie dwight, and an Overall smaller than 217?
CREATE TABLE table_39493 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT COUNT(location_attendance) FROM table_27733909_10 WHERE date = "April 8"
How many locations did the game that was on April 8 take place at?
CREATE TABLE table_27733909_10 (location_attendance VARCHAR, date VARCHAR)
SELECT cardinal_direction FROM table_name_90 WHERE english = "wednesday p.m."
What is the cardinal direction of Wednesday p.m. in English?
CREATE TABLE table_name_90 (cardinal_direction VARCHAR, english VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Diabetes with ketoacidosis, type I [juvenile type], not stated as uncontrolled" AND lab.flag = "abnormal"
give me the number of patients whose diagnoses long title is diabetes with ketoacidosis, type i [juvenile type], not stated as uncontrolled and lab test abnormal status is abnormal?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid 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 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 text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT COUNT(record) FROM table_27733909_1 WHERE date = "October 6"
what is the overall number of times when the calendar showed october 6
CREATE TABLE table_27733909_1 (record VARCHAR, date VARCHAR)
SELECT sign FROM table_name_94 WHERE burmese = "taninganwe တနင်္ဂနွေ"
What is the sign of the Burmese taninganwe တနင်္ဂနွေ?
CREATE TABLE table_name_94 (sign VARCHAR, burmese VARCHAR)
SELECT COUNT(high_points) FROM table_13619053_8 WHERE game = 66
How many players led Game #66 in scoring?
CREATE TABLE table_13619053_8 ( high_points VARCHAR, game VARCHAR )
SELECT high_points FROM table_27733909_1 WHERE date = "October 20"
what is the most number where the calendar shows october 20
CREATE TABLE table_27733909_1 (high_points VARCHAR, date VARCHAR)
SELECT home FROM table_name_68 WHERE date = "january 5"
On January 5 who was the home team?
CREATE TABLE table_name_68 (home VARCHAR, date VARCHAR)
SELECT demographic.gender FROM demographic WHERE demographic.subject_id = "17787"
what is gender of subject id 17787?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid 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 ) 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 text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) 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 )
SELECT date FROM table_27733909_1 WHERE game = 5
what are the times where the play is 5
CREATE TABLE table_27733909_1 (date VARCHAR, game VARCHAR)
SELECT AVG(pick__number) FROM table_name_54 WHERE position = "wide receiver" AND college = "southern miss" AND overall < 186
What was the Pick Number when the position was wide receiver, the college was Southern Miss with an overall less than 186?
CREATE TABLE table_name_54 (pick__number INTEGER, overall VARCHAR, position VARCHAR, college VARCHAR)
SELECT DISTINCT instructor.name FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number = 451 AND NOT instructor.name LIKE '%Mark Oyen%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id
451 is taught by professors other than Prof. Mark Oyen ?
CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) 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, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) 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_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) CREATE TABLE area ( course_id int, area varchar )
SELECT score FROM table_27733909_5 WHERE date = "November 21"
What was the score in the game on November 21?
CREATE TABLE table_27733909_5 (score VARCHAR, date VARCHAR)
SELECT MAX(round) FROM table_name_61 WHERE position = "linebacker" AND pick__number > 5
Let's say position was linebacker with a pick number less than 5, what was the highest round?
CREATE TABLE table_name_61 (round INTEGER, position VARCHAR, pick__number VARCHAR)
SELECT classroom, COUNT(*) FROM list GROUP BY classroom
Report the number of students in each classroom.
CREATE TABLE teachers ( lastname text, firstname text, classroom number ) CREATE TABLE list ( lastname text, firstname text, grade number, classroom number )
SELECT high_points FROM table_27733909_5 WHERE game = 11
Who had the most points and how many did they have in game 11?
CREATE TABLE table_27733909_5 (high_points VARCHAR, game VARCHAR)
SELECT transfer_window FROM table_name_44 WHERE name = "baptista"
What transfer window has baptista as the name?
CREATE TABLE table_name_44 (transfer_window VARCHAR, name VARCHAR)
SELECT COUNT(*) FROM table_203_651 WHERE "position" = 1 AND "year" > 1989
how many times after the year 1989 did she come in 1st position ?
CREATE TABLE table_203_651 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text )
SELECT record FROM table_27734286_6 WHERE game = 29
List records for game 29.
CREATE TABLE table_27734286_6 (record VARCHAR, game VARCHAR)
SELECT country FROM table_name_6 WHERE type = "loan"
What country has a loan as the type?
CREATE TABLE table_name_6 (country VARCHAR, type VARCHAR)
SELECT "Stage winner" FROM table_13568 WHERE "Stage" < '16' AND "Year" < '1986' AND "Distance (km)" = '19.6'
who was the Stage winner when the stage was smaller than 16, earlier than 1986, and a distance (km) was 19.6?
CREATE TABLE table_13568 ( "Year" real, "Stage" real, "Start of stage" text, "Distance (km)" text, "Category of climb" text, "Stage winner" text, "Yellow jersey" text )
SELECT record FROM table_27734286_1 WHERE high_points = "C. J. Miles (20)"
What record has c. j. miles (20) in the high points?
CREATE TABLE table_27734286_1 (record VARCHAR, high_points VARCHAR)
SELECT type FROM table_name_7 WHERE name = "song"
What type has song as the name?
CREATE TABLE table_name_7 (type VARCHAR, name VARCHAR)
SELECT "2012" FROM table_37810 WHERE "2013" = '2r' AND "2009" = '3r'
Name the 2012 with 2013 of 2r and 2009 of 3r
CREATE TABLE table_37810 ( "Tournament" text, "2006" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text )
SELECT high_rebounds FROM table_27734286_1 WHERE location_attendance = "Honda Center 15,625"
Who in the high rebounds is in the honda center 15,625 location attendance?
CREATE TABLE table_27734286_1 (high_rebounds VARCHAR, location_attendance VARCHAR)
SELECT ends FROM table_name_92 WHERE type = "transferred"
What ends has transferred as the type?
CREATE TABLE table_name_92 (ends VARCHAR, type VARCHAR)
SELECT "Date successor seated" FROM table_25068 WHERE "District" = 'Massachusetts 20th'
The successor for the Massachusetts 20th district was seated on what date?
CREATE TABLE table_25068 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text )
SELECT high_points FROM table_27734286_1 WHERE team = "@ L.A. Clippers"
Who is in the high points in the @ l.a. clippers team?
CREATE TABLE table_27734286_1 (high_points VARCHAR, team VARCHAR)
SELECT moving_from FROM table_name_63 WHERE country = "fra"
What moving has fra as the country?
CREATE TABLE table_name_63 (moving_from VARCHAR, country VARCHAR)