answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT no_s_ FROM table_name_4 WHERE height_in_ft = "6-7" AND position = "guard"
Name the numbers for the player with a height in ft of 6-7 for the guard
CREATE TABLE table_name_4 (no_s_ VARCHAR, height_in_ft VARCHAR, position VARCHAR)
SELECT series__number FROM table_2161859_1 WHERE title = "The Golden Frog"
What is the series number for the Golden Frog?
CREATE TABLE table_2161859_1 (series__number VARCHAR, title VARCHAR)
SELECT MAX("First Elected") FROM table_15823 WHERE "District" = '06.0 6' AND "Committee" = 'economic matters'
What is the Highest first elected year that has a district of 06.0 6, and a committee of economic matters?
CREATE TABLE table_15823 ( "District" text, "Counties Represented" text, "Party" text, "First Elected" real, "Committee" text )
SELECT height_in_ft FROM table_name_59 WHERE school_club_team_country = "wyoming"
Name the height in ft for the player from wyoming
CREATE TABLE table_name_59 (height_in_ft VARCHAR, school_club_team_country VARCHAR)
SELECT artist FROM table_2161859_1 WHERE strip_numbers = "3932-4031A"
Who is the artist for strip numbers 3932-4031a?
CREATE TABLE table_2161859_1 (artist VARCHAR, strip_numbers VARCHAR)
SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.age >= "41"
What is the minimum days of hospital stay of patients whose age is equal or more than 41 years?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) 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 )
SELECT college FROM table_name_29 WHERE cfl_team = "calgary stampeders"
Which college did the Calgary Stampeders recruit from?
CREATE TABLE table_name_29 (college VARCHAR, cfl_team VARCHAR)
SELECT champions FROM table_21632864_1 WHERE third_place = "Ehime Shimanami"
who got the first position when Ehime Shimanami got the third position?
CREATE TABLE table_21632864_1 (champions VARCHAR, third_place VARCHAR)
SELECT louise FROM table_name_83 WHERE dainty_june = "tracy venner"
Who was Louise when Tracy Venner was Dainty June?
CREATE TABLE table_name_83 ( louise VARCHAR, dainty_june VARCHAR )
SELECT MIN(year) FROM table_name_87 WHERE co_singer = "solo" AND film_name = "bhagya debata"
Which year has the Co-singer solo and a Film name of bhagya debata?
CREATE TABLE table_name_87 (year INTEGER, co_singer VARCHAR, film_name VARCHAR)
SELECT third_place FROM table_21632864_1 WHERE runners_up = "Laranja Kyoto"
who got the third position when laranja kyoto got the second position?
CREATE TABLE table_21632864_1 (third_place VARCHAR, runners_up VARCHAR)
SELECT listed FROM table_name_14 WHERE county = "cochise"
when was the site listed when the county is cochise?
CREATE TABLE table_name_14 ( listed VARCHAR, county VARCHAR )
SELECT date FROM table_name_30 WHERE grand_prix = "portuguese grand prix"
What date is the Portuguese Grand Prix?
CREATE TABLE table_name_30 (date VARCHAR, grand_prix VARCHAR)
SELECT COUNT(third_place) FROM table_21632864_1 WHERE fourth_place = "Sanyo Electric Tokushima"
how many persons got the third position whan sanyo electric tokushima got the fourth position?
CREATE TABLE table_21632864_1 (third_place VARCHAR, fourth_place VARCHAR)
SELECT "Episode" FROM table_61324 WHERE "Rating" = '1.8' AND "Viewers (m)" < '2.73'
What Episode has a Rating of 1.8, and Viewers (m) smaller than 2.73?
CREATE TABLE table_61324 ( "Episode" text, "18-49" text, "Viewers (m)" real, "Rating" text, "Share" text )
SELECT winning_driver FROM table_name_48 WHERE location = "imola"
Which winning driver is located in Imola?
CREATE TABLE table_name_48 (winning_driver VARCHAR, location VARCHAR)
SELECT COUNT(fourth_place) FROM table_21632864_1 WHERE regional = "Shikoku"
how many persons got the fourth position when the regional was shikoku?
CREATE TABLE table_21632864_1 (fourth_place VARCHAR, regional VARCHAR)
SELECT 2009 FROM table_name_51 WHERE tournament = "french open"
Which 2009 tournament was french open?
CREATE TABLE table_name_51 ( tournament VARCHAR )
SELECT pole_position FROM table_name_98 WHERE grand_prix = "portuguese grand prix"
What is the Pole Position of the Portuguese Grand Prix?
CREATE TABLE table_name_98 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT champions FROM table_21632864_1 WHERE regional = "Hokushinetsu"
who got the first place when the Japanese Regional Leagues was in hokushinetsu?
CREATE TABLE table_21632864_1 (champions VARCHAR, regional VARCHAR)
SELECT Sex, COUNT(*) FROM people WHERE Weight > 85 GROUP BY Sex ORDER BY Sex DESC
Count the number of people of each sex who have a weight higher than 85, and display x-axis from high to low order.
CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, Unsure_rate real ) CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, Weight real )
SELECT date FROM table_name_76 WHERE location = "long beach"
On what date did a race occur at Long Beach?
CREATE TABLE table_name_76 (date VARCHAR, location VARCHAR)
SELECT champions FROM table_21632864_1 WHERE fourth_place = "Fujieda City Government"
who got the first position when fujieda city government got the fourth position?
CREATE TABLE table_21632864_1 (champions VARCHAR, fourth_place VARCHAR)
SELECT "Date" FROM table_53105 WHERE "Tyre" = 'd' AND "Winning driver" = 'bruce mclaren'
What date was the Tyre d and Bruce Mclaren won?
CREATE TABLE table_53105 ( "Race" text, "Circuit" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Constructor" text, "Tyre" text, "Report" text )
SELECT race FROM table_name_63 WHERE pole_position = "jody scheckter"
What race had Jody Scheckter hold pole position?
CREATE TABLE table_name_63 (race VARCHAR, pole_position VARCHAR)
SELECT civilians FROM table_21636599_2 WHERE security_forces = "36"
What are the civilian total when the security force total is 36?
CREATE TABLE table_21636599_2 (civilians VARCHAR, security_forces VARCHAR)
SELECT T1.name, T1.description FROM photos AS T1 JOIN tourist_attractions AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id WHERE T2.name = "film festival"
Find the names and descriptions of the photos taken at the tourist attraction called 'film festival'.
CREATE TABLE royal_family ( royal_family_id number, royal_family_details text ) CREATE TABLE visitors ( tourist_id number, tourist_details text ) CREATE TABLE ref_hotel_star_ratings ( star_rating_code text, star_rating_description text ) CREATE TABLE theme_parks ( theme_park_id number, theme_park_details text ) CREATE TABLE museums ( museum_id number, museum_details text ) CREATE TABLE shops ( shop_id number, shop_details text ) CREATE TABLE staff ( staff_id number, tourist_attraction_id number, name text, other_details text ) CREATE TABLE tourist_attractions ( tourist_attraction_id number, attraction_type_code text, location_id number, how_to_get_there text, name text, description text, opening_hours text, other_details text ) CREATE TABLE street_markets ( market_id number, market_details text ) CREATE TABLE tourist_attraction_features ( tourist_attraction_id number, feature_id number ) CREATE TABLE hotels ( hotel_id number, star_rating_code text, pets_allowed_yn text, price_range number, other_hotel_details text ) CREATE TABLE locations ( location_id number, location_name text, address text, other_details text ) CREATE TABLE visits ( visit_id number, tourist_attraction_id number, tourist_id number, visit_date time, visit_details text ) CREATE TABLE ref_attraction_types ( attraction_type_code text, attraction_type_description text ) CREATE TABLE features ( feature_id number, feature_details text ) CREATE TABLE photos ( photo_id number, tourist_attraction_id number, name text, description text, filename text, other_details text )
SELECT race AS Winner FROM table_name_63 WHERE race = "south african grand prix"
Who won the South African Grand Prix?
CREATE TABLE table_name_63 (race VARCHAR)
SELECT security_forces FROM table_21636599_2 WHERE civilians = "202"
What are the security forces when the civilians are 202?
CREATE TABLE table_21636599_2 (security_forces VARCHAR, civilians VARCHAR)
SELECT week_2 FROM table_name_60 WHERE week_3 = "brittany alyse"
What was the week 2 prior to the when Brittany Alyse was week 3?
CREATE TABLE table_name_60 ( week_2 VARCHAR, week_3 VARCHAR )
SELECT fastest_lap FROM table_name_87 WHERE race = "german grand prix"
Who had the fastest lap at the German Grand Prix?
CREATE TABLE table_name_87 (fastest_lap VARCHAR, race VARCHAR)
SELECT COUNT(security_forces) FROM table_21636599_2 WHERE period = 1998
How many figures are named for security forces in 1998?
CREATE TABLE table_21636599_2 (security_forces VARCHAR, period VARCHAR)
SELECT AVG("Lost") FROM table_49509 WHERE "Played" < '14'
What was the average amount of losses for teams with played less than 14?
CREATE TABLE table_49509 ( "Position" real, "Name" text, "Played" real, "Drawn" real, "Lost" real, "Points" real )
SELECT tyre FROM table_name_5 WHERE race = "united states grand prix"
What is the Tyre for the united states grand prix?
CREATE TABLE table_name_5 (tyre VARCHAR, race VARCHAR)
SELECT insurgents FROM table_21636599_2 WHERE total_per_period = 156
How many insurgents are there when the total per period is 156?
CREATE TABLE table_21636599_2 (insurgents VARCHAR, total_per_period VARCHAR)
SELECT Title, CONCAT('https://electronics.stackexchange.com/questions/', CAST(Id AS TEXT), '/') AS URL FROM Posts WHERE PostTypeId = 1 AND LEFT(Title, 1) = LOWER(LEFT(Title, 1)) ORDER BY CreationDate DESC
Find questions with a lower-case first character in the title.
CREATE TABLE ReviewTaskStates ( 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 PostTypes ( 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 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 TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId 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 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 PostTags ( PostId number, TagId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId 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 ReviewTaskTypes ( Id number, Name text, Description text ) 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 Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostHistoryTypes ( Id number, Name 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 FlagTypes ( 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 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 PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time )
SELECT result FROM table_name_59 WHERE competition = "1948 og"
What was the result of the 1948 og competition?
CREATE TABLE table_name_59 (result VARCHAR, competition VARCHAR)
SELECT us_viewers__millions_ FROM table_21634403_2 WHERE directed_by = "Frank Waldeck"
How many U.S. viewers watched the episode directed by Frank Waldeck?
CREATE TABLE table_21634403_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT meter_500, meter_100 FROM swimmer ORDER BY meter_100 DESC
Bar chart x axis meter 500 y axis meter_100, sort y axis in desc order.
CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text ) CREATE TABLE record ( ID int, Result text, Swimmer_ID int, Event_ID int ) CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Country text, Opening_year int ) CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, Time text )
SELECT MIN(grid) FROM table_name_48 WHERE driver = "rolf stommelen"
I want the lowest Grid for Rolf Stommelen
CREATE TABLE table_name_48 (grid INTEGER, driver VARCHAR)
SELECT COUNT(no) FROM table_21649285_2 WHERE tournament = "Sime Darby LPGA Malaysia"
How many tournaments were at sime darby lpga malaysia?
CREATE TABLE table_21649285_2 (no VARCHAR, tournament VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT; MYOMECTOMY/SDA" AND lab.fluid = "Blood"
how many patients are diagnosed with primary disease coronary artery disease or coronary artery bypass graft myomectomy/sda and tested with blood in lab?
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 ) 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 )
SELECT constructor FROM table_name_68 WHERE grid < 20 AND laps = 6
I want the constructor for grid less than 20 and Laps of 6
CREATE TABLE table_name_68 (constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT margin_of_victory FROM table_21649285_2 WHERE no = 4
Margin of victory on no. 4 was?
CREATE TABLE table_21649285_2 (margin_of_victory VARCHAR, no VARCHAR)
SELECT director FROM table_25800134_12 WHERE airdate = "September 25, 1967"
Who directed the episode that aired on September 25, 1967?
CREATE TABLE table_25800134_12 ( director VARCHAR, airdate VARCHAR )
SELECT german FROM table_name_59 WHERE year > 1910 AND other = "143" AND hungarian = "32"
What is the german total population after 1910 with an other total of 143 and 32 hungarians?
CREATE TABLE table_name_59 (german VARCHAR, hungarian VARCHAR, year VARCHAR, other VARCHAR)
SELECT runner_s__up FROM table_21649285_2 WHERE margin_of_victory = "4 strokes"
Who was the runner up when the won by 4 strokes?
CREATE TABLE table_21649285_2 (runner_s__up VARCHAR, margin_of_victory VARCHAR)
SELECT location FROM table_name_47 WHERE circuit = "lowood circuit" AND race = "lowood trophy"
what is the location when the circuit is lowood circuit and the race is lowood trophy?
CREATE TABLE table_name_47 ( location VARCHAR, circuit VARCHAR, race VARCHAR )
SELECT year FROM table_name_4 WHERE notes = "200 m" AND position = "3rd"
What year did Naoki Tsukahara finish 3rd in the 200 m race?
CREATE TABLE table_name_4 (year VARCHAR, notes VARCHAR, position VARCHAR)
SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE year__ceremony_ = "1990 (63rd)"
Which film title used in nomination has the year (ceremony) 1990 (63rd)?
CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, year__ceremony_ VARCHAR)
SELECT * FROM table_train_124 WHERE clinical_disorder = 1 OR (investigational_new_drug = 1 OR hematologic_disease = 1 OR hepatic_disease = 1 OR (cardiovascular_disease = 1 OR ventricular_fibrillation = 1 OR ventricular_tachycardia = 1) OR pulmonary_disease = 1 OR gastrointestinal_disease = 1 OR endocrine_disease = 1 OR metabolic = 1 OR renal_disease = 1 OR other_systemic_disease = 1 OR laboratory_abnormality = 1 AND (liver_disease = 1 OR ast_or_alt = 1 OR total_bilirubin = 1 OR prothrombin_time = 1 OR retinoids_hepatotoxic = 1))
evidence of any significant clinical disorder or laboratory finding that renders the participant unsuitable for receiving an investigational new drug including clinically significant or unstable hematologic, hepatic, cardiovascular ( including history of ventricular fibrillation or ventricular tachycardia ) , pulmonary, gastrointestinal, endocrine, metabolic, renal, or other systemic disease or laboratory abnormality. abnormal liver function test, including ast, alt, total bilirubin, or prothrombin time. the rationale is that retinoids can be hepatotoxic.
CREATE TABLE table_train_124 ( "id" int, "loss_of_consciousness" bool, "serum_glucose" bool, "myelosuppression" bool, "retinoids_hepatotoxic" bool, "pulmonary_disease" bool, "etiology" bool, "abnormal_thyroid_function" bool, "laboratory_abnormality" bool, "chest_pain" bool, "dsm_iv_criteria" bool, "neurodegenerative_disease" bool, "active_infection" bool, "epilepsy" bool, "major_psychiatric_disorder" bool, "investigational_new_drug" bool, "head_injury" bool, "stroke" bool, "substance_dependence" bool, "anterograde_amnesia" bool, "renal_disease" bool, "cerebrovascular_disease" bool, "hepatic_disease" bool, "other_systemic_disease" bool, "psychiatric_disease" bool, "clinical_disorder" bool, "multiple_sclerosis" bool, "retinoids" bool, "cardiovascular_disease" bool, "hematologic_disease" bool, "prothrombin_time" bool, "focal_brain_lesion" bool, "ventricular_fibrillation" bool, "psychosis" bool, "liver_disease" bool, "bipolar_disorder" bool, "chronic_inflammatory" bool, "brain_lesions" bool, "diabetes" bool, "vitamin_b12_deficiency" bool, "medical_disorder" bool, "total_bilirubin" bool, "gastrointestinal_disease" bool, "endocrine_disease" bool, "metabolic" bool, "ventricular_tachycardia" bool, "neurological_disease" bool, "seizure_disorder" bool, "ast_or_alt" bool, "alcohol_abuse" bool, "ad" bool, "neurosurgery" bool, "allergy_to_retinoids" bool, "brain_radiation" bool, "major_depression" bool, "NOUSE" float )
SELECT COUNT(attendance) FROM table_name_67 WHERE home = "dallas" AND date = "may 12"
What is the attendance at the Dallas home game on may 12?
CREATE TABLE table_name_67 (attendance VARCHAR, home VARCHAR, date VARCHAR)
SELECT director FROM table_21655290_1 WHERE original_title = "Kon-Tiki"
Who is the director of kon-tiki original title?
CREATE TABLE table_21655290_1 (director VARCHAR, original_title VARCHAR)
SELECT MIN("year") FROM table_204_940 WHERE "top 10s" > 0
what was the first year where this golfer scored in the top 10 ?
CREATE TABLE table_204_940 ( id number, "year" number, "tournaments\nplayed" number, "cuts\nmade" number, "wins" number, "2nd" number, "3rd" number, "top 10s" number, "best\nfinish" text, "earnings\n(\u20ac)" number, "money\nlist rank" number, "scoring\naverage" number, "scoring\nrank" number, "rolex\nranking" number )
SELECT country FROM table_name_83 WHERE rank = 2
What nationality is the player ranked 2?
CREATE TABLE table_name_83 (country VARCHAR, rank VARCHAR)
SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE original_title = "Vinterkyss"
Which film title used in nomination has vinterkyss as the original title?
CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT ((YEAR(CURRENT_TIMESTAMP()) - YEAR(P.CreationDate)) * 12 + MONTH(CURRENT_TIMESTAMP()) - MONTH(P.CreationDate)) AS monthsAgo, COUNT(*) FROM Posts AS P INNER JOIN PostTags AS PT ON P.Id = PT.PostId INNER JOIN Tags AS T ON PT.TagId = T.Id WHERE ((YEAR(CURRENT_TIMESTAMP()) - YEAR(P.CreationDate)) * 12 + MONTH(CURRENT_TIMESTAMP()) - MONTH(P.CreationDate)) > 0 AND ((YEAR(CURRENT_TIMESTAMP()) - YEAR(P.CreationDate)) * 12 + MONTH(CURRENT_TIMESTAMP()) - MONTH(P.CreationDate)) < 24 AND T.TagName = 'angularjs' GROUP BY ((YEAR(CURRENT_TIMESTAMP()) - YEAR(P.CreationDate)) * 12 + MONTH(CURRENT_TIMESTAMP()) - MONTH(P.CreationDate)) ORDER BY ((YEAR(CURRENT_TIMESTAMP()) - YEAR(P.CreationDate)) * 12 + MONTH(CURRENT_TIMESTAMP()) - MONTH(P.CreationDate))
Year on year growth by month for a tag.
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 ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) 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 ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskTypes ( 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 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 Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) 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 ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) 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 ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId 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 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 PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId 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 )
SELECT COUNT(wins) FROM table_name_49 WHERE player = "mike hill" AND rank < 4
How many wins for mike hill ranked below 4?
CREATE TABLE table_name_49 (wins VARCHAR, player VARCHAR, rank VARCHAR)
SELECT date FROM table_2167226_3 WHERE tournament = "McDonald's WPGA Championship"
What is the date for the tournament McDonald's wpga championship?
CREATE TABLE table_2167226_3 (date VARCHAR, tournament VARCHAR)
SELECT capacity_percentage FROM table_28884858_2 WHERE average_attendance = 71080
What was the capacity percentage when attendance was 71080?
CREATE TABLE table_28884858_2 ( capacity_percentage VARCHAR, average_attendance VARCHAR )
SELECT nationality FROM table_name_10 WHERE player = "trevor cann"
What is Trevor Cann's nationality?
CREATE TABLE table_name_10 (nationality VARCHAR, player VARCHAR)
SELECT winning_score FROM table_2167226_3 WHERE margin_of_victory = "5 strokes"
What is the winning score when 5 strokes is the margin of victory?
CREATE TABLE table_2167226_3 (winning_score VARCHAR, margin_of_victory VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Giorgio Bertellini%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester.year = 2016
Beginning next semester ; which classes will be taught by Dr. Giorgio Bertellini ?
CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req 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 offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) 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 comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip 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 program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, 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 gsi ( course_offering_id int, student_id 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 )
SELECT nationality FROM table_name_60 WHERE player = "kent patterson"
What is Kent Patterson's nationality?
CREATE TABLE table_name_60 (nationality VARCHAR, player VARCHAR)
SELECT to_par FROM table_2167226_3 WHERE winning_score = 74 - 67 - 71 - 73 = 285
What is the to par with the winning score of 74-67-71-73=285?
CREATE TABLE table_2167226_3 (to_par VARCHAR, winning_score VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Physical restrain status" AND prescriptions.drug_type = "BASE"
count the number of patients whose diagnoses short title is physical restrain status and drug type is base?
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 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 prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text )
SELECT unit FROM table_name_27 WHERE pennant_number = 82
Which unit has a Pennant Number of 82?
CREATE TABLE table_name_27 (unit VARCHAR, pennant_number VARCHAR)
SELECT date FROM table_2167226_3 WHERE winning_score = 74 - 67 - 71 - 73 = 285
What is the date of the winning score 74-67-71-73=285?
CREATE TABLE table_2167226_3 (date VARCHAR, winning_score VARCHAR)
SELECT 1992 FROM table_name_43 WHERE 1988 = "a" AND tournament = "australian open"
What shows for 1992 when 1988 is A, at the Australian Open?
CREATE TABLE table_name_43 ( tournament VARCHAR )
SELECT MAX(pennant_number) FROM table_name_54 WHERE ships_in_class = "raahe"
What is the highest pennant number with ships in raahe class?
CREATE TABLE table_name_54 (pennant_number INTEGER, ships_in_class VARCHAR)
SELECT COUNT(no_in_series) FROM table_21666472_1 WHERE written_by = "Greg Haddrick"
How many number in series's are written by Greg Haddrick?
CREATE TABLE table_21666472_1 (no_in_series VARCHAR, written_by VARCHAR)
SELECT year FROM table_name_77 WHERE engine = "ferrari v6"
What year engine does a ferrari v6 have?
CREATE TABLE table_name_77 ( year VARCHAR, engine VARCHAR )
SELECT MAX(pennant_number) FROM table_name_61 WHERE ships_in_class = "pori"
What is the highest pennant number with ships in pori class?
CREATE TABLE table_name_61 (pennant_number INTEGER, ships_in_class VARCHAR)
SELECT year FROM table_21676617_1 WHERE odds_of_winner = "16.66"
When were the odds of winner 16.66?
CREATE TABLE table_21676617_1 (year VARCHAR, odds_of_winner VARCHAR)
SELECT SUM(lane) FROM table_name_32 WHERE time = 53.61 AND rank > 3
How many lanes have a Time of 53.61, and a Rank larger than 3?
CREATE TABLE table_name_32 ( lane INTEGER, time VARCHAR, rank VARCHAR )
SELECT competition FROM table_name_90 WHERE score = "2-1"
What is the name of the competition that ended with a score of 2-1?
CREATE TABLE table_name_90 (competition VARCHAR, score VARCHAR)
SELECT winning_time__km_rate_ FROM table_21676617_1 WHERE odds_of_winner = "2.94"
What was the winning time in the year when the odds of the winner were 2.94?
CREATE TABLE table_21676617_1 (winning_time__km_rate_ VARCHAR, odds_of_winner VARCHAR)
SELECT installation_date, COUNT(installation_date) FROM station ORDER BY COUNT(installation_date) DESC
Bin the installation date into the day of week interval, and then you can draw a bar chart to tell me how many stations each year, and list Y in desc order.
CREATE TABLE weather ( date TEXT, max_temperature_f INTEGER, mean_temperature_f INTEGER, min_temperature_f INTEGER, max_dew_point_f INTEGER, mean_dew_point_f INTEGER, min_dew_point_f INTEGER, max_humidity INTEGER, mean_humidity INTEGER, min_humidity INTEGER, max_sea_level_pressure_inches NUMERIC, mean_sea_level_pressure_inches NUMERIC, min_sea_level_pressure_inches NUMERIC, max_visibility_miles INTEGER, mean_visibility_miles INTEGER, min_visibility_miles INTEGER, max_wind_Speed_mph INTEGER, mean_wind_speed_mph INTEGER, max_gust_speed_mph INTEGER, precipitation_inches INTEGER, cloud_cover INTEGER, events TEXT, wind_dir_degrees INTEGER, zip_code INTEGER ) CREATE TABLE status ( station_id INTEGER, bikes_available INTEGER, docks_available INTEGER, time TEXT ) CREATE TABLE trip ( id INTEGER, duration INTEGER, start_date TEXT, start_station_name TEXT, start_station_id INTEGER, end_date TEXT, end_station_name TEXT, end_station_id INTEGER, bike_id INTEGER, subscription_type TEXT, zip_code INTEGER ) CREATE TABLE station ( id INTEGER, name TEXT, lat NUMERIC, long NUMERIC, dock_count INTEGER, city TEXT, installation_date TEXT )
SELECT competition FROM table_name_63 WHERE score = "1-3"
What is the name of the competition that ended with a score of 1-3?
CREATE TABLE table_name_63 (competition VARCHAR, score VARCHAR)
SELECT odds_of_winner FROM table_21676617_1 WHERE horse = "Gentleman"
What were Gentleman's odds of winner?
CREATE TABLE table_21676617_1 (odds_of_winner VARCHAR, horse VARCHAR)
SELECT icao FROM table_name_52 WHERE airport = "yangon international airport"
What is the ICAO for the Yangon International Airport?
CREATE TABLE table_name_52 ( icao VARCHAR, airport VARCHAR )
SELECT venue FROM table_name_5 WHERE date = "28 october 2013"
At which venue did the game on 28 october 2013 take place?
CREATE TABLE table_name_5 (venue VARCHAR, date VARCHAR)
SELECT COUNT(country_of_owner) FROM table_21676617_1 WHERE horse = "Utah Bulwark"
How many countries did Utah Bulwark's owner come from?
CREATE TABLE table_21676617_1 (country_of_owner VARCHAR, horse VARCHAR)
SELECT COUNT("Win %") FROM table_5533 WHERE "Appearances" = '4' AND "Losses" > '3'
What's the total number of Win % with an Appearances of 4, and Losses that's larger than 3?
CREATE TABLE table_5533 ( "Appearances" real, "Team" text, "Wins" real, "Losses" real, "Win %" real )
SELECT competition FROM table_name_74 WHERE score = "2-1"
What is the Competition name of the competition that ended with a score of 2-1?
CREATE TABLE table_name_74 (competition VARCHAR, score VARCHAR)
SELECT COUNT(horse) FROM table_21676617_1 WHERE year = 1985
How many horses are mentioned competing in 1985?
CREATE TABLE table_21676617_1 (horse VARCHAR, year VARCHAR)
SELECT name FROM table_name_88 WHERE term_end = "18 july 1944"
Which Name has a Term end of 18 july 1944?
CREATE TABLE table_name_88 ( name VARCHAR, term_end VARCHAR )
SELECT year FROM table_name_70 WHERE engine = "yamaha v12" AND chassis = "brabham bt60y"
In what year did a car have a yamaha v12 engine and a brabham bt60y chassis
CREATE TABLE table_name_70 (year VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT MAX(area__km²_) FROM table_2168295_1 WHERE headquarters = "Bharatpur"
If the headquarters is Bharatpur, what is the maximum area?
CREATE TABLE table_2168295_1 (area__km²_ INTEGER, headquarters VARCHAR)
SELECT "Division Record" FROM table_68072 WHERE "Team" = 'riders'
Name the division record for riders
CREATE TABLE table_68072 ( "School" text, "Team" text, "Division Record" text, "Overall Record" text, "Season Outcome" text )
SELECT MAX(year) FROM table_name_31 WHERE chassis = "mclaren mp4/10b"
waht is the last year with a mclaren mp4/10b chassis
CREATE TABLE table_name_31 (year INTEGER, chassis VARCHAR)
SELECT area__km²_ FROM table_2168295_1 WHERE district = "Chittorgarh"
If the district is Chittorgarh, what is the area?
CREATE TABLE table_2168295_1 (area__km²_ VARCHAR, district VARCHAR)
SELECT T1.Budget_Type_Code, COUNT(T1.Budget_Type_Code) FROM Documents_with_Expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_Code = T2.Budget_Type_Code GROUP BY T1.Budget_Type_Code ORDER BY T1.Budget_Type_Code DESC
Return a bar chart to show how many documents for different budget type code, I want to list from high to low by the bars.
CREATE TABLE Statements ( Statement_ID INTEGER, Statement_Details VARCHAR(255) ) CREATE TABLE Ref_Budget_Codes ( Budget_Type_Code CHAR(15), Budget_Type_Description VARCHAR(255) ) CREATE TABLE Documents ( Document_ID INTEGER, Document_Type_Code CHAR(15), Project_ID INTEGER, Document_Date DATETIME, Document_Name VARCHAR(255), Document_Description VARCHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Projects ( Project_ID INTEGER, Project_Details VARCHAR(255) ) CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), Document_Type_Description VARCHAR(255) ) CREATE TABLE Documents_with_Expenses ( Document_ID INTEGER, Budget_Type_Code CHAR(15), Document_Details VARCHAR(255) ) CREATE TABLE Accounts ( Account_ID INTEGER, Statement_ID INTEGER, Account_Details VARCHAR(255) )
SELECT AVG(pts) FROM table_name_58 WHERE chassis = "mclaren mp4/10b" AND year < 1995
before 1995 waht is the aveage pts for a mclaren mp4/10b chassis
CREATE TABLE table_name_58 (pts INTEGER, chassis VARCHAR, year VARCHAR)
SELECT headquarters FROM table_2168295_1 WHERE population__2011_ = 3685681
If the 2011 population is 3685681, what is the name of the headquarters?
CREATE TABLE table_2168295_1 (headquarters VARCHAR, population__2011_ VARCHAR)
SELECT U.Id AS "user_link", (SELECT COUNT(V.Id) AS "favorites" FROM Votes AS V, VoteTypes AS Vt WHERE Vt.Id = V.VoteTypeId AND U.Id = V.UserId AND Vt.Id = 5) AS "favs" FROM Users AS U WHERE (SELECT COUNT(V.Id) AS "favorites" FROM Votes AS V, VoteTypes AS Vt WHERE Vt.Id = V.VoteTypeId AND U.Id = V.UserId AND Vt.Id = 5) > 1000 ORDER BY FAVS DESC
Users with the most Favorites.
CREATE TABLE VoteTypes ( Id number, Name text ) 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 ReviewTaskTypes ( Id number, Name text, Description text ) 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 PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) 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 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 ) 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 Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) 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 SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostTypes ( Id number, Name 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 PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) 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 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 )
SELECT MAX(year) FROM table_name_84 WHERE entrant = "ligier gitanes blondes"
what is the most recent year for a ligier gitanes blondes
CREATE TABLE table_name_84 (year INTEGER, entrant VARCHAR)
SELECT MIN(area__km²_) FROM table_2168295_1 WHERE population__2011_ = 3067549
What is the minimum area id the 2011 population is 3067549?
CREATE TABLE table_2168295_1 (area__km²_ INTEGER, population__2011_ VARCHAR)
SELECT "Home team" FROM table_62247 WHERE "Tie no" = '27'
What is Home Team, when Tie no is '27'?
CREATE TABLE table_62247 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT SUM(average) FROM table_name_62 WHERE interview = 8.75 AND evening_gown > 8.75
What is the total number of averages with an interview of 8.75 when the evening gown number was bigger than 8.75?
CREATE TABLE table_name_62 (average INTEGER, interview VARCHAR, evening_gown VARCHAR)