answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT high_assists FROM table_27744976_6 WHERE date = "November 17" | Who had the high assists on November 17? | CREATE TABLE table_27744976_6 (high_assists VARCHAR, date VARCHAR) |
SELECT club FROM table_name_39 WHERE round = "2nd round" AND score = "1:0, 3:0" | Which club has a 2nd round score of 1:0, 3:0? | CREATE TABLE table_name_39 (club VARCHAR, round VARCHAR, score VARCHAR) |
SELECT "From" FROM table_75884 WHERE "Name" = 'philoxenus anicetus' | When did Philoxenus Anicetus begin to hold power? | CREATE TABLE table_75884 (
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
) |
SELECT high_rebounds FROM table_27744976_10 WHERE date = "March 12" | Who had highest rebounds during game on March 12? | CREATE TABLE table_27744976_10 (high_rebounds VARCHAR, date VARCHAR) |
SELECT mission FROM table_name_16 WHERE resident_country = "switzerland" | What is the mission for switzerland as a resident County? | CREATE TABLE table_name_16 (mission VARCHAR, resident_country VARCHAR) |
SELECT AVG("Area km 2") FROM table_9247 WHERE "Status" = 'town' AND "Population" < '4,351' AND "Official Name" = 'lamèque' | What is the area (in km2) for the town of lam que, with a population of less than 4,351? | CREATE TABLE table_9247 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
) |
SELECT record FROM table_27744976_10 WHERE team = "Indiana" | What was the rocket's record when they played against Indiana? | CREATE TABLE table_27744976_10 (record VARCHAR, team VARCHAR) |
SELECT Local AS mission FROM table_name_18 WHERE local_location = "kingstown" | What is the local mission that has kingstown as a local location? | CREATE TABLE table_name_18 (Local VARCHAR, local_location VARCHAR) |
SELECT MAX("2006") FROM table_41806 WHERE "2002" < '0' | How much is the highest number in 2006 with fewer than 0 in 2002? | CREATE TABLE table_41806 (
"Country" text,
"1997" real,
"1998" real,
"1999" real,
"2000" real,
"2001" real,
"2002" real,
"2003" real,
"2004" real,
"2005" real,
"2006" real,
"2007" real,
"2008" real,
"2009" real,
"2010" real,
"2011" real,
"2012" real,
"Total" real
) |
SELECT COUNT(no_in_season) FROM table_27755040_1 WHERE production_code = 175255 | How many episodes in the season had production code of 175255? | CREATE TABLE table_27755040_1 (no_in_season VARCHAR, production_code VARCHAR) |
SELECT Local AS mission FROM table_name_13 WHERE local_position = "ambassador" AND mission = "suriname" | What is the local mission that has ambassador as the local position, and a mission of suriname? | CREATE TABLE table_name_13 (Local VARCHAR, local_position VARCHAR, mission VARCHAR) |
SELECT team FROM table_name_94 WHERE podiums = "0" AND position = "nc†" | Which Team has Podiums of 0, and a Position of nc ? | CREATE TABLE table_name_94 (
team VARCHAR,
podiums VARCHAR,
position VARCHAR
) |
SELECT high_points FROM table_27755603_10 WHERE date = "March 25" | What were the high points on March 25? | CREATE TABLE table_27755603_10 (high_points VARCHAR, date VARCHAR) |
SELECT local_location FROM table_name_47 WHERE resident_country = "senegal" AND mission = "mali" | What is the local location that has senegal as the resident county, and a mission of mali? | CREATE TABLE table_name_47 (local_location VARCHAR, resident_country VARCHAR, mission VARCHAR) |
SELECT "Score" FROM table_76967 WHERE "Record" = '1-0' | WHAT IS THE SCORE WITH A RECORD OF 1-0? | CREATE TABLE table_76967 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Record" text
) |
SELECT team FROM table_27755603_10 WHERE date = "March 18" | Who was the team on March 18? | CREATE TABLE table_27755603_10 (team VARCHAR, date VARCHAR) |
SELECT Local AS mission FROM table_name_41 WHERE local_location = "none" AND local_position = "high commissioner" AND resident_country = "fiji" AND mission = "tonga" | What is the local mission that has none as a local location, high commissioner as a local position, fiji as a resident county, and a mission of tonga? | CREATE TABLE table_name_41 (Local VARCHAR, mission VARCHAR, resident_country VARCHAR, local_location VARCHAR, local_position VARCHAR) |
SELECT DISTINCT T1.first_name, T1.last_name FROM staff AS T1 JOIN rental AS T2 ON T1.staff_id = T2.staff_id JOIN customer AS T3 ON T2.customer_id = T3.customer_id WHERE T3.first_name = 'APRIL' AND T3.last_name = 'BURNS' | What is the full name of the staff member who has rented a film to a customer with the first name April and the last name Burns? | CREATE TABLE country (
country_id number,
country text,
last_update time
)
CREATE TABLE category (
category_id number,
name text,
last_update time
)
CREATE TABLE language (
language_id number,
name text,
last_update time
)
CREATE TABLE address (
address_id number,
address text,
address2 text,
district text,
city_id number,
postal_code text,
phone text,
last_update time
)
CREATE TABLE customer (
customer_id number,
store_id number,
first_name text,
last_name text,
email text,
address_id number,
active boolean,
create_date time,
last_update time
)
CREATE TABLE film (
film_id number,
title text,
description text,
release_year time,
language_id number,
original_language_id number,
rental_duration number,
rental_rate number,
length number,
replacement_cost number,
rating text,
special_features text,
last_update time
)
CREATE TABLE rental (
rental_id number,
rental_date time,
inventory_id number,
customer_id number,
return_date time,
staff_id number,
last_update time
)
CREATE TABLE store (
store_id number,
manager_staff_id number,
address_id number,
last_update time
)
CREATE TABLE film_actor (
actor_id number,
film_id number,
last_update time
)
CREATE TABLE staff (
staff_id number,
first_name text,
last_name text,
address_id number,
picture others,
email text,
store_id number,
active boolean,
username text,
password text,
last_update time
)
CREATE TABLE actor (
actor_id number,
first_name text,
last_name text,
last_update time
)
CREATE TABLE city (
city_id number,
city text,
country_id number,
last_update time
)
CREATE TABLE film_category (
film_id number,
category_id number,
last_update time
)
CREATE TABLE payment (
payment_id number,
customer_id number,
staff_id number,
rental_id number,
amount number,
payment_date time,
last_update time
)
CREATE TABLE film_text (
film_id number,
title text,
description text
)
CREATE TABLE inventory (
inventory_id number,
film_id number,
store_id number,
last_update time
) |
SELECT high_points FROM table_27755603_10 WHERE team = "Washington" | What was the high points when the team was Washington? | CREATE TABLE table_27755603_10 (high_points VARCHAR, team VARCHAR) |
SELECT mission FROM table_name_35 WHERE local_position = "ambassador" AND resident_country = "democratic republic of congo" | What is the mission that has ambassador of local position, and a resident country of democratic republic of congo? | CREATE TABLE table_name_35 (mission VARCHAR, local_position VARCHAR, resident_country VARCHAR) |
SELECT outcome FROM table_name_90 WHERE tournament = "chiang mai , thailand" | What is Outcome, when Tournament is 'Chiang Mai , Thailand'? | CREATE TABLE table_name_90 (
outcome VARCHAR,
tournament VARCHAR
) |
SELECT MIN(game) FROM table_27755603_10 WHERE location_attendance = "The Palace of Auburn Hills 15,166" | What was the game number when the location attendance was the Palace of Auburn Hills 15,166? | CREATE TABLE table_27755603_10 (game INTEGER, location_attendance VARCHAR) |
SELECT position FROM table_name_90 WHERE competition = "european cross country championships" AND year = 2008 | What position did the player play in the european cross country championships in 2008? | CREATE TABLE table_name_90 (position VARCHAR, competition VARCHAR, year VARCHAR) |
SELECT "Nationality" FROM table_13176 WHERE "Goals" = '33' | What was the nationality for the player with 33 goals? | CREATE TABLE table_13176 (
"Ranking" text,
"Nationality" text,
"Name" text,
"Years" text,
"Goals" real
) |
SELECT team FROM table_27755603_11 WHERE date = "April 6" | What team did they play on april 6? | CREATE TABLE table_27755603_11 (team VARCHAR, date VARCHAR) |
SELECT venue FROM table_name_20 WHERE competition = "european cross country championships" AND notes = "junior men individual 6.595km" | What venue hsoted the european cross country championships with a notes of junior men individual 6.595km? | CREATE TABLE table_name_20 (venue VARCHAR, competition VARCHAR, notes VARCHAR) |
SELECT MIN("Overall") FROM table_43646 WHERE "College" = 'baylor' | What is the number that is the lowest overall for the College of Baylor? | CREATE TABLE table_43646 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) |
SELECT MAX(game) FROM table_27755603_11 WHERE date = "April 5" | What numbered game did they play on april 5? | CREATE TABLE table_27755603_11 (game INTEGER, date VARCHAR) |
SELECT position FROM table_name_95 WHERE notes = "junior men individual 5.64km" | What position did the person finish in with a notes of junior men individual 5.64km? | CREATE TABLE table_name_95 (position VARCHAR, notes VARCHAR) |
SELECT manufacturer FROM table_name_68 WHERE type = "2-6-0" | Which manucfaturer's type was 2-6-0? | CREATE TABLE table_name_68 (
manufacturer VARCHAR,
type VARCHAR
) |
SELECT game FROM table_27755603_11 WHERE team = "Chicago" | What numbered game did they play chicago? | CREATE TABLE table_27755603_11 (game VARCHAR, team VARCHAR) |
SELECT venue FROM table_name_83 WHERE year = 2005 AND notes = "men individual 9.84km" | What venue hosted in 2005 and had a Notes of men individual 9.84km? | CREATE TABLE table_name_83 (venue VARCHAR, year VARCHAR, notes VARCHAR) |
SELECT MAX("Apps") FROM table_35769 WHERE "Goals" > '63' AND "Avge" = '0.45' | What is the highest number of apps of the player with more than 63 goals and an avge of 0.45? | CREATE TABLE table_35769 (
"Name" text,
"Goals" real,
"Apps" real,
"Avge" real,
"Career" text
) |
SELECT high_assists FROM table_27755603_7 WHERE team = "New Orleans" | Who had the most assists agains New Orleans? | CREATE TABLE table_27755603_7 (high_assists VARCHAR, team VARCHAR) |
SELECT opponent FROM table_name_69 WHERE result = "w 20-17" | Who was the opponent at the game with a result of w 20-17? | CREATE TABLE table_name_69 (opponent VARCHAR, result VARCHAR) |
SELECT fixed_telephone_line FROM table_25042332_27 WHERE vehicle = "25.6%" | Name the fixed telephone line for 25.6% vehicle | CREATE TABLE table_25042332_27 (
fixed_telephone_line VARCHAR,
vehicle VARCHAR
) |
SELECT COUNT(high_rebounds) FROM table_27755603_7 WHERE date = "December 19" | For how many games on December 19 is there information on who scored the most rebounds? | CREATE TABLE table_27755603_7 (high_rebounds VARCHAR, date VARCHAR) |
SELECT COUNT(week) FROM table_name_79 WHERE venue = "milwaukee county stadium" AND attendance = 47 OFFSET 897 | What is the total number of weeks with a game at the Milwaukee County Stadium attended by 47,897? | CREATE TABLE table_name_79 (week VARCHAR, venue VARCHAR, attendance VARCHAR) |
SELECT "Directed by" FROM table_27982 WHERE "No. in series" = '18' | Who directed episode number 18 in the series? | CREATE TABLE table_27982 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) |
SELECT record FROM table_27755603_2 WHERE high_rebounds = "Greg Monroe (8)" | What's the record in the game where Greg Monroe (8) did the high rebounds? | CREATE TABLE table_27755603_2 (record VARCHAR, high_rebounds VARCHAR) |
SELECT MAX(round) FROM table_name_58 WHERE pick__number < 8 | What is the highest round that had a pick lower than 8? | CREATE TABLE table_name_58 (round INTEGER, pick__number INTEGER) |
SELECT Id, Title, Score, AnswerCount, FavoriteCount, ViewCount, CreationDate, ClosedDate FROM Posts | Fetching Title with relevant information. | CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE 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 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 PostTags (
PostId number,
TagId number
)
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 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 PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
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 ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
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 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 Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description 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
) |
SELECT high_rebounds FROM table_27755603_2 WHERE high_points = "Rodney Stuckey (16)" | Who did the high rebounds in the game in which Rodney Stuckey (16) did the high points? | CREATE TABLE table_27755603_2 (high_rebounds VARCHAR, high_points VARCHAR) |
SELECT title FROM table_name_65 WHERE artist = "overkill" AND year < 1984 | What title does Overkill have before 1984? | CREATE TABLE table_name_65 (title VARCHAR, artist VARCHAR, year VARCHAR) |
SELECT LAST_DATE_OF_MONTH(CreationDate), SUM(CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END) AS downvotes, SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END) AS upvotes, ROUND(1.0 * SUM(CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END) / SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END), 3) AS ratio FROM Votes WHERE VoteTypeId IN (2, 3) GROUP BY LAST_DATE_OF_MONTH(CreationDate) ORDER BY LAST_DATE_OF_MONTH(CreationDate) | Number of downvotes and upvotes per month. | CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name 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 PostTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description 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 TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId 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 SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId 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 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 PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE FlagTypes (
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 Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
) |
SELECT team FROM table_27755603_2 WHERE high_points = "Austin Daye (16)" | Who was the opponent in the game in which Austin Daye (16) did the most high points? | CREATE TABLE table_27755603_2 (team VARCHAR, high_points VARCHAR) |
SELECT departure FROM table_name_67 WHERE station_name = "kanpur central" | What is the Departure time at Kanpur Central Station? | CREATE TABLE table_name_67 (departure VARCHAR, station_name VARCHAR) |
SELECT AVG(total) FROM table_name_76 WHERE bronze < 8 AND silver = 3 AND rank < 2 | What is the average total with less than 8 bronze, 3 silver, and a Rank smaller than 2? | CREATE TABLE table_name_76 (
total INTEGER,
rank VARCHAR,
bronze VARCHAR,
silver VARCHAR
) |
SELECT location_attendance FROM table_27755603_2 WHERE high_assists = "Will Bynum (5)" | Where was the game in which Will Bynum (5) did the high assists played? | CREATE TABLE table_27755603_2 (location_attendance VARCHAR, high_assists VARCHAR) |
SELECT station_name FROM table_name_32 WHERE platform = "5" | What is the Station Name of Platform 5? | CREATE TABLE table_name_32 (station_name VARCHAR, platform VARCHAR) |
SELECT DISTINCT advisory_requirement FROM course WHERE department = 'NEUROSCI' AND number = 619 | What are some of the most useful courses to take before taking NEUROSCI 619 ? | CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text 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
)
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 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 gsi (
course_offering_id int,
student_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 instructor (
instructor_id int,
name varchar,
uniqname 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 program (
program_id int,
name varchar,
college varchar,
introduction varchar
) |
SELECT team FROM table_27755784_10 WHERE high_assists = "Stephen Curry (7)" AND high_points = "Monta Ellis (27)" | What is the team when the high assists was stephen curry (7) and the high points was monta ellis (27)? | CREATE TABLE table_27755784_10 (team VARCHAR, high_assists VARCHAR, high_points VARCHAR) |
SELECT AVG(pick__number) FROM table_name_21 WHERE round = 11 | What is the average pick # of the player from round 11? | CREATE TABLE table_name_21 (pick__number INTEGER, round VARCHAR) |
SELECT intergiro_classification FROM table_name_34 WHERE points_classification = "fabrizio guidi" AND winner = "nicolaj bo larsen" | What is the Intergiro classification of Nicolaj bo Larsen, who has a Fabrizio guidi point classification? | CREATE TABLE table_name_34 (
intergiro_classification VARCHAR,
points_classification VARCHAR,
winner VARCHAR
) |
SELECT MAX(game) FROM table_27755784_10 | What is the highest game number? | CREATE TABLE table_27755784_10 (game INTEGER) |
SELECT overall FROM table_name_47 WHERE pick__number < 13 | What is the overall of the player with a pick # higher than 13? | CREATE TABLE table_name_47 (overall VARCHAR, pick__number INTEGER) |
SELECT "Track" FROM table_78059 WHERE "Catalogue" = 'apbo 0280' | Tell me the track that has the catalogue of apbo 0280 | CREATE TABLE table_78059 (
"Track" real,
"Recorded" text,
"Catalogue" text,
"Release Date" text,
"Song Title" text,
"Time" text
) |
SELECT score FROM table_27755784_10 WHERE team = "@ Dallas" | What is the score when the team is @ dallas? | CREATE TABLE table_27755784_10 (score VARCHAR, team VARCHAR) |
SELECT year__ceremony_ FROM table_name_82 WHERE original_title = "naga bonar" | what year did naga bonar take place | CREATE TABLE table_name_82 (year__ceremony_ VARCHAR, original_title VARCHAR) |
SELECT date FROM table_name_45 WHERE place = "7th" | When 7th place, what is the date? | CREATE TABLE table_name_45 (
date VARCHAR,
place VARCHAR
) |
SELECT high_rebounds FROM table_27755603_8 WHERE date = "January 14" | Name the high rebounds for january 14 | CREATE TABLE table_27755603_8 (high_rebounds VARCHAR, date VARCHAR) |
SELECT MIN(crude_birth_rate__per_1000_) FROM table_name_49 WHERE natural_change = "42 689" | Natural change of 42 689 has which lowest Crude birth rate (per 1000)? | CREATE TABLE table_name_49 (crude_birth_rate__per_1000_ INTEGER, natural_change VARCHAR) |
SELECT MIN(seats) FROM table_name_55 WHERE share_of_votes = "27.0%" | What is the lowest number of seats from the election with 27.0% of votes? | CREATE TABLE table_name_55 (
seats INTEGER,
share_of_votes VARCHAR
) |
SELECT COUNT(score) FROM table_27755603_8 WHERE date = "January 12" | Name the number of score for january 12 | CREATE TABLE table_27755603_8 (score VARCHAR, date VARCHAR) |
SELECT SUM(votes__gib_) FROM table_name_38 WHERE party = "green" | What is the sum of votes for the green party? | CREATE TABLE table_name_38 (votes__gib_ INTEGER, party VARCHAR) |
SELECT Users.Id, Users.DisplayName, Users.Reputation FROM Users WHERE EXISTS(SELECT u.Id FROM Tags AS t WITH (nolock) INNER JOIN PostTags AS pt WITH (nolock) ON pt.TagId = t.Id INNER JOIN Posts AS p WITH (nolock) ON p.ParentId = pt.PostId INNER JOIN Users AS u WITH (nolock) ON u.Id = p.OwnerUserId WHERE p.CommunityOwnedDate IS NULL AND t.Id IN (SELECT Id FROM Tags WHERE TagName IN ('java', 'c++', 'c', 'c#'))) LIMIT 1000 | Top 1000 users with keywords sorted by reputation. Top 100 by votes users in tag c# | CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId 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 ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
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 Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE 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 PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE CloseReasonTypes (
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 VoteTypes (
Id number,
Name text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistoryTypes (
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 PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskResultTypes (
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 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 ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
) |
SELECT location_attendance FROM table_27755603_8 WHERE high_points = "Austin Daye , Tracy McGrady , Tayshaun Prince (20)" | Name the location attendance for austin daye , tracy mcgrady , tayshaun prince (20) | CREATE TABLE table_27755603_8 (location_attendance VARCHAR, high_points VARCHAR) |
SELECT SUM(votes__gib_) FROM table_name_99 WHERE _percentage__gib_ = 0.53 AND seats > 0 | What is the sum of votes of the party with a % of 0.53 and more than 0 seats? | CREATE TABLE table_name_99 (votes__gib_ INTEGER, _percentage__gib_ VARCHAR, seats VARCHAR) |
SELECT SUM("Matches") FROM table_65442 WHERE "Average" > '6.33' AND "Rank" = '1' | What is the number of matches with an average larger than 6.33, with a rank of 1? | CREATE TABLE table_65442 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Matches" real,
"Average" real
) |
SELECT COUNT(date) FROM table_27755784_11 WHERE high_points = "Stephen Curry , Dorell Wright (27)" | Name the number of date for stephen curry , dorell wright (27) | CREATE TABLE table_27755784_11 (date VARCHAR, high_points VARCHAR) |
SELECT time FROM table_name_87 WHERE date = "april 5" | What was the time of the game on April 5? | CREATE TABLE table_name_87 (time VARCHAR, date VARCHAR) |
SELECT SUM(ties) FROM table_name_75 WHERE years = "1919–1925" AND pct > 0.734 | How many Ties have Years of 1919 1925, and a Pct larger than 0.734? | CREATE TABLE table_name_75 (
ties INTEGER,
years VARCHAR,
pct VARCHAR
) |
SELECT high_rebounds FROM table_27755784_11 WHERE game = 77 | Name the high rebounds for 77 game | CREATE TABLE table_27755784_11 (high_rebounds VARCHAR, game VARCHAR) |
SELECT 2011 FROM table_name_99 WHERE 2010 = "1r" AND 2009 = "1r" | Which 2011 has a 2010 of 1r, and a 2009 of 1r? | CREATE TABLE table_name_99 (Id VARCHAR) |
SELECT "DRG number(s)" FROM table_64811 WHERE "Railway number(s)" = 'xxx' | Which DRG number has xxx railway number? | CREATE TABLE table_64811 (
"Class" text,
"Railway number(s)" text,
"DRG number(s)" text,
"Quantity" real,
"Year(s) of manufacture" text,
"Axle arrangement ( UIC ) Bauart" text
) |
SELECT record FROM table_27755784_6 WHERE date = "November 10" | What was the record after the game on November 10? | CREATE TABLE table_27755784_6 (record VARCHAR, date VARCHAR) |
SELECT tournament FROM table_name_28 WHERE 2009 = "q1" AND 2008 = "1r" | Which Tournament has a 2009 of q1, and a 2008 of 1r? | CREATE TABLE table_name_28 (tournament VARCHAR) |
SELECT MIN(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10425) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'ca-125') AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY STRFTIME('%y-%m', labevents.charttime) | what is the monthly minimum ca-125 value for patient 10425 during a year before? | CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title 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 cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
) |
SELECT score FROM table_27755784_8 WHERE high_points = "Monta Ellis (29)" | What is the score when the hight points is Monta Ellis (29)? | CREATE TABLE table_27755784_8 (score VARCHAR, high_points VARCHAR) |
SELECT 2008 FROM table_name_2 WHERE 2009 = "a" AND 2010 = "a" AND 2012 = "1r" AND tournament = "cincinnati masters" | Which 2008 has a 2009 of A, and a 2010 of A, and a 2012 of 1r, and a Tournament of cincinnati masters? | CREATE TABLE table_name_2 (tournament VARCHAR) |
SELECT _percentage_of_popular_vote FROM table_name_53 WHERE _number_of_seats_available = 90 | What is the percentage of the popular vote when there were 90 seats available? | CREATE TABLE table_name_53 (
_percentage_of_popular_vote VARCHAR,
_number_of_seats_available VARCHAR
) |
SELECT COUNT(team) FROM table_27755784_8 WHERE high_points = "David Lee (31)" | How many teams have hight points listed as David Lee (31)? | CREATE TABLE table_27755784_8 (team VARCHAR, high_points VARCHAR) |
SELECT 2009 FROM table_name_65 WHERE 2008 = "a" AND tournament = "canada masters" | Which 2009 has a 2008 of A, and a Tournament of canada masters? | CREATE TABLE table_name_65 (tournament VARCHAR) |
SELECT Id, LEFT(SUBSTRING(Text, STR_POSITION(Text, '@') + 1, LENGTH(Text)), PATINDEX('%^a-z%', SUBSTRING(Text, STR_POSITION(Text, '@') + 1, LENGTH(Text))) - 1) AS oldName, Text FROM Comments AS msq WHERE Id = 246568 | Find any name change in the history.. | CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
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 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 SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE 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 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 PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE 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 ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
) |
SELECT record FROM table_27755784_8 WHERE high_points = "Stephen Curry (32)" | What is the record when the high points is listed as Stephen Curry (32)? | CREATE TABLE table_27755784_8 (record VARCHAR, high_points VARCHAR) |
SELECT 2008 FROM table_name_39 WHERE 2009 = "a" AND tournament = "cincinnati masters" | Which 2008 has a 2009 of A, and a Tournament of cincinnati masters? | CREATE TABLE table_name_39 (tournament VARCHAR) |
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT inputevents_cv.itemid FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 23929)) ORDER BY inputevents_cv.charttime LIMIT 1) | what did patient 23929 first have as his intake? | 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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE 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 cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title 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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto 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 prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
) |
SELECT record FROM table_27755784_8 WHERE date = "January 7" | What is the record when the date is January 7? | CREATE TABLE table_27755784_8 (record VARCHAR, date VARCHAR) |
SELECT 2012 FROM table_name_46 WHERE 2010 = "0–0" | Which 2012 has a 2010 of 0–0? | CREATE TABLE table_name_46 (Id VARCHAR) |
SELECT position FROM table_name_83 WHERE jersey__number > 30 AND birthdate = "december 23, 1986" | What is the position of the player with a jersey # greater than 30 and a December 23, 1986 birthdate? | CREATE TABLE table_name_83 (
position VARCHAR,
jersey__number VARCHAR,
birthdate VARCHAR
) |
SELECT date FROM table_27755784_8 WHERE team = "New Orleans" | What is the date when the team is listed as New Orleans? | CREATE TABLE table_27755784_8 (date VARCHAR, team VARCHAR) |
SELECT date FROM table_name_87 WHERE partner = "urszula radwańska" | What Date had a Partner of urszula radwańska? | CREATE TABLE table_name_87 (date VARCHAR, partner VARCHAR) |
SELECT t3.treatmentname FROM (SELECT t2.treatmentname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime, patient.patienthealthsystemstayid FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 's/p aortobifemoral bypass' AND DATETIME(diagnosis.diagnosistime) <= DATETIME(CURRENT_TIME(), '-4 year')) AS t1 JOIN (SELECT patient.uniquepid, treatment.treatmentname, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE DATETIME(treatment.treatmenttime) <= DATETIME(CURRENT_TIME(), '-4 year')) AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.diagnosistime < t2.treatmenttime AND t1.patienthealthsystemstayid = t2.patienthealthsystemstayid GROUP BY t2.treatmentname) AS t3 WHERE t3.c1 <= 3 | what was the top three most frequent procedures given to patients in the same hospital visit after they were diagnosed with s/p aortobifemoral bypass until 4 years ago? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
) |
SELECT team FROM table_27756164_11 WHERE high_assists = "Darren Collison (7)" | What was the team where Darren Collison (7) scored high assists? | CREATE TABLE table_27756164_11 (team VARCHAR, high_assists VARCHAR) |
SELECT opponent FROM table_name_26 WHERE surface = "hard" AND partner = "maria elena camerin" | Which Opponent had a Surface of hard, and a Partner of maria elena camerin? | CREATE TABLE table_name_26 (opponent VARCHAR, surface VARCHAR, partner VARCHAR) |
SELECT department FROM table_17118006_2 WHERE local_investment__us$_ = "626,798" | What was the department that got $626,798 in local investments? | CREATE TABLE table_17118006_2 (
department VARCHAR,
local_investment__us$_ VARCHAR
) |
SELECT date FROM table_27756164_2 WHERE high_points = "Roy Hibbert (27)" | When did the Roy Hibbert (27) did the high points? | CREATE TABLE table_27756164_2 (date VARCHAR, high_points VARCHAR) |
SELECT partner FROM table_name_74 WHERE opponent = "darija jurak carmen klaschka" | Which Partner had an Opponent of darija jurak carmen klaschka? | CREATE TABLE table_name_74 (partner VARCHAR, opponent VARCHAR) |
SELECT Document_Date, COUNT(Document_Date) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Name ORDER BY Document_Date | Show the number of documents created in each day and bin document date by year interval and group by document type with a group line chart, and I want to order by the x-axis in asc. | CREATE TABLE Accounts (
Account_ID INTEGER,
Statement_ID INTEGER,
Account_Details VARCHAR(255)
)
CREATE TABLE Projects (
Project_ID INTEGER,
Project_Details VARCHAR(255)
)
CREATE TABLE Statements (
Statement_ID INTEGER,
Statement_Details VARCHAR(255)
)
CREATE TABLE Documents (
Document_ID INTEGER,
Document_Type_Code CHAR(15),
Project_ID INTEGER,
Document_Date DATETIME,
Document_Name VARCHAR(255),
Document_Description VARCHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Documents_with_Expenses (
Document_ID INTEGER,
Budget_Type_Code CHAR(15),
Document_Details VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Ref_Budget_Codes (
Budget_Type_Code CHAR(15),
Budget_Type_Description VARCHAR(255)
) |
SELECT COUNT(game) FROM table_27756164_2 WHERE high_rebounds = "Roy Hibbert (16)" | In how many different games did Roy Hibbert (16) did the most high rebounds? | CREATE TABLE table_27756164_2 (game VARCHAR, high_rebounds VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.