answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT gerb FROM table_name_16 WHERE attack = "11%" | What GERB has an 11% Attack? | CREATE TABLE table_name_16 (gerb VARCHAR, attack VARCHAR) |
SELECT COUNT(round) FROM table_name_87 WHERE pick = 20 | What is the total number of rounds of the player with a pick of 20? | CREATE TABLE table_name_87 (
round VARCHAR,
pick VARCHAR
) |
SELECT date FROM table_27700375_7 WHERE game = 23 | what is the date of the game 23? | CREATE TABLE table_27700375_7 (date VARCHAR, game VARCHAR) |
SELECT tie_no FROM table_name_39 WHERE score = "3–0" AND home_team = "bristol rovers" | Which Tie # has a Score of 3–0, and a Home team of bristol rovers? | CREATE TABLE table_name_39 (tie_no VARCHAR, score VARCHAR, home_team VARCHAR) |
SELECT DISTINCT qtns.Id, qtns.Title, qtns.CreationDate, CASE WHEN qtns.AcceptedAnswerId = ans.Id THEN 'Yes' ELSE 'No' END AS Accepted FROM Posts AS qtns JOIN Posts AS ans ON qtns.Id = ans.ParentId WHERE qtns.OwnerUserId = @QtnsUser AND ans.OwnerUserId = @AnsUser ORDER BY qtns.CreationDate | Answers Given To A Particular User. | CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description 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 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 Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
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 CloseReasonTypes (
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 ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
) |
SELECT team FROM table_27700375_6 WHERE high_points = "Anthony Morrow (24)" | If the high points were by Anthony Morrow (24), what was the team? | CREATE TABLE table_27700375_6 (team VARCHAR, high_points VARCHAR) |
SELECT score FROM table_name_82 WHERE home_team = "yeovil town won 5–3 on penalties" | Which Score has a Home team of yeovil town won 5–3 on penalties? | CREATE TABLE table_name_82 (score VARCHAR, home_team VARCHAR) |
SELECT points FROM table_name_13 WHERE tries_for = "21" | What is the Points with a Tries For that is 21? | CREATE TABLE table_name_13 (
points VARCHAR,
tries_for VARCHAR
) |
SELECT COUNT(game) FROM table_27700375_6 WHERE high_rebounds = "Derrick Favors (8)" | In how many games were the high rebounds made by Derrick Favors (8)? | CREATE TABLE table_27700375_6 (game VARCHAR, high_rebounds VARCHAR) |
SELECT tie_no FROM table_name_66 WHERE away_team = "slough town" | Which Tie # has an Away team of slough town? | CREATE TABLE table_name_66 (tie_no VARCHAR, away_team VARCHAR) |
SELECT PL.RelatedPostId AS "post_link", COUNT(*) AS LinkScore FROM PostLinks AS PL INNER JOIN Posts AS PS ON PS.Id = PL.PostId INNER JOIN Posts AS PT ON PT.ParentId = PL.RelatedPostId WHERE PL.LinkTypeId = 3 AND PT.OwnerUserId = '##UserId?2751851##' GROUP BY PL.RelatedPostId ORDER BY LinkScore DESC | Duplicate link score of answers for a specific user. | CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE 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 Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name 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
)
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 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 ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
) |
SELECT high_assists FROM table_27700375_6 WHERE location_attendance = "Quicken Loans Arena 20,562" | If the location attendance was Quicken Loans Arena 20,562, who had the High Assists? | CREATE TABLE table_27700375_6 (high_assists VARCHAR, location_attendance VARCHAR) |
SELECT attendance FROM table_name_13 WHERE tie_no = "32" | Which Attendance has a Tie # of 32? | CREATE TABLE table_name_13 (attendance VARCHAR, tie_no VARCHAR) |
SELECT MAX(kerry_number) FROM table_1733457_1 WHERE others_number = 47 | Name the maximum kerry # for where others is 47 | CREATE TABLE table_1733457_1 (
kerry_number INTEGER,
others_number VARCHAR
) |
SELECT MIN(game) FROM table_27700375_6 WHERE location_attendance = "Prudential Center 15,086" | Which game number was located in Prudential Center 15,086? | CREATE TABLE table_27700375_6 (game INTEGER, location_attendance VARCHAR) |
SELECT away_team FROM table_name_51 WHERE tie_no = "replay" AND attendance = "24 november 1998" AND home_team = "rotherham united" | Which Away team has a Tie # of replay, and an Attendance of 24 november 1998, and a Home team of rotherham united? | CREATE TABLE table_name_51 (away_team VARCHAR, home_team VARCHAR, tie_no VARCHAR, attendance VARCHAR) |
SELECT gold FROM table_name_61 WHERE year = "1970" | How many gold medals were won in 1970? | CREATE TABLE table_name_61 (
gold VARCHAR,
year VARCHAR
) |
SELECT COUNT(score) FROM table_27700375_6 WHERE high_assists = "Terrence Williams (9)" | In how many games did Terrence Williams (9) have High assists? | CREATE TABLE table_27700375_6 (score VARCHAR, high_assists VARCHAR) |
SELECT tie_no FROM table_name_62 WHERE attendance = "14 november 1998" AND away_team = "hayes" | Which Tie # that has an Attendance of 14 november 1998, and an Away team of hayes? | CREATE TABLE table_name_62 (tie_no VARCHAR, attendance VARCHAR, away_team VARCHAR) |
SELECT COUNT(DISTINCT course_prerequisite.course_id), course.department, course.name, course.number FROM course, course_offering, course_prerequisite, semester WHERE course.course_id = course_offering.course_id AND course.course_id = course_prerequisite.pre_course_id AND course.department = 'EECS' AND semester.semester = 'WN' AND semester.semester_id = course_offering.semester AND semester.year = 2016 GROUP BY course_prerequisite.pre_course_id ORDER BY COUNT(course_prerequisite.course_id) DESC | Which courses offered this semester unlock most other classes ? | CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
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 gsi (
course_offering_id int,
student_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text 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 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 instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
) |
SELECT location_attendance FROM table_27700530_10 WHERE high_assists = "Gilbert Arenas (9)" | What is the location and attendance of the game when gilbert arenas (9) had the high assists? | CREATE TABLE table_27700530_10 (location_attendance VARCHAR, high_assists VARCHAR) |
SELECT date FROM table_name_82 WHERE outcome = "winner" AND opponent = "noppawan lertcheewakarn jessica moore" | Name the date with winner outcome and opponent of noppawan lertcheewakarn jessica moore | CREATE TABLE table_name_82 (date VARCHAR, outcome VARCHAR, opponent VARCHAR) |
SELECT original_air_date FROM table_19897294_10 WHERE family_families = "The Ririe Family" | When did the episode with the Ririe family air for the first time? | CREATE TABLE table_19897294_10 (
original_air_date VARCHAR,
family_families VARCHAR
) |
SELECT date FROM table_27700530_10 WHERE record = "18–12" | What is the date where the record was 18–12? | CREATE TABLE table_27700530_10 (date VARCHAR, record VARCHAR) |
SELECT score FROM table_name_35 WHERE date = "21 may 2011" | Name the score for 21 may 2011 | CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR) |
SELECT COUNT("player") FROM table_204_525 WHERE "county" = 'cork' | how many players are from cork ? | CREATE TABLE table_204_525 (
id number,
"rank" number,
"player" text,
"county" text,
"tally" text,
"total" number,
"opposition" text
) |
SELECT date FROM table_27700530_10 WHERE high_assists = "Jameer Nelson (10)" | What is the date when jameer nelson (10) had the high assists? | CREATE TABLE table_27700530_10 (date VARCHAR, high_assists VARCHAR) |
SELECT partner FROM table_name_20 WHERE opponent = "michaëlla krajicek eleni daniilidou" | Name the partner with opponent of michaëlla krajicek eleni daniilidou | CREATE TABLE table_name_20 (partner VARCHAR, opponent VARCHAR) |
SELECT p.Title, p.Id, t.TagName, p.Body FROM Posts AS p, PostTags AS pt, Tags AS t, PostHistory AS ph WHERE t.TagName = 'tornado' AND t.Id = pt.TagId AND pt.PostId = p.Id AND p.Id = ph.PostId | Find all DAML Tagged questions. | CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskTypes (
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 CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
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 PostTypes (
Id number,
Name 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 Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId 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 ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId 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 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
) |
SELECT record FROM table_27700530_10 WHERE high_points = "Jameer Nelson (19)" | What is the record when jameer nelson (19) had the high points? | CREATE TABLE table_27700530_10 (record VARCHAR, high_points VARCHAR) |
SELECT outcome FROM table_name_98 WHERE opponent = "michaëlla krajicek eleni daniilidou" | Name the outcome for opponent of michaëlla krajicek eleni daniilidou | CREATE TABLE table_name_98 (outcome VARCHAR, opponent VARCHAR) |
SELECT MIN(game) FROM table_name_82 WHERE date = "november 15" | What was the game number that was played on November 15? | CREATE TABLE table_name_82 (
game INTEGER,
date VARCHAR
) |
SELECT location_attendance FROM table_27700530_13 WHERE date = "March 9" | What was the location and attendance on March 9? | CREATE TABLE table_27700530_13 (location_attendance VARCHAR, date VARCHAR) |
SELECT SUM(wins) FROM table_name_82 WHERE matches > 5 | How many wins had Matches greater than 5? | CREATE TABLE table_name_82 (wins INTEGER, matches INTEGER) |
SELECT (SELECT "attendance" FROM table_203_794 WHERE "year" = 2001) - (SELECT "attendance" FROM table_203_794 WHERE "year" = 2004) | how much more people were in attendance at the orlando lotusphere conference in 2001 than the one in 2004 ? | CREATE TABLE table_203_794 (
id number,
"year" number,
"location" text,
"attendance" number,
"theme phrase" text,
"top messages" text,
"host" text,
"opening general session guest(s)" text,
"closing general session guest(s)" text,
"sunday night reception" text,
"wednesday night party" text,
"cult shirt" text
) |
SELECT COUNT(team) FROM table_27700530_9 WHERE game = 13 | How many games were numbered 13? | CREATE TABLE table_27700530_9 (team VARCHAR, game VARCHAR) |
SELECT round FROM table_name_27 WHERE player = "michael hjalm" | What was the round number when Michael Hjalm played? | CREATE TABLE table_name_27 (round VARCHAR, player VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.diagnosis = "ST ELEVATED MYOCARDIAL INFARCTION\CARDIAC CATH" AND procedures.icd9_code = "7935" | how many patients are diagnosed with the primary disease st elevated myocardial infarction or cardiac cath and procedured with icd9 code 7935? | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT record FROM table_27700530_9 WHERE team = "Minnesota" | What was the team's record when they played minnesota? | CREATE TABLE table_27700530_9 (record VARCHAR, team VARCHAR) |
SELECT position FROM table_name_22 WHERE round < 6 AND player = "bill campbell" | What is the position Bill Campbell played before round 6? | CREATE TABLE table_name_22 (position VARCHAR, round VARCHAR, player VARCHAR) |
SELECT local_authority, COUNT(local_authority) FROM station GROUP BY local_authority ORDER BY COUNT(local_authority) | Compare the number of the local authority by the local authority, and could you show by the total number in ascending? | CREATE TABLE train (
id int,
train_number int,
name text,
origin text,
destination text,
time text,
interval text
)
CREATE TABLE station (
id int,
network_name text,
services text,
local_authority text
)
CREATE TABLE route (
train_id int,
station_id int
)
CREATE TABLE weekly_weather (
station_id int,
day_of_week text,
high_temperature int,
low_temperature int,
precipitation real,
wind_speed_mph int
) |
SELECT record FROM table_27700530_9 WHERE date = "November 10" | What was the team's record on november 10? | CREATE TABLE table_27700530_9 (record VARCHAR, date VARCHAR) |
SELECT date FROM table_name_73 WHERE catalogue_number = "warpcdd333" | What is the date for the release with a catalogue number of WARPCDD333? | CREATE TABLE table_name_73 (date VARCHAR, catalogue_number VARCHAR) |
SELECT "Team" FROM table_5892 WHERE "Time" = '1:14.51.73' | Which Team has a Time of 1:14.51.73? | CREATE TABLE table_5892 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) |
SELECT high_assists FROM table_27704187_10 WHERE date = "March 26" | Who had the high assists on March 26? | CREATE TABLE table_27704187_10 (high_assists VARCHAR, date VARCHAR) |
SELECT country_region FROM table_name_9 WHERE label = "beat records" | What is the country/region for the releases from Beat Records? | CREATE TABLE table_name_9 (country_region VARCHAR, label VARCHAR) |
SELECT AVG("Silver") FROM table_42513 WHERE "Bronze" = '3' AND "Total" > '4' | What is the average number of silver medals of the nation with 3 bronzes and more than 4 total medals? | CREATE TABLE table_42513 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT record FROM table_27704187_10 WHERE team = "Milwaukee" | What was the season record when the team played against Milwaukee? | CREATE TABLE table_27704187_10 (record VARCHAR, team VARCHAR) |
SELECT total FROM table_name_95 WHERE player = "robbie winters" | What is the Total with a Player named robbie winters? | CREATE TABLE table_name_95 (total VARCHAR, player VARCHAR) |
SELECT * FROM Comments WHERE CreationDate BETWEEN '2012-11-01' AND '2012-11-30' ORDER BY Score DESC LIMIT 50 | 50 top-voted comments for the month of November. | CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
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 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 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 Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense 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 ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount 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 PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange 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 PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId 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 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
) |
SELECT high_points FROM table_27703902_9 WHERE game = 81 | Who had the high points in game is 81? | CREATE TABLE table_27703902_9 (high_points VARCHAR, game VARCHAR) |
SELECT position FROM table_name_47 WHERE player = "kenneth udjus" | What Position has a Player named kenneth udjus? | CREATE TABLE table_name_47 (position VARCHAR, player VARCHAR) |
SELECT DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS SN, COUNT(*) AS Num, Tags.TagName FROM Posts INNER JOIN PostTags ON PostTags.PostId = Posts.Id INNER JOIN Tags ON Tags.Id = PostTags.TagId WHERE Posts.PostTypeId = 1 GROUP BY Tags.TagName HAVING COUNT(*) > 100 ORDER BY Num DESC | Tags ordered by total number of questions. | CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
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 PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId 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 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 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 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 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 PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description 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 PostTags (
PostId number,
TagId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
) |
SELECT MIN(game) FROM table_27704187_11 WHERE date = "April 8" | What game number was played on april 8? | CREATE TABLE table_27704187_11 (game INTEGER, date VARCHAR) |
SELECT MAX(november) FROM table_name_60 WHERE record = "15-5-2" | What is the latest day in November of the game with a 15-5-2 record? | CREATE TABLE table_name_60 (november INTEGER, record VARCHAR) |
SELECT MIN(rank) FROM table_name_16 WHERE borough = "richmondshire" AND population > 8 OFFSET 178 | Which Rank is the lowest one that has a Borough of richmondshire, and a Population larger than 8,178? | CREATE TABLE table_name_16 (
rank INTEGER,
borough VARCHAR,
population VARCHAR
) |
SELECT high_rebounds FROM table_27704187_11 WHERE date = "April 8" | Who had the high rebounds on april 8? | CREATE TABLE table_27704187_11 (high_rebounds VARCHAR, date VARCHAR) |
SELECT MAX(november) FROM table_name_31 WHERE game = 15 | What is the latest day in November with a game 15? | CREATE TABLE table_name_31 (november INTEGER, game VARCHAR) |
SELECT SUM("Silver") FROM table_13500 WHERE "Nation" = 'syria (syr)' AND "Gold" > '0' | what is the silver when the nation is syria (syr) and gold is more than 0? | CREATE TABLE table_13500 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT location_attendance FROM table_27704187_11 WHERE game = 75 | Where did they play and how many attended game number 75? | CREATE TABLE table_27704187_11 (location_attendance VARCHAR, game VARCHAR) |
SELECT MIN(wins) FROM table_name_55 WHERE points > 46 AND rank = "10th" | What is the lowest wins with points larger than 46, and a rank of 10th? | CREATE TABLE table_name_55 (wins INTEGER, points VARCHAR, rank VARCHAR) |
SELECT "Home team" FROM table_53730 WHERE "Tie no" < '7' AND "Away team" = 'havant & waterlooville' | who is the home team when tie no is less than 7 and the away team is havant & waterlooville? | CREATE TABLE table_53730 (
"Tie no" real,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" real
) |
SELECT high_rebounds FROM table_27704187_7 WHERE team = "Boston" | Who did the high rebounds in the game against Boston? | CREATE TABLE table_27704187_7 (high_rebounds VARCHAR, team VARCHAR) |
SELECT AVG(points) FROM table_name_60 WHERE year > 1989 AND rank = "7th" | What is the average points with a year higher than 1989, and a rank of 7th? | CREATE TABLE table_name_60 (points INTEGER, year VARCHAR, rank VARCHAR) |
SELECT unanimous FROM table_name_78 WHERE school = "michigan dartmouth" | What is the unanimous result of the player from Michigan Dartmouth? | CREATE TABLE table_name_78 (
unanimous VARCHAR,
school VARCHAR
) |
SELECT location_attendance FROM table_27704187_7 WHERE team = "Detroit" | Where was the game against Detroit played? | CREATE TABLE table_27704187_7 (location_attendance VARCHAR, team VARCHAR) |
SELECT COUNT(year) FROM table_name_84 WHERE points > 20 | What is the year that has points larger than 20? | CREATE TABLE table_name_84 (year VARCHAR, points INTEGER) |
SELECT COUNT(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' | Find the number of different airports which are the destinations of the American Airlines. | CREATE TABLE airlines (
alid VARCHAR,
name VARCHAR
)
CREATE TABLE routes (
alid VARCHAR
) |
SELECT date FROM table_27712180_13 WHERE game = 3 | What was the date of game #3? | CREATE TABLE table_27712180_13 (date VARCHAR, game VARCHAR) |
SELECT SUM(year) FROM table_name_45 WHERE points > 46 AND rank = "6th" | What is year that has points larger than 46, and a rank of 6th? | CREATE TABLE table_name_45 (year INTEGER, points VARCHAR, rank VARCHAR) |
SELECT AVG("Crowd") FROM table_74724 WHERE "Venue" = 'western oval' | What was the average crowd at Western Oval? | CREATE TABLE table_74724 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT team FROM table_27712180_13 WHERE date = "May 6" | What was the name of the opposing team on the May 6 game? | CREATE TABLE table_27712180_13 (team VARCHAR, date VARCHAR) |
SELECT MIN(year) FROM table_name_71 WHERE points > 68 AND rank = "7th" | What earliest year with points larger than 68 and a rank of 7th? | CREATE TABLE table_name_71 (year INTEGER, points VARCHAR, rank VARCHAR) |
SELECT * FROM table_train_235 WHERE nephrotic_range_proteinuria = 1 OR urinary_protein > 3.5 | nephrotic range proteinuria ( urinary protein > 3.5 gm / day ) | CREATE TABLE table_train_235 (
"id" int,
"urinary_protein" float,
"nephrotic_range_proteinuria" bool,
"hepatic_disease" bool,
"estimated_glomerular_filtration_rate_egfr" int,
"kidney_disease" bool,
"renal_transplantation" bool,
"NOUSE" float
) |
SELECT COUNT(2010 AS _11) FROM table_27712_2 WHERE country = "Brazil" | How many data were given on 2010/2011 in Brazil? | CREATE TABLE table_27712_2 (country VARCHAR) |
SELECT player FROM table_name_7 WHERE school = "ul-monroe" | what player went to ul-monroe | CREATE TABLE table_name_7 (player VARCHAR, school VARCHAR) |
SELECT "School" FROM table_37167 WHERE "Pick" > '181' | Which school was the drafted player from in a pick larger than 181? | CREATE TABLE table_37167 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
) |
SELECT MAX(overall_goals_scored) FROM table_27708484_3 WHERE stadium = "Moses Mabhida stadium" | how many overall goals were scored at moses mabhida stadium? | CREATE TABLE table_27708484_3 (overall_goals_scored INTEGER, stadium VARCHAR) |
SELECT SUM(drawn) FROM table_name_86 WHERE points > 9 | How many drawn having more than 9 points? | CREATE TABLE table_name_86 (drawn INTEGER, points INTEGER) |
SELECT COUNT(*), gender FROM person WHERE age < 40 GROUP BY gender | Find the number of people who is under 40 for each gender. | CREATE TABLE personfriend (
name text,
friend text,
year number
)
CREATE TABLE person (
name text,
age number,
city text,
gender text,
job text
) |
SELECT COUNT(matches_played) FROM table_27708484_3 WHERE average_goals_scored_per_match = "1.25" | how many matches were played that average goals scored 1.25? | CREATE TABLE table_27708484_3 (matches_played VARCHAR, average_goals_scored_per_match VARCHAR) |
SELECT number_stayed_in_southeast FROM table_name_26 WHERE total_number_emigrated_or_forcibly_removed = "over 4,000" | Which Number stayed in Southeast has over 4,000 emigrated or forcibly removed? | CREATE TABLE table_name_26 (number_stayed_in_southeast VARCHAR, total_number_emigrated_or_forcibly_removed VARCHAR) |
SELECT "population" FROM table_204_600 WHERE "name" = 'bold' | how many people live in the bold civil parish ? | CREATE TABLE table_204_600 (
id number,
"name" text,
"status" text,
"population" number,
"district" text,
"former local authority" text
) |
SELECT MIN(overall_attendance) FROM table_27708484_3 WHERE overall_goals_scored = 19 | what is the minimum overall attendance where the goals scored were 19? | CREATE TABLE table_27708484_3 (overall_attendance INTEGER, overall_goals_scored VARCHAR) |
SELECT deaths_from_warfare FROM table_name_33 WHERE nation = "choctaw" | How many warfare deaths befell the choctaw nation? | CREATE TABLE table_name_33 (deaths_from_warfare VARCHAR, nation VARCHAR) |
SELECT "Title" FROM table_76239 WHERE "Rank" > '11' AND "Worldwide Gross" = '$131,002,597' | What is the Title of the Film with a Rank greater than 11 and Worldwide Gross of $131,002,597? | CREATE TABLE table_76239 (
"Rank" real,
"Title" text,
"Studio" text,
"Director" text,
"Worldwide Gross" text
) |
SELECT elevation FROM table_27708484_3 WHERE city = "Port Elizabeth" | what is the elevation for port elizabeth? | CREATE TABLE table_27708484_3 (elevation VARCHAR, city VARCHAR) |
SELECT number_stayed_in_southeast FROM table_name_58 WHERE total_number_emigrated_or_forcibly_removed = "19,600" | How many of those who stayed in the southeast had 19,600 emigrated or forcibly removed? | CREATE TABLE table_name_58 (number_stayed_in_southeast VARCHAR, total_number_emigrated_or_forcibly_removed VARCHAR) |
SELECT DISTINCT CreationDate, Posts.Id AS "post_link", Posts.Tags AS "tagged_with" FROM Posts WHERE (Tags LIKE '%matlab%') ORDER BY CreationDate DESC LIMIT 5 | Last 5 Notable Question Badges in MATLAB Tag. | CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE 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 Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE 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 FlagTypes (
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 ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
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 Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
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 ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
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 ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
) |
SELECT average_attendance_per_match FROM table_27708484_3 WHERE elevation = "1500 m" | what is the average attendance per match wheree the elevation is 1500 m? | CREATE TABLE table_27708484_3 (average_attendance_per_match VARCHAR, elevation VARCHAR) |
SELECT removal_treaty__year_signed_ FROM table_name_32 WHERE nation = "chickasaw" | Which removal treaty covered the chickasaw nation? | CREATE TABLE table_name_32 (removal_treaty__year_signed_ VARCHAR, nation VARCHAR) |
SELECT MIN("Average") FROM table_55734 WHERE "Swimsuit" > '6.89' AND "Evening gown" > '7.76' AND "State" = 'illinois' AND "Interview" > '8.57' | What's the lowest average for a swimsuit over 6.89, evening gown over 7.76, and an interview over 8.57 in illinois? | CREATE TABLE table_55734 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening gown" real,
"Average" real
) |
SELECT record FROM table_27712180_6 WHERE date = "November 19" | What is the record for the date november 19? | CREATE TABLE table_27712180_6 (record VARCHAR, date VARCHAR) |
SELECT date FROM table_name_53 WHERE stage = 5 | When did stage 5 occur? | CREATE TABLE table_name_53 (date VARCHAR, stage VARCHAR) |
SELECT DISTINCT course.name, course.number, semester.semester, semester.year FROM course, course_offering, semester WHERE ((semester.semester = 'FA' AND semester.year = 2016) OR (semester.semester = 'FA' AND semester.year = 2017) OR (semester.semester = 'FA' AND semester.year = 2018) OR (semester.semester = 'WN' AND semester.year = 2017) OR (semester.semester = 'WN' AND semester.year = 2018) OR (semester.semester = 'WN' AND semester.year = 2019)) AND course.course_id = course_offering.course_id AND course.department = 'EECS' AND semester.semester_id = course_offering.semester ORDER BY semester.year, semester.semester | Which classes are going to be offered over the ensuing 6 semesters ? | CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
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 requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location 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 area (
course_id int,
area 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 offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id 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_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
) |
SELECT high_points FROM table_27712180_7 WHERE score = "W 90–77 (OT)" | Name the high points for w 90–77 (ot) | CREATE TABLE table_27712180_7 (high_points VARCHAR, score VARCHAR) |
SELECT opponent FROM table_name_53 WHERE week = 14 | Who were the opponents during week 14? | CREATE TABLE table_name_53 (opponent VARCHAR, week VARCHAR) |
SELECT AVG("Bronze") FROM table_60715 WHERE "Gold" < '0' | What is the average bronze for less than 0 gold? | CREATE TABLE table_60715 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT team FROM table_27712180_7 WHERE date = "December 18" | Name the team for december 18 | CREATE TABLE table_27712180_7 (team VARCHAR, date VARCHAR) |
SELECT MAX(attendance) FROM table_name_45 WHERE date = "december 9, 1973" AND week < 13 | What is the highest attendance for the game before week 13 on December 9, 1973? | CREATE TABLE table_name_45 (attendance INTEGER, date VARCHAR, week VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.