answer
stringlengths 6
3.91k
| question
stringlengths 7
766
| context
stringlengths 27
7.14k
|
|---|---|---|
SELECT title FROM table_20360535_3 WHERE television_order = "S02E01"
|
What is the title of S02E01?
|
CREATE TABLE table_20360535_3 (title VARCHAR, television_order VARCHAR)
|
SELECT MIN(winners_share__) AS $_ FROM table_12243817_1 WHERE year = "2004"
|
What is the winners Share ($) in the year 2004?
|
CREATE TABLE table_12243817_1 (winners_share__ INTEGER, year VARCHAR)
|
SELECT MAX(crowd) FROM table_name_5 WHERE home_team = "richmond"
|
What is the highest crowd number for the home team Richmond?
|
CREATE TABLE table_name_5 (
crowd INTEGER,
home_team VARCHAR
)
|
SELECT television_order FROM table_20360535_3 WHERE written_by = "Gail Simone"
|
What TV order is written by gail simone?
|
CREATE TABLE table_20360535_3 (television_order VARCHAR, written_by VARCHAR)
|
SELECT tournament_location FROM table_12243817_1 WHERE champion = "Vicky Hurst"
|
What is the tournament location when Vicky Hurst in the champion?
|
CREATE TABLE table_12243817_1 (tournament_location VARCHAR, champion VARCHAR)
|
SELECT (SELECT "population\n(2010 census)" FROM table_203_212 WHERE "district" = 'dennery') - (SELECT "population\n(2010 census)" FROM table_203_212 WHERE "district" = 'forest reserve')
|
how many more people live in dennery than the forest reserve ?
|
CREATE TABLE table_203_212 (
id number,
"#" number,
"district" text,
"land area (km2)" number,
"population\n(2010 census)" number,
"density (persons/km2)" number
)
|
SELECT mens_doubles FROM table_20361783_1 WHERE womens_singles = "Zhou Mi"
|
who won mens doubles when zhou mi won womens singles
|
CREATE TABLE table_20361783_1 (mens_doubles VARCHAR, womens_singles VARCHAR)
|
SELECT intergiro_classification FROM table_12261926_2 WHERE stage = 21
|
What is the intergiro classification of stage 21?
|
CREATE TABLE table_12261926_2 (intergiro_classification VARCHAR, stage VARCHAR)
|
SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age >= 60) AND STRFTIME('%y', medication.drugstarttime) >= '2101' GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 4
|
what are the top four prescribed drugs among patients with age 60 or above since 2101?
|
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime 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 vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime 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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
|
SELECT mixed_doubles FROM table_20361783_1 WHERE womens_singles = "Zhou Mi"
|
who won mixed doubles when zhou mi won womens singles
|
CREATE TABLE table_20361783_1 (mixed_doubles VARCHAR, womens_singles VARCHAR)
|
SELECT trofeo_fast_team FROM table_12261926_2 WHERE stage = 8
|
What is the trofeo fast team on stage 8?
|
CREATE TABLE table_12261926_2 (trofeo_fast_team VARCHAR, stage VARCHAR)
|
SELECT MIN(digital_psip) FROM table_name_81 WHERE call_sign = "cftu-dt" AND broadcast_channel > 29
|
What is the lowest Digital PSIP for channels over 29 with callsign CFTU-DT?
|
CREATE TABLE table_name_81 (
digital_psip INTEGER,
call_sign VARCHAR,
broadcast_channel VARCHAR
)
|
SELECT MIN(year) FROM table_20361783_1 WHERE womens_singles = "Li Xuerui"
|
state the earliest year li xuerui won womens singles
|
CREATE TABLE table_20361783_1 (year INTEGER, womens_singles VARCHAR)
|
SELECT COUNT(general_classification) FROM table_12261926_2 WHERE winner = "Evgeni Berzin"
|
What is the general classification with the winner being evgeni berzin?
|
CREATE TABLE table_12261926_2 (general_classification VARCHAR, winner VARCHAR)
|
SELECT "Opponent" FROM table_68894 WHERE "Record" = '12-18'
|
Name the opponent with record of 12-18
|
CREATE TABLE table_68894 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
|
SELECT womens_doubles FROM table_20361783_1 WHERE year = 2010
|
who won womens doubles in 2010
|
CREATE TABLE table_20361783_1 (womens_doubles VARCHAR, year VARCHAR)
|
SELECT intergiro_classification FROM table_12261926_2 WHERE winner = "Alexander Gontchenkov"
|
What is the intergiro classification of alexander gontchenkov?
|
CREATE TABLE table_12261926_2 (intergiro_classification VARCHAR, winner VARCHAR)
|
SELECT COUNT(*) > 0 FROM (SELECT course_id FROM student_record WHERE earn_credit = 'Y' AND student_id = 1) AS DERIVED_TABLEalias0, course AS COURSEalias0, course_offering AS COURSE_OFFERINGalias0, semester AS SEMESTERalias0 WHERE COURSEalias0.course_id = COURSE_OFFERINGalias0.course_id AND NOT COURSEalias0.course_id IN (DERIVED_TABLEalias0.course_id) AND NOT COURSEalias0.course_id IN (SELECT DISTINCT COURSE_PREREQUISITEalias0.course_id FROM course_prerequisite AS COURSE_PREREQUISITEalias0 WHERE NOT COURSE_PREREQUISITEalias0.pre_course_id IN (DERIVED_TABLEalias0.course_id)) AND COURSEalias0.department = 'SAC' AND COURSEalias0.number = 440 AND SEMESTERalias0.semester = 'Spring-Summer' AND SEMESTERalias0.semester_id = COURSE_OFFERINGalias0.semester AND SEMESTERalias0.year = 2001
|
Can SAC 440 be taken by me in Spring-Summer 2001 ?
|
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
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 area (
course_id int,
area 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 semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE course (
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
)
|
SELECT mixed_doubles FROM table_20361783_1 WHERE womens_singles = "Wang Yihan"
|
who won mixed doubles when wang yihan won womens singles
|
CREATE TABLE table_20361783_1 (mixed_doubles VARCHAR, womens_singles VARCHAR)
|
SELECT COUNT(points_classification) FROM table_12262008_2 WHERE stage = 17
|
what is total number of points where the stage is 17?
|
CREATE TABLE table_12262008_2 (points_classification VARCHAR, stage VARCHAR)
|
SELECT SUM(points) FROM table_name_59 WHERE entrant = "christy" AND year < 1954
|
What is the total amount of points that Christy has in the years before 1954?
|
CREATE TABLE table_name_59 (
points INTEGER,
entrant VARCHAR,
year VARCHAR
)
|
SELECT MAX(county_councils___2011__) FROM table_203802_2 WHERE english_party_name = "Communist Party of Norway"
|
How many county councils for the communist party of norway
|
CREATE TABLE table_203802_2 (county_councils___2011__ INTEGER, english_party_name VARCHAR)
|
SELECT status FROM table_12271718_1 WHERE channel = "44.1"
|
What is the status of channel 44.1?
|
CREATE TABLE table_12271718_1 (status VARCHAR, channel VARCHAR)
|
SELECT "Saturated fat" FROM table_63508 WHERE "Polyunsaturated fat" = '28g'
|
What is the saturated fat with 28g of polyunsaturated fat?
|
CREATE TABLE table_63508 (
"Total fat" text,
"Saturated fat" text,
"Monounsaturated fat" text,
"Polyunsaturated fat" text,
"Smoke point" text
)
|
SELECT 2013 AS _parliamentary_election FROM table_203802_2 WHERE english_party_name = "Pensioners Party"
|
What percent of the parliamentary election did the pensioners party receive
|
CREATE TABLE table_203802_2 (english_party_name VARCHAR)
|
SELECT station FROM table_12271718_1 WHERE network_affiliation = "Univision"
|
What station has a univision network affiliation?
|
CREATE TABLE table_12271718_1 (station VARCHAR, network_affiliation VARCHAR)
|
SELECT "Control" FROM table_23906 WHERE "Founded" = '1818'
|
What is the control type which was founded in 1818?
|
CREATE TABLE table_23906 (
"School" text,
"Location(s)" text,
"Control" text,
"Type" text,
"Accreditation" text,
"Founded" text,
"Enrollment" text
)
|
SELECT COUNT(2013 AS _parliamentary_election) FROM table_203802_2 WHERE english_party_name = "Center Alliance"
|
How many parties are named the Center Alliance
|
CREATE TABLE table_203802_2 (english_party_name VARCHAR)
|
SELECT COUNT(season) FROM table_12272590_2 WHERE best_supported_club = "Sportfreunde Siegen"
|
How many season did sportfreunde siegen win best supported club?
|
CREATE TABLE table_12272590_2 (season VARCHAR, best_supported_club VARCHAR)
|
SELECT COUNT(round) FROM table_name_51 WHERE position = "wide receiver" AND college = "kent state"
|
Name the total number of round for wide receiver for kent state
|
CREATE TABLE table_name_51 (
round VARCHAR,
position VARCHAR,
college VARCHAR
)
|
SELECT MAX(withdrawn) FROM table_20391799_1 WHERE ltsr_no = 37
|
Name the most withdrawn for 37 lstr no.
|
CREATE TABLE table_20391799_1 (withdrawn INTEGER, ltsr_no VARCHAR)
|
SELECT canadian_airdate FROM table_12294557_3 WHERE us_airdate = "May 1, 2009"
|
what are all the Canadian air dates where the u.s. air date is may 1, 2009
|
CREATE TABLE table_12294557_3 (canadian_airdate VARCHAR, us_airdate VARCHAR)
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "41" AND lab.fluid = "Blood"
|
Bring the list of patients younger than 41 years of age who had a blood lab test done.
|
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
|
SELECT won FROM table_20396710_1 WHERE points_for = "83"
|
how many won 83 points for?
|
CREATE TABLE table_20396710_1 (won VARCHAR, points_for VARCHAR)
|
SELECT MAX(season__number) FROM table_12294557_3 WHERE us_airdate = "May 1, 2009"
|
What is the maximum season # with a u.s. air date is may 1, 2009
|
CREATE TABLE table_12294557_3 (season__number INTEGER, us_airdate VARCHAR)
|
SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70
|
What are all the different zip codes that have a maximum dew point that was always below 70?
|
CREATE TABLE weather (
date text,
max_temperature_f number,
mean_temperature_f number,
min_temperature_f number,
max_dew_point_f number,
mean_dew_point_f number,
min_dew_point_f number,
max_humidity number,
mean_humidity number,
min_humidity number,
max_sea_level_pressure_inches number,
mean_sea_level_pressure_inches number,
min_sea_level_pressure_inches number,
max_visibility_miles number,
mean_visibility_miles number,
min_visibility_miles number,
max_wind_speed_mph number,
mean_wind_speed_mph number,
max_gust_speed_mph number,
precipitation_inches number,
cloud_cover number,
events text,
wind_dir_degrees number,
zip_code number
)
CREATE TABLE trip (
id number,
duration number,
start_date text,
start_station_name text,
start_station_id number,
end_date text,
end_station_name text,
end_station_id number,
bike_id number,
subscription_type text,
zip_code number
)
CREATE TABLE status (
station_id number,
bikes_available number,
docks_available number,
time text
)
CREATE TABLE station (
id number,
name text,
lat number,
long number,
dock_count number,
city text,
installation_date text
)
|
SELECT club FROM table_20396710_1 WHERE "bonus_points" = "bonus_points"
|
which club is listed when bonus points is bonus points
|
CREATE TABLE table_20396710_1 (club VARCHAR)
|
SELECT COUNT(title) FROM table_12294557_3 WHERE us_airdate = "April 17, 2009"
|
What is the total number of title with a u.s. air date of April 17, 2009
|
CREATE TABLE table_12294557_3 (title VARCHAR, us_airdate VARCHAR)
|
SELECT podiums FROM table_15852257_1 WHERE final_placing = "10th"
|
Which podiums have a final placing of 10th?
|
CREATE TABLE table_15852257_1 (
podiums VARCHAR,
final_placing VARCHAR
)
|
SELECT COUNT(points_difference) FROM table_20396710_1 WHERE points_for = "139"
|
when the points for is 139 is points difference?
|
CREATE TABLE table_20396710_1 (points_difference VARCHAR, points_for VARCHAR)
|
SELECT MIN(production_code) FROM table_12294557_3
|
what is the minimum production code
|
CREATE TABLE table_12294557_3 (production_code INTEGER)
|
SELECT "name" FROM table_16901 WHERE "number of goals" = '10'
|
What is the name of person that scored 10 goals?
|
CREATE TABLE table_16901 (
"number" real,
"date of debut" text,
"name" text,
"date of birth" text,
"number of caps" real,
"number of goals" real,
"date of death\u2020" text
)
|
SELECT drawn FROM table_20396710_1 WHERE "points_against" = "points_against"
|
when points against is points again, which are the drawn?
|
CREATE TABLE table_20396710_1 (drawn VARCHAR)
|
SELECT us_airdate FROM table_12294557_3 WHERE canadian_airdate = "May 4, 2009"
|
what are the u.s. air dates with a Canadian air date of may 4, 2009
|
CREATE TABLE table_12294557_3 (us_airdate VARCHAR, canadian_airdate VARCHAR)
|
SELECT Id, PostTypeId, Body, ParentId, CreationDate, Score FROM Posts AS p WHERE p.ParentId IN (SELECT Id FROM Posts AS q WHERE (q.Tags LIKE '%<swift>%' OR q.Tags LIKE '%<swift2>%' OR q.Tags LIKE '%<swift-playground>%' OR q.Tags LIKE '%<swift-json>%' OR q.Tags LIKE '%<swift-generics>%' OR q.Tags LIKE '%<swift-extensions>%' OR q.Tags LIKE '%<sqlite.swift>%' OR q.Tags LIKE '%<swift-protocols>%' OR q.Tags LIKE '%<swift-array>%' OR q.Tags LIKE '%<cocos2d-swift>%' OR q.Tags LIKE '%<swift-dictionary>%' OR q.Tags LIKE '%<objective-c-swift-bridge>%')) AND CreationDate >= '2015-01-01' AND CreationDate <= '2015-08-19'
|
All swift-related questions in 2015.
|
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId 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 Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
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 PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
|
SELECT drawn FROM table_20396710_1 WHERE points_for = "39"
|
when points for is 39 what is the total number of drawn
|
CREATE TABLE table_20396710_1 (drawn VARCHAR, points_for VARCHAR)
|
SELECT charity FROM table_12286195_1 WHERE background = "Heavyweight Champion"
|
Which is the charity that the background of the celebrity is heavyweight champion?
|
CREATE TABLE table_12286195_1 (charity VARCHAR, background VARCHAR)
|
SELECT fourth_quarter FROM table_name_27 WHERE rank < 4 AND second_quarter = "exxon mobil 341,140.3"
|
When the rank is less than 4, and has a second quarter of exxon mobil 341,140.3, what is the fourth quarter?
|
CREATE TABLE table_name_27 (
fourth_quarter VARCHAR,
rank VARCHAR,
second_quarter VARCHAR
)
|
SELECT mccain__percentage FROM table_20424014_1 WHERE obama__percentage = "19.3%"
|
what is the mccain % where obama got 19.3%
|
CREATE TABLE table_20424014_1 (mccain__percentage VARCHAR, obama__percentage VARCHAR)
|
SELECT original_team FROM table_12286195_1 WHERE result = "08 Fired in week 10 (2008-03-06)"
|
What is the original team of the celebrity who had the result 08 fired in week 10 (2008-03-06)
|
CREATE TABLE table_12286195_1 (original_team VARCHAR, result VARCHAR)
|
SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 24894)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'lactated ringers' AND d_items.linksto = 'inputevents_cv') AND STRFTIME('%y-%m-%d', inputevents_cv.charttime) = '2100-11-29'
|
how much dose of lactated ringers did patient 24894 receive on 11/29/2100?
|
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 cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
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 inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE 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 outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name 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 chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
|
SELECT MAX(mccain__number) FROM table_20424014_1 WHERE obama__percentage = "33.7%"
|
what is the highest mccain # where obama got 33.7%
|
CREATE TABLE table_20424014_1 (mccain__number INTEGER, obama__percentage VARCHAR)
|
SELECT celebrity FROM table_12286195_1 WHERE raised = "03"
|
Which celebrity was raised 03?
|
CREATE TABLE table_12286195_1 (celebrity VARCHAR, raised VARCHAR)
|
SELECT T1.Title, T1.AlbumId FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId WHERE T2.UnitPrice > 1 ORDER BY T1.AlbumId
|
What are the titles and ids for albums containing tracks with unit price greater than 1, could you order by the y axis in asc?
|
CREATE TABLE Customer (
CustomerId integer,
FirstName varchar(40),
LastName varchar(20),
Company varchar(80),
Address varchar(70),
City varchar(40),
State varchar(40),
Country varchar(40),
PostalCode varchar(10),
Phone varchar(24),
Fax varchar(24),
Email varchar(60),
SupportRepId integer
)
CREATE TABLE Invoice (
InvoiceId integer,
CustomerId integer,
InvoiceDate datetime,
BillingAddress varchar(70),
BillingCity varchar(40),
BillingState varchar(40),
BillingCountry varchar(40),
BillingPostalCode varchar(10),
Total decimal(10,2)
)
CREATE TABLE PlaylistTrack (
PlaylistId integer,
TrackId integer
)
CREATE TABLE InvoiceLine (
InvoiceLineId integer,
InvoiceId integer,
TrackId integer,
UnitPrice decimal(10,2),
Quantity integer
)
CREATE TABLE Track (
TrackId integer,
Name varchar(200),
AlbumId integer,
MediaTypeId integer,
GenreId integer,
Composer varchar(220),
Milliseconds integer,
Bytes integer,
UnitPrice decimal(10,2)
)
CREATE TABLE Employee (
EmployeeId integer,
LastName varchar(20),
FirstName varchar(20),
Title varchar(30),
ReportsTo integer,
BirthDate datetime,
HireDate datetime,
Address varchar(70),
City varchar(40),
State varchar(40),
Country varchar(40),
PostalCode varchar(10),
Phone varchar(24),
Fax varchar(24),
Email varchar(60)
)
CREATE TABLE Playlist (
PlaylistId integer,
Name varchar(120)
)
CREATE TABLE Genre (
GenreId integer,
Name varchar(120)
)
CREATE TABLE MediaType (
MediaTypeId integer,
Name varchar(120)
)
CREATE TABLE Artist (
ArtistId integer,
Name varchar(120)
)
CREATE TABLE Album (
AlbumId integer,
Title varchar(160),
ArtistId integer
)
|
SELECT county FROM table_20424014_1 WHERE obama__percentage = "39.8%"
|
where did obama get 39.8%
|
CREATE TABLE table_20424014_1 (county VARCHAR, obama__percentage VARCHAR)
|
SELECT charity FROM table_12286195_1 WHERE background = "Reality Star"
|
What is the charity of the celebrity with the background reality star?
|
CREATE TABLE table_12286195_1 (charity VARCHAR, background VARCHAR)
|
SELECT AVG(rank) FROM table_name_59 WHERE annual_change = "9.3%"
|
What is the average rank of the airport with a 9.3% annual change?
|
CREATE TABLE table_name_59 (
rank INTEGER,
annual_change VARCHAR
)
|
SELECT obama__number FROM table_20424014_1 WHERE county = "Carson City"
|
what is the obama # in carson city
|
CREATE TABLE table_20424014_1 (obama__number VARCHAR, county VARCHAR)
|
SELECT background FROM table_12286195_1 WHERE result = "13 The celebrity Apprentice (2008-03-27)"
|
What is the background of the celebrity who had the result 13 the celebrity apprentice (2008-03-27)?
|
CREATE TABLE table_12286195_1 (background VARCHAR, result VARCHAR)
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admityear < "2154" AND diagnoses.long_title = "Congestive heart failure, unspecified"
|
count the number of patients whose admission year is less than 2154 and diagnoses long title is congestive heart failure, unspecified?
|
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
|
SELECT county FROM table_20424014_1 WHERE obama__percentage = "41.3%"
|
where did obama get 41.3%
|
CREATE TABLE table_20424014_1 (county VARCHAR, obama__percentage VARCHAR)
|
SELECT country FROM table_1231316_4 WHERE athlete = "Tamunosiki Atorudibo"
|
Where is Tamunosiki Atorudibo from
|
CREATE TABLE table_1231316_4 (country VARCHAR, athlete VARCHAR)
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "81" AND prescriptions.formulary_drug_cd = "METD10"
|
count the number of patients whose age is less than 81 and drug code is metd10?
|
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
|
SELECT COUNT(season) FROM table_20398823_1 WHERE team = "team Bruichladdich"
|
Name the number of season for team bruichladdich
|
CREATE TABLE table_20398823_1 (season VARCHAR, team VARCHAR)
|
SELECT location FROM table_1231316_4 WHERE athlete = "Dwain Chambers"
|
Where is Dwain Chambers from
|
CREATE TABLE table_1231316_4 (location VARCHAR, athlete VARCHAR)
|
SELECT "Week" FROM table_9220 WHERE "Finalist" = 'marcelo ríos'
|
what is the week when the finalist is marcelo r os?
|
CREATE TABLE table_9220 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner and score" text,
"Finalist" text,
"Semifinalists" text
)
|
SELECT MIN(podiums) FROM table_20398823_1 WHERE points = "49"
|
Name the least podiums for 49 points
|
CREATE TABLE table_20398823_1 (podiums INTEGER, points VARCHAR)
|
SELECT wind__m_s_ FROM table_1231316_4 WHERE country = "Trinidad and Tobago"
|
What was the stats of Trinidad and Tobago
|
CREATE TABLE table_1231316_4 (wind__m_s_ VARCHAR, country VARCHAR)
|
SELECT "total" FROM table_204_261 WHERE "nation" = 'france'
|
how many medals did france get in total ?
|
CREATE TABLE table_204_261 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
|
SELECT MIN(f_laps) FROM table_20398823_1
|
Name the least f/laps
|
CREATE TABLE table_20398823_1 (f_laps INTEGER)
|
SELECT COUNT(wind__m_s_) FROM table_1231316_6 WHERE athlete = "Sunday Emmanuel"
|
Name the total number of wind m/s for sunday emmanuel
|
CREATE TABLE table_1231316_6 (wind__m_s_ VARCHAR, athlete VARCHAR)
|
SELECT HIRE_DATE, SUM(SALARY) 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 salary bin hire_date by time.
|
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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
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)
)
|
SELECT season FROM table_20398823_1 WHERE wins = 0 AND races = 20
|
Namet he season for wins being 0 and 20 races
|
CREATE TABLE table_20398823_1 (season VARCHAR, wins VARCHAR, races VARCHAR)
|
SELECT wind__m_s_ FROM table_1231316_6 WHERE fastest_time__s_ = "10.25" AND athlete = "Jeff Demps"
|
Name the wind m/s and fastest time of 10.25 and jeff demps
|
CREATE TABLE table_1231316_6 (wind__m_s_ VARCHAR, fastest_time__s_ VARCHAR, athlete VARCHAR)
|
SELECT AVG("Total") FROM table_75839 WHERE "Nation" = 'ethiopia (eth)' AND "Rank" > '9'
|
What is the average Total with a Nation of ethiopia (eth) and a Rank that is larger than 9?
|
CREATE TABLE table_75839 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
|
SELECT MIN(podiums) FROM table_20398823_1 WHERE wins = 0 AND season = 2005 AND points = "321"
|
Name the least podiums for 0 wins and 2005 season for 321 points
|
CREATE TABLE table_20398823_1 (podiums INTEGER, points VARCHAR, wins VARCHAR, season VARCHAR)
|
SELECT competition FROM table_1233026_4 WHERE aggregate = "1–4"
|
What is the competition when aggregate is 1–4?
|
CREATE TABLE table_1233026_4 (competition VARCHAR, aggregate VARCHAR)
|
SELECT "First elected" FROM table_3618 WHERE "Incumbent" = 'William Kennedy'
|
When was William Kennedy first elected?
|
CREATE TABLE table_3618 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
|
SELECT spanish_title FROM table_20404716_1 WHERE film_title_used_in_nomination = "Ogu and Mampato in Rapa Nui"
|
What is the Spanish title of the film whose title used in nomination was Ogu and Mampato in Rapa Nui?
|
CREATE TABLE table_20404716_1 (spanish_title VARCHAR, film_title_used_in_nomination VARCHAR)
|
SELECT 1 AS st_leg FROM table_1233026_4 WHERE club = "A.C. Libertas"
|
What is the 1st leg when club is a.c. libertas?
|
CREATE TABLE table_1233026_4 (club VARCHAR)
|
SELECT DISTINCT T1.state, T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cname = T2.cname WHERE T2.decision = 'yes'
|
How many students are enrolled in colleges that have student accepted during tryouts, and in which states are those colleges?
|
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
|
SELECT director FROM table_20404716_1 WHERE result = "Not Nominated" AND spanish_title = "Play"
|
Who was the director of the film that was not nominated and had the Spanish title of play?
|
CREATE TABLE table_20404716_1 (director VARCHAR, result VARCHAR, spanish_title VARCHAR)
|
SELECT branding FROM table_12379297_4 WHERE location = "Metro Manila"
|
What is the branding of metro manila?
|
CREATE TABLE table_12379297_4 (branding VARCHAR, location VARCHAR)
|
SELECT "category" FROM table_202_75 WHERE "recipients and nominees" = 'warren beatty' AND "result" = 'won' INTERSECT SELECT "category" FROM table_202_75 WHERE "recipients and nominees" = 'jeremy pikser' AND "result" = 'won'
|
which category did both warren beatty and jeremy pikser each won together ?
|
CREATE TABLE table_202_75 (
id number,
"award" text,
"category" text,
"recipients and nominees" text,
"result" text
)
|
SELECT COUNT(couple) FROM table_20424140_3 WHERE average = "25.3"
|
How many couples have an average of 25.3?
|
CREATE TABLE table_20424140_3 (couple VARCHAR, average VARCHAR)
|
SELECT COUNT(founded) FROM table_12434380_1 WHERE institution = "Kansas City Kansas Community College"
|
When was the institution of Kansas city Kansas community college founded?
|
CREATE TABLE table_12434380_1 (founded VARCHAR, institution VARCHAR)
|
SELECT record FROM table_name_71 WHERE opponent = "christian nielson"
|
Name the record with opponent of christian nielson
|
CREATE TABLE table_name_71 (
record VARCHAR,
opponent VARCHAR
)
|
SELECT COUNT(number_of_dances) FROM table_20424140_3 WHERE place = 6
|
How many different numbers of total dances are there for the couple ranked at number 6?
|
CREATE TABLE table_20424140_3 (number_of_dances VARCHAR, place VARCHAR)
|
SELECT mascot FROM table_12434380_1 WHERE institution = "Kansas City Kansas Community College"
|
What is the mascot for the instition of Kansas city Kansas community college?
|
CREATE TABLE table_12434380_1 (mascot VARCHAR, institution VARCHAR)
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "WHITE" AND prescriptions.route = "REPLACE"
|
how many patients whose ethnicity is white and drug route is replace?
|
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
|
SELECT couple FROM table_20424140_3 WHERE average = "17.2"
|
What couple has an average of 17.2?
|
CREATE TABLE table_20424140_3 (couple VARCHAR, average VARCHAR)
|
SELECT COUNT(school_colors) FROM table_12434380_1 WHERE main_campus_location = "Highland"
|
How many school colors is there for the main campus location of highland?
|
CREATE TABLE table_12434380_1 (school_colors VARCHAR, main_campus_location VARCHAR)
|
SELECT business.name FROM business, category WHERE business.city = 'Dallas' AND category.business_id = business.business_id AND category.category_name = 'Bars'
|
Find all Bars in Dallas
|
CREATE TABLE category (
id int,
business_id varchar,
category_name varchar
)
CREATE TABLE review (
rid int,
business_id varchar,
user_id varchar,
rating float,
text longtext,
year int,
month varchar
)
CREATE TABLE business (
bid int,
business_id varchar,
name varchar,
full_address varchar,
city varchar,
latitude varchar,
longitude varchar,
review_count bigint,
is_open tinyint,
rating float,
state varchar
)
CREATE TABLE tip (
tip_id int,
business_id varchar,
text longtext,
user_id varchar,
likes int,
year int,
month varchar
)
CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE checkin (
cid int,
business_id varchar,
count int,
day varchar
)
CREATE TABLE neighborhood (
id int,
business_id varchar,
neighborhood_name varchar
)
|
SELECT MIN(number_of_dances) FROM table_20424140_3
|
What's the minimal number of dances a couple has danced?
|
CREATE TABLE table_20424140_3 (number_of_dances INTEGER)
|
SELECT mascot FROM table_12434380_1 WHERE founded = 1923 AND school_colors = "Blue, Red & White"
|
What is the mascot for the school founded in 1923 with the school colors of blue, red & white?
|
CREATE TABLE table_12434380_1 (mascot VARCHAR, founded VARCHAR, school_colors VARCHAR)
|
SELECT "New Zealand Kennel Club Toy Group" FROM table_38761 WHERE "Australian National Kennel Council Toy Dogs Group" = 'papillon'
|
What is the New Zealand Kennel Club Toy Group with papillon as the Australian National Kennel Council Toy Dogs Group breed?
|
CREATE TABLE table_38761 (
"The Kennel Club (UK) Toy Group" text,
"Canadian Kennel Club Toy Dogs Group" text,
"American Kennel Club Toy Group" text,
"Australian National Kennel Council Toy Dogs Group" text,
"New Zealand Kennel Club Toy Group" text
)
|
SELECT MAX(place) FROM table_20424140_3
|
What's the highest number a couple has ranked at?
|
CREATE TABLE table_20424140_3 (place INTEGER)
|
SELECT institution FROM table_12434380_1 WHERE main_campus_location = "Overland Park"
|
What is the instition where the main campus location is overland park?
|
CREATE TABLE table_12434380_1 (institution VARCHAR, main_campus_location VARCHAR)
|
SELECT MIN(sales_area__m²_) FROM table_name_20 WHERE sales_per_area = "€4,094/m²" AND no_of_stores > 2
|
What is the smallest sales area (m ) that has 4,094/m and more than 2 stores?
|
CREATE TABLE table_name_20 (
sales_area__m²_ INTEGER,
sales_per_area VARCHAR,
no_of_stores VARCHAR
)
|
SELECT crop_damaged__in_lakh_inr__ FROM table_20403667_2 WHERE public_property_damaged__in_lakh_inr__ = "1,03,049.60"
|
How many crops were damaged when the public property damage was 1,03,049.60?
|
CREATE TABLE table_20403667_2 (crop_damaged__in_lakh_inr__ VARCHAR, public_property_damaged__in_lakh_inr__ VARCHAR)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.