answer
stringlengths 6
3.91k
| question
stringlengths 7
766
| context
stringlengths 27
7.14k
|
---|---|---|
SELECT "Race" FROM table_62054 WHERE "Round" < '8' AND "Date" = '6 july' | What race was a round smaller than 8, on 6 july? | CREATE TABLE table_62054 (
"Round" real,
"Race" text,
"Circuit" text,
"Date" text,
"Event" text,
"Winning driver" text
) |
SELECT 2009 FROM table_name_19 WHERE 2012 = "lq" AND 2011 = "2r" AND 2008 = "lq" | What is the 2009 value with lq in 2012, 2r in 2011, and lq in 2008? | CREATE TABLE table_name_19 (Id VARCHAR) |
SELECT MIN(rnd) FROM table_27561505_2 WHERE circuit = "Laguna Seca" | What is the minimum rnd at Laguna Seca? | CREATE TABLE table_27561505_2 (rnd INTEGER, circuit VARCHAR) |
SELECT COUNT(*) > 0 FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355')) AND DATETIME(microlab.culturetakentime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') | was there a microbiological test that was done to patient 031-3355 during this month? | 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 microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime 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
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
) |
SELECT 2010 FROM table_name_97 WHERE 2012 = "a" AND tournament = "monte carlo masters" | What is the 2010 value of the monte carlo masters, which had A in 2012? | CREATE TABLE table_name_97 (tournament VARCHAR) |
SELECT COUNT(gt_20_winning_team) FROM table_27561503_2 WHERE sports_20_winning_team = "#16 Trans Ocean Motors" AND circuit = "Castle Rock" | Name the gt 2.0 winning team for sports 2.0 winning team for #16 trans ocean motors for castle rock | CREATE TABLE table_27561503_2 (gt_20_winning_team VARCHAR, sports_20_winning_team VARCHAR, circuit VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number FROM program_course INNER JOIN course ON program_course.course_id = course.course_id WHERE course.department = 'CHEMBIO' | What CHEMBIO classes are needed for CS majors ? | CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course_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 course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_project varchar,
has_final_exam varchar,
textbook varchar,
class_address varchar,
allow_audit varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id 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 comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
) |
SELECT COUNT(quantity) FROM table_name_93 WHERE drg_number_s_ = "e 62 01βe 62 05" | What is the quantity when the DRG was E 62 01βE 62 05? | CREATE TABLE table_name_93 (quantity VARCHAR, drg_number_s_ VARCHAR) |
SELECT COUNT(results) FROM table_27561503_2 WHERE sports_20_winning_team = "#23 Lotus" | Name the results for #23 lotus | CREATE TABLE table_27561503_2 (results VARCHAR, sports_20_winning_team VARCHAR) |
SELECT 1986 AS _87 FROM table_14489821_1 WHERE average = "1.079" | list the number of matches played by the teams that got an average of 1.079 | CREATE TABLE table_14489821_1 (
average VARCHAR
) |
SELECT opponent_in_the_final FROM table_name_88 WHERE partnering = "graydon oliver" | Which Opponent in the final has a Partnering of graydon oliver? | CREATE TABLE table_name_88 (opponent_in_the_final VARCHAR, partnering VARCHAR) |
SELECT results FROM table_27561503_2 WHERE gt_20_winning_team = "Herb Wetanson" | Name results for herb wetanson | CREATE TABLE table_27561503_2 (results VARCHAR, gt_20_winning_team VARCHAR) |
SELECT MAX(total) FROM table_name_4 WHERE bronze > 2 AND rank > 3 AND nation = "united states" AND silver > 3 | For the United States, with greater than 2 bronze metals, greater than 3 silver medals, and a rank higher than 3, what is the highest total number of medals? | CREATE TABLE table_name_4 (
total INTEGER,
silver VARCHAR,
nation VARCHAR,
bronze VARCHAR,
rank VARCHAR
) |
SELECT score FROM table_name_63 WHERE partnering = "dmitry tursunov" | which Score has a Partnering of dmitry tursunov? | CREATE TABLE table_name_63 (score VARCHAR, partnering VARCHAR) |
SELECT province FROM table_27592654_2 WHERE electorate = "Collingwood" | What was the province if the electorate was Collingwood? | CREATE TABLE table_27592654_2 (province VARCHAR, electorate VARCHAR) |
SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor WHERE course.course_id = course_offering.course_id AND course.department = 'MCDB' AND course.number = 436 AND instructor.name LIKE '%Christo Sevov%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offering_id = course_offering.offering_id | Has Christo Sevov ever taught MCDB 436 ? | CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
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 ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments int,
respected int,
participation int,
heavy_reading int,
tough_grader int,
hilarious int,
would_take_again int,
good_lecture int,
no_skip int
)
CREATE TABLE 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 offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_project varchar,
has_final_exam varchar,
textbook varchar,
class_address varchar,
allow_audit varchar
)
CREATE TABLE course (
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 requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
) |
SELECT score FROM table_name_17 WHERE opponent_in_the_final = "chris haggard robbie koenig" | Which Score has an Opponent in the final of chris haggard robbie koenig? | CREATE TABLE table_name_17 (score VARCHAR, opponent_in_the_final VARCHAR) |
SELECT province FROM table_27592654_2 WHERE election_date = "5 Cannot handle non-empty timestamp argument! 1861" | What was the province with an election date of 5 cannot handle non-empty timestamp argument! 1861? | CREATE TABLE table_27592654_2 (province VARCHAR, election_date VARCHAR) |
SELECT event FROM table_name_16 WHERE placed = "bronze" AND year < 1987 | What event placed bronze earlier than 1987? | CREATE TABLE table_name_16 (
event VARCHAR,
placed VARCHAR,
year VARCHAR
) |
SELECT partnering FROM table_name_11 WHERE score = "7β6 7 , 6β1" | Which Partnering has a Score of 7β6 7 , 6β1? | CREATE TABLE table_name_11 (partnering VARCHAR, score VARCHAR) |
SELECT races FROM table_27582888_1 WHERE final_placing = "5th" | Name the races for final placing being 5th | CREATE TABLE table_27582888_1 (races VARCHAR, final_placing VARCHAR) |
SELECT "Location" FROM table_23258 WHERE "Institution" = 'Westfield State University' | Where is the Westfield State University located? | CREATE TABLE table_23258 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Primary Conference" text,
"LEC Sport" text
) |
SELECT surface FROM table_name_92 WHERE tournament = "valencia , spain" | Name the Surface that of Tournament of valencia , spain? | CREATE TABLE table_name_92 (surface VARCHAR, tournament VARCHAR) |
SELECT MAX(poles) FROM table_27582888_1 WHERE podiums = 4 | Name the post poles for 4 podiums | CREATE TABLE table_27582888_1 (poles INTEGER, podiums VARCHAR) |
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'obstructive sleep apnea') AND DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE DATETIME(diagnoses_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') GROUP BY t2.icd9_code) AS t3 WHERE t3.c1 <= 3) | what are the three most common diagnoses that patients were diagnosed within the same month after they were diagnosed with obstructive sleep apnea last year? | CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE d_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 cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost 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 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 d_items (
row_id number,
itemid number,
label text,
linksto 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 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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
) |
SELECT opponent_in_the_final FROM table_name_52 WHERE date = "july 4, 2005" | Name the Opponent in the final on july 4, 2005? | CREATE TABLE table_name_52 (opponent_in_the_final VARCHAR, date VARCHAR) |
SELECT song_choice FROM table_27614571_1 WHERE theme = "Samba" | What was Barreto's song choice when the theme was samba? | CREATE TABLE table_27614571_1 (song_choice VARCHAR, theme VARCHAR) |
SELECT "2007" FROM table_40302 WHERE "1999" = '3r' | What was in 2007 that has a 3r of 1999? | CREATE TABLE table_40302 (
"Tournament" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
) |
SELECT result_f_a FROM table_name_55 WHERE league_position = "1st" AND date = "21 february 2009" | What was the Result FβA on 21 February 2009, when the league position was 1st? | CREATE TABLE table_name_55 (result_f_a VARCHAR, league_position VARCHAR, date VARCHAR) |
SELECT song_choice FROM table_27614571_1 WHERE original_artist = "Patricia Marx" | What was Barreto's song choice where the original artist was Patricia Marx? | CREATE TABLE table_27614571_1 (song_choice VARCHAR, original_artist VARCHAR) |
SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, draw a bar chart about the distribution of hire_date and the sum of manager_id bin hire_date by weekday. | 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 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 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 regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
) |
SELECT college_junior_club_team__league_ FROM table_name_99 WHERE player = "john westin" | What club does John Westin play for? | CREATE TABLE table_name_99 (college_junior_club_team__league_ VARCHAR, player VARCHAR) |
SELECT week__number FROM table_27614571_1 WHERE original_artist = "Leila Pinheiro" | In which week # was the original artist of Barreto's song choice was Leila Pinheiro? | CREATE TABLE table_27614571_1 (week__number VARCHAR, original_artist VARCHAR) |
SELECT PostTypeId, Score, COUNT(Id) FROM (SELECT CASE WHEN Score < 0 THEN '0- < 0' WHEN Score BETWEEN 0 AND 100 THEN '1- 0-100' WHEN Score BETWEEN 101 AND 500 THEN '2- 101-500' WHEN Score BETWEEN 501 AND 1000 THEN '3- 501-1000' WHEN Score BETWEEN 1001 AND 2000 THEN '4- 1001-2000' WHEN Score BETWEEN 2001 AND 5000 THEN '5- 2001-5000' WHEN Score BETWEEN 5001 AND 10000 THEN '6- 5001-10000' ELSE '7- 10000+' END AS "Score", Id, PostTypeId FROM Posts WHERE PostTypeId IN (1, 2)) AS t GROUP BY PostTypeId, Score ORDER BY PostTypeId, Score | Questions and Answers Score Distribution. | CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostTags (
PostId number,
TagId 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 Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE 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 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 ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
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 PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
) |
SELECT round FROM table_name_58 WHERE position = "left wing" | In what round was a left wing drafted? | CREATE TABLE table_name_58 (round VARCHAR, position VARCHAR) |
SELECT MIN(year) FROM table_27611593_5 | When did the earliest tournament happened? | CREATE TABLE table_27611593_5 (year INTEGER) |
SELECT COUNT("role") FROM table_204_620 | how many roles has this actor had ? | CREATE TABLE table_204_620 (
id number,
"title" text,
"year" number,
"language" text,
"role" text,
"notes" text
) |
SELECT player FROM table_name_30 WHERE round = 5 | What player was drafted in Round 5? | CREATE TABLE table_name_30 (player VARCHAR, round VARCHAR) |
SELECT partner FROM table_27611593_5 WHERE score = "6β2, 3β6, 6β7 (7-9)" | Who was Petrova's partner where she scored 6β2, 3β6, 6β7 (7-9)? | CREATE TABLE table_27611593_5 (partner VARCHAR, score VARCHAR) |
SELECT format FROM table_1949746_1 WHERE frequency = "790 AM" | When 790 am is the frequency what is the format? | CREATE TABLE table_1949746_1 (
format VARCHAR,
frequency VARCHAR
) |
SELECT finish FROM table_name_1 WHERE year_s__won = "1991" | Where did the player who won in 1991 finish? | CREATE TABLE table_name_1 (finish VARCHAR, year_s__won VARCHAR) |
SELECT opponents FROM table_27611593_5 WHERE partner = "Vania King" | Who were Petrova's opponents with Vania King? | CREATE TABLE table_27611593_5 (opponents VARCHAR, partner VARCHAR) |
SELECT record FROM table_name_14 WHERE high_points = "clippers" | What is the record when Clippers have the high points? | CREATE TABLE table_name_14 (
record VARCHAR,
high_points VARCHAR
) |
SELECT player FROM table_name_24 WHERE country = "scotland" | Which player is from scotland? | CREATE TABLE table_name_24 (player VARCHAR, country VARCHAR) |
SELECT written_by FROM table_27610775_1 WHERE prod_code = 211 | Who wrote the episode with the production code 211? | CREATE TABLE table_27610775_1 (written_by VARCHAR, prod_code VARCHAR) |
SELECT ACC_Regular_Season, All_Games_Percent FROM basketball_match ORDER BY All_Games_Percent DESC | A bar chart shows the distribution of ACC_Regular_Season and All_Games_Percent , and rank by the Y-axis in descending. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) |
SELECT lyrics__l____music__m_ FROM table_name_60 WHERE draw = 5 | What are the Lyrics (l) / Music (m) when the draw was 5? | CREATE TABLE table_name_60 (lyrics__l____music__m_ VARCHAR, draw VARCHAR) |
SELECT MAX(prod_code) FROM table_27610775_1 WHERE directed_by = "Sean McNamara" | What is the maximum production code of the episode directed by Sean McNamara? | CREATE TABLE table_27610775_1 (prod_code INTEGER, directed_by VARCHAR) |
SELECT MAX(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8098) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'potassium') GROUP BY STRFTIME('%y', labevents.charttime) | what is the yearly maximum value of potassium in patient 8098? | CREATE TABLE procedures_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 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 outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE 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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime 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 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
)
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 cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
) |
SELECT score FROM table_name_11 WHERE competition = "friendly" | What score has friendly as the competition? | CREATE TABLE table_name_11 (score VARCHAR, competition VARCHAR) |
SELECT COUNT(audition_city) FROM table_27615445_1 WHERE episode_air_date = "June 24, 2010" | How many audition city's are there with an episode air date of June 24, 2010? | CREATE TABLE table_27615445_1 (audition_city VARCHAR, episode_air_date VARCHAR) |
SELECT COUNT(Id) * 100. / (SELECT COUNT(Id) FROM Posts WHERE PostTypeId = 1 AND Tags LIKE '%minecraft%') AS Pct FROM Posts WHERE PostTypeId = 1 AND Tags LIKE '%minecraft%' AND (NOT ClosedDate IS NULL OR Score < 0) | % of bad Minecraft questions. Check on how the sheeple are doing in corrupting the Minecraft tag. Intended to be used in Arqade | 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 Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
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 FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId 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 ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress 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 PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
) |
SELECT home_team FROM table_name_6 WHERE date = "15 november 1986" AND away_team = "chelmsford city" | Playing against Chelmsford City on 15 November 1986, who was the home team? | CREATE TABLE table_name_6 (home_team VARCHAR, date VARCHAR, away_team VARCHAR) |
SELECT episode_air_date FROM table_27615445_1 WHERE audition_venue = "Nego Quirido Sambadrome" | List all episode air dates that auditioned at Nego Quirido Sambadrome? | CREATE TABLE table_27615445_1 (episode_air_date VARCHAR, audition_venue VARCHAR) |
SELECT "floors" FROM table_204_489 ORDER BY "floors" DESC LIMIT 1 | how many floors does the tallest building have ? | CREATE TABLE table_204_489 (
id number,
"rank" number,
"name" text,
"height" text,
"floors" number,
"year" number,
"notes" text
) |
SELECT tie_no FROM table_name_21 WHERE away_team = "lincoln city" | When Lincoln City was the away team what is the tie number? | CREATE TABLE table_name_21 (tie_no VARCHAR, away_team VARCHAR) |
SELECT episode_air_date FROM table_27615445_1 WHERE guest_fourth_judge = "Luiza Possi" | List all episode air dates where Luiza Possi was the guest fourth judge? | CREATE TABLE table_27615445_1 (episode_air_date VARCHAR, guest_fourth_judge VARCHAR) |
SELECT price___usd__ FROM table_12740151_8 WHERE l3 = "18 MB" | What's the price (in USD) of the model whose L3 is 18 mb? | CREATE TABLE table_12740151_8 (
price___usd__ VARCHAR,
l3 VARCHAR
) |
SELECT date FROM table_name_95 WHERE away_team = "rochdale" | When was the game played that had Rochdale as the away team? | CREATE TABLE table_name_95 (date VARCHAR, away_team VARCHAR) |
SELECT COUNT(episode_air_date) FROM table_27615445_1 WHERE audition_city = "Rio de Janeiro" | How many episode air dates are there for auditioning city Rio De Janeiro? | CREATE TABLE table_27615445_1 (episode_air_date VARCHAR, audition_city VARCHAR) |
SELECT MAX(t1.c1) FROM (SELECT SUM(cost.cost) AS c1 FROM cost WHERE cost.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'inferior vena cava filter')) AND DATETIME(cost.chargetime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY cost.patienthealthsystemstayid) AS t1 | how much is the maximum hospital cost involving inferior vena cava filter last year? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
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 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 medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
) |
SELECT tie_no FROM table_name_52 WHERE home_team = "scunthorpe united" | Scunthorpe United as the home team has what tie number? | CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR) |
SELECT audition_venue FROM table_27615445_1 WHERE guest_fourth_judge = "Peninha" | Where was the audition venue where Peninha was the guest fourth judge? | CREATE TABLE table_27615445_1 (audition_venue VARCHAR, guest_fourth_judge VARCHAR) |
SELECT MIN(preliminary) FROM table_name_50 WHERE swimsuit < 8.822 AND interview > 8.744 AND evening_gown > 9.333 | What is the smallest preliminary when swimsuit is less than 8.822, interview is more than 8.744 and gown is more than 9.333? | CREATE TABLE table_name_50 (
preliminary INTEGER,
evening_gown VARCHAR,
swimsuit VARCHAR,
interview VARCHAR
) |
SELECT score FROM table_name_12 WHERE date = "6 december 1986" | The game played on 6 December 1986 had what score? | CREATE TABLE table_name_12 (score VARCHAR, date VARCHAR) |
SELECT song_choice FROM table_27616663_1 WHERE original_artist = "Marisa Monte" | Which song was picked that was originally performed by Marisa Monte? | CREATE TABLE table_27616663_1 (song_choice VARCHAR, original_artist VARCHAR) |
SELECT Headquarter, SUM(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter DESC | For those records from the products and each product's manufacturer, return a bar chart about the distribution of headquarter and the sum of price , and group by attribute headquarter, could you order bars in descending order? | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) |
SELECT type FROM table_name_56 WHERE quantity = "124" | WHAT IS THE TYPE WITH 124? | CREATE TABLE table_name_56 (type VARCHAR, quantity VARCHAR) |
SELECT result FROM table_27616663_1 WHERE original_artist = "Caetano Veloso" | What was the result of the performance of the song by Caetano Veloso? | CREATE TABLE table_27616663_1 (result VARCHAR, original_artist VARCHAR) |
SELECT COUNT(directed_by) FROM table_19925114_1 WHERE no_in_series = 38 | How many episodes had the series number of 38? | CREATE TABLE table_19925114_1 (
directed_by VARCHAR,
no_in_series VARCHAR
) |
SELECT score FROM table_name_32 WHERE total = "28:42" | What is Score, when Total is "28:42"? | CREATE TABLE table_name_32 (score VARCHAR, total VARCHAR) |
SELECT order__number FROM table_27616663_1 WHERE theme = "Male Singers" | What was the order # of the theme Male Singers? | CREATE TABLE table_27616663_1 (order__number VARCHAR, theme VARCHAR) |
SELECT "music" FROM table_203_204 GROUP BY "music" ORDER BY COUNT(*) DESC LIMIT 1 | who wrote the most music for c.v. sridhars movies ? | CREATE TABLE table_203_204 (
id number,
"year" number,
"film" text,
"language" text,
"actors" text,
"music" text,
"banner" text,
"note" text
) |
SELECT date FROM table_name_49 WHERE set_1 = "20:22" | What is Date, when Set 1 is "20:22"? | CREATE TABLE table_name_49 (date VARCHAR, set_1 VARCHAR) |
SELECT theme FROM table_27616663_1 WHERE original_artist = "Rosana" | What was the theme when original artist Rosana's song was performed? | CREATE TABLE table_27616663_1 (theme VARCHAR, original_artist VARCHAR) |
SELECT first_uk_tour_cast FROM table_name_54 WHERE character = "sister mary robert" | What is the name of the person in the First UK Tour Cast for the Character of Sister Mary Robert? | CREATE TABLE table_name_54 (
first_uk_tour_cast VARCHAR,
character VARCHAR
) |
SELECT set_1 FROM table_name_48 WHERE set_2 = "21:18" | What is Set 1, when Set 2 is "21:18"? | CREATE TABLE table_name_48 (set_1 VARCHAR, set_2 VARCHAR) |
SELECT COUNT(week__number) FROM table_27614707_1 WHERE theme = "Judge's Choice" AND order__number = "4" | How many different weeks are there in order number 4 that were judge's choice? | CREATE TABLE table_27614707_1 (week__number VARCHAR, theme VARCHAR, order__number VARCHAR) |
SELECT "Place" FROM table_44542 WHERE "Player" = 'don whitt' | What place did Don Whitt finish? | CREATE TABLE table_44542 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) |
SELECT set_2 FROM table_name_81 WHERE total = "52:44" | What is Set 2, when Total is "52:44"? | CREATE TABLE table_name_81 (set_2 VARCHAR, total VARCHAR) |
SELECT song_choice FROM table_27614707_1 WHERE week__number = "Top 5" AND original_artist = "Marisa Monte" | What Marisa Monte song choice was song during top 5? | CREATE TABLE table_27614707_1 (song_choice VARCHAR, week__number VARCHAR, original_artist VARCHAR) |
SELECT masculine_an_stems FROM table_name_18 WHERE feminine_Ε_stems = "siangar" AND masculine_u_stems = "syni" | What is the an-stem for the word which has an -stems of siangar and an u-stem ending of syni? | CREATE TABLE table_name_18 (
masculine_an_stems VARCHAR,
feminine_Ε_stems VARCHAR,
masculine_u_stems VARCHAR
) |
SELECT away_team FROM table_name_57 WHERE tie_no = "4" | What is the away team with a 4 tie no.? | CREATE TABLE table_name_57 (away_team VARCHAR, tie_no VARCHAR) |
SELECT original_artist FROM table_27614707_1 WHERE theme = "Top 12 Men" | Who was the original artist of the Top 12 Men theme? | CREATE TABLE table_27614707_1 (original_artist VARCHAR, theme VARCHAR) |
SELECT * FROM table_train_217 WHERE (hematocrit_hct < 36 AND gender = 'female') OR (hematocrit_hct < 38 AND gender = 'male') | hematocrit < 36 % ( female ) ; < 38 % ( male ) | CREATE TABLE table_train_217 (
"id" int,
"gender" string,
"c_peptide_level" float,
"hemoglobin_a1c_hba1c" float,
"hematocrit_hct" float,
"insulin_requirement" float,
"serum_creatinine" float,
"NOUSE" float
) |
SELECT date FROM table_name_52 WHERE away_team = "southampton" | What is the date southampton was the away team? | CREATE TABLE table_name_52 (date VARCHAR, away_team VARCHAR) |
SELECT result FROM table_27614707_1 WHERE theme = "Top 12 Men" | What was the result of the Top 12 Men theme? | CREATE TABLE table_27614707_1 (result VARCHAR, theme VARCHAR) |
SELECT "Date" FROM table_75880 WHERE "Score" = '2β1' | What was the date of the game with a score of 2 1? | CREATE TABLE table_75880 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) |
SELECT score FROM table_name_94 WHERE home_team = "tottenham hotspur" | What is the score of the home team tottenham hotspur? | CREATE TABLE table_name_94 (score VARCHAR, home_team VARCHAR) |
SELECT week__number FROM table_27614707_1 WHERE result = "Bottom 3" | What week number was the result bottom 3? | CREATE TABLE table_27614707_1 (week__number VARCHAR, result VARCHAR) |
SELECT MAX(number_of_families) FROM table_16048129_5 WHERE average_family_size = "2.7" | What is the most number of families in regions where average family size is 2.7? | CREATE TABLE table_16048129_5 (
number_of_families INTEGER,
average_family_size VARCHAR
) |
SELECT score FROM table_name_36 WHERE date = "16 december 1987" | What was the score of the game on 16 december 1987? | CREATE TABLE table_name_36 (score VARCHAR, date VARCHAR) |
SELECT points_per_game FROM table_2761641_1 WHERE assists_per_game = "1.5" | How many points per game did he have when he had 1.5 assists per game? | CREATE TABLE table_2761641_1 (points_per_game VARCHAR, assists_per_game VARCHAR) |
SELECT T1.name FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > (SELECT COUNT(*) FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 WHERE T1.name = 'Tyler Swift') | Find the names of the users whose number of followers is greater than that of the user named 'Tyler Swift'. | CREATE TABLE follows (
f1 VARCHAR
)
CREATE TABLE user_profiles (
name VARCHAR,
uid VARCHAR
) |
SELECT home_team FROM table_name_16 WHERE away_team = "hereford united" | Who played against the away team hereford united? | CREATE TABLE table_name_16 (home_team VARCHAR, away_team VARCHAR) |