answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT opponent FROM table_name_6 WHERE score = "3-2" AND loss = "anderson (2-6)" | What opponent has 3-2 as the score, and anderson (2-6) as a loss? | CREATE TABLE table_name_6 (opponent VARCHAR, score VARCHAR, loss VARCHAR) |
SELECT All_Road, Team_ID FROM basketball_match ORDER BY All_Road | Show me team_id by all road in a histogram, I want to list by the X-axis in ascending please. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) |
SELECT branding FROM table_2610582_3 WHERE callsign = "DWBA-TV" | What is the branding of the callsign DWBA-TV? | CREATE TABLE table_2610582_3 (branding VARCHAR, callsign VARCHAR) |
SELECT score FROM table_name_62 WHERE attendance < 10 OFFSET 553 | What score has an attendance less than 10,553? | CREATE TABLE table_name_62 (score VARCHAR, attendance INTEGER) |
SELECT MIN(ranking) FROM table_name_67 WHERE name = "paul mctiernan" | What is the lowest ranking for Paul Mctiernan? | CREATE TABLE table_name_67 (
ranking INTEGER,
name VARCHAR
) |
SELECT station_type FROM table_2610582_3 WHERE callsign = "DWMC-TV" | What is the station type of DWMC-TV? | CREATE TABLE table_2610582_3 (station_type VARCHAR, callsign VARCHAR) |
SELECT MAX(episode) FROM table_name_65 WHERE segment_c = "wood flutes" | What is the highest episode of Wood Flutes segment c? | CREATE TABLE table_name_65 (episode INTEGER, segment_c VARCHAR) |
SELECT Name, Capacity FROM cinema ORDER BY Name DESC | Show the capacity for each cinema in a bar chart, list x axis from high to low order. | CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
) |
SELECT location__transmitter_site_ FROM table_2610582_3 WHERE power_kw__erp_ = "5kW (10kW ERP)" | What is the location that has a power of 5kw (10kw ERP)? | CREATE TABLE table_2610582_3 (location__transmitter_site_ VARCHAR, power_kw__erp_ VARCHAR) |
SELECT segment_d FROM table_name_89 WHERE series_ep = "20-08" | What is Segment D of 20-08 series Ep.? | CREATE TABLE table_name_89 (segment_d VARCHAR, series_ep VARCHAR) |
SELECT score FROM table_name_34 WHERE date = "february 8" | What was the score of the game on February 8? | CREATE TABLE table_name_34 (
score VARCHAR,
date VARCHAR
) |
SELECT power_kw__erp_ FROM table_2610582_3 WHERE ch__number = "TV-23" AND callsign = "DYCG-TV" | What is the power, in kW, of channel TV-23, callsign DYCG-TV? | CREATE TABLE table_2610582_3 (power_kw__erp_ VARCHAR, ch__number VARCHAR, callsign VARCHAR) |
SELECT AVG(year) FROM table_name_97 WHERE team = "suzuki" AND points = 4 | What year did they get 4 points with Suzuki? | CREATE TABLE table_name_97 (year INTEGER, team VARCHAR, points VARCHAR) |
SELECT defective_year FROM table_28985631_1 WHERE numbered_month = "Eighth" | What is the defective year for the eighth numbered month? | CREATE TABLE table_28985631_1 (
defective_year VARCHAR,
numbered_month VARCHAR
) |
SELECT power__kw_ FROM table_2610582_7 WHERE location = "General Santos" | What's the power for General Santos? | CREATE TABLE table_2610582_7 (power__kw_ VARCHAR, location VARCHAR) |
SELECT MAX(year) FROM table_name_11 WHERE points < 16 AND class = "500cc" | What was the last year that they had less than 16 points in class 500cc? | CREATE TABLE table_name_11 (year INTEGER, points VARCHAR, class VARCHAR) |
SELECT opponent FROM table_name_19 WHERE result = "bye" AND week < 14 | What opponent did they have a bye result against before week 14? | CREATE TABLE table_name_19 (
opponent VARCHAR,
result VARCHAR,
week VARCHAR
) |
SELECT branding FROM table_2610582_7 WHERE callsign = "DYTC-FM" | What bran is the callsign dytc-fm? | CREATE TABLE table_2610582_7 (branding VARCHAR, callsign VARCHAR) |
SELECT party FROM table_name_70 WHERE incumbent = "w. jasper talbert" | Which party had an incumbent of W. Jasper Talbert? | CREATE TABLE table_name_70 (party VARCHAR, incumbent VARCHAR) |
SELECT COUNTRY_NAME, SUM(EMPLOYEE_ID) FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID JOIN locations AS T3 ON T2.LOCATION_ID = T3.LOCATION_ID JOIN countries AS T4 ON T3.COUNTRY_ID = T4.COUNTRY_ID GROUP BY COUNTRY_NAME | Show me a bar chart for what are all the employee ids and the names of the countries in which they work? | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
) |
SELECT frequency FROM table_2610582_7 WHERE callsign = "DXEC-FM" | What frequency is dxec-fm? | CREATE TABLE table_2610582_7 (frequency VARCHAR, callsign VARCHAR) |
SELECT opponent FROM table_name_42 WHERE record = "13-18" | which team has a record of 13-18? | CREATE TABLE table_name_42 (opponent VARCHAR, record VARCHAR) |
SELECT home_team FROM table_name_11 WHERE venue = "gold coast convention centre" | What team has theoir home games in the venue of gold coast convention centre? | CREATE TABLE table_name_11 (
home_team VARCHAR,
venue VARCHAR
) |
SELECT opponent FROM table_26108103_2 WHERE rushing_yards = 117 | Who was the opponent when there was 117 rushing yards? | CREATE TABLE table_26108103_2 (opponent VARCHAR, rushing_yards VARCHAR) |
SELECT record FROM table_name_64 WHERE date = "may 26" | What was the record for May 26? | CREATE TABLE table_name_64 (record VARCHAR, date VARCHAR) |
SELECT Date_in_Locaton_To, COUNT(Date_in_Locaton_To) FROM Document_Locations | I want to see trend of the number of date in locaton to by date in locaton to | CREATE TABLE Ref_Locations (
Location_Code CHAR(15),
Location_Name VARCHAR(255),
Location_Description VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
)
CREATE TABLE Roles (
Role_Code CHAR(15),
Role_Name VARCHAR(255),
Role_Description VARCHAR(255)
)
CREATE TABLE Ref_Calendar (
Calendar_Date DATETIME,
Day_Number INTEGER
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Description CHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE Documents_to_be_Destroyed (
Document_ID INTEGER,
Destruction_Authorised_by_Employee_ID INTEGER,
Destroyed_by_Employee_ID INTEGER,
Planned_Destruction_Date DATETIME,
Actual_Destruction_Date DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE Employees (
Employee_ID INTEGER,
Role_Code CHAR(15),
Employee_Name VARCHAR(255),
Gender_MFU CHAR(1),
Date_of_Birth DATETIME,
Other_Details VARCHAR(255)
) |
SELECT MIN(year) FROM table_26108103_2 | What was the earliest year? | CREATE TABLE table_26108103_2 (year INTEGER) |
SELECT loss FROM table_name_65 WHERE attendance = "15,298" | What was the loss details for the team with an attendance of 15,298? | CREATE TABLE table_name_65 (loss VARCHAR, attendance VARCHAR) |
SELECT "Genre" FROM table_68838 WHERE "Directed by" = 'sándor simó' | What Genre did S ndor Sim direct? | CREATE TABLE table_68838 (
"Original title" text,
"Title in English" text,
"Genre" text,
"Role" text,
"Directed by" text
) |
SELECT opponent FROM table_26108103_2 WHERE rushing_yards = 81 | Who was the opponent when there was 81 rushing yards? | CREATE TABLE table_26108103_2 (opponent VARCHAR, rushing_yards VARCHAR) |
SELECT city FROM table_name_82 WHERE date = "march 30" | What city has march 30 as the date? | CREATE TABLE table_name_82 (city VARCHAR, date VARCHAR) |
SELECT COUNT(rank_held_at_time_of_death) FROM table_16527640_2 WHERE player = "Paddy Rowan" | How many players named paddy rowan? | CREATE TABLE table_16527640_2 (
rank_held_at_time_of_death VARCHAR,
player VARCHAR
) |
SELECT rushing_yards FROM table_26108103_2 WHERE opponent = "Indiana" AND passing_yards = 503 | How many rushing yards where there when the opponent was Indiana and there was 503 passing yards? | CREATE TABLE table_26108103_2 (rushing_yards VARCHAR, opponent VARCHAR, passing_yards VARCHAR) |
SELECT opponent FROM table_name_81 WHERE date = "april 23" | What opponent has april 23 as the date? | CREATE TABLE table_name_81 (opponent VARCHAR, date VARCHAR) |
SELECT current_country_of_location FROM table_10335_1 WHERE operational = "Summer of 1941 to 28 June 1944" | what's the current country of location with operational period of summer of 1941 to 28 june 1944 | CREATE TABLE table_10335_1 (
current_country_of_location VARCHAR,
operational VARCHAR
) |
SELECT opponent FROM table_26108103_2 WHERE player = "Devin Gardner" | Who was the opponent when Devin Gardner was the player? | CREATE TABLE table_26108103_2 (opponent VARCHAR, player VARCHAR) |
SELECT opponent FROM table_name_54 WHERE type_of_game = "euro '84 qualifying" AND city = "split" | What opponent has euro '84 qualifying as the type and split as the city? | CREATE TABLE table_name_54 (opponent VARCHAR, type_of_game VARCHAR, city VARCHAR) |
SELECT title FROM table_23799417_2 WHERE original_airing = "September 30, 2007" | what is the episode title on original air date of September 30, 2007? | CREATE TABLE table_23799417_2 (
title VARCHAR,
original_airing VARCHAR
) |
SELECT points FROM table_26124171_1 WHERE team = "Pole Services" | How many points were scored on pole services? | CREATE TABLE table_26124171_1 (points VARCHAR, team VARCHAR) |
SELECT results¹ FROM table_name_90 WHERE type_of_game = "euro '84 qualifying" AND opponent = "norway" | What results has euro '84 qualifying as the type of game and norway as the opponent? | CREATE TABLE table_name_90 (results¹ VARCHAR, type_of_game VARCHAR, opponent VARCHAR) |
SELECT foundation FROM table_name_17 WHERE enterprise = "2" | Which Foundation has an Enterprise of 2? | CREATE TABLE table_name_17 (
foundation VARCHAR,
enterprise VARCHAR
) |
SELECT team FROM table_26124171_1 WHERE series = "Championnat de France Formula Renault 2.0" | How many teams were in the series championnat de france formula renault 2.0? | CREATE TABLE table_26124171_1 (team VARCHAR, series VARCHAR) |
SELECT type_of_game FROM table_name_91 WHERE results¹ = "2:1" | What game type has 2:1 as the results? | CREATE TABLE table_name_91 (type_of_game VARCHAR, results¹ VARCHAR) |
SELECT broadcast_date FROM table_2102782_1 WHERE run_time = "25:04" | Name the broadcast date for run timke of 25:04 | CREATE TABLE table_2102782_1 (
broadcast_date VARCHAR,
run_time VARCHAR
) |
SELECT area__km_2__ FROM table_261222_1 WHERE population__2010_ = 153085 | What is the area (km2) for the place with a 2010 population of 153085? | CREATE TABLE table_261222_1 (area__km_2__ VARCHAR, population__2010_ VARCHAR) |
SELECT date FROM table_name_92 WHERE type_of_game = "friendly" AND opponent = "france" AND city = "paris, france" | What date has friendly as the type of game, france as an opponent, and paris, france as the city? | CREATE TABLE table_name_92 (date VARCHAR, city VARCHAR, type_of_game VARCHAR, opponent VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "BRAIN MASS;INTRACRANIAL HEMORRHAGE" AND lab.flag = "abnormal" | How many patients with brain mass intracranial hemorrhage as their primary disease had an abnormal lab test status? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) |
SELECT COUNT(city___municipality) FROM table_261222_1 WHERE area__km_2__ = "506.64" | How many city/municipalties have an area (km2) of 506.64? | CREATE TABLE table_261222_1 (city___municipality VARCHAR, area__km_2__ VARCHAR) |
SELECT date FROM table_name_34 WHERE circuit = "mosport park" | What is the date of the Mosport Park circuit? | CREATE TABLE table_name_34 (date VARCHAR, circuit VARCHAR) |
SELECT 'site://tags/' + TargetTagName + '/synonyms|' + TargetTagName AS "vote4me", COUNT(SourceTagName) AS "synonyms" FROM TagSynonyms AS TS WHERE ApprovalDate IS NULL AND (SELECT SUM(CASE V.VoteTypeId WHEN 2 THEN 1 WHEN 3 THEN -1 END) FROM Tags AS T, PostTags AS Pt, Posts AS P, Votes AS V, VoteTypes AS Vt WHERE T.Id = Pt.TagId AND P.Id = V.PostId AND Pt.PostId = P.ParentId AND Vt.Id = V.VoteTypeId AND T.TagName = TargetTagName AND P.OwnerUserId = '##userid##' AND P.CommunityOwnedDate IS NULL) > 4 GROUP BY TargetTagName | My List of Tag Synonyms which permit Voting. | 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 Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewTaskResultTypes (
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 SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description 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 Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
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 TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
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 VoteTypes (
Id number,
Name text
) |
SELECT COUNT(population__2010_) FROM table_261222_1 WHERE area__km_2__ = "409.41" | How many places have an area of 409.41 (km2)? | CREATE TABLE table_261222_1 (population__2010_ VARCHAR, area__km_2__ VARCHAR) |
SELECT length FROM table_name_94 WHERE circuit = "laguna seca raceway" AND class = "gtu" | What is the length of the Laguna Seca Raceway circuit with a class of gtu? | CREATE TABLE table_name_94 (length VARCHAR, circuit VARCHAR, class VARCHAR) |
SELECT _number FROM table_28194879_1 WHERE production_code = "PABF05" | What is the number in season of the episode whose production code is pabf05? | CREATE TABLE table_28194879_1 (
_number VARCHAR,
production_code VARCHAR
) |
SELECT date_of_creation FROM table_261222_1 WHERE city___municipality = "Kibawe" | What day was kibawe created? | CREATE TABLE table_261222_1 (date_of_creation VARCHAR, city___municipality VARCHAR) |
SELECT class FROM table_name_64 WHERE race = "charlotte camel gt 500" | What is the class of the Charlotte Camel gt 500 race? | CREATE TABLE table_name_64 (class VARCHAR, race VARCHAR) |
SELECT MIN(wins) FROM table_name_96 WHERE losses = 2 | What is the lowest amount of wins of someone who has 2 losses? | CREATE TABLE table_name_96 (
wins INTEGER,
losses VARCHAR
) |
SELECT COUNT(area__km_2__) FROM table_261222_1 WHERE city___municipality = "Manolo Fortich" | How many places are named manolo fortich? | CREATE TABLE table_261222_1 (area__km_2__ VARCHAR, city___municipality VARCHAR) |
SELECT length FROM table_name_23 WHERE date = "august 15" | What is the length of the race on August 15? | CREATE TABLE table_name_23 (length VARCHAR, date VARCHAR) |
SELECT Users.DisplayName, COUNT(*) AS AcceptedAnswers FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId INNER JOIN Posts AS questions ON questions.Id = PostTags.PostId INNER JOIN Users ON Users.Id = Posts.OwnerUserId WHERE Tags.Id = 34113 AND questions.AcceptedAnswerId = Posts.Id AND Posts.CreationDate > '2014-01-01 00:00:00' GROUP BY Users.DisplayName ORDER BY AcceptedAnswers DESC | Most accepted answers for Cassandra for the year. | CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
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 PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId 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 SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange 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 ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment 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 PostHistoryTypes (
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 Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId 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 Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
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 ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
) |
SELECT position FROM table_26141160_2 WHERE team = "Dallas Burn" | Dallas Burn's draft pick was which position? | CREATE TABLE table_26141160_2 (position VARCHAR, team VARCHAR) |
SELECT headquarters FROM table_name_49 WHERE primary_industry = "oil and gas" AND name = "exxon mobil" | Where is Exxon Mobil, an oil and gas corporation, headquartered? | CREATE TABLE table_name_49 (headquarters VARCHAR, primary_industry VARCHAR, name VARCHAR) |
SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 808) AND DATETIME(microbiologyevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') ORDER BY microbiologyevents.charttime DESC LIMIT 1 | when did patient 808 get a microbiology test for the last time this month? | CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE 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 outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
) |
SELECT written_by FROM table_26136228_3 WHERE us_viewers__millions_ = "1.08" | Who wrote the episode that had 1.08 million U.S. viewers? | CREATE TABLE table_26136228_3 (written_by VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT tournament FROM table_name_50 WHERE opponent = "laura gildemeister" | In what Tournament was laura Gildemeister the Opponent? | CREATE TABLE table_name_50 (tournament VARCHAR, opponent VARCHAR) |
SELECT SUM("Played") FROM table_53941 WHERE "Position" < '9' AND "Draws" > '19' AND "Goals against" > '27' | Name the sum of played for position less than 9 and draws more than 19 with goals against more than 27 | CREATE TABLE table_53941 (
"Position" real,
"Club" text,
"Played" real,
"Points" text,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) |
SELECT directed_by FROM table_26136228_3 WHERE series_no = 11 | Who directed episode 11 in the series? | CREATE TABLE table_26136228_3 (directed_by VARCHAR, series_no VARCHAR) |
SELECT surface FROM table_name_55 WHERE date = "january 11, 1998" | Date of january 11, 1998 has what surface? | CREATE TABLE table_name_55 (surface VARCHAR, date VARCHAR) |
SELECT SUM(cost.cost) FROM cost WHERE cost.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 85407) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | how much has patient 85407 in a year before to pay for their hospital stay? | CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE 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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod 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 chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom 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 outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
) |
SELECT MAX(episode_no) FROM table_26136228_3 WHERE us_viewers__millions_ = "1.05" | What episode number in the season had 1.05 million U.S. viewers? | CREATE TABLE table_26136228_3 (episode_no INTEGER, us_viewers__millions_ VARCHAR) |
SELECT tournament FROM table_name_57 WHERE score = "4–6, 6–4, 6–4" | Score of 4–6, 6–4, 6–4 included which tournament? | CREATE TABLE table_name_57 (tournament VARCHAR, score VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "JEHOVAH'S WITNESS" AND demographic.age < "59" | count the number of patients whose religion is jehovah's witness and age is less than 59? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT title FROM table_26139405_1 WHERE viewers__in_millions_ = "8.51" | What is the name of the episode that had 8.51 million viewers? | CREATE TABLE table_26139405_1 (title VARCHAR, viewers__in_millions_ VARCHAR) |
SELECT opponent_in_the_final FROM table_name_23 WHERE date = "january 10, 2004" | Final that has a Date of january 10, 2004 had what opponent? | CREATE TABLE table_name_23 (opponent_in_the_final VARCHAR, date VARCHAR) |
SELECT Name, AVG(Price) FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID JOIN cinema AS T3 ON T1.Cinema_ID = T3.Cinema_ID GROUP BY Name ORDER BY AVG(Price) DESC | A bar chart showing the average price of each cinema, show in descending by the y-axis please. | CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
) |
SELECT writer FROM table_26139405_1 WHERE episode__number = 26 | Who wrote episode 26 in the series? | CREATE TABLE table_26139405_1 (writer VARCHAR, episode__number VARCHAR) |
SELECT date FROM table_name_91 WHERE tournament = "tokyo, japan" AND score = "4–6, 6–4, 6–4" | Tournament of tokyo, japan, and a Score of 4–6, 6–4, 6–4 had which date attached? | CREATE TABLE table_name_91 (date VARCHAR, tournament VARCHAR, score VARCHAR) |
SELECT "Score" FROM table_58745 WHERE "Player" = 'seve ballesteros' | Name The Score of Player of seve ballesteros? | CREATE TABLE table_58745 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" real
) |
SELECT g__μs_km_ FROM table_261642_3 WHERE frequency__hz_ = "100k" | What is the g (μs/km)when the frequency (hz) is 100k? | CREATE TABLE table_261642_3 (g__μs_km_ VARCHAR, frequency__hz_ VARCHAR) |
SELECT date FROM table_name_63 WHERE score = "3–6, 7–5, 6–4" | Score of 3–6, 7–5, 6–4 included what date? | CREATE TABLE table_name_63 (date VARCHAR, score VARCHAR) |
SELECT authors FROM table_name_42 WHERE unit = "densuș-ciula formation" | Which authors have a Unit of densu -ciula formation? | CREATE TABLE table_name_42 (
authors VARCHAR,
unit VARCHAR
) |
SELECT r__ω_km_ FROM table_261642_3 WHERE frequency__hz_ = "10k" | What is the r (ω/km) when the frequency is 10k? | CREATE TABLE table_261642_3 (r__ω_km_ VARCHAR, frequency__hz_ VARCHAR) |
SELECT MIN(podiums) FROM table_name_23 WHERE series = "formula renault 2000 brazil" AND poles < 1 | What are the fewest number of podiums associated with a Series of formula renault 2000 brazil, and under 1 pole? | CREATE TABLE table_name_23 (podiums INTEGER, series VARCHAR, poles VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'WASHINGTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND flight.departure_time BETWEEN 1800 AND 2200 | i would like the evening schedule of flights from SAN FRANCISCO to WASHINGTON | CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,
time_elapsed int,
to_airport varchar
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_miles int,
pressurized varchar
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_required varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
) |
SELECT c__nf_km_ FROM table_261642_3 WHERE r__ω_km_ = "463.59" | What is the c (nf/km) when the r (ω/km) is 463.59? | CREATE TABLE table_261642_3 (c__nf_km_ VARCHAR, r__ω_km_ VARCHAR) |
SELECT position FROM table_name_16 WHERE wins > 0 AND podiums < 3 | What position has over 0 wins and under 3 podiums? | CREATE TABLE table_name_16 (position VARCHAR, wins VARCHAR, podiums VARCHAR) |
SELECT MAX("Assists") FROM table_23192 WHERE "Player" = 'Nicole Levandusky' | What is the largest amount of assists that Nicole Levandusky made? | CREATE TABLE table_23192 (
"Player" text,
"Games Played" real,
"Rebounds" real,
"Assists" real,
"Steals" real,
"Blocks" real,
"Points" real
) |
SELECT c__nf_km_ FROM table_261642_3 WHERE l__mh_km_ = "0.6099" | what is the c (nf/km) when the l (mh/km) is 0.6099? | CREATE TABLE table_261642_3 (c__nf_km_ VARCHAR, l__mh_km_ VARCHAR) |
SELECT SUM(wins) FROM table_name_12 WHERE points = 20 AND podiums > 1 | How many wins are associated with 20 points and over 1 podium? | CREATE TABLE table_name_12 (wins INTEGER, points VARCHAR, podiums VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course_offering.course_id WHERE program_course.category LIKE '%Core%' AND semester.semester = 'Winter' AND semester.year = 2017 | In the classes for next Winter , what Core classes are offered ? | CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
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 requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip 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 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 gsi (
course_offering_id int,
student_id int
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
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 course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year 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
) |
SELECT frequency__hz_ FROM table_261642_3 WHERE g__μs_km_ = "53.205" | what is the frequency (hz) when the g (μs/km) is 53.205? | CREATE TABLE table_261642_3 (frequency__hz_ VARCHAR, g__μs_km_ VARCHAR) |
SELECT MAX(number_of_households) FROM table_name_88 WHERE median_family_income = "$52,106" AND population < 21 OFFSET 403 | What is the largest number of households with median family income of $52,106 with less than 21,403 in population? | CREATE TABLE table_name_88 (number_of_households INTEGER, median_family_income VARCHAR, population VARCHAR) |
SELECT HIRE_DATE, SALARY FROM employees ORDER BY HIRE_DATE DESC | Show the trend about salary change over hire date using a line chart, and show x axis in descending order. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
) |
SELECT imports FROM table_26160007_1 WHERE country = "United Arab Emirates" | In the country United Arab Emirates, what is the number of imports? | CREATE TABLE table_26160007_1 (imports VARCHAR, country VARCHAR) |
SELECT MAX(number_of_households) FROM table_name_2 WHERE median_household_income = "$54,086" AND population < 231 OFFSET 236 | What is the most households with a median household income of $54,086 with less than 231,236 in population? | CREATE TABLE table_name_2 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR) |
SELECT region_name FROM region WHERE NOT region_id IN (SELECT region_id FROM affected_region) | What are the names of regions that were not affected? | CREATE TABLE region (
region_id number,
region_code text,
region_name text
)
CREATE TABLE storm (
storm_id number,
name text,
dates_active text,
max_speed number,
damage_millions_usd number,
number_deaths number
)
CREATE TABLE affected_region (
region_id number,
storm_id number,
number_city_affected number
) |
SELECT total_trade FROM table_26160007_1 WHERE exports = "6,099.06" | Where the number of exports are 6,099.06, what is the total trade? | CREATE TABLE table_26160007_1 (total_trade VARCHAR, exports VARCHAR) |
SELECT county FROM table_name_34 WHERE median_family_income = "$46,426" | Which country has a $46,426 median family income? | CREATE TABLE table_name_34 (county VARCHAR, median_family_income VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.icd9_code = "56962" | how many dead patients had diagnoses icd9 code 56962? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT country FROM table_26160007_1 WHERE exports = "1,278.13" | In which country are there 1,278.13 exports? | CREATE TABLE table_26160007_1 (country VARCHAR, exports VARCHAR) |
SELECT AVG(grid) FROM table_name_27 WHERE laps < 8 | What is the average grid with a number of laps smaller than 8? | CREATE TABLE table_name_27 (grid INTEGER, laps INTEGER) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.