answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT week FROM table_name_37 WHERE eastern__number2 = "houston" | Tell me the wekk for eastern #2 of houston | CREATE TABLE table_name_37 (week VARCHAR, eastern__number2 VARCHAR) |
SELECT COUNT(gdp_per_capita) FROM table_2248991_2 WHERE nation = "Burkina Faso" | How many items are listed under gdp per capita under the nation of Burkina Faso? | CREATE TABLE table_2248991_2 (gdp_per_capita VARCHAR, nation VARCHAR) |
SELECT MAX("Draft Year") FROM table_870 WHERE "Player" = 'Jerry Marion' | What year was jerry marion drafted? | CREATE TABLE table_870 (
"Draft Year" real,
"Player" text,
"Position" text,
"Round" real,
"Overall" real,
"NFL Team" text
) |
SELECT home_team FROM table_name_74 WHERE away_team = "carlton" | Which home team played against the away team Carlton? | CREATE TABLE table_name_74 (home_team VARCHAR, away_team VARCHAR) |
SELECT MIN(total_gdp_world_rank) FROM table_2248991_2 WHERE gdp_per_capita = "$1,163" | What is the total gdp world rank when the gdp per capita was listed at $1,163? | CREATE TABLE table_2248991_2 (total_gdp_world_rank INTEGER, gdp_per_capita VARCHAR) |
SELECT CASE WHEN a.Score > 0 OR a.Id = q.AcceptedAnswerId THEN 'yes' ELSE 'no' END AS GoodAnswer, CASE WHEN q.Body LIKE '%<code>%' THEN 'yes' ELSE 'no' END AS IncludesCode, COUNT(*) AS Count FROM Posts AS q JOIN Posts AS a ON q.Id = a.ParentId WHERE q.PostTypeId = 1 AND a.PostTypeId = 2 AND q.ViewCount > 10 AND q.AnswerCount > 0 AND q.CreationDate > (SELECT MAX(CreationDate) FROM Posts) - 30 GROUP BY CASE WHEN a.Score > 0 OR a.Id = q.AcceptedAnswerId THEN 'yes' ELSE 'no' END, CASE WHEN q.Body LIKE '%<code>%' THEN 'yes' ELSE 'no' END ORDER BY CASE WHEN a.Score > 0 OR a.Id = q.AcceptedAnswerId THEN 'yes' ELSE 'no' END | Good answer vs includes code. | 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 PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId 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 PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE 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 PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense 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 ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistoryTypes (
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 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 ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId 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 ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
) |
SELECT venue FROM table_name_29 WHERE home_team = "collingwood" | Where was the game played where the home team was Collingwood? | CREATE TABLE table_name_29 (venue VARCHAR, home_team VARCHAR) |
SELECT MIN(world_rank) FROM table_2249087_1 WHERE south_american_rank = 3 | Name the least world rank for south american rank 3 | CREATE TABLE table_2249087_1 (world_rank INTEGER, south_american_rank VARCHAR) |
SELECT "Date" FROM table_49188 WHERE "Score" = '3–6, 7–6(6), 5–7' | What is the Date of the Tournament with a Score of 3 6, 7 6(6), 5 7? | CREATE TABLE table_49188 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) |
SELECT home_team AS score FROM table_name_44 WHERE crowd > 25 OFFSET 603 | What is the home score with a crowd larger than 25,603? | CREATE TABLE table_name_44 (home_team VARCHAR, crowd INTEGER) |
SELECT MIN(south_american_rank) FROM table_2249087_1 WHERE nation = "Venezuela" | Name the south american rank for venezuela | CREATE TABLE table_2249087_1 (south_american_rank INTEGER, nation VARCHAR) |
SELECT "Result" FROM table_63093 WHERE "Award" = 'best current affairs presenter' | What was the result for the award for best current affairs presenter? | CREATE TABLE table_63093 (
"Year" real,
"Organisation" text,
"Award" text,
"Nominated Work Title" text,
"Result" text
) |
SELECT date FROM table_name_41 WHERE home_team = "south melbourne" | What is the date of the home team from South Melbourne? | CREATE TABLE table_name_41 (date VARCHAR, home_team VARCHAR) |
SELECT COUNT(weight) FROM table_22496374_1 WHERE home_town = "San Francisco, CA" | How many weight stats are there for players from San Francisco, CA? | CREATE TABLE table_22496374_1 (weight VARCHAR, home_town VARCHAR) |
SELECT SUM("Gold") FROM table_35005 WHERE "Nation" = 'algeria' AND "Total" < '3' | What is the sum of all gold medals for Algeria when total medals is less than 3? | CREATE TABLE table_35005 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT away_team AS score FROM table_name_88 WHERE home_team = "fitzroy" | What is the score of the away team with the home team Fitzroy? | CREATE TABLE table_name_88 (away_team VARCHAR, home_team VARCHAR) |
SELECT MAX(_number) FROM table_22496374_1 WHERE name = "Rickie Winslow" | What was rickie winslow's number? | CREATE TABLE table_22496374_1 (_number INTEGER, name VARCHAR) |
SELECT COUNT(series__number) FROM table_14929574_3 WHERE us_viewers__million_ = "3.35" | Which episode number drew in 3.35 million viewers in the United States? | CREATE TABLE table_14929574_3 (
series__number VARCHAR,
us_viewers__million_ VARCHAR
) |
SELECT venue FROM table_name_63 WHERE away_team = "footscray" | What venue did the away team footscray play at? | CREATE TABLE table_name_63 (venue VARCHAR, away_team VARCHAR) |
SELECT COUNT(height) FROM table_22496374_1 WHERE home_town = "Lagos, Nigeria" | How many height entries are there for players from lagos, nigeria? | CREATE TABLE table_22496374_1 (height VARCHAR, home_town VARCHAR) |
SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'cont inv mec ven <96 hrs') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 56635) | calculate how many times patient 56635 has received cont inv mec ven <96 hrs procedures. | 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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
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 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 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 outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
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_items (
row_id number,
itemid number,
label text,
linksto text
) |
SELECT MIN(crowd) FROM table_name_75 WHERE away_team = "melbourne" | When melbourne was the away team, what was the lowest crowd turnout they had? | CREATE TABLE table_name_75 (crowd INTEGER, away_team VARCHAR) |
SELECT home_town FROM table_22496374_1 WHERE high_school = "Alvin" | What is the hometown of the players from alvin high school? | CREATE TABLE table_22496374_1 (home_town VARCHAR, high_school VARCHAR) |
SELECT MAX("Swimsuit") FROM table_78235 WHERE "Evening Gown" > '9.175' AND "Interview" < '8.425' | What is the highest swimsuit score of the contestant with an evening gown larger than 9.175 and an interview score less than 8.425? | CREATE TABLE table_78235 (
"State" text,
"Interview" real,
"Swimsuit" real,
"Evening Gown" real,
"Average" real
) |
SELECT away_team FROM table_name_63 WHERE venue = "glenferrie oval" | Which away team plays at the venue glenferrie oval? | CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR) |
SELECT COUNT(height) FROM table_22496374_1 WHERE high_school = "Bayside" | How many height entries are there for players from bayside high school? | CREATE TABLE table_22496374_1 (height VARCHAR, high_school VARCHAR) |
SELECT SUM("Car #") FROM table_33000 WHERE "Points" < '126' AND "Laps" = '147' | What is the sum of car numbers with less than 126 points and 147 laps? | CREATE TABLE table_33000 (
"Driver" text,
"Car #" real,
"Make" text,
"Points" real,
"Laps" real,
"Winnings" text
) |
SELECT MIN(2005) FROM table_name_75 WHERE 2009 = 19 AND 2010 < 21 | Tell me the lowest 2005 for 2010 less than 21 for 2009 being 19 | CREATE TABLE table_name_75 (Id VARCHAR) |
SELECT COUNT(reason_for_change) FROM table_225095_4 WHERE successor = "Edward Hempstead" | How many reasons for change were listed when Edward Hempstead was the successor? | CREATE TABLE table_225095_4 (reason_for_change VARCHAR, successor VARCHAR) |
SELECT venue FROM table_name_60 WHERE home_team = "melbourne" | What venue is home for the Melbourne team? | CREATE TABLE table_name_60 (
venue VARCHAR,
home_team VARCHAR
) |
SELECT COUNT(2010) FROM table_name_85 WHERE 2009 < 14 AND 2008 < 15 AND 2005 = 3 | Name the total number of 2010 for when 2009 is less than 14, 2008 is less than 15 and 2005 is 3 | CREATE TABLE table_name_85 (Id VARCHAR) |
SELECT COUNT(vacator) FROM table_225095_4 WHERE district = "North Carolina 3rd" | How many Vacators were listed when the district was North Carolina 3rd? | CREATE TABLE table_225095_4 (vacator VARCHAR, district VARCHAR) |
SELECT COUNT(step_6) FROM table_2319437_1 WHERE gs_grade = 11 | Name the total number of step 6 for 11 gs grade | CREATE TABLE table_2319437_1 (
step_6 VARCHAR,
gs_grade VARCHAR
) |
SELECT AVG(2008) FROM table_name_21 WHERE year = "beijing" AND 2005 > 2 | Name the average 2008 for beijing and 2005 more than 2 | CREATE TABLE table_name_21 (year VARCHAR) |
SELECT vacator FROM table_225095_4 WHERE successor = "Shadrach Bond" | Who was the vacator when Shadrach Bond was the successor? | CREATE TABLE table_225095_4 (vacator VARCHAR, successor VARCHAR) |
SELECT "Manner of departure" FROM table_56406 WHERE "Date of appointment" = '12 october 2007' | I want the manner of departure for date of appointment being 12 october 2007 | CREATE TABLE table_56406 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
) |
SELECT MIN(2008) FROM table_name_45 WHERE year = "guizhou" AND 2005 < 31 | Name the lowest 2008 for guizhou when 2005 is less than 31 | CREATE TABLE table_name_45 (year VARCHAR) |
SELECT date_successor_seated FROM table_225096_4 WHERE reason_for_change = "Until August 2, 1813" | When was the successor who got his seat because of "until august 2, 1813" seated? | CREATE TABLE table_225096_4 (date_successor_seated VARCHAR, reason_for_change VARCHAR) |
SELECT MAX("Rank") FROM table_7669 WHERE "Total" = '1' AND "Bronze" > '0' | Which Rank has a Total of 1 and a Bronze larger than 0? | CREATE TABLE table_7669 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT SUM(2010) FROM table_name_53 WHERE 2000 = 17 AND 2005 > 16 | Name the sum of 2010 for 2000 of 17 and 2005 more than 16 | CREATE TABLE table_name_53 (Id VARCHAR) |
SELECT date_successor_seated FROM table_225098_4 WHERE district = "Massachusetts 20th" | The successor for the Massachusetts 20th district was seated on what date? | CREATE TABLE table_225098_4 (date_successor_seated VARCHAR, district VARCHAR) |
SELECT COUNT(location_attendance) FROM table_23248967_9 WHERE date = "March 6" | How many game locations occurred on March 6? | CREATE TABLE table_23248967_9 (
location_attendance VARCHAR,
date VARCHAR
) |
SELECT SUM(crowd) FROM table_name_7 WHERE venue = "mcg" | What is the total of crowd at Venue of mcg? | CREATE TABLE table_name_7 (crowd INTEGER, venue VARCHAR) |
SELECT vacator FROM table_225098_4 WHERE district = "Pennsylvania 6th" | Who vacated the Pennsylvania 6th district? | CREATE TABLE table_225098_4 (vacator VARCHAR, district VARCHAR) |
SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 7073) AND STRFTIME('%y', procedures_icd.charttime) <= '2104' | did patient 7073 undergo any procedures until 2104? | CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
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 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 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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime 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 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 d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name 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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
) |
SELECT COUNT(region) FROM table_name_76 WHERE area__km_2__ = 58.81 | Tell me the number of regions with an area of 58.81 | CREATE TABLE table_name_76 (region VARCHAR, area__km_2__ VARCHAR) |
SELECT successor FROM table_225099_3 WHERE state__class_ = "Maine (2)" | Who was the successor for the state of Maine (2) ? | CREATE TABLE table_225099_3 (successor VARCHAR, state__class_ VARCHAR) |
SELECT game FROM table_name_69 WHERE player = "eoin holohan" | What game did Eoin Holohan play in? | CREATE TABLE table_name_69 (
game VARCHAR,
player VARCHAR
) |
SELECT COUNT(rank) FROM table_name_63 WHERE bronze < 0 | what is the rank when the bronze is less than 0? | CREATE TABLE table_name_63 (rank VARCHAR, bronze INTEGER) |
SELECT date_of_successors_formal_installation FROM table_225099_3 WHERE reason_for_change = "Resigned December 4, 1819" | What is the date of successors formal installation when the reason for change is resigned december 4, 1819? | CREATE TABLE table_225099_3 (date_of_successors_formal_installation VARCHAR, reason_for_change VARCHAR) |
SELECT DISTINCT COURSE_1.department, COURSE_1.name, COURSE_1.number FROM course AS COURSE_0, course AS COURSE_1, course_prerequisite WHERE COURSE_0.course_id = course_prerequisite.pre_course_id AND COURSE_0.department = 'SW' AND COURSE_0.number = 858 AND COURSE_1.course_id = course_prerequisite.course_id | Is SW 858 a must-take prerequisite for any other course ? | CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location 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 offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varchar
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_project varchar,
has_final_exam varchar,
textbook varchar,
class_address varchar,
allow_audit varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req 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 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 semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
) |
SELECT MAX(rank) FROM table_name_83 WHERE bronze < 1 AND total < 1 | what is the highest rank when the bronze is less than 1 and the total is less than 1? | CREATE TABLE table_name_83 (rank INTEGER, bronze VARCHAR, total VARCHAR) |
SELECT COUNT(date_of_successors_formal_installation) FROM table_225099_3 WHERE successor = "John W. Walker (DR)" | How many entries are shown for date of successors formal installation where successor is john w. walker (dr)? | CREATE TABLE table_225099_3 (date_of_successors_formal_installation VARCHAR, successor VARCHAR) |
SELECT MAX(december) FROM table_name_9 WHERE record = "11-13-5" | What is the December game that led to an 11-13-5 record? | CREATE TABLE table_name_9 (
december INTEGER,
record VARCHAR
) |
SELECT MIN(silver) FROM table_name_70 WHERE gold < 0 | what is the lowest amount of silver when the gold is less than 0? | CREATE TABLE table_name_70 (silver INTEGER, gold INTEGER) |
SELECT state__class_ FROM table_225099_3 WHERE reason_for_change = "Resigned May 15, 1820" | what is the state for reason for change is resigned may 15, 1820? | CREATE TABLE table_225099_3 (state__class_ VARCHAR, reason_for_change VARCHAR) |
SELECT "Run time" FROM table_72856 WHERE "Viewers (in millions)" = '7.4' | What is run time when there were 7.4 million viewers? | CREATE TABLE table_72856 (
"Episode" text,
"Broadcast date" text,
"Run time" text,
"Viewers (in millions)" text,
"Archive" text
) |
SELECT AVG(gold) FROM table_name_5 WHERE rank > 5 | what is the average number of gold when the rank is more than 5? | CREATE TABLE table_name_5 (gold INTEGER, rank INTEGER) |
SELECT trophy_presentation FROM table_22514845_4 WHERE year = 1987 | Who is the trophy presentation in the year 1987? | CREATE TABLE table_22514845_4 (trophy_presentation VARCHAR, year VARCHAR) |
SELECT last_name, COUNT(last_name) FROM Teachers GROUP BY last_name ORDER BY last_name | Find the number of last names of teachers in alphabetical order of last name with a bar chart. | CREATE TABLE Behavior_Incident (
incident_id INTEGER,
incident_type_code VARCHAR(10),
student_id INTEGER,
date_incident_start DATETIME,
date_incident_end DATETIME,
incident_summary VARCHAR(255),
recommendations VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Addresses (
address_id INTEGER,
line_1 VARCHAR(120),
line_2 VARCHAR(120),
line_3 VARCHAR(120),
city VARCHAR(80),
zip_postcode VARCHAR(20),
state_province_county VARCHAR(50),
country VARCHAR(50),
other_address_details VARCHAR(255)
)
CREATE TABLE Students (
student_id INTEGER,
address_id INTEGER,
first_name VARCHAR(80),
middle_name VARCHAR(40),
last_name VARCHAR(40),
cell_mobile_number VARCHAR(40),
email_address VARCHAR(40),
date_first_rental DATETIME,
date_left_university DATETIME,
other_student_details VARCHAR(255)
)
CREATE TABLE Assessment_Notes (
notes_id INTEGER,
student_id INTEGER,
teacher_id INTEGER,
date_of_notes DATETIME,
text_of_notes VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Students_in_Detention (
student_id INTEGER,
detention_id INTEGER,
incident_id INTEGER
)
CREATE TABLE Student_Addresses (
student_id INTEGER,
address_id INTEGER,
date_address_from DATETIME,
date_address_to DATETIME,
monthly_rental DECIMAL(19,4),
other_details VARCHAR(255)
)
CREATE TABLE Detention (
detention_id INTEGER,
detention_type_code VARCHAR(10),
teacher_id INTEGER,
datetime_detention_start DATETIME,
datetime_detention_end DATETIME,
detention_summary VARCHAR(255),
other_details VARCHAR(255)
)
CREATE TABLE Teachers (
teacher_id INTEGER,
address_id INTEGER,
first_name VARCHAR(80),
middle_name VARCHAR(80),
last_name VARCHAR(80),
gender VARCHAR(1),
cell_mobile_number VARCHAR(40),
email_address VARCHAR(40),
other_details VARCHAR(255)
)
CREATE TABLE Ref_Incident_Type (
incident_type_code VARCHAR(10),
incident_type_description VARCHAR(80)
)
CREATE TABLE Ref_Detention_Type (
detention_type_code VARCHAR(10),
detention_type_description VARCHAR(80)
)
CREATE TABLE Ref_Address_Types (
address_type_code VARCHAR(15),
address_type_description VARCHAR(80)
) |
SELECT MAX(silver) FROM table_name_50 WHERE gold = 0 AND nation = "soviet union" | what is the highest amount of silver when gold is 0 for soviet union? | CREATE TABLE table_name_50 (silver INTEGER, gold VARCHAR, nation VARCHAR) |
SELECT network FROM table_22514845_4 WHERE s_analyst = "Eddie Arcaro" | Which network has s analyst of eddie arcaro? | CREATE TABLE table_22514845_4 (network VARCHAR, s_analyst VARCHAR) |
SELECT "Score" FROM table_66782 WHERE "Date" = 'january 16, 2010' | What was the score on January 16, 2010? | CREATE TABLE table_66782 (
"Outcome" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Score" text
) |
SELECT position FROM table_name_35 WHERE player = "adam rachel" | What position does adam rachel play? | CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR) |
SELECT reporters FROM table_22514845_4 WHERE year = 1984 | Who are the reporters for the year of 1984? | CREATE TABLE table_22514845_4 (reporters VARCHAR, year VARCHAR) |
SELECT patient.hospitaladmitsource FROM patient WHERE patient.uniquepid = '012-18025' AND STRFTIME('%y', patient.hospitaladmittime) >= '2105' ORDER BY patient.hospitaladmittime LIMIT 1 | how patient 012-18025 was admitted to the hospital since 2105 first? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
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 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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime 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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
) |
SELECT player FROM table_name_97 WHERE first_team_appearances > 1 AND first_team_goals = 32 | What player has over 1 first apperance and over 32 first team goals? | CREATE TABLE table_name_97 (player VARCHAR, first_team_appearances VARCHAR, first_team_goals VARCHAR) |
SELECT COUNT(trophy_presentation) FROM table_22514845_4 WHERE year = 1987 | How many trophy presentations where in the year 1987? | CREATE TABLE table_22514845_4 (trophy_presentation VARCHAR, year VARCHAR) |
SELECT "title" FROM table_204_500 WHERE id = (SELECT id FROM table_204_500 WHERE "title" = '"hey joe"') - 1 | tell me the single released immediately before hey joe . | CREATE TABLE table_204_500 (
id number,
"year" number,
"title" text,
"peak chart positions\nus country" number,
"peak chart positions\nus" number,
"album" text
) |
SELECT AVG(speed) FROM table_name_31 WHERE year < 1974 AND passengers > 1.73 | What is the average speed for ships before 1974 with over 1.73 passengers? | CREATE TABLE table_name_31 (speed INTEGER, year VARCHAR, passengers VARCHAR) |
SELECT MIN(year) FROM table_22514845_4 WHERE reporters = "Howard Cosell and Jack Whitaker" AND s_analyst = "Bill Hartack" | In which year were howard cosell and jack whitaker reporters and s analyst is bill hartack? | CREATE TABLE table_22514845_4 (year INTEGER, reporters VARCHAR, s_analyst VARCHAR) |
SELECT MIN(no) FROM table_21977627_1 WHERE chassis = "Maserati 4CL" | The Maserati 4cl's minimum no was? | CREATE TABLE table_21977627_1 (
no INTEGER,
chassis VARCHAR
) |
SELECT COUNT(vessels) FROM table_name_11 WHERE ship_name = "aqua jewel" | How many vessels are named aqua jewel? | CREATE TABLE table_name_11 (vessels VARCHAR, ship_name VARCHAR) |
SELECT race_caller FROM table_22514845_4 WHERE s_host = "Jim McKay and Al Michaels" AND year = 1987 | Who is the race caller when jim mckay and al michaels were s hosts in the year 1987? | CREATE TABLE table_22514845_4 (race_caller VARCHAR, s_host VARCHAR, year VARCHAR) |
SELECT "Home team score" FROM table_20764 WHERE "Home team" = 'Richmond' | What are the home team scores when richmond is the home team? | CREATE TABLE table_20764 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
) |
SELECT COUNT(district) FROM table_name_40 WHERE place_of_birth = "baltimore city" AND delegate = "cheryl glenn" | How many districts in Baltimore City does Cheryl Glenn dictate? | CREATE TABLE table_name_40 (district VARCHAR, place_of_birth VARCHAR, delegate VARCHAR) |
SELECT s_host FROM table_22514845_5 WHERE s_analyst = "John Rotz and Howard Cosell" | Name the host for john rotz and howard cosell | CREATE TABLE table_22514845_5 (s_host VARCHAR, s_analyst VARCHAR) |
SELECT "Position" FROM table_19544 WHERE "NHL team" = 'Philadelphia Flyers' | Which position did the player hold that played for the Philadelphia Flyers in NHL? | CREATE TABLE table_19544 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) |
SELECT party FROM table_name_61 WHERE district = 41 AND delegate = "jill p. carter" | Which party belongs to district 41, and is delegated by Jill P. Carter? | CREATE TABLE table_name_61 (party VARCHAR, district VARCHAR, delegate VARCHAR) |
SELECT race_caller FROM table_22514845_5 WHERE s_host = "Jim McKay" AND reporters = "Howard Cosell" | Name the race caller for jim mckay and howard cosell | CREATE TABLE table_22514845_5 (race_caller VARCHAR, s_host VARCHAR, reporters VARCHAR) |
SELECT "player" FROM table_203_460 WHERE id = (SELECT id FROM table_203_460 WHERE "player" = 'mark walsh') + 1 | what is the name of the next player after mark walsh ? | CREATE TABLE table_203_460 (
id number,
"player" text,
"played" number,
"legs won" number,
"legs lost" number,
"lwat" number,
"100+" number,
"140+" number,
"180s" number,
"high checkout" number,
"3-dart average" number
) |
SELECT place_of_birth FROM table_name_31 WHERE took_office > 1982 AND district < 43 AND committee = "health and government operations" | Where was the place of birth for the delegate who took office after 1982, delegates a district smaller than 43 and belongs to a Health and Government operations committee? | CREATE TABLE table_name_31 (place_of_birth VARCHAR, committee VARCHAR, took_office VARCHAR, district VARCHAR) |
SELECT race_caller FROM table_22514845_5 WHERE trophy_presentation = "Jim McKay and Howard Cosell" AND reporters = "Howard Cosell" AND s_analyst = "Eddie Arcaro" | Name the race caller for jim mckay and howard cosell and eddie arcaro | CREATE TABLE table_22514845_5 (race_caller VARCHAR, s_analyst VARCHAR, trophy_presentation VARCHAR, reporters VARCHAR) |
SELECT audition_city FROM table_name_81 WHERE callback_venue = "amelia island plantation" | Which audition city held callbacks at Amelia Island Plantation? | CREATE TABLE table_name_81 (
audition_city VARCHAR,
callback_venue VARCHAR
) |
SELECT place_of_birth FROM table_name_24 WHERE committee = "judiciary" AND district = 43 | Where was the delegate belonging to the Judiciary committee of district 43 born? | CREATE TABLE table_name_24 (place_of_birth VARCHAR, committee VARCHAR, district VARCHAR) |
SELECT reporters FROM table_22514845_5 WHERE race_caller = "Dave Johnson" AND s_analyst = "Eddie Arcaro and Howard Cosell" | Name the reporters for dave johnson for eddie arcaro and howard cosell | CREATE TABLE table_22514845_5 (reporters VARCHAR, race_caller VARCHAR, s_analyst VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", u.Id AS "user_link", u.Reputation, COUNT(p.Id) FROM Users AS u INNER JOIN Posts AS p ON p.OwnerUserId = u.Id INNER JOIN PostTags AS pt ON pt.PostId = p.Id INNER JOIN Tags AS t ON t.Id = pt.TagId WHERE (LOWER(Location) LIKE LOWER('%kochi%') OR LOWER(Location) LIKE LOWER('%trivandram%')) AND (t.TagName = 'html' OR t.TagName = 'css' OR t.TagName = 'css3' OR t.TagName = 'html5' OR t.TagName = 'bootstrap') GROUP BY u.Reputation, u.Id ORDER BY Reputation DESC | Finding Front End developers in Kochi and Trivandram. | CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE PostTypes (
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 PostTags (
PostId number,
TagId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE 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 ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
) |
SELECT MAX(district) FROM table_name_30 WHERE delegate = "cheryl glenn" AND took_office > 2006 | What is the largest district for delegate Cheryl Glenn, that she had taken after 2006? | CREATE TABLE table_name_30 (district INTEGER, delegate VARCHAR, took_office VARCHAR) |
SELECT reporters FROM table_22514845_5 WHERE s_analyst = "Howard Cosell" | Name the reporters for howard cosell | CREATE TABLE table_22514845_5 (reporters VARCHAR, s_analyst VARCHAR) |
SELECT JOB_ID, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY SUM(SALARY) | For those employees who was hired before 2002-06-21, draw a bar chart about the distribution of job_id and the sum of salary , and group by attribute job_id, show in asc by the y axis. | CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE 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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
) |
SELECT MAX(placings) FROM table_name_82 WHERE name = "marie mcneil / robert mccall" AND points < 168.58 | What is the highest placing for marie mcneil / robert mccall, with less than 168.58? | CREATE TABLE table_name_82 (placings INTEGER, name VARCHAR, points VARCHAR) |
SELECT COUNT(reporters) FROM table_22514845_5 WHERE s_analyst = "Heywood Hale Broun" | Name the number of reporters for heywood hale broun | CREATE TABLE table_22514845_5 (reporters VARCHAR, s_analyst VARCHAR) |
SELECT "Method" FROM table_78397 WHERE "Res." = 'loss' AND "Time" = '5:00' | What is the method where there is a loss with time 5:00? | CREATE TABLE table_78397 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) |
SELECT date FROM table_name_25 WHERE home = "mavericks" | What was the date of the Mavericks home game? | CREATE TABLE table_name_25 (date VARCHAR, home VARCHAR) |
SELECT province FROM table_2251578_4 WHERE elevation__m_ = 4550 | Which province has an elevation of 4550? | CREATE TABLE table_2251578_4 (province VARCHAR, elevation__m_ VARCHAR) |
SELECT "Directed by" FROM table_2563 WHERE "Title" = 'Loathe and Marriage' | Who directed 'loathe and marriage'? | CREATE TABLE table_2563 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
) |
SELECT MAX(displacement__cc_) FROM table_name_12 WHERE model = "r fwd auto phase1" | What is the highest displacement value for the R Fwd Auto Phase1? | CREATE TABLE table_name_12 (displacement__cc_ INTEGER, model VARCHAR) |
SELECT province FROM table_2251578_4 WHERE district = "San Antonio de Chuca" | Which province is in the district of San Antonio de Chuca? | CREATE TABLE table_2251578_4 (province VARCHAR, district VARCHAR) |
SELECT COUNT("Result") FROM table_18334 WHERE "Candidates" = 'Robert L. Leggett (D) 50.2% Albert Dehr (R) 49.8%' | How many times did an election feature the result robert l. leggett (d) 50.2% albert dehr (r) 49.8%? | CREATE TABLE table_18334 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) |
SELECT away_team FROM table_name_51 WHERE venue = "lake oval" | What team played at lake oval while away? | CREATE TABLE table_name_51 (away_team VARCHAR, venue VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.