answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT All_Road, Team_ID FROM basketball_match ORDER BY All_Road
Give me the comparison about Team_ID over the All_Road by a bar chart, I want to list by the X-axis in ascending please.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text )
SELECT COUNT(player) FROM table_23670057_7 WHERE height__m_ = "2.07"
How many players have a height of 2.07?
CREATE TABLE table_23670057_7 (player VARCHAR, height__m_ VARCHAR)
SELECT district FROM table_2417390_4 WHERE date_successor_seated = "March 28, 1878"
What district was the successor seated in March 28, 1878?
CREATE TABLE table_2417390_4 (district VARCHAR, date_successor_seated VARCHAR)
SELECT T2.name, SUM(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id = T2.cinema_id GROUP BY T1.cinema_id
What is total number of show times per dat for each cinema?
CREATE TABLE film ( film_id number, rank_in_series number, number_in_season number, title text, directed_by text, original_air_date text, production_code text ) CREATE TABLE schedule ( cinema_id number, film_id number, date text, show_times_per_day number, price number ) CREATE TABLE cinema ( cinema_id number, name text, openning_year number, capacity number, location text )
SELECT MAX(year_born) FROM table_23670057_7 WHERE current_club = "Barons LMT"
What is the latest year born when the current club is Barons LMT?
CREATE TABLE table_23670057_7 (year_born INTEGER, current_club VARCHAR)
SELECT vacator FROM table_2417390_4 WHERE district = "Nebraska At-large"
Who was the vacator for the district of Nebraska at-large?
CREATE TABLE table_2417390_4 (vacator VARCHAR, district VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "20" AND prescriptions.formulary_drug_cd = "IPRA2H"
what is the number of patients whose days of hospital stay is greater than 20 and drug code is ipra2h?
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 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 )
SELECT COUNT(current_club) FROM table_23670057_7 WHERE player = "Aigars Vitols"
How many current clubs have the player Aigars Vitols?
CREATE TABLE table_23670057_7 (current_club VARCHAR, player VARCHAR)
SELECT enrollment FROM table_24216139_2 WHERE nickname = "Cougars"
Name the enrollment with cougars
CREATE TABLE table_24216139_2 (enrollment VARCHAR, nickname VARCHAR)
SELECT social_software FROM table_name_18 WHERE discussion = "no" AND time_tracking = "no" AND charting = "no"
WHAT IS THE SOCIAL SOFTWARE WITH NO DISCUSSION, NO TIME TRACKING, AND NO CHARTING?
CREATE TABLE table_name_18 ( social_software VARCHAR, charting VARCHAR, discussion VARCHAR, time_tracking VARCHAR )
SELECT year_born FROM table_23670057_7 WHERE height__m_ = "1.88"
What is every year born for height of 1.88?
CREATE TABLE table_23670057_7 (year_born VARCHAR, height__m_ VARCHAR)
SELECT MIN(enrollment) FROM table_24216139_2 WHERE sport = "Field hockey, men's swimming"
Name the least enrollment for field hockey, men's swimming
CREATE TABLE table_24216139_2 (enrollment INTEGER, sport VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2121" AND lab.fluid = "Cerebrospinal Fluid (CSF)"
what is the number of patients whose year of birth is less than 2121 and lab test fluid is cerebrospinal fluid (csf)?
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 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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text )
SELECT no FROM table_23670057_7 WHERE player = "Aigars Vitols"
What is every number when the player is Aigars Vitols?
CREATE TABLE table_23670057_7 (no VARCHAR, player VARCHAR)
SELECT institution FROM table_24216139_2 WHERE nickname = "Cougars"
Name the school that is cougars
CREATE TABLE table_24216139_2 (institution VARCHAR, nickname VARCHAR)
SELECT ((TIME_TO_STR(Posts.CreationDate, '%W')) + (TIME_TO_STR(Posts.CreationDate, '%h')) / 24.0) AS HourOfWeek, COUNT(Posts.Id) AS Questions FROM Posts WHERE PostTypeId = 1 GROUP BY TIME_TO_STR(Posts.CreationDate, '%W'), TIME_TO_STR(Posts.CreationDate, '%h') ORDER BY HourOfWeek
Questions by Time of Day and Day of Week. Designed to consider whether 'night' questions have more visibility than 'day' questions
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 Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress 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 PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) 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 ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE ReviewTaskTypes ( 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 TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange 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 PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) 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 Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) 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 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 PostTags ( PostId number, TagId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text )
SELECT MAX(high_schools) FROM table_2367847_2 WHERE district_wide = 31851
Name the most high schools for 31851
CREATE TABLE table_2367847_2 (high_schools INTEGER, district_wide VARCHAR)
SELECT institution FROM table_24216139_2 WHERE nickname = "Purple Aces"
Name the institution for purple aces
CREATE TABLE table_24216139_2 (institution VARCHAR, nickname VARCHAR)
SELECT SUM(cost.cost) FROM cost WHERE cost.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 73423) AND DATETIME(cost.chargetime) <= DATETIME(CURRENT_TIME(), '-4 year')
how much is the total medical bill of patient 73423 until 4 years ago during their stay?
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 inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) 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 labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom 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 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 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 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 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 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 diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime 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 MAX(district_wide) FROM table_2367847_2 WHERE other_programs_ & _adjustments = 1639
Name the most district wide for 1639 other programs
CREATE TABLE table_2367847_2 (district_wide INTEGER, other_programs_ VARCHAR, _adjustments VARCHAR)
SELECT title FROM table_24222929_2 WHERE directed_by = "John Terlesky"
Name the title that was directed by john terlesky
CREATE TABLE table_24222929_2 (title VARCHAR, directed_by VARCHAR)
SELECT "Incumbent" FROM table_724 WHERE "District" = 'Florida 9'
who is the incumbent where the district is florida 9?
CREATE TABLE table_724 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT COUNT(elementary_schools) FROM table_2367847_2 WHERE district_wide = 31851
Name the total number of elementary schools for 31851
CREATE TABLE table_2367847_2 (elementary_schools VARCHAR, district_wide VARCHAR)
SELECT COUNT(title) FROM table_24222929_2 WHERE production_code = "3X5655"
Name the total number of titles for 3x5655
CREATE TABLE table_24222929_2 (title VARCHAR, production_code VARCHAR)
WITH a AS (SELECT pa.Score, pq.CreationDate AS question_date, pa.CreationDate AS answer_date, DATEDIFF(day, pq.CreationDate, CreationDate) AS daydiff FROM Posts AS pa JOIN Posts AS pq ON pa.ParentId = pq.Id) SELECT daydiff, AVG(1.00 * Score) AS quality FROM a WHERE daydiff >= 0 AND daydiff <= 300 GROUP BY daydiff ORDER BY daydiff
mean answer score as function of response time.
CREATE TABLE VoteTypes ( Id number, Name text ) 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 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 SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) 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 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 PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, 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 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 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 ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) 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 PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostTags ( PostId number, TagId 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 PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) 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 SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other )
SELECT MAX(middle_schools) FROM table_2367847_2 WHERE year = "2005-2006"
Name the most middle schools for 2005-2006
CREATE TABLE table_2367847_2 (middle_schools INTEGER, year VARCHAR)
SELECT original_air_date FROM table_24223834_3 WHERE us_viewers__in_millions_ = "1.023"
What date did the episode that had 1.023 million u.s. viewers originally air?
CREATE TABLE table_24223834_3 (original_air_date VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT "Player" FROM table_46647 WHERE "College/Country/Team" = 'connecticut'
What Player is from Connecticut?
CREATE TABLE table_46647 ( "Pick" real, "Player" text, "Nationality" text, "New WNBA Team" text, "Former WNBA Team" text, "College/Country/Team" text )
SELECT may_2009 FROM table_23680576_2 WHERE jul_2009 = "7.2%"
If the polling average in July 2009 was 7.2%, what was it in May 2009?
CREATE TABLE table_23680576_2 (may_2009 VARCHAR, jul_2009 VARCHAR)
SELECT no_in_series FROM table_24223834_3 WHERE us_viewers__in_millions_ = "2.528"
What episode number in the series had 2.528 million u.s. viewers?
CREATE TABLE table_24223834_3 (no_in_series VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT "1406 Komppa" FROM table_21566 WHERE "1391 Carelia" = '1460 Haltia'
what is the 1406 komppa of asteroid which 1391 carelia is 1460 haltia
CREATE TABLE table_21566 ( "1391 Carelia" text, "1398 Donnera" text, "1405 Sibelius" text, "1406 Komppa" text, "1407 Lindel\u00f6f" text )
SELECT aug_2008 FROM table_23680576_2 WHERE sep_2008 = "5.0%"
What was the polling average in Aug 2009 when is was 5.0% in Sep 2009?
CREATE TABLE table_23680576_2 (aug_2008 VARCHAR, sep_2008 VARCHAR)
SELECT us_viewers__in_millions_ FROM table_24223834_3 WHERE directed_by = "Daniel H. Forer"
How many million U.S. viewers watched the episode that Daniel H. Forer directed?
CREATE TABLE table_24223834_3 (us_viewers__in_millions_ VARCHAR, directed_by VARCHAR)
SELECT COUNT("emission standard") FROM table_204_909 WHERE "emission standard" = '≤ 1.1'
at most part , how many emission standards are equal to or less than 1.1 ?
CREATE TABLE table_204_909 ( id number, "pollutant" text, "units" text, "emission standard" number, "coal-fired" text, "petroleum coke-fired" text )
SELECT COUNT(oct_2008) FROM table_23680576_2 WHERE aug_2008 = "30.8%"
How many polling percentages were there in October 2008 when is was 30.8% in Aug 2008?
CREATE TABLE table_23680576_2 (oct_2008 VARCHAR, aug_2008 VARCHAR)
SELECT COUNT(overall) FROM table_24223834_3 WHERE title = "This is What They Want"
How may overall episodes had the title "this is what they want"?
CREATE TABLE table_24223834_3 (overall VARCHAR, title VARCHAR)
SELECT "Team" FROM table_73343 WHERE "Match played" = '10 4'
Which team has a match played of 10 4?
CREATE TABLE table_73343 ( "Team" text, "Stadium" text, "Match played" text, "Highest" real, "Lowest" real, "Average" real )
SELECT party FROM table_23680576_2 WHERE dec_2008 = "6.3%"
Name the party/s when the polling percentage was 6.3% in Dec 2008.
CREATE TABLE table_23680576_2 (party VARCHAR, dec_2008 VARCHAR)
SELECT tournament_winner FROM table_24248450_3 WHERE regular_season_winner = "UNC Wilmington"
Who was the Tournament Winner when UNC Wilmington won the regular season?
CREATE TABLE table_24248450_3 (tournament_winner VARCHAR, regular_season_winner VARCHAR)
SELECT CAST(N'2016-03-08T08:00:00' AS DATETIME)
Users receiving multiple bounties from the same person.
CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE FlagTypes ( 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 ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount 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 TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostTags ( PostId number, TagId 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 ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE ReviewTaskStates ( 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 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 PostTypes ( 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 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 Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) 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 SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE CloseReasonTypes ( 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 )
SELECT nov_2008 FROM table_23680576_2 WHERE aug_2008 = "1.7%"
What was the polling percentage in Nov 2008 when it was 1.7% in Aug 2008?
CREATE TABLE table_23680576_2 (nov_2008 VARCHAR, aug_2008 VARCHAR)
SELECT tournament_winner FROM table_24248450_3 WHERE conference = "Atlantic Sun conference"
Who won the tournament for the Atlantic Sun Conference?
CREATE TABLE table_24248450_3 (tournament_winner VARCHAR, conference VARCHAR)
SELECT AVG("Episode number") FROM table_46367 WHERE "Original airdate" = 'march 21, 2010' AND "Season" < '3'
What is the average Episode Number, when Original Airdate is March 21, 2010, and when Season is less than 3?
CREATE TABLE table_46367 ( "Year" real, "Show" text, "Season" real, "Episode" text, "Episode number" real, "Original airdate" text )
SELECT week_32 FROM table_23680576_3 WHERE week_33 = "31.9%"
What is the week 32 result when week 33 is 31.9%?
CREATE TABLE table_23680576_3 (week_32 VARCHAR, week_33 VARCHAR)
SELECT conference AS Tournament FROM table_24248450_3 WHERE conference = "Big Sky conference"
What is the tournament called for the Big Sky Conference?
CREATE TABLE table_24248450_3 (conference VARCHAR)
SELECT venue FROM table_name_2 WHERE round = "gs" AND result = "0–3"
Which Venue has a Round of gs, and a Result of 0 3?
CREATE TABLE table_name_2 ( venue VARCHAR, round VARCHAR, result VARCHAR )
SELECT week_37 FROM table_23680576_3 WHERE week_33 = "14.3%"
List all week 37 results when week 33 is 14.3%.
CREATE TABLE table_23680576_3 (week_37 VARCHAR, week_33 VARCHAR)
SELECT COUNT(event_2_truck_pull) FROM table_24302700_2 WHERE event_1_medley = "6 (16.6m)"
How many men had an event 1 medley score of 6 (16.6m)?
CREATE TABLE table_24302700_2 (event_2_truck_pull VARCHAR, event_1_medley VARCHAR)
SELECT producer_s_ FROM table_name_42 WHERE recipient = "animus films ltd"
Which producer worked for Animus Films LTD?
CREATE TABLE table_name_42 ( producer_s_ VARCHAR, recipient VARCHAR )
SELECT COUNT(week_36) FROM table_23680576_3 WHERE week_32 = "13.2%"
List the full amount of week 36 results when week 32 is 13.2%.
CREATE TABLE table_23680576_3 (week_36 VARCHAR, week_32 VARCHAR)
SELECT COUNT(event_4_carwalk) FROM table_24302700_2 WHERE nationality = "Ukraine"
How many men from the Ukraine?
CREATE TABLE table_24302700_2 (event_4_carwalk VARCHAR, nationality VARCHAR)
SELECT Studio, COUNT(*) FROM film GROUP BY Studio ORDER BY Studio
List the studios of each film and the number of films produced by that studio Show bar chart, could you list by the X from low to high?
CREATE TABLE film ( Film_ID int, Title text, Studio text, Director text, Gross_in_dollar int ) CREATE TABLE film_market_estimation ( Estimation_ID int, Low_Estimate real, High_Estimate real, Film_ID int, Type text, Market_ID int, Year int ) CREATE TABLE market ( Market_ID int, Country text, Number_cities int )
SELECT est FROM table_23685890_2 WHERE land_area__km²_ = "4563"
On what year was the local government area with a surface of 4563 square kilometers established?
CREATE TABLE table_23685890_2 (est VARCHAR, land_area__km²_ VARCHAR)
SELECT event_3_squat_lift FROM table_24302700_2 WHERE nationality = "United States" AND event_2_truck_pull = "1 (42.66s)"
What was the result(s) in the event 3 squatlift for the man from the United states with a result of 1 (42.66s) in the event 2 truck pull?
CREATE TABLE table_24302700_2 (event_3_squat_lift VARCHAR, nationality VARCHAR, event_2_truck_pull VARCHAR)
SELECT "U.S. viewers (millions)" FROM table_29792 WHERE "Directed by" = 'Michael Lembeck'
how many millions of north american viewers had the episode whose director was Michael Lembeck?
CREATE TABLE table_29792 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code(s)" real, "U.S. viewers (millions)" text )
SELECT major_town FROM table_23685890_2 WHERE local_government_area = "Outback Areas Community Development Trust"
Which major town is located within the Outback Areas Community Development Trust?
CREATE TABLE table_23685890_2 (major_town VARCHAR, local_government_area VARCHAR)
SELECT event_1_medley FROM table_24302700_2 WHERE event_3_squat_lift = "4 (6 in 31.85s)"
What was the result in the event 1 medley for the man with a 4 (6 in 31.85s) in the event 3 squat lift?
CREATE TABLE table_24302700_2 (event_1_medley VARCHAR, event_3_squat_lift VARCHAR)
SELECT try_bonus FROM table_name_82 WHERE tries_against = "37"
With 37 tries against, what is the try bonus?
CREATE TABLE table_name_82 ( try_bonus VARCHAR, tries_against VARCHAR )
SELECT MIN(towns) FROM table_23685890_2 WHERE land_area__km²_ = "110"
How many towns exist on the government area with a surface of 110 square kilometers?
CREATE TABLE table_23685890_2 (towns INTEGER, land_area__km²_ VARCHAR)
SELECT MIN(series_no) FROM table_2430014_9
Name the least series number
CREATE TABLE table_2430014_9 (series_no INTEGER)
SELECT "name" FROM table_203_345 ORDER BY "took office" DESC LIMIT 1
who was the last representative to take office ?
CREATE TABLE table_203_345 ( id number, "name" text, "party" text, "took office" number, "left office" number )
SELECT type FROM table_23685890_2 WHERE local_government_area = "Yalata"
What type of local government area is Yalata?
CREATE TABLE table_23685890_2 (type VARCHAR, local_government_area VARCHAR)
SELECT county FROM table_24329520_8 WHERE members = 1 AND franchise_type = "Corporation" AND borough = "Ennis"
Which county has a membership of 1, a franchise type of corporation and a borough of Ennis?
CREATE TABLE table_24329520_8 (county VARCHAR, borough VARCHAR, members VARCHAR, franchise_type VARCHAR)
SELECT SCHOOL_CODE, COUNT(*) FROM DEPARTMENT AS T1 JOIN PROFESSOR AS T2 ON T1.DEPT_CODE = T2.DEPT_CODE GROUP BY T1.SCHOOL_CODE ORDER BY COUNT(*) DESC
Return a bar chart on what is the number of professors for different school?, and sort from high to low by the the total number .
CREATE TABLE COURSE ( CRS_CODE varchar(10), DEPT_CODE varchar(10), CRS_DESCRIPTION varchar(35), CRS_CREDIT float(8) ) CREATE TABLE PROFESSOR ( EMP_NUM int, DEPT_CODE varchar(10), PROF_OFFICE varchar(50), PROF_EXTENSION varchar(4), PROF_HIGH_DEGREE varchar(5) ) CREATE TABLE STUDENT ( STU_NUM int, STU_LNAME varchar(15), STU_FNAME varchar(15), STU_INIT varchar(1), STU_DOB datetime, STU_HRS int, STU_CLASS varchar(2), STU_GPA float(8), STU_TRANSFER numeric, DEPT_CODE varchar(18), STU_PHONE varchar(4), PROF_NUM int ) CREATE TABLE EMPLOYEE ( EMP_NUM int, EMP_LNAME varchar(15), EMP_FNAME varchar(12), EMP_INITIAL varchar(1), EMP_JOBCODE varchar(5), EMP_HIREDATE datetime, EMP_DOB datetime ) CREATE TABLE ENROLL ( CLASS_CODE varchar(5), STU_NUM int, ENROLL_GRADE varchar(50) ) CREATE TABLE CLASS ( CLASS_CODE varchar(5), CRS_CODE varchar(10), CLASS_SECTION varchar(2), CLASS_TIME varchar(20), CLASS_ROOM varchar(8), PROF_NUM int ) CREATE TABLE DEPARTMENT ( DEPT_CODE varchar(10), DEPT_NAME varchar(30), SCHOOL_CODE varchar(8), EMP_NUM int, DEPT_ADDRESS varchar(20), DEPT_EXTENSION varchar(4) )
SELECT pop_2006 FROM table_23685890_2 WHERE major_town = "Coober Pedy"
What was the 2006 population count of the local government area where Coober Pedy is located?
CREATE TABLE table_23685890_2 (pop_2006 VARCHAR, major_town VARCHAR)
SELECT COUNT(members) FROM table_24329520_8 WHERE borough = "Bandon Bridge"
What is the number of members that have boroughs of Bandon Bridge?
CREATE TABLE table_24329520_8 (members VARCHAR, borough VARCHAR)
SELECT COUNT(matches) FROM table_name_16 WHERE clubs = "588 → 406"
What is the total number of Matches, when Clubs is 588 406?
CREATE TABLE table_name_16 ( matches VARCHAR, clubs VARCHAR )
SELECT MAX(week) FROM table_23685152_2 WHERE attendance = 20114
During what week was the game attended by 20114 people?
CREATE TABLE table_23685152_2 (week INTEGER, attendance VARCHAR)
SELECT COUNT(voters_in_1800) FROM table_24329520_8 WHERE borough = "Drogheda"
What is the number of voters in 1800 that have boroughs named Drogheda?
CREATE TABLE table_24329520_8 (voters_in_1800 VARCHAR, borough VARCHAR)
SELECT meter_400, ID FROM swimmer ORDER BY ID DESC
Find meter_400 and ID , and visualize them by a bar chart, and list by the Y from high to low please.
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 record FROM table_23685152_2 WHERE date = "July 28"
What was the record in game played on July 28?
CREATE TABLE table_23685152_2 (record VARCHAR, date VARCHAR)
SELECT original_1st_us_tour_cast FROM table_24353141_1 WHERE original_tokyo___seoul_tour_cast = "Thomas Hettrick"
While the original toyko/seoul tour cast included thomas hettrick, who was in the original 1st us tour cast?
CREATE TABLE table_24353141_1 (original_1st_us_tour_cast VARCHAR, original_tokyo___seoul_tour_cast VARCHAR)
SELECT LAST_NAME, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMPLOYEE_ID
For those employees who do not work in departments with managers that have ids between 100 and 200, give me the comparison about employee_id over the last_name , show by the Y-axis in ascending.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) )
SELECT record FROM table_23685152_2 WHERE opponent = "Eskimos"
What was the record in the game against Eskimos?
CREATE TABLE table_23685152_2 (record VARCHAR, opponent VARCHAR)
SELECT COUNT(original_3rd_us_tour_cast) FROM table_24353141_1 WHERE original_uk_cast = "Alyssa DiPalma"
How many original 3rd us tour cast were there while the original uk cast was alyssa dipalma?
CREATE TABLE table_24353141_1 (original_3rd_us_tour_cast VARCHAR, original_uk_cast VARCHAR)
SELECT MAX(week) FROM table_name_83 WHERE attendance = "64,900" AND result = "l 34-13"
What is the Week of the game with an Attendance of 64,900 and a Result of L 34-13?
CREATE TABLE table_name_83 ( week INTEGER, attendance VARCHAR, result VARCHAR )
SELECT name FROM table_23696862_6 WHERE wsop_earnings = "$36,372"
Whose WSOP earnings were $36,372?
CREATE TABLE table_23696862_6 (name VARCHAR, wsop_earnings VARCHAR)
SELECT original_tokyo___seoul_tour_cast FROM table_24353141_1 WHERE original_1st_us_tour_cast = "Nicci Claspell"
While the original 1st us tour cast included nicci claspell, who was in the original tokyo/seoul tour cast?
CREATE TABLE table_24353141_1 (original_tokyo___seoul_tour_cast VARCHAR, original_1st_us_tour_cast VARCHAR)
SELECT "To par" FROM table_70730 WHERE "Player" = 'vijay singh'
What is the To par has the presence of Vijay Singh?
CREATE TABLE table_70730 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Hole" text )
SELECT wsop_cashes FROM table_23696862_6 WHERE wsop_earnings = "0"
The person who had 0 WSOP earnings had how man WSOP cashes?
CREATE TABLE table_23696862_6 (wsop_cashes VARCHAR, wsop_earnings VARCHAR)
SELECT original_berkeley_cast FROM table_24353141_1 WHERE original_broadway_cast = "Stark Sands"
Who was in the original berkley cast while stark sands was in the original broadway cast?
CREATE TABLE table_24353141_1 (original_berkeley_cast VARCHAR, original_broadway_cast VARCHAR)
SELECT name FROM personfriend GROUP BY name HAVING COUNT(*) = 1
What are the names of everybody who has exactly one friend?
CREATE TABLE personfriend ( name text, friend text, year number ) CREATE TABLE person ( name text, age number, city text, gender text, job text )
SELECT name FROM table_23696862_6 WHERE wsop_cashes = 2 AND final_place = "6th"
Who had 2 WSOP cashes and was 6th in final place?
CREATE TABLE table_23696862_6 (name VARCHAR, wsop_cashes VARCHAR, final_place VARCHAR)
SELECT original_broadway_cast FROM table_24353141_1 WHERE original_1st_us_tour_cast = "Jake Epstein"
Who was in the original broadway cast while jake epstein was in the original 1st us tour cast?
CREATE TABLE table_24353141_1 (original_broadway_cast VARCHAR, original_1st_us_tour_cast VARCHAR)
SELECT AVG(in_service) FROM table_name_37 WHERE aircraft = "antonov an-2 colt"
How many Antonov An-2 Colt aircraft are in service?
CREATE TABLE table_name_37 ( in_service INTEGER, aircraft VARCHAR )
SELECT MIN(wsop_bracelets) FROM table_23696862_6
What is the smallest amount of WSOP bracelets anyone had?
CREATE TABLE table_23696862_6 (wsop_bracelets INTEGER)
SELECT original_3rd_us_tour_cast FROM table_24353141_1 WHERE original_1st_us_tour_cast = "Scott J. Campbell"
Who was in the original 3rd us tour cast while scott j. campbell was in the original 1st us tour cast?
CREATE TABLE table_24353141_1 (original_3rd_us_tour_cast VARCHAR, original_1st_us_tour_cast 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 (((flight.arrival_time <= 1730 AND flight.arrival_time >= 1630) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'CHICAGO' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'MIAMI' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.airline_code = 'AA'
i want to fly from MIAMI to CHICAGO on AA and arrive at around 5 o'clock in the afternoon show me all flights
CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code 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_interval ( period text, begin_time int, end_time int ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE month ( month_number int, month_name text ) 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 airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) 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 state ( state_code text, state_name text, country_name text ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description 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 ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE code_description ( code varchar, description text ) 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 flight_fare ( flight_id int, fare_id int ) 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 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 restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text )
SELECT wsop_cashes FROM table_23696862_6 WHERE wsop_earnings = "$126,796"
The person who had $126,796 WSOP earnings had how many WSOP cashes?
CREATE TABLE table_23696862_6 (wsop_cashes VARCHAR, wsop_earnings VARCHAR)
SELECT MAX(cable_rank) FROM table_24399615_6
What is the highest cable ranking?
CREATE TABLE table_24399615_6 (cable_rank INTEGER)
SELECT "Opponent in the final" FROM table_57816 WHERE "Tournament" = 'lahore'
Who is the opponent in the Tournament of Lahore final?
CREATE TABLE table_57816 ( "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text )
SELECT MAX(high_10_profile) FROM table_237036_2 WHERE high_profile = 80
What is the high 10 profile number when the high profile is 80?
CREATE TABLE table_237036_2 (high_10_profile INTEGER, high_profile VARCHAR)
SELECT status FROM table_24431348_18 WHERE player = "Philipp Kohlschreiber"
What is the status of player Philipp Kohlschreiber?
CREATE TABLE table_24431348_18 (status VARCHAR, player VARCHAR)
SELECT HIRE_DATE, AVG(MANAGER_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200)
For those employees who do not work in departments with managers that have ids between 100 and 200, a bar chart shows the distribution of hire_date and the average of manager_id bin hire_date by time.
CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) )
SELECT MIN(baseline), _extended_and_main_profiles FROM table_237036_2 WHERE level = "1.3"
What is the baseline extended and main profiles when level is 1.3?
CREATE TABLE table_237036_2 (_extended_and_main_profiles VARCHAR, baseline INTEGER, level VARCHAR)
SELECT COUNT(points) AS won FROM table_24431348_18 WHERE seed = 25
What the total amount of points won during seed 25?
CREATE TABLE table_24431348_18 (points VARCHAR, seed VARCHAR)
SELECT DISTINCT paper.paperid FROM keyphrase, paper, paperkeyphrase, venue WHERE keyphrase.keyphrasename = 'crowdsourcing' AND paperkeyphrase.keyphraseid = keyphrase.keyphraseid AND paper.paperid = paperkeyphrase.paperid AND paper.year = 2015 AND venue.venueid = paper.venueid AND venue.venuename = 'acl'
papers about crowdsourcing in acl 2015
CREATE TABLE paperfield ( fieldid int, paperid int ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE paperdataset ( paperid int, datasetid int ) CREATE TABLE field ( fieldid int ) CREATE TABLE keyphrase ( keyphraseid int, keyphrasename varchar ) CREATE TABLE paper ( paperid int, title varchar, venueid int, year int, numciting int, numcitedby int, journalid int ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE dataset ( datasetid int, datasetname varchar ) CREATE TABLE writes ( paperid int, authorid int ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE venue ( venueid int, venuename varchar )
SELECT level FROM table_237036_2 WHERE macroblocks_s = 11880 AND high_10_profile = 6000
What level has 11880 macroblocks and high 10 profile is 6000?
CREATE TABLE table_237036_2 (level VARCHAR, macroblocks_s VARCHAR, high_10_profile VARCHAR)
SELECT status FROM table_24431348_18 WHERE rank = 20
What was the status of rank 20?
CREATE TABLE table_24431348_18 (status VARCHAR, rank VARCHAR)
SELECT "Years in Competition" FROM table_34195 WHERE "Premiership Years" = '1982, 1984, 1999, 2002-03, 2008-09-10'
What was the Years in competition that had a Premiership of 1982, 1984, 1999, 2002-03, 2008-09-10?
CREATE TABLE table_34195 ( "Club" text, "Nickname" text, "Years in Competition" text, "No. of Premierships" real, "Premiership Years" text )