answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Name | For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and manufacturer , and group by attribute founder, and could you sort by the bar in asc? | 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 COUNT AS № FROM table_27905664_1 WHERE us_viewers__million_ = "4.26" | How many episode numbers had US viewership of 4.26 million? | CREATE TABLE table_27905664_1 (COUNT VARCHAR, us_viewers__million_ VARCHAR) |
SELECT birthdate FROM table_name_23 WHERE height__cm_ < 191 AND weight__kg_ = 84 | What is the Birthdate for the person with a height less than 191, and weight of 84 kg? | CREATE TABLE table_name_23 (birthdate VARCHAR, height__cm_ VARCHAR, weight__kg_ VARCHAR) |
SELECT 1988 FROM table_name_41 WHERE 1997 = "2r" AND 1993 = "sf" | What is the value in 1988 when it is 2R in 1997 and SF in 1993? | CREATE TABLE table_name_41 (
Id VARCHAR
) |
SELECT № FROM table_27905664_1 WHERE us_viewers__million_ = "4.87" | What episode number had US viewership of 4.87 million? | CREATE TABLE table_27905664_1 (№ VARCHAR, us_viewers__million_ VARCHAR) |
SELECT position FROM table_name_73 WHERE height__cm_ < 183 AND weight__kg_ < 91 AND birthplace = "bloomington, minnesota" | What is the Position with a height of less than 183, and a weight of less than 91 kg and born in bloomington, minnesota? | CREATE TABLE table_name_73 (position VARCHAR, birthplace VARCHAR, height__cm_ VARCHAR, weight__kg_ VARCHAR) |
SELECT "School/Club Team" FROM table_1261 WHERE "Season" = '2008' | Namethe school team for season 2008 | CREATE TABLE table_1261 (
"Name" text,
"Position" text,
"Number" real,
"School/Club Team" text,
"Season" text,
"Acquisition via" text
) |
SELECT COUNT(_number) FROM table_27905664_1 WHERE directed_by = "Ken Fink" | How many episodes were directed by Ken Fink? | CREATE TABLE table_27905664_1 (_number VARCHAR, directed_by VARCHAR) |
SELECT claimant FROM table_name_7 WHERE rank = 200 | Which claimant's rank is 200? | CREATE TABLE table_name_7 (claimant VARCHAR, rank VARCHAR) |
SELECT MAX(points) FROM table_name_18 WHERE wins = 0 AND rank > 6 AND manufacturer = "kawasaki" AND rider = "massimo broccoli" | Wins of 0, and a Rank larger than 6, and a Manufacturer of kawasaki, and a Rider of massimo broccoli involved what highest points? | CREATE TABLE table_name_18 (
points INTEGER,
rider VARCHAR,
manufacturer VARCHAR,
wins VARCHAR,
rank VARCHAR
) |
SELECT original_air_date FROM table_27910411_1 WHERE us_viewers__millions_ = "8.28" | What date did the episode with 8.28 million u.s. viewers originally air? | CREATE TABLE table_27910411_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT highest_point FROM table_name_46 WHERE country = "south ossetia" | What is the most points for South Ossetia? | CREATE TABLE table_name_46 (highest_point VARCHAR, country VARCHAR) |
SELECT player FROM table_16376436_1 WHERE pick__number = 150 | Which player was pick number 150? | CREATE TABLE table_16376436_1 (
player VARCHAR,
pick__number VARCHAR
) |
SELECT COUNT(us_viewers__millions_) FROM table_27910411_1 WHERE no_in_series = 5 | How many items are listed for U.S. viewers for episode number 5 in the series? | CREATE TABLE table_27910411_1 (us_viewers__millions_ VARCHAR, no_in_series VARCHAR) |
SELECT MAX(rank) FROM table_name_85 WHERE country = "palestinian territories" | Which highest rank belongs to the palestinian territories? | CREATE TABLE table_name_85 (rank INTEGER, country VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.days_stay > "20" AND procedures.icd9_code = "9907" | what is the number of patients whose days of hospital stay is greater than 20 and procedure icd9 code is 9907? | 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
)
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
) |
SELECT original_air_date FROM table_27910411_1 WHERE no_in_series = 10 | What date did episode 10 in the series originally air? | CREATE TABLE table_27910411_1 (original_air_date VARCHAR, no_in_series VARCHAR) |
SELECT highest_point FROM table_name_49 WHERE rank = 95 | What is the highest amount of points for rank 95? | CREATE TABLE table_name_49 (highest_point VARCHAR, rank VARCHAR) |
SELECT position FROM table_20785990_2 WHERE home_town = "Chapel Hill, NC" | What position is the player from Chapel Hill, NC? | CREATE TABLE table_20785990_2 (
position VARCHAR,
home_town VARCHAR
) |
SELECT COUNT(season__number) FROM table_27911342_1 WHERE written_by = "Kari Lizer" | What is the season number of the show written by both Kari Lizer and Jeff Astrof? | CREATE TABLE table_27911342_1 (season__number VARCHAR, written_by VARCHAR) |
SELECT season FROM table_name_39 WHERE win_percentage = ".439" AND team = "1996-97" | What season had a .439 Win% in the 1996-97 Team? | CREATE TABLE table_name_39 (season VARCHAR, win_percentage VARCHAR, team VARCHAR) |
SELECT driver FROM table_name_43 WHERE constructor = "ferrari" AND time_retired = "+1:06.683" | who is the driver for the car constructed by ferrari with a time/retired of +1:06.683? | CREATE TABLE table_name_43 (
driver VARCHAR,
constructor VARCHAR,
time_retired VARCHAR
) |
SELECT title FROM table_27911342_1 WHERE season__number = 5 | What is the title of the Series 40 Season 5 show? | CREATE TABLE table_27911342_1 (title VARCHAR, season__number VARCHAR) |
SELECT conference__conf_ FROM table_name_95 WHERE division__div_ = "atlantic" AND team = "1973-74" | What conference is the 1973-74 team in the Atlantic Division (Div.)? | CREATE TABLE table_name_95 (conference__conf_ VARCHAR, division__div_ VARCHAR, team VARCHAR) |
SELECT result FROM table_1342013_12 WHERE incumbent = "Leo E. Allen" | What was the result when Leo E. Allen was elected? | CREATE TABLE table_1342013_12 (
result VARCHAR,
incumbent VARCHAR
) |
SELECT callsign FROM table_27914076_1 WHERE coverage = "Davao Mindanao Region" | Name the callsign for davao mindanao region | CREATE TABLE table_27914076_1 (callsign VARCHAR, coverage VARCHAR) |
SELECT season FROM table_name_6 WHERE win_percentage = ".354" | Which season has a .354 Win%? | CREATE TABLE table_name_6 (season VARCHAR, win_percentage VARCHAR) |
SELECT Id, Body, Title, OwnerDisplayName, ViewCount FROM Posts ORDER BY ViewCount DESC LIMIT 10 | Top 10 Questions by view. | CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE 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 FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE 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 ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
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 Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
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 PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId 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 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 TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
) |
SELECT power_kw FROM table_27914076_1 WHERE callsign = "DYMD-FM" | Name the power for dymd-fm | CREATE TABLE table_27914076_1 (power_kw VARCHAR, callsign VARCHAR) |
SELECT win_percentage FROM table_name_44 WHERE team = "1989-90" | What is the Win% of the 1989-90 Team? | CREATE TABLE table_name_44 (win_percentage VARCHAR, team VARCHAR) |
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND date_day.day_number = 24 AND date_day.month_number = 5 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 = 'DENVER' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code | flights from DENVER to PITTSBURGH on thursday | CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
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 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 state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
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 time_zone (
time_zone_code text,
time_zone_name text,
hours_from_gmt int
)
CREATE TABLE airline (
airline_code varchar,
airline_name text,
note text
)
CREATE TABLE flight_fare (
flight_id int,
fare_id 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 compartment_class (
compartment varchar,
class_type 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 dual_carrier (
main_airline varchar,
low_flight_number int,
high_flight_number int,
dual_airline varchar,
service_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 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 ground_service (
city_code text,
airport_code text,
transport_type text,
ground_fare int
)
CREATE TABLE days (
days_code varchar,
day_name varchar
)
CREATE TABLE month (
month_number int,
month_name text
)
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
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 city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
CREATE TABLE code_description (
code varchar,
description text
)
CREATE TABLE fare_basis (
fare_basis_code text,
booking_class text,
class_type text,
premium text,
economy text,
discounted text,
night text,
season text,
basis_days text
) |
SELECT frequency FROM table_27914076_1 WHERE branding = "103.7 Energy FM Dipolog*" | Name the frequency for 103.7 energy fm dipolog* | CREATE TABLE table_27914076_1 (frequency VARCHAR, branding VARCHAR) |
SELECT high_rebounds FROM table_name_68 WHERE team = "charlotte" | What is the High rebounds with a Team that is charlotte? | CREATE TABLE table_name_68 (high_rebounds VARCHAR, team VARCHAR) |
SELECT class AS pos FROM table_name_25 WHERE year > 1997 AND team = "corvette racing" AND class = "gt1" AND laps = 327 | Which Class Pos has a Year larger than 1997, a Team of corvette racing, a Class of gt1, and 327 laps? | CREATE TABLE table_name_25 (
class VARCHAR,
laps VARCHAR,
year VARCHAR,
team VARCHAR
) |
SELECT COUNT(coverage) FROM table_27914076_1 WHERE branding = "106.7 Energy FM" | Name the number of coverage for 106.7 energy fm | CREATE TABLE table_27914076_1 (coverage VARCHAR, branding VARCHAR) |
SELECT date FROM table_name_16 WHERE rocket = "tbd" AND satellite = "gps iiia-1" | On what date was the rocket a TBD with a satellite of GPS IIIA-1? | CREATE TABLE table_name_16 (date VARCHAR, rocket VARCHAR, satellite VARCHAR) |
SELECT MAX("Laps") FROM table_69502 WHERE "Start" = '21' | What is the highest number of laps with a 21 start? | CREATE TABLE table_69502 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
) |
SELECT season__number FROM table_27914606_1 WHERE us_viewers__millions_ = "7.19" | what is the number of the episode in the season that had 7.19 millions of north american viewers? | CREATE TABLE table_27914606_1 (season__number VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT type FROM table_name_54 WHERE satellite = "gps iiia-2" | Which type is a satellite of GPS IIIA-2? | CREATE TABLE table_name_54 (type VARCHAR, satellite VARCHAR) |
SELECT product FROM product WHERE max_page_size = "A4" AND pages_per_minute_color < 5 | Find products with max page size as 'A4' and pages per minute color smaller than 5. | CREATE TABLE product (
product VARCHAR,
max_page_size VARCHAR,
pages_per_minute_color VARCHAR
) |
SELECT title FROM table_27914606_1 WHERE written_by = "Jeff Astrof & Matt Goldman" | what is the name of the episode whose writers were jeff astrof & matt goldman? | CREATE TABLE table_27914606_1 (title VARCHAR, written_by VARCHAR) |
SELECT launch_site FROM table_name_74 WHERE satellite = "gps iiia-2" | What was the launch site for a satellite of GPS IIIA-2? | CREATE TABLE table_name_74 (launch_site VARCHAR, satellite VARCHAR) |
SELECT "Away team score" FROM table_56111 WHERE "Venue" = 'junction oval' | What was the away team's score in Junction Oval? | CREATE TABLE table_56111 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) |
SELECT written_by FROM table_27914606_1 WHERE us_viewers__millions_ = "5.56" | who were the writers of the episode that had 5.56 millions of north american viewers? | CREATE TABLE table_27914606_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT choreographer_s_ FROM table_name_36 WHERE chosen_by = "mary murphy" AND style = "contemporary" | What is Choreographer(s), when Chosen is Mary Murphy, and when Style is Contemporary? | CREATE TABLE table_name_36 (choreographer_s_ VARCHAR, chosen_by VARCHAR, style VARCHAR) |
SELECT * FROM Posts WHERE Id < 100000 AND AnswerCount > 0 AND NOT Tags IS NULL | SELECT * FROM posts WHERE Id < 100000 and AnswerCount > 0 and Tags NOT NULL. | 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 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 Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense 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 Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
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 PostTags (
PostId number,
TagId number
)
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 PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId 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 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 PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment 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 CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
) |
SELECT average FROM table_27922491_11 WHERE runs = 313 | What is the average for the player with 313 runs? | CREATE TABLE table_27922491_11 (average VARCHAR, runs VARCHAR) |
SELECT chosen_by FROM table_name_10 WHERE couple = "katee shean joshua allen" AND choreographer_s_ = "nakul dev mahajan" | What is Chosen By, when Couple is Katee Shean Joshua Allen, and when Choreographer(s) is Nakul Dev Mahajan? | CREATE TABLE table_name_10 (chosen_by VARCHAR, couple VARCHAR, choreographer_s_ VARCHAR) |
SELECT "Horsepower" FROM table_4338 WHERE "VIN Code" = 'h' AND "Engine" = '351-2v cleveland v8' | Name the horsepower for VIN code of h and engine for 351-2v cleveland v8 | CREATE TABLE table_4338 (
"Engine" text,
"Horsepower" text,
"Torque" text,
"Carburetor" text,
"Compression Ratio" text,
"Bore & Stroke" text,
"VIN Code" text
) |
SELECT MIN(runs) FROM table_27922491_11 WHERE average = "97.00" | How few runs does the 97.00 average have? | CREATE TABLE table_27922491_11 (runs INTEGER, average VARCHAR) |
SELECT style FROM table_name_17 WHERE choreographer_s_ = "dave scott" | What is Style, when Choreographer(s) is Dave Scott? | CREATE TABLE table_name_17 (style VARCHAR, choreographer_s_ VARCHAR) |
SELECT status FROM table_26460435_7 WHERE monarch = "Mingyinyo" | What is the status for the monarch Mingyinyo? | CREATE TABLE table_26460435_7 (
status VARCHAR,
monarch VARCHAR
) |
SELECT MIN(50 AS s) FROM table_27922491_24 | What is the minimum number of 50s scored? | CREATE TABLE table_27922491_24 (Id VARCHAR) |
SELECT couple FROM table_name_13 WHERE choreographer_s_ = "nakul dev mahajan" | What is Couple, when Choreographer(s) is Nakul Dev Mahajan? | CREATE TABLE table_name_13 (couple VARCHAR, choreographer_s_ VARCHAR) |
SELECT power FROM table_name_25 WHERE name = "9 ad" | Which Power has a Name of 9 ad? | CREATE TABLE table_name_25 (
power VARCHAR,
name VARCHAR
) |
SELECT 4 AS wi FROM table_27922491_20 WHERE economy = "4.17" | How many 4wi were recorded by the player with an economy of 4.17? | CREATE TABLE table_27922491_20 (economy VARCHAR) |
SELECT AVG(number_on_map) FROM table_name_42 WHERE name = "northgate" AND construction_commenced < 1951 | What is the average number for Northgate which commenced its construction before 1951? | CREATE TABLE table_name_42 (number_on_map INTEGER, name VARCHAR, construction_commenced VARCHAR) |
SELECT hangul FROM table_name_48 WHERE kana = "へいあんなんどう" | What is the Hangul of the Province with a Kana of ? | CREATE TABLE table_name_48 (
hangul VARCHAR,
kana VARCHAR
) |
SELECT MIN(wickets) FROM table_27922491_20 | What is the fewest number of wickets recorded? | CREATE TABLE table_27922491_20 (wickets INTEGER) |
SELECT MIN(population) FROM table_name_20 WHERE colour = "blue" AND construction_commenced < 1987 | What is the lowest population for the neighborhood with the color blue that commenced its construction before 1987? | CREATE TABLE table_name_20 (population INTEGER, colour VARCHAR, construction_commenced VARCHAR) |
SELECT party FROM table_name_33 WHERE president = "stefano baccelli" | What is the party affiliation for President Stefano Baccelli? | CREATE TABLE table_name_33 (
party VARCHAR,
president VARCHAR
) |
SELECT bbi FROM table_27922491_20 WHERE average = "24.50" | What was the BBI for the bowler whose average is 24.50? | CREATE TABLE table_27922491_20 (bbi VARCHAR, average VARCHAR) |
SELECT SUM(top_25) FROM table_name_46 WHERE wins > 0 | What is the sum of Top-25 when there are more than 0 wins? | CREATE TABLE table_name_46 (top_25 INTEGER, wins INTEGER) |
SELECT COUNT(DISTINCT t1.subject_id) 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 = 'patent ductus arteriosus') AND STRFTIME('%y', diagnoses_icd.charttime) <= '2104') AS t1 JOIN (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 = 'lack of coordination') AND STRFTIME('%y', diagnoses_icd.charttime) <= '2104') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t2.charttime) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 month') | until 2104, how many patients with patent ductus arteriosus were diagnosed within 2 months after being diagnosed with lack of coordination? | 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 chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
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 d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE 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 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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
) |
SELECT MIN(wickets) FROM table_27922491_8 | What is the least amount of wickets? | CREATE TABLE table_27922491_8 (wickets INTEGER) |
SELECT MIN(top_10) FROM table_name_44 WHERE top_25 = 6 AND tournament = "u.s. open" AND cuts_made > 9 | What is the lowest Top-10 when the Top-25 is 6, and a Tournament of u.s. open, and a Cut made larger than 9? | CREATE TABLE table_name_44 (top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR, tournament VARCHAR) |
SELECT COUNT("Attempts") FROM table_23998 WHERE "Name" = 'Charley Johnson' | How many attempts did Charley Johnson have? | CREATE TABLE table_23998 (
"Name" text,
"Completions" real,
"Attempts" real,
"Completion %" text,
"Yards" real,
"Touchdowns" real,
"Interceptions" real,
"QB Rating" text
) |
SELECT MIN(matches) FROM table_27922491_8 | What is the least amount of matches? | CREATE TABLE table_27922491_8 (matches INTEGER) |
SELECT MIN(top_25) FROM table_name_63 WHERE events = 12 AND top_5 = 1 AND cuts_made < 11 | What is the lowest Top-25 when events shows 12, the top-5 is 1, and less than 11 cuts? | CREATE TABLE table_name_63 (top_25 INTEGER, cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR) |
SELECT COUNT("Party") FROM table_18123 WHERE "District" = 'Oklahoma 5' | How many party were listed for district oklahoma 5? | CREATE TABLE table_18123 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Results" text,
"Candidates" text
) |
SELECT COUNT(player) FROM table_27922491_8 WHERE wickets = 12 | How many players had 12 wickets? | CREATE TABLE table_27922491_8 (player VARCHAR, wickets VARCHAR) |
SELECT MAX(enrollment) FROM table_name_93 WHERE location = "onalaska" | What is the Enrollment at Onalaska? | CREATE TABLE table_name_93 (enrollment INTEGER, location VARCHAR) |
SELECT p.CreationDate, p.Id AS "post_link", p.AnswerCount, p.Tags FROM Posts AS p INNER JOIN Users AS u ON p.OwnerUserId = u.Id WHERE u.Reputation >= '##MinReputation##' AND p.PostTypeId = 1 AND p.Score >= 0 AND ClosedDate IS NULL ORDER BY p.CreationDate DESC LIMIT 500 | Recent questions from reputable users. | CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
) |
SELECT MIN(innings) FROM table_27922491_8 WHERE average = "30.03" | How many innings for the player with an average of 30.03? | CREATE TABLE table_27922491_8 (innings INTEGER, average VARCHAR) |
SELECT institution FROM table_name_80 WHERE affiliation = "public" AND location = "black river falls" | What Public Institution is in Black River Falls? | CREATE TABLE table_name_80 (institution VARCHAR, affiliation VARCHAR, location VARCHAR) |
SELECT SUM("Silver") FROM table_64196 WHERE "Bronze" < '5' AND "Gold" > '0' AND "Rank" = '22' | How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5? | CREATE TABLE table_64196 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) |
SELECT average FROM table_27922491_8 WHERE bbm = "5/85" | What is the average for the player with BBM 5/85? | CREATE TABLE table_27922491_8 (average VARCHAR, bbm VARCHAR) |
SELECT COUNT(block) FROM table_name_73 WHERE weight < 85 AND height > 187 | What is the total number of Block for the Player with less than 85 Weight and more than 187 Height? | CREATE TABLE table_name_73 (block VARCHAR, weight VARCHAR, height VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Private" AND procedures.long_title = "Other closed [endoscopic] biopsy of biliary duct or sphincter of Oddi" | Calculate the number of private insurance patients who have had other closed (endoscopic) biopsy of biliary duct or sphincter of oddi. | 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 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
) |
SELECT MIN(episode__number) FROM table_27927185_1 WHERE viewers__millions_ = "4.03" | What is the lowest episode number that had 4.03 million viewers? | CREATE TABLE table_27927185_1 (episode__number INTEGER, viewers__millions_ VARCHAR) |
SELECT name FROM table_name_50 WHERE block < 342 AND weight < 87 AND height > 187 | What is the Name of the player with less than 342 Block, less than 87 Weight and Height more than 187? | CREATE TABLE table_name_50 (name VARCHAR, height VARCHAR, block VARCHAR, weight VARCHAR) |
SELECT COUNT(status) FROM table_22815568_3 WHERE county = "Wayne" | How many statuses are listed for Wayne county? | CREATE TABLE table_22815568_3 (
status VARCHAR,
county VARCHAR
) |
SELECT viewers__millions_ FROM table_27927185_1 WHERE episode__number < 2.0 | How many million viewers watched episodes prior to episode 2.0? | CREATE TABLE table_27927185_1 (viewers__millions_ VARCHAR, episode__number INTEGER) |
SELECT COUNT(weight) FROM table_name_28 WHERE block > 328 AND height > 207 AND spike > 375 | What is the Weight of the player with a Block larger than 328, Spike greater than 375 and Height larger than 207? | CREATE TABLE table_name_28 (weight VARCHAR, spike VARCHAR, block VARCHAR, height VARCHAR) |
SELECT "Game" FROM table_10741 WHERE "Team" = 'waterford' AND "D\u00e9but" > '1995' | What is the name of the game whose team is Waterford and debuted later than 1995? | CREATE TABLE table_10741 (
"Player" text,
"Team" text,
"Date" text,
"Opposition" text,
"Game" text,
"D\u00e9but" real
) |
SELECT originalairdate FROM table_27927185_1 WHERE viewers__millions_ = "4.77" | What was the original air-date that had 4.77 million viewers? | CREATE TABLE table_27927185_1 (originalairdate VARCHAR, viewers__millions_ VARCHAR) |
SELECT result FROM table_name_47 WHERE category = "album of the year" AND year = 2011 | What is the Result with a Category of album of the year in a Year that is 2011? | CREATE TABLE table_name_47 (result VARCHAR, category VARCHAR, year VARCHAR) |
SELECT player FROM table_name_83 WHERE wins = 14 | What player has 14 wins? | CREATE TABLE table_name_83 (
player VARCHAR,
wins VARCHAR
) |
SELECT directed_by FROM table_27927185_1 WHERE viewers__millions_ = "6.37" | Who directed the episode with 6.37 million viewers? | CREATE TABLE table_27927185_1 (directed_by VARCHAR, viewers__millions_ VARCHAR) |
SELECT season FROM table_name_57 WHERE name = "tony boy espinosa" | What is Season, when Name is Tony Boy Espinosa? | CREATE TABLE table_name_57 (season VARCHAR, name VARCHAR) |
SELECT song_name FROM song WHERE rating < (SELECT MIN(rating) FROM song WHERE languages = 'english') | What are the names of the songs whose rating is below the rating of all songs in English? | CREATE TABLE files (
f_id number,
artist_name text,
file_size text,
duration text,
formats text
)
CREATE TABLE genre (
g_name text,
rating text,
most_popular_in 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
) |
SELECT MAX(release_date) FROM table_27932399_1 WHERE catalogue_number = "DW023" | What is the release date of catalogue number DW023? | CREATE TABLE table_27932399_1 (release_date INTEGER, catalogue_number VARCHAR) |
SELECT AVG(number) FROM table_name_13 WHERE position = "forward" | What is the average Number, when Position is Forward? | CREATE TABLE table_name_13 (number INTEGER, position VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "Transitional Epithelial Cells" | count the number of patients who have had transitional epithelial cells lab test. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) |
SELECT release_date FROM table_27932399_1 WHERE release_title = "New Worlds For Old" | What is the release date of "New Worlds for Old"? | CREATE TABLE table_27932399_1 (release_date VARCHAR, release_title VARCHAR) |
SELECT MIN(number) FROM table_name_30 WHERE school_club_team = "misamis institute" | What is the lowest Number, when School/Club Team is Misamis Institute? | CREATE TABLE table_name_30 (number INTEGER, school_club_team VARCHAR) |
SELECT "National Share (%)" FROM table_1630 WHERE "Area (km\u00b2)" = '148064' | What is the national share of the country whose area is 148064 km^2? | CREATE TABLE table_1630 (
"Rank" real,
"Administrative Division" text,
"Area (km\u00b2)" real,
"Area (sq mi)" real,
"National Share (%)" text,
"Comparable Country" text
) |
SELECT catalogue_number FROM table_27932399_1 WHERE release_title = "Waves In The Air" | What is the catalogue number for "Waves in the Air"? | CREATE TABLE table_27932399_1 (catalogue_number VARCHAR, release_title VARCHAR) |
SELECT school_club_team FROM table_name_79 WHERE season = "2006-2012" | What is School/Club Team, when Season is 2006-2012? | CREATE TABLE table_name_79 (school_club_team VARCHAR, season VARCHAR) |
SELECT nationality FROM table_name_46 WHERE round > 4 | Name the nationality of the player with round more than 4 | CREATE TABLE table_name_46 (
nationality VARCHAR,
round INTEGER
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.