answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT tie_no FROM table_name_52 WHERE home_team = "portsmouth"
what is the tie number that has Portsmouth Home team
CREATE TABLE table_name_52 ( tie_no VARCHAR, home_team VARCHAR )
SELECT undisclosed FROM table_23835213_2 WHERE "aldershot_town" = "aldershot_town" AND wycombe_wanderers = "Oxford United"
What is the undisclosed when Aldertown is Aldershot Town and Wycombe Wanderers is Oxford United?
CREATE TABLE table_23835213_2 (undisclosed VARCHAR, wycombe_wanderers VARCHAR)
SELECT original_airdate FROM table_24798489_1 WHERE challenge = "Three overstuffed sandwiches"
What is the original airdate of the episode where the challenge was three overstuffed sandwiches?
CREATE TABLE table_24798489_1 (original_airdate VARCHAR, challenge VARCHAR)
SELECT "Cart" FROM table_60415 WHERE "Shield animal" = 'serpent'
What cart has a serpent shield animal?
CREATE TABLE table_60415 ( "Knight" text, "Weapon/item" text, "External weapon" text, "Shield animal" text, "Cart" text )
SELECT undisclosed FROM table_23835213_2 WHERE wycombe_wanderers = "Unattached"
What is the undisclosed when Wycombe Wanderers is unattached?
CREATE TABLE table_23835213_2 (undisclosed VARCHAR, wycombe_wanderers VARCHAR)
SELECT challenge_winner FROM table_24798489_1 WHERE original_airdate = "January 28, 2009"
Who was the challenge winner in the episode that originally aired on January 28, 2009?
CREATE TABLE table_24798489_1 (challenge_winner VARCHAR, original_airdate VARCHAR)
SELECT "Quantity made" FROM table_13476 WHERE "Quantity preserved" = '4-6-0 — ooooo — ten-wheeler'
What is the quantity made number for the quantity preserved 4-6-0 ooooo ten-wheeler?
CREATE TABLE table_13476 ( "Class" text, "Wheel arrangement" text, "Fleet number(s)" text, "Manufacturer" text, "Serial numbers" text, "Year made" text, "Quantity made" text, "Quantity preserved" text )
SELECT head_coach FROM table_2384331_1 WHERE arena = "Altrincham Ice Dome"
Who is the head coach for the team that plays at Altrincham Ice Dome?
CREATE TABLE table_2384331_1 (head_coach VARCHAR, arena VARCHAR)
SELECT COUNT(episode_number) FROM table_24798489_1 WHERE location = "New York, New York"
How many episodes had New York, New York as the location?
CREATE TABLE table_24798489_1 (episode_number VARCHAR, location VARCHAR)
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE STRFTIME('%y', procedures_icd.charttime) = '2100' GROUP BY procedures_icd.icd9_code) AS t1 WHERE t1.c1 <= 4)
what are the procedures that are the top four most common in 2100?
CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) 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 d_labitems ( row_id number, itemid number, label text ) 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 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 d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) 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, 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 inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number )
SELECT arena FROM table_2384331_1 WHERE captain = "Michael Wales"
What arena does the team play at that has Michael Wales as the captain?
CREATE TABLE table_2384331_1 (arena VARCHAR, captain VARCHAR)
SELECT to_par FROM table_247955_2 WHERE winning_score = 67 - 64 - 63 - 71 - 66 = 331
What were the shots below par when the winning score was 67-64-63-71-66=331?
CREATE TABLE table_247955_2 (to_par VARCHAR, winning_score VARCHAR)
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, COUNT(procedures_icd.charttime) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1912) AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', procedures_icd.charttime) = '02' GROUP BY procedures_icd.icd9_code) AS t1 WHERE t1.c1 = 2)
what is the name of the procedure that patient 1912 has undergone two times in 02/last year?
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 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_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_labitems ( row_id number, itemid number, label 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 outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text )
SELECT theme FROM table_23871828_1 WHERE week__number = "Top 9"
List all themes from the top 9.
CREATE TABLE table_23871828_1 (theme VARCHAR, week__number VARCHAR)
SELECT to_par FROM table_247955_2 WHERE winning_score = 69 - 66 - 69 - 64 = 268
What were the shots below par when the winning score was 69-66-69-64=268?
CREATE TABLE table_247955_2 (to_par VARCHAR, winning_score VARCHAR)
SELECT award FROM table_name_92 WHERE role = "elphaba" AND year = "2009"
Which award was given for the role of Elphaba in 2009?
CREATE TABLE table_name_92 ( award VARCHAR, role VARCHAR, year VARCHAR )
SELECT week__number FROM table_23871828_1 WHERE original_artist = "Whitney Houston"
In what week was the original singer Whitney Houston.
CREATE TABLE table_23871828_1 (week__number VARCHAR, original_artist VARCHAR)
SELECT COUNT(to_par) FROM table_247955_2 WHERE runner_s__up = "Jonathan Kaye"
What is the total number of to par when runner-up was Jonathan Kaye?
CREATE TABLE table_247955_2 (to_par VARCHAR, runner_s__up VARCHAR)
SELECT "Headquarter" FROM table_76719 WHERE "Newspaper/Magazine" = 'al-ayyam'
What is Headquarter, when Newspaper/Magazine is Al-Ayyam?
CREATE TABLE table_76719 ( "Newspaper/Magazine" text, "Type" text, "Language" text, "Headquarter" text, "Status" text )
SELECT song_choice FROM table_23871828_1 WHERE result = "Safe" AND order__number = 8
Name the song for safe result #8.
CREATE TABLE table_23871828_1 (song_choice VARCHAR, result VARCHAR, order__number VARCHAR)
SELECT margin_of_victory FROM table_247955_2 WHERE runner_s__up = "K. J. Choi"
What was the margin of victory when runner-up was K. J. Choi?
CREATE TABLE table_247955_2 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT "Score" FROM table_58653 WHERE "Set 3" = '26–28'
What is the Score when the set 3 is 26 28?
CREATE TABLE table_58653 ( "Date" text, "Time" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Total" text )
SELECT song_choice FROM table_23871828_1 WHERE theme = "British Invasion"
List the song chose for the British Invasion.
CREATE TABLE table_23871828_1 (song_choice VARCHAR, theme VARCHAR)
SELECT date FROM table_247955_2 WHERE no = 7
What was the date for no. 7?
CREATE TABLE table_247955_2 (date VARCHAR, no VARCHAR)
SELECT CreationDate, Id AS "post_link" FROM Posts AS p WHERE OwnerDisplayName = '##Name:string##' ORDER BY CreationDate
Search for posts by deleted user.
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 PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId 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 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 ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) 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 PostHistoryTypes ( Id number, Name text ) CREATE TABLE FlagTypes ( 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 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 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 TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostTags ( PostId number, TagId number )
SELECT stops FROM table_2385460_1 WHERE stations = 36
Name the stops for stations 36
CREATE TABLE table_2385460_1 (stops VARCHAR, stations VARCHAR)
SELECT team FROM table_24784769_1 WHERE total_points = 342
Which team had 342 total points?
CREATE TABLE table_24784769_1 (team VARCHAR, total_points VARCHAR)
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 51577 AND STRFTIME('%y', admissions.admittime) <= '2104'
tell me the time of hospital admission of patient 51577 until 2104?
CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) 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 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 d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) 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 patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) 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 d_items ( row_id number, itemid number, label text, linksto 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 procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time )
SELECT COUNT(lines) FROM table_2385460_1 WHERE route = "Porta Nolana - Ottaviano- Sarno"
Name the number of lines for porta nolana - ottaviano- sarno
CREATE TABLE table_2385460_1 (lines VARCHAR, route VARCHAR)
SELECT round3 FROM table_24784769_1 WHERE total_points = 325
How many points did the team who had 325 total points have in round 3?
CREATE TABLE table_24784769_1 (round3 VARCHAR, total_points VARCHAR)
SELECT MAX(drawn) FROM table_name_8 WHERE played < 38
What is the largest drawn that has a played less than 38?
CREATE TABLE table_name_8 ( drawn INTEGER, played INTEGER )
SELECT travel_time FROM table_2385460_1 WHERE route = "Porta Nolana - Nola - Baiano"
Name the travel time for porta nolana - nola - baiano
CREATE TABLE table_2385460_1 (travel_time VARCHAR, route VARCHAR)
SELECT MAX(round4) FROM table_24784769_1
What is the most amount of points any team had in round 4?
CREATE TABLE table_24784769_1 (round4 INTEGER)
SELECT COUNT("Tournament Venue (City)") FROM table_25180 WHERE "Tournament Winner" = 'Temple'
How many locations are listed for the winner Temple?
CREATE TABLE table_25180 ( "Conference" text, "Regular Season Winner" text, "Conference Player of the Year" text, "Conference Tournament" text, "Tournament Venue (City)" text, "Tournament Winner" text )
SELECT COUNT(stations) FROM table_2385460_1 WHERE travel_time = "15 minutes"
Name the number of stations for 15 minutes travel time
CREATE TABLE table_2385460_1 (stations VARCHAR, travel_time VARCHAR)
SELECT MAX(round1) FROM table_24784769_1 WHERE total_points = 132
How many points did the team who had 132 total points have in round 1?
CREATE TABLE table_24784769_1 (round1 INTEGER, total_points VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "NEWBORN" AND demographic.dod_year <= "2112.0"
provide the number of patients whose primary disease is newborn and year of death is less than or equal to 2112?
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 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 )
SELECT area__km²_ FROM table_23887174_1 WHERE province__ashkharh_ = "Persarmenia"
How big (in km2) is Persarmenia?
CREATE TABLE table_23887174_1 (area__km²_ VARCHAR, province__ashkharh_ VARCHAR)
SELECT opponent FROM table_24786958_2 WHERE attendance = 30701
Who did Rhein Fire play Against where 30701 people attended?
CREATE TABLE table_24786958_2 (opponent VARCHAR, attendance VARCHAR)
SELECT "Week 1" FROM table_61292 WHERE "Week 3" = 'natasha budhi'
Who is week 1 if week 3 is Natasha Budhi?
CREATE TABLE table_61292 ( "Week 1" text, "Week 2" text, "Week 3" text, "Week 4" text, "Week 5" text )
SELECT center FROM table_23887174_1 WHERE province__ashkharh_ = "Artsakh"
What's the center of the Artsakh province?
CREATE TABLE table_23887174_1 (center VARCHAR, province__ashkharh_ VARCHAR)
SELECT MIN(week) FROM table_24786958_2 WHERE kickoff = "6:00 p.m."
What week had kickoff time at 6:00 p.m.?
CREATE TABLE table_24786958_2 (week INTEGER, kickoff VARCHAR)
SELECT "College" FROM table_49891 WHERE "Position" = 'center'
What college was the draft pick from who plays center position?
CREATE TABLE table_49891 ( "Round" real, "Pick #" real, "Player" text, "Position" text, "College" text )
SELECT COUNT(province__ashkharh_) FROM table_23887174_1 WHERE center = "Baghaberd"
How many different provinces is Baghaberd the center of?
CREATE TABLE table_23887174_1 (province__ashkharh_ VARCHAR, center VARCHAR)
SELECT game_site FROM table_24786958_2 WHERE date = "Sunday, May 27"
Where was the game played that was on Sunday, May 27?
CREATE TABLE table_24786958_2 (game_site VARCHAR, date VARCHAR)
SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project GROUP BY T1.Name
Visualize a bar chart for what are the naems of all the projects, and how many scientists were assigned to each of them?
CREATE TABLE AssignedTo ( Scientist int, Project char(4) ) CREATE TABLE Projects ( Code Char(4), Name Char(50), Hours int ) CREATE TABLE Scientists ( SSN int, Name Char(30) )
SELECT MIN(area__km²_) FROM table_23887174_1 WHERE armenian_name = "Փայտակարան"
How big is the province with the Armenian name of փայտակարան?
CREATE TABLE table_23887174_1 (area__km²_ INTEGER, armenian_name VARCHAR)
SELECT MIN(attendance) FROM table_24786958_2 WHERE game_site = "Jahn-Sportpark"
How many people attended the game at Jahn-sportpark?
CREATE TABLE table_24786958_2 (attendance INTEGER, game_site VARCHAR)
SELECT SUM(pick__number) FROM table_name_59 WHERE college = "tennessee" AND overall < 270
How many Picks have a College of tennessee, and an Overall smaller than 270?
CREATE TABLE table_name_59 ( pick__number INTEGER, college VARCHAR, overall VARCHAR )
SELECT center FROM table_23887174_1 WHERE area__km²_ = 23860
What's the center of the province that spreads out on 23860 km2?
CREATE TABLE table_23887174_1 (center VARCHAR, area__km²_ VARCHAR)
SELECT COUNT(final_score) FROM table_24786958_2 WHERE game_site = "Amsterdam ArenA"
How many final scores were there on the game at Amsterdam arena?
CREATE TABLE table_24786958_2 (final_score VARCHAR, game_site VARCHAR)
SELECT pole_position FROM table_name_28 WHERE race = "brazilian grand prix"
What is the Pole Position of the Brazilian Grand Prix race?
CREATE TABLE table_name_28 ( pole_position VARCHAR, race VARCHAR )
SELECT COUNT(number_of_cantons__gavars_) FROM table_23887174_1 WHERE armenian_name = "Վասպուրական"
How many different numbers of cantons does the province with the Armenian name վասպուրական have?
CREATE TABLE table_23887174_1 (number_of_cantons__gavars_ VARCHAR, armenian_name VARCHAR)
SELECT group FROM table_24850630_4 WHERE race = "British Champion Stakes"
What was the group in the British Champion Stakes?
CREATE TABLE table_24850630_4 (group VARCHAR, race VARCHAR)
SELECT "Home team" FROM table_9451 WHERE "Date" = '18 february 1956' AND "Tie no" = '3'
What is Home Team, when Date is 18 February 1956, and when Tie No is 3?
CREATE TABLE table_9451 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT seasons FROM table_23886181_1 WHERE no = "3"
what are the seasons for no 3?
CREATE TABLE table_23886181_1 (seasons VARCHAR, no VARCHAR)
SELECT weight FROM table_24850630_4 WHERE venue = "Sandown Park"
What was the weight of the jockey at Sandown Park?
CREATE TABLE table_24850630_4 (weight VARCHAR, venue VARCHAR)
SELECT Posts.Id AS "post_link" FROM Posts INNER JOIN PostTags ON PostTags.PostId = Posts.Id INNER JOIN Tags ON PostTags.TagId = Tags.Id WHERE Tags.TagName = '##Tag:string##' AND Posts.CreationDate > DATEADD(year, -1, GETDATE())
Close votes on Tag X.
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 PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) 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 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 VoteTypes ( Id number, Name text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE ReviewTaskStates ( 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 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 SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId 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 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 PostTags ( PostId number, TagId 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 ReviewTaskResultTypes ( Id number, Name text, Description 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 MAX(wins) FROM table_2387790_1 WHERE poles = 2
what are the maximum wins where the poles are 2?
CREATE TABLE table_2387790_1 (wins INTEGER, poles VARCHAR)
SELECT distance FROM table_24850630_4 WHERE race = "Mooresbridge Stakes"
What is the distance of the Mooresbridge Stakes race?
CREATE TABLE table_24850630_4 (distance VARCHAR, race VARCHAR)
SELECT COUNT("Week") FROM table_7899 WHERE "Opponent" = 'san francisco 49ers'
How many weeks has the opponent been san francisco 49ers?
CREATE TABLE table_7899 ( "Week" real, "Date" text, "TV Time" text, "Opponent" text, "Result" text )
SELECT translation FROM table_23915_4 WHERE ipa___rio_de_janeiro__ = "ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə"
What is the original of the ipa ( rio de janeiro )translation ki̥ mo̞ɕˈtɾaɾɜ̃w̃ nɐ ˈtɛʁə tɕĩʑiˈtɜ̃nə?
CREATE TABLE table_23915_4 (translation VARCHAR, ipa___rio_de_janeiro__ VARCHAR)
SELECT winner_2nd FROM table_24850630_4 WHERE race = "British Champion Stakes"
who was the winner /2nd for the British Champion Stakes race?
CREATE TABLE table_24850630_4 (winner_2nd VARCHAR, race VARCHAR)
SELECT date_of_birth__age_ FROM table_name_20 WHERE position = "lock" AND caps = 10
When was the lock with 10 caps born?
CREATE TABLE table_name_20 ( date_of_birth__age_ VARCHAR, position VARCHAR, caps VARCHAR )
SELECT translation FROM table_23915_4 WHERE ipa___são_paulo__ = "dɐ̃ːˈtɕiɣɐ ˈtɐ̃ʊ̯̃ ɐ̃ˈmadɐ ˈsuɐ ɦõ̞ˈmənə"
What is the original of the ipa ( são paulo ) translation dɐ̃ːˈtɕiɣɐ ˈtɐ̃ʊ̯̃ ɐ̃ˈmadɐ ˈsuɐ ɦõ̞ˈmənə?
CREATE TABLE table_23915_4 (translation VARCHAR, ipa___são_paulo__ VARCHAR)
SELECT COUNT(venue) FROM table_24850630_3 WHERE race = "Mackinnon Stakes"
The MacKinnon Stakes races took place on how many venues?
CREATE TABLE table_24850630_3 (venue VARCHAR, race VARCHAR)
SELECT "Giro di Lombardia" FROM table_62553 WHERE "Paris\u2013Roubaix" = 'servais knaven ( ned )'
Which Giro di Lombardia has a Paris Roubaix of servais knaven ( ned )?
CREATE TABLE table_62553 ( "Year" real, "Milan \u2013 San Remo" text, "Tour of Flanders" text, "Paris\u2013Roubaix" text, "Li\u00e8ge\u2013Bastogne\u2013Li\u00e8ge" text, "Giro di Lombardia" text )
SELECT frequency FROM table_23910822_1 WHERE callsign = "DYMY"
Which frequency is DYMY?
CREATE TABLE table_23910822_1 (frequency VARCHAR, callsign VARCHAR)
SELECT MAX(average) FROM table_24856090_1 WHERE hk_viewers = "1.97 million"
What is the largest average for the episode with 1.97 million Hong Kong viewers?
CREATE TABLE table_24856090_1 (average INTEGER, hk_viewers VARCHAR)
SELECT "nation" FROM table_204_308 ORDER BY "bronze" DESC LIMIT 1
country with the most bronze medals .
CREATE TABLE table_204_308 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number )
SELECT frequency FROM table_23915973_1 WHERE branding = "106.3 Energy FM Naga"
What is the frequency when radio station branding is 106.3 energy fm naga?
CREATE TABLE table_23915973_1 (frequency VARCHAR, branding VARCHAR)
SELECT english_title FROM table_24856090_1 WHERE hk_viewers = "1.92 million"
What is the English title of the episode with 1.92 million Hong Kong viewers?
CREATE TABLE table_24856090_1 (english_title VARCHAR, hk_viewers VARCHAR)
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code
Return a histogram on how many students are from each city, and which cities have more than one cities?
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 Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) ) CREATE TABLE Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) ) CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER )
SELECT callsign FROM table_23915973_1 WHERE power_kw = "25kW"
What is the callsign when power kw is 25kw?
CREATE TABLE table_23915973_1 (callsign VARCHAR, power_kw VARCHAR)
SELECT MAX(premiere) FROM table_24856090_1 WHERE english_title = "The Mysteries of Love"
What is the premiere number for the episode titled "The Mysteries of Love" in English?
CREATE TABLE table_24856090_1 (premiere INTEGER, english_title VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "1882" AND lab.itemid = "51482"
give the number of patients who were born before the year 1882 and whose item id is 51482
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) 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 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 frequency FROM table_23915973_1 WHERE callsign = "DXRU-FM"
What is the frequency when callsign is dxru-fm?
CREATE TABLE table_23915973_1 (frequency VARCHAR, callsign VARCHAR)
SELECT chinese_title FROM table_24856090_1 WHERE hk_viewers = "1.97 million"
What is the Chinese name of the episode with 1.97 million Hong Kong viewers?
CREATE TABLE table_24856090_1 (chinese_title VARCHAR, hk_viewers VARCHAR)
SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '021-79544' AND patient.hospitaldischargetime IS NULL))
has patient 021-79544 been prescribed any prescription drugs on this hospital visit?
CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) 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 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 microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time )
SELECT branding FROM table_23915973_1 WHERE power_kw = "5kW"
What is the radio station branding when the power km is 5kw?
CREATE TABLE table_23915973_1 (branding VARCHAR, power_kw VARCHAR)
SELECT home_team FROM table_24887326_7 WHERE away_team = "Fulham"
Who was the home team when the away team was fulham?
CREATE TABLE table_24887326_7 (home_team VARCHAR, away_team VARCHAR)
SELECT "Team" FROM table_44341 WHERE "Points diff" = '+119'
What team has +119 Points diff?
CREATE TABLE table_44341 ( "Team" text, "Tries for" text, "Tries against" text, "Try diff" text, "Points for" text, "Points against" text, "Points diff" text )
SELECT coverage FROM table_23915973_1 WHERE power_kw = "25kW"
What is the coverage when power kw is 25kw?
CREATE TABLE table_23915973_1 (coverage VARCHAR, power_kw VARCHAR)
SELECT MIN(attendance) FROM table_24887326_7 WHERE away_team = "Stoke City"
What was the attendance of the game where Stoke city was the away team?
CREATE TABLE table_24887326_7 (attendance INTEGER, away_team VARCHAR)
SELECT "County" FROM table_34781 WHERE "Longitude" = '85°45′43″w'
What County has a Longitude of 85 45 43 w?
CREATE TABLE table_34781 ( "County" text, "Monument name" text, "Year built" real, "City or Town" text, "Latitude" text, "Longitude" text )
SELECT COUNT(power_kw) FROM table_23915973_1 WHERE frequency = "93.7 MHz"
How many power kw have a frequency of 93.7 mhz?
CREATE TABLE table_23915973_1 (power_kw VARCHAR, frequency VARCHAR)
SELECT COUNT(tie_no) FROM table_24887326_7 WHERE away_team = "Millwall"
When the away team is Millwall, what is the total possible amount of tie numbers?
CREATE TABLE table_24887326_7 (tie_no VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_61 WHERE week = "1"
What is the home team in week 1?
CREATE TABLE table_name_61 ( home_team VARCHAR, week VARCHAR )
SELECT written_by FROM table_23918997_1 WHERE us_viewers__million_ = "0.97"
Who were all the writers whose episodes had 0.97 million viewers?
CREATE TABLE table_23918997_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
SELECT date FROM table_24887326_7 WHERE away_team = "Birmingham City"
What is the date of the game played with Birmingham City as the away team?
CREATE TABLE table_24887326_7 (date VARCHAR, away_team VARCHAR)
SELECT "High points" FROM table_31208 WHERE "Team" = 'La Salle'
When la salle is the team who has the highest amount of points?
CREATE TABLE table_31208 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT COUNT(directed_by) FROM table_23918997_1 WHERE written_by = "Brent Fletcher & Miranda Kwok"
How many directors worked on the episode written by Brent Fletcher & Miranda Kwok?
CREATE TABLE table_23918997_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT original_air_date FROM table_24910742_1 WHERE no_in_season = 18
What was the airdate of episode number 18?
CREATE TABLE table_24910742_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT 1953 FROM table_name_48 WHERE 1949 = "2" AND 1952 = "3"
What 1953 has 2 as a 1949, and 3 as 1952?
CREATE TABLE table_name_48 ( Id VARCHAR )
SELECT title FROM table_23918997_1 WHERE directed_by = "Rowan Woods"
What was the title of the episode directed by Rowan Woods?
CREATE TABLE table_23918997_1 (title VARCHAR, directed_by VARCHAR)
SELECT title FROM table_24910742_1 WHERE us_viewers__millions_ = "9.64"
What was the title of the episode having exactly 9.64 million US viewers?
CREATE TABLE table_24910742_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT country FROM table_name_58 WHERE player = "tiger woods"
What country does Tiger Woods come from?
CREATE TABLE table_name_58 ( country VARCHAR, player VARCHAR )
SELECT COUNT(no) FROM table_23918997_1 WHERE us_viewers__million_ = "1.29"
How many episodes were viewed by 1.29 million people?
CREATE TABLE table_23918997_1 (no VARCHAR, us_viewers__million_ VARCHAR)
SELECT jockey FROM table_24915874_1 WHERE weight__kg_ = "53.5"
For which jockey was the weight in kg 53.5?
CREATE TABLE table_24915874_1 (jockey VARCHAR, weight__kg_ VARCHAR)
SELECT * FROM table_train_96 WHERE diabetic = 'i' OR diabetic = 'ii'
diabetes type i and ii
CREATE TABLE table_train_96 ( "id" int, "gender" string, "elevated_creatinine" float, "diabetic" string, "cerebrovascular_disease" bool, "moca_score" int, "parkinsonism" bool, "NOUSE" float )