answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT enrollment__2005_ FROM table_2076490_1 WHERE school = "New Hampshire Institute of Art" | How many students enrolled in 2005 at New Hampshire Institute of Art? | CREATE TABLE table_2076490_1 (enrollment__2005_ VARCHAR, school VARCHAR) |
SELECT COUNT(*) > 0 FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-62367')) AND treatment.treatmentname = 'therapeutic antibacterials - vancomycin' AND STRFTIME('%y', treatment.treatmenttime) = '2105' | did patient 006-62367 ever underwent any therapeutic antibacterials - vancomycin procedure in 2105? | 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 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 vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime 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 medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
) |
SELECT engine FROM table_22915134_2 WHERE example = "1985-2007 Yamaha V-Max Honda VFR800" | When 1985-2007 yamaha v-max honda vfr800 is the example what is the engine is it? | CREATE TABLE table_22915134_2 (engine VARCHAR, example VARCHAR) |
SELECT MAX(founded) FROM table_2076533_1 WHERE enrollment__2005_ = 1285 | Name the most founded for enrollment 2005 being 1285 | CREATE TABLE table_2076533_1 (founded INTEGER, enrollment__2005_ VARCHAR) |
SELECT place FROM table_name_89 WHERE score = 71 AND country = "united states" | When the score is 71 and the player is from United States what is the place? | CREATE TABLE table_name_89 (
place VARCHAR,
score VARCHAR,
country VARCHAR
) |
SELECT engine FROM table_22915134_2 WHERE example = "Shinya Nakano's Kawasaki Ninja ZX-RR" | When shinya nakano's kawasaki ninja zx-rr is the example what is the engine type? | CREATE TABLE table_22915134_2 (engine VARCHAR, example VARCHAR) |
SELECT main_location FROM table_2076533_1 WHERE control = "Public" AND type = "Masters university" | Name the main location for public and masters university | CREATE TABLE table_2076533_1 (main_location VARCHAR, control VARCHAR, type VARCHAR) |
SELECT "Score" FROM table_7254 WHERE "Home team" = 'notts county' | What score has notts county as the home team? | CREATE TABLE table_7254 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) |
SELECT COUNT(graphical) FROM table_22915134_2 WHERE ignition_timing = "68-292-68-292" | When 68-292-68-292 is the ignition timing how many graphicals is it? | CREATE TABLE table_22915134_2 (graphical VARCHAR, ignition_timing VARCHAR) |
SELECT type FROM table_2076533_1 WHERE main_location = "McMinnville" | Name the type for mcminnville | CREATE TABLE table_2076533_1 (type VARCHAR, main_location VARCHAR) |
SELECT artist_name FROM artist WHERE country = "UK" AND gender = "Male" | What are the names of artists who are Male and are from UK? | CREATE TABLE files (
f_id number,
artist_name text,
file_size text,
duration text,
formats text
)
CREATE TABLE song (
song_name text,
artist_name text,
country text,
f_id number,
genre_is text,
rating number,
languages text,
releasedate time,
resolution number
)
CREATE TABLE artist (
artist_name text,
country text,
gender text,
preferred_genre text
)
CREATE TABLE genre (
g_name text,
rating text,
most_popular_in text
) |
SELECT graphical FROM table_22915134_2 WHERE engine = "I4" | When i4 is the engine what is the graphical? | CREATE TABLE table_22915134_2 (graphical VARCHAR, engine VARCHAR) |
SELECT control FROM table_2076533_1 WHERE main_location = "Albany" | Name the control for albany | CREATE TABLE table_2076533_1 (control VARCHAR, main_location VARCHAR) |
SELECT "2006" FROM table_75955 WHERE "2013" = '1r' AND "2012" = '1r' | What is the 2006 when the 2013 is 1r, and the 2012 is 1r? | CREATE TABLE table_75955 (
"Tournament" text,
"2006" text,
"2009" text,
"2012" text,
"2013" text
) |
SELECT COUNT(ignition_timing) FROM table_22915134_2 WHERE graphical = "1-1-0-0-1-1-0-0-" | When 1-1-0-0-1-1-0-0- is the graphical how many ignition timings are there? | CREATE TABLE table_22915134_2 (ignition_timing VARCHAR, graphical VARCHAR) |
SELECT MIN(founded) FROM table_2076533_1 WHERE school = "Gutenberg College" | Name the least founded for gutenberg college | CREATE TABLE table_2076533_1 (founded INTEGER, school VARCHAR) |
SELECT t1.drug FROM (SELECT prescriptions.drug, COUNT(prescriptions.startdate) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 22648) AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 >= 2 | what was the drug patient 22648 had been prescribed two or more times in this month? | 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 microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
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 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 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 chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title 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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
) |
SELECT MAX(r) FROM table WHERE total = 6 | If the total is 6, what is the maximum R? | CREATE TABLE table (r INTEGER, total VARCHAR) |
SELECT type FROM table_2076533_1 WHERE enrollment__2005_ = 1245 | Name the type for 1245 enrollment | CREATE TABLE table_2076533_1 (type VARCHAR, enrollment__2005_ VARCHAR) |
SELECT "name" FROM table_204_699 WHERE "name" <> 'nelson albano' AND "first served" = (SELECT "first served" FROM table_204_699 WHERE "name" = 'nelson albano') AND "residence" = 'washington twp' | nelsano albano served in the same year as which washington twp . member ? | CREATE TABLE table_204_699 (
id number,
"district" text,
"name" text,
"party" text,
"residence" text,
"first served" number
) |
SELECT MIN(r) FROM table WHERE player = Marcelo | If the player is Marcelo, what is the minimum R? | CREATE TABLE table (r INTEGER, player VARCHAR, Marcelo VARCHAR) |
SELECT published_in_russian FROM table_207795_1 WHERE type_of_work = "novel" AND published_in_english = "1977" | when type of work is novel and published in english is 1977, what was published in russian? | CREATE TABLE table_207795_1 (published_in_russian VARCHAR, type_of_work VARCHAR, published_in_english VARCHAR) |
SELECT score FROM table_name_95 WHERE place = "t2" | Which Score has a Place of t2? | CREATE TABLE table_name_95 (
score VARCHAR,
place VARCHAR
) |
SELECT position FROM table WHERE player = Marcelo | If the player is Marcelo, what is the position? | CREATE TABLE table (position VARCHAR, player VARCHAR, Marcelo VARCHAR) |
SELECT COUNT(type_of_work) FROM table_207795_1 WHERE russian_title = "Хромая судьба" | How many types of work is хромая судьба? | CREATE TABLE table_207795_1 (type_of_work VARCHAR, russian_title VARCHAR) |
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-2586')) AND NOT vitalperiodic.respiration IS NULL AND DATETIME(vitalperiodic.observationtime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') ORDER BY vitalperiodic.respiration DESC, vitalperiodic.observationtime DESC LIMIT 1 | what time was the last time patient 006-2586 had the maximum respiration value today? | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
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 medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
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 intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime 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 allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
) |
SELECT COUNT(r) FROM table WHERE position = AM AND league > 7.0 | If the position is AM and the league is larger than 7.0, what is the total R number? | CREATE TABLE table (r VARCHAR, position VARCHAR, AM VARCHAR, league VARCHAR) |
SELECT russian_title FROM table_207795_1 WHERE english_title = "The Ugly Swans" | What is the russian title of the ugly swans? | CREATE TABLE table_207795_1 (russian_title VARCHAR, english_title VARCHAR) |
SELECT Id, LastActivityDate, CreationDate, Score, ViewCount, Body, OwnerUserId, Title, Tags, AnswerCount FROM Posts WHERE Tags LIKE '%<windows-phone%' AND PostTypeId = 1 AND CreationDate >= '01/01/2018' ORDER BY LastActivityDate DESC | Buscando posts sobre windows phone de 2018 at hoje. | 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 ReviewTaskResultTypes (
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 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 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 PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
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 ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE FlagTypes (
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 CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
) |
SELECT winner FROM table_22917458_15 WHERE stage = 1 | Who was the Stage 1 winner? | CREATE TABLE table_22917458_15 (winner VARCHAR, stage VARCHAR) |
SELECT type_of_work FROM table_207795_1 WHERE published_in_english = "N/A" AND published_in_russian = "1986" | when it published in english is n/a and published in russian is 1986, what is the type of work? | CREATE TABLE table_207795_1 (type_of_work VARCHAR, published_in_english VARCHAR, published_in_russian VARCHAR) |
SELECT SALARY, COMMISSION_PCT FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | For those employees who did not have any job in the past, visualize the relationship between salary and commission_pct . | 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 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 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)
) |
SELECT winner FROM table_22917458_15 WHERE stage = 7 | Who won Stage 7? | CREATE TABLE table_22917458_15 (winner VARCHAR, stage VARCHAR) |
SELECT senator FROM table_20803065_1 WHERE religion = "Presbyterian" | List the presbyterian members of the senate. | CREATE TABLE table_20803065_1 (senator VARCHAR, religion VARCHAR) |
SELECT "Object type" FROM table_53963 WHERE "NGC number" > '2090' AND "Right ascension ( J2000 )" = '05h52m19s' | What type of object has an NGC number higher than 2090 and has a right ascension (J2000) of 05h52m19s? | CREATE TABLE table_53963 (
"NGC number" real,
"Object type" text,
"Constellation" text,
"Right ascension ( J2000 )" text,
"Declination ( J2000 )" text
) |
SELECT mountains_classification_klasyfikacja_górska FROM table_22917458_15 WHERE winner = "Alessandro Ballan" | Who was the mountain classification winner in the stage won by Alessandro Ballan? | CREATE TABLE table_22917458_15 (mountains_classification_klasyfikacja_górska VARCHAR, winner VARCHAR) |
SELECT state FROM table_20803065_1 WHERE senator = "Jim DeMint" | Which state does congressman jim demint represent? | CREATE TABLE table_20803065_1 (state VARCHAR, senator VARCHAR) |
SELECT "Year" FROM table_14378 WHERE "Result" = '8th' | In which year did he finish 8th? | CREATE TABLE table_14378 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Distance" text
) |
SELECT population_density__people_per_mi_2__ FROM table_22916979_1 WHERE land_area__mi_2__ = "135.09" | For the city whose land area was 135.09, what was the total population density? | CREATE TABLE table_22916979_1 (population_density__people_per_mi_2__ VARCHAR, land_area__mi_2__ VARCHAR) |
SELECT COUNT(tie_no) FROM table_20819379_2 WHERE team_2 = "Osijek" | Name the total number of tie number for team 2 osijek | CREATE TABLE table_20819379_2 (tie_no VARCHAR, team_2 VARCHAR) |
SELECT year FROM table_name_77 WHERE national_champion = "rhode island" | In what Year was Rhode Island the National Champion? | CREATE TABLE table_name_77 (
year VARCHAR,
national_champion VARCHAR
) |
SELECT metropolitan_area FROM table_22916979_1 WHERE land_area__mi_2__ = "23.80" | Which major metropolitan area had a land area of 23.80? | CREATE TABLE table_22916979_1 (metropolitan_area VARCHAR, land_area__mi_2__ VARCHAR) |
SELECT MIN(total_placings_s_) FROM table_20823568_3 | What is the minimum number of total placings? | CREATE TABLE table_20823568_3 (total_placings_s_ INTEGER) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'MIAMI' AND date_day.day_number = 23 AND date_day.month_number = 4 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'CLEVELAND' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.airline_code = 'US' | give me US flights for next wednesday from CLEVELAND to MIAMI | CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_required varchar
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_miles int,
pressurized varchar
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,
time_elapsed int,
to_airport varchar
) |
SELECT COUNT(state) FROM table_22916979_1 WHERE population_density__people_per_mi_2__ = "10188.8" | How many states had a population density of 10188.8? | CREATE TABLE table_22916979_1 (state VARCHAR, population_density__people_per_mi_2__ VARCHAR) |
SELECT result FROM table_20849830_1 WHERE record = "3-1" | What was the result of the game with the record of 3-1? | CREATE TABLE table_20849830_1 (result VARCHAR, record VARCHAR) |
SELECT MAX(game) FROM table_19778010_5 WHERE date = "June 22" | What's the number of the game played on June 22? | CREATE TABLE table_19778010_5 (
game INTEGER,
date VARCHAR
) |
SELECT COUNT(left) FROM table_2293402_2 WHERE nickname = "Cardinals" | Name the number of left for cardinals | CREATE TABLE table_2293402_2 (left VARCHAR, nickname VARCHAR) |
SELECT date FROM table_20849830_1 WHERE record = "2-1" | What was the date of the game with the record of 2-1? | CREATE TABLE table_20849830_1 (date VARCHAR, record VARCHAR) |
SELECT "Overall WC points (Rank)" FROM table_19338 WHERE "Name" = 'Roman Koudelka' | How many total points did roman Koudelka have | CREATE TABLE table_19338 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" text,
"2nd (m)" text,
"Points" text,
"Overall FHT points" text,
"Overall WC points (Rank)" text
) |
SELECT institution FROM table_2293402_2 WHERE type = "Private" | Name the school that is private | CREATE TABLE table_2293402_2 (institution VARCHAR, type VARCHAR) |
SELECT MAX(game) FROM table_20849830_1 | How many games were there in the 1966 season? | CREATE TABLE table_20849830_1 (game INTEGER) |
SELECT tries_against FROM table_name_22 WHERE tries_for = "20" | What is Tries Against, when Tries For is 20? | CREATE TABLE table_name_22 (
tries_against VARCHAR,
tries_for VARCHAR
) |
SELECT location FROM table_2293402_2 WHERE founded = 1798 | Name the location that was founded 1798 | CREATE TABLE table_2293402_2 (location VARCHAR, founded VARCHAR) |
SELECT game FROM table_20849830_1 WHERE record = "3-1" | What game number had a record of 3-1? | CREATE TABLE table_20849830_1 (game VARCHAR, record VARCHAR) |
SELECT vitalperiodic.observationtime FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '015-52724')) AND NOT vitalperiodic.heartrate IS NULL AND DATETIME(vitalperiodic.observationtime) >= DATETIME(CURRENT_TIME(), '-2 day') ORDER BY vitalperiodic.observationtime DESC LIMIT 1 | when is the last time patient 015-52724 has had a heartrate measurement since 2 days ago? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
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 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 lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
) |
SELECT nickname FROM table_2293402_2 WHERE founded = 1798 | Name the nickname that was founded 1798 | CREATE TABLE table_2293402_2 (nickname VARCHAR, founded VARCHAR) |
SELECT status FROM table_20855452_4 WHERE new_points = 1705 | What happened when the new points was 1705? | CREATE TABLE table_20855452_4 (status VARCHAR, new_points VARCHAR) |
SELECT DISTINCT food_service.compartment, food_service.meal_code, food_service.meal_number FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, food_service WHERE (((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND CITY_2.city_code = AIRPORT_SERVICE_2.city_code AND CITY_2.city_name = 'FORT WORTH' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code AND flight.to_airport = AIRPORT_SERVICE_2.airport_code) AND flight.flight_number = 852) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code) AND flight.airline_code = 'DL' AND food_service.meal_code = flight.meal_code | is there a meal on DL flight 852 from SAN FRANCISCO to DALLAS FORT WORTH | CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_miles int,
pressurized varchar
)
CREATE TABLE flight_stop (
flight_id int,
stop_number int,
stop_days text,
stop_airport text,
arrival_time int,
arrival_airline text,
arrival_flight_number int,
departure_time int,
departure_airline text,
departure_flight_number int,
stop_time int
)
CREATE TABLE ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE flight (
aircraft_code_sequence text,
airline_code varchar,
airline_flight text,
arrival_time int,
connections int,
departure_time int,
dual_carrier text,
flight_days text,
flight_id int,
flight_number int,
from_airport varchar,
meal_code text,
stops int,
time_elapsed int,
to_airport varchar
)
CREATE TABLE compartment_class (
compartment varchar,
class_type varchar
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_stay int,
maximum_stay int,
application text,
no_discounts text
)
CREATE TABLE date_day (
month_number int,
day_number int,
year int,
day_name varchar
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE TABLE flight_fare (
flight_id int,
fare_id int
)
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
)
CREATE TABLE airport_service (
city_code varchar,
airport_code varchar,
miles_distant int,
direction varchar,
minutes_distant int
)
CREATE TABLE equipment_sequence (
aircraft_code_sequence varchar,
aircraft_code varchar
)
CREATE TABLE food_service (
meal_code text,
meal_number int,
compartment text,
meal_description varchar
)
CREATE TABLE fare (
fare_id int,
from_airport varchar,
to_airport varchar,
fare_basis_code text,
fare_airline text,
restriction_code text,
one_direction_cost int,
round_trip_cost int,
round_trip_required varchar
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_name text
) |
SELECT MIN(10), 000 + _places FROM table_22916979_5 WHERE principal_city = "Louisville" | Name the least 10,000+ places for louisville | CREATE TABLE table_22916979_5 (_places VARCHAR, principal_city VARCHAR) |
SELECT MAX(new_points) FROM table_20855452_4 WHERE points = 2200 | What was the max when they score 2200? | CREATE TABLE table_20855452_4 (new_points INTEGER, points VARCHAR) |
SELECT "LOA (Metres)" FROM table_3313 WHERE "Yacht" = 'Ichi Ban' | What were the LOA metres for the yacht ichi ban? | CREATE TABLE table_3313 (
"Position" real,
"Sail number" text,
"Yacht" text,
"State/country" text,
"Yacht type" text,
"LOA (Metres)" text,
"Skipper" text,
"Corrected time d:hh:mm:ss" text
) |
SELECT density FROM table_22916979_5 WHERE densest_incorporated_place = "Pennsbury Village" | Name the density for pennsbury village | CREATE TABLE table_22916979_5 (density VARCHAR, densest_incorporated_place VARCHAR) |
SELECT points FROM table_20855452_4 WHERE player = "Agnieszka Radwańska" | How many points did agnieszka radwańska score? | CREATE TABLE table_20855452_4 (points VARCHAR, player VARCHAR) |
SELECT "Tournament" FROM table_58606 WHERE "Result" = '6th' | Which tournament resulted in 6th place? | CREATE TABLE table_58606 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
) |
SELECT COUNT(rank) FROM table_22916979_5 WHERE densest_incorporated_place = "Stone Park" | Name the number of rank for stone park | CREATE TABLE table_22916979_5 (rank VARCHAR, densest_incorporated_place VARCHAR) |
SELECT points AS won FROM table_20855452_4 WHERE player = "Shahar Pe'er" | How many points did shahar pe'er score? | CREATE TABLE table_20855452_4 (points VARCHAR, player VARCHAR) |
SELECT Date_in_Locaton_To, COUNT(Date_in_Locaton_To) FROM Document_Locations GROUP BY Location_Code, Date_in_Locaton_To ORDER BY Date_in_Locaton_To | Give me a group line chart showing the number of documents in different ending date The x-axis is ending date and group by location code, rank by the x axis from low to high please. | CREATE TABLE Documents_to_be_Destroyed (
Document_ID INTEGER,
Destruction_Authorised_by_Employee_ID INTEGER,
Destroyed_by_Employee_ID INTEGER,
Planned_Destruction_Date DATETIME,
Actual_Destruction_Date DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Description CHAR(255),
Other_Details VARCHAR(255)
)
CREATE TABLE Employees (
Employee_ID INTEGER,
Role_Code CHAR(15),
Employee_Name VARCHAR(255),
Gender_MFU CHAR(1),
Date_of_Birth DATETIME,
Other_Details VARCHAR(255)
)
CREATE TABLE Ref_Calendar (
Calendar_Date DATETIME,
Day_Number INTEGER
)
CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE Ref_Locations (
Location_Code CHAR(15),
Location_Name VARCHAR(255),
Location_Description VARCHAR(255)
)
CREATE TABLE Roles (
Role_Code CHAR(15),
Role_Name VARCHAR(255),
Role_Description VARCHAR(255)
)
CREATE TABLE Ref_Document_Types (
Document_Type_Code CHAR(15),
Document_Type_Name VARCHAR(255),
Document_Type_Description VARCHAR(255)
) |
SELECT metropolitan_area FROM table_22916979_5 WHERE densest_incorporated_place = "North Bay Village" | Name the area for north bay village | CREATE TABLE table_22916979_5 (metropolitan_area VARCHAR, densest_incorporated_place VARCHAR) |
SELECT weight FROM table_20872722_1 WHERE college = "Western Ontario" | What is the weight for western ontario college? | CREATE TABLE table_20872722_1 (weight VARCHAR, college VARCHAR) |
SELECT "Height ft (m)" FROM table_59946 WHERE "Year" = '1907' | How tall is the structure built in 1907? | CREATE TABLE table_59946 (
"Rank" text,
"Name" text,
"Height ft (m)" text,
"Floors" real,
"Year" real
) |
SELECT region___nuts_2006_ FROM table_2293510_1 WHERE ppp__million_€_ = 23164 | Where is the PPP 23164 million €? | CREATE TABLE table_2293510_1 (region___nuts_2006_ VARCHAR, ppp__million_€_ VARCHAR) |
SELECT COUNT(position) FROM table_20872722_1 WHERE round = 3 | How many positions have round 3? | CREATE TABLE table_20872722_1 (position VARCHAR, round VARCHAR) |
SELECT "Serials issued" FROM table_49496 WHERE "Issued" = '1966' | What is the issued serial given in 1966? | CREATE TABLE table_49496 (
"Issued" real,
"Type" text,
"Design" text,
"Serial format" text,
"Serials issued" text
) |
SELECT total__million_€__ FROM table_2293510_1 WHERE ppp__million_€_ = 21779 | What's the total (in million €) in the region where PPP is 21779 million €? | CREATE TABLE table_2293510_1 (total__million_€__ VARCHAR, ppp__million_€_ VARCHAR) |
SELECT position FROM table_20872722_1 WHERE weight = "225lb" | Which position has 225lb as weight? | CREATE TABLE table_20872722_1 (position VARCHAR, weight VARCHAR) |
SELECT cust_name, acc_bal FROM customer WHERE cust_name LIKE '%a%' ORDER BY acc_bal DESC | Find the name and account balance of the customer whose name includes the letter a Visualize them using a bar chart, show y-axis in descending order. | CREATE TABLE bank (
branch_ID int,
bname varchar(20),
no_of_customers int,
city varchar(10),
state varchar(20)
)
CREATE TABLE customer (
cust_ID varchar(3),
cust_name varchar(20),
acc_type char(1),
acc_bal int,
no_of_loans int,
credit_score int,
branch_ID int,
state varchar(20)
)
CREATE TABLE loan (
loan_ID varchar(3),
loan_type varchar(15),
cust_ID varchar(3),
branch_ID varchar(3),
amount int
) |
SELECT _percentage_of_eu_average_gdp__ppp_ FROM table_2293510_1 WHERE €_per_capita__2005_ = 2519 | What's the percentage of EU average GDP (PPP) in the region where € per capita is 2519 | CREATE TABLE table_2293510_1 (_percentage_of_eu_average_gdp__ppp_ VARCHAR, €_per_capita__2005_ VARCHAR) |
SELECT MIN(round) FROM table_20872722_1 | What is the round? | CREATE TABLE table_20872722_1 (round INTEGER) |
SELECT object_type FROM table_name_77 WHERE right_ascension___j2000__ = "11h10m42.8s" | what is the object type when the right ascension (j2000) is 11h10m42.8s? | CREATE TABLE table_name_77 (
object_type VARCHAR,
right_ascension___j2000__ VARCHAR
) |
SELECT MAX(stage) FROM table_22941863_19 WHERE winner = "Bernhard Eisel" | If the winner is Bernhard Eisel, what is the stage maximum? | CREATE TABLE table_22941863_19 (stage INTEGER, winner VARCHAR) |
SELECT COUNT(height) FROM table_20872722_1 WHERE position = "Cornerback" | What is the height of the cornerback position? | CREATE TABLE table_20872722_1 (height VARCHAR, position VARCHAR) |
SELECT loss FROM table_name_96 WHERE record = "26-9" | What loss has 26-9 as a loss? | CREATE TABLE table_name_96 (
loss VARCHAR,
record VARCHAR
) |
SELECT mountains_classification FROM table_22941863_19 WHERE winner = "Bernhard Eisel" | What is the mountain classification name if the winner is Bernhard Eisel? | CREATE TABLE table_22941863_19 (mountains_classification VARCHAR, winner VARCHAR) |
SELECT MAX(year_joined) FROM table_20887670_1 | What is the most recent year joined? | CREATE TABLE table_20887670_1 (year_joined INTEGER) |
SELECT "home team" FROM table_203_620 WHERE "score" = 6 LIMIT 1 | which team was the first team to score six goals ? | CREATE TABLE table_203_620 (
id number,
"tie no" number,
"home team" text,
"score" text,
"away team" text,
"attendance" number
) |
SELECT points_classification FROM table_22941863_19 WHERE stage = 3 | If the stage is 3, what is the points classification name? | CREATE TABLE table_22941863_19 (points_classification VARCHAR, stage VARCHAR) |
SELECT affiliation FROM table_20887670_1 WHERE mascot = "Hilltoppers" | what is the affiliation of the hilltoppers mascot? | CREATE TABLE table_20887670_1 (affiliation VARCHAR, mascot VARCHAR) |
SELECT "Stadium" FROM table_68203 WHERE "Past season" = '7th' | what stadium has a prior record of 7th? | CREATE TABLE table_68203 (
"Team" text,
"City" text,
"Stadium" text,
"Manager" text,
"Past season" text
) |
SELECT team_classification FROM table_22941863_19 WHERE stage = 9 | If the stage is 9, what is the team classification name? | CREATE TABLE table_22941863_19 (team_classification VARCHAR, stage VARCHAR) |
SELECT affiliation FROM table_20887670_1 WHERE colors = "Maroon and White" | what is the affiliation of the colors maroon and white? | CREATE TABLE table_20887670_1 (affiliation VARCHAR, colors VARCHAR) |
SELECT "Nationality" FROM table_47749 WHERE "Elevator" = 'innocent iv' | When the elevator was Innocent IV what was the nationality? | CREATE TABLE table_47749 (
"Elector" text,
"Nationality" text,
"Order and title" text,
"Elevated" text,
"Elevator" text
) |
SELECT mountains_classification FROM table_22941863_19 WHERE winner = "Michael Albasini" | If the winner is Michael Albasini, what is the mountains classification name? | CREATE TABLE table_22941863_19 (mountains_classification VARCHAR, winner VARCHAR) |
SELECT enrollment FROM table_20887670_1 WHERE institution = "Central" | what is the number of enrollment of the central institution? | CREATE TABLE table_20887670_1 (enrollment VARCHAR, institution VARCHAR) |
SELECT DISTINCT (catalog_publisher) FROM catalogs WHERE catalog_publisher LIKE "%Murray%" | Find all the catalog publishers whose name contains 'Murray | CREATE TABLE attribute_definitions (
attribute_id number,
attribute_name text,
attribute_data_type text
)
CREATE TABLE catalog_contents (
catalog_entry_id number,
catalog_level_number number,
parent_entry_id number,
previous_entry_id number,
next_entry_id number,
catalog_entry_name text,
product_stock_number text,
price_in_dollars number,
price_in_euros number,
price_in_pounds number,
capacity text,
length text,
height text,
width text
)
CREATE TABLE catalog_contents_additional_attributes (
catalog_entry_id number,
catalog_level_number number,
attribute_id number,
attribute_value text
)
CREATE TABLE catalogs (
catalog_id number,
catalog_name text,
catalog_publisher text,
date_of_publication time,
date_of_latest_revision time
)
CREATE TABLE catalog_structure (
catalog_level_number number,
catalog_id number,
catalog_level_name text
) |
SELECT winner FROM table_22941863_19 WHERE sprints_classification = "no award" | What is the name of the winner when the sprints classification is no award? | CREATE TABLE table_22941863_19 (winner VARCHAR, sprints_classification VARCHAR) |
SELECT institution FROM table_20887670_1 WHERE location = "Sparta, WI" | what is the name of the institution of the sparta, wi location? | CREATE TABLE table_20887670_1 (institution VARCHAR, location VARCHAR) |
SELECT "Tournament" FROM table_31945 WHERE "Surface" = 'hard' AND "Score" = '6–1, 6–2' | Tell me the tournament with a hard surface for 6 1, 6 2 | CREATE TABLE table_31945 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) |
SELECT us_viewers__in_millions_ FROM table_22951088_3 WHERE written_by = "Deidre Shaw" | How many viewers (in millions) watched the episode written by deidre shaw? | CREATE TABLE table_22951088_3 (us_viewers__in_millions_ VARCHAR, written_by VARCHAR) |
SELECT COUNT(year_joined) FROM table_20887670_1 WHERE colors = "Red and Gold" | in what year did the colors red and gold join? | CREATE TABLE table_20887670_1 (year_joined VARCHAR, colors VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.