answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT song_choice FROM table_26250176_1 WHERE result = "Bottom 3"
What song was used resulting in the bottom 3?
CREATE TABLE table_26250176_1 (song_choice VARCHAR, result VARCHAR)
SELECT meter_600, ID FROM swimmer ORDER BY meter_600
Visualize a bar chart about the distribution of meter_600 and ID , and order by the bars in asc.
CREATE TABLE record ( ID int, Result text, Swimmer_ID int, Event_ID int ) CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Country text, Opening_year int ) CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text ) CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, Time text )
SELECT COUNT(video_out) FROM table_24384861_1 WHERE version = "SoundDock Portable"
how many video out connections does the sounddock portable have?
CREATE TABLE table_24384861_1 (video_out VARCHAR, version VARCHAR)
SELECT theme FROM table_26250176_1 WHERE week__number = "Audition"
What is the theme for Audition week?
CREATE TABLE table_26250176_1 (theme VARCHAR, week__number VARCHAR)
SELECT MIN(chartevents.valuenum) FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 25814)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [systolic]' AND d_items.linksto = 'chartevents') AND DATETIME(chartevents.charttime) >= DATETIME(CURRENT_TIME(), '-61 day') GROUP BY STRFTIME('%y-%m', chartevents.charttime)
indicate the monthly minimum amount of arterial bp [systolic] for patient 25814 since 61 days ago.
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 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 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 microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text )
SELECT dual_voltage FROM table_24384861_1 WHERE version = "SoundDock series I v2"
Does the sounddock series I v2 have dual voltage?
CREATE TABLE table_24384861_1 (dual_voltage VARCHAR, version VARCHAR)
SELECT result FROM table_26250176_1 WHERE week__number = "Top 12"
What was the results for top 12?
CREATE TABLE table_26250176_1 (result VARCHAR, week__number VARCHAR)
SELECT city_code, COUNT(*) FROM Student GROUP BY city_code ORDER BY COUNT(*) DESC
Find the number of students living in each city with a bar chart, and display by the Y-axis from high to low please.
CREATE TABLE Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) ) CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER )
SELECT dock_connection FROM table_24384861_1 WHERE version = "SoundDock series III"
What type of dock connection does the sounddock series III have?
CREATE TABLE table_24384861_1 (dock_connection VARCHAR, version VARCHAR)
SELECT original_artist FROM table_26250176_1 WHERE theme = "First Solo"
Who was the original artist for First Solo?
CREATE TABLE table_26250176_1 (original_artist VARCHAR, theme VARCHAR)
SELECT T1.transaction_type_description, T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code = T2.transaction_type_code WHERE T2.share_count < 10
Show the transaction type descriptions and dates if the share count is smaller than 10.
CREATE TABLE Ref_Transaction_Types ( transaction_type_description VARCHAR, transaction_type_code VARCHAR ) CREATE TABLE TRANSACTIONS ( date_of_transaction VARCHAR, transaction_type_code VARCHAR, share_count INTEGER )
SELECT game_site FROM table_24396664_2 WHERE kickoff = "7:00 p.m."
Where was the game played that started at 7:00 p.m.?
CREATE TABLE table_24396664_2 (game_site VARCHAR, kickoff VARCHAR)
SELECT episode FROM table_26250218_1 WHERE order__number = "4"
Which episode is #4?
CREATE TABLE table_26250218_1 (episode VARCHAR, order__number VARCHAR)
SELECT "2nd leg" FROM table_22824 WHERE "Team #2" = 'Panionios'
What's the 2nd leg result in the round where Panionios is team #2?
CREATE TABLE table_22824 ( "Team #1" text, "Agg. score" text, "Team #2" text, "1st leg" text, "2nd leg" text )
SELECT MAX(varsity_teams) FROM table_2439728_1 WHERE location = "West Roxbury, MA"
how many varsity teams are in west roxbury, ma?
CREATE TABLE table_2439728_1 (varsity_teams INTEGER, location VARCHAR)
SELECT joined FROM table_262514_1 WHERE nickname = "Ravens"
What is every year for joined with the Ravens nickname?
CREATE TABLE table_262514_1 (joined VARCHAR, nickname VARCHAR)
SELECT prescriptions.drug_type, prescriptions.route FROM prescriptions WHERE prescriptions.formulary_drug_cd = "SOLN2"
what is drug type and drug route of drug code soln2?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE 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 )
SELECT mascot FROM table_2439728_1 WHERE school = "St. Paul's school"
what is the mascot of st. paul's school?
CREATE TABLE table_2439728_1 (mascot VARCHAR, school VARCHAR)
SELECT institution FROM table_262514_1 WHERE nickname = "Ravens"
What is every institution with a nickname of Ravens?
CREATE TABLE table_262514_1 (institution VARCHAR, nickname VARCHAR)
SELECT "Location" FROM table_63664 WHERE "Designer" = 'glen peloso' AND "Restaurant Name" = 'joe boo''s cookoos'
what is the location when the designer is glen peloso and the restaurant is joe boo's cookoos?
CREATE TABLE table_63664 ( "Restaurant Name" text, "Original Name" text, "Location" text, "Chef" text, "Designer" text, "Still Open?" text )
SELECT location FROM table_2439728_1 WHERE mascot = "Dragons"
where are dragons used as mascots?
CREATE TABLE table_2439728_1 (location VARCHAR, mascot VARCHAR)
SELECT revised_hepburn FROM table_26263954_1 WHERE english = "Roman characters"
how many revised hepburn when english is roman characters
CREATE TABLE table_26263954_1 (revised_hepburn VARCHAR, english VARCHAR)
SELECT bedType, COUNT(*) FROM Rooms GROUP BY bedType ORDER BY COUNT(*) DESC
Find the number of rooms for each bed type Visualize by bar chart, and I want to show in descending by the y axis.
CREATE TABLE Reservations ( Code INTEGER, Room TEXT, CheckIn TEXT, CheckOut TEXT, Rate REAL, LastName TEXT, FirstName TEXT, Adults INTEGER, Kids INTEGER ) CREATE TABLE Rooms ( RoomId TEXT, roomName TEXT, beds INTEGER, bedType TEXT, maxOccupancy INTEGER, basePrice INTEGER, decor TEXT )
SELECT MIN(founded) FROM table_2439728_1 WHERE school = "Lawrence Academy at Groton"
when was lawrence academy at groton established?
CREATE TABLE table_2439728_1 (founded INTEGER, school VARCHAR)
SELECT english FROM table_26263954_1 WHERE revised_hepburn = "chiji"
when chiji is revised hepburn what are all the english
CREATE TABLE table_26263954_1 (english VARCHAR, revised_hepburn VARCHAR)
SELECT "Entrant" FROM table_70593 WHERE "Points" < '8' AND "Chassis" = 'maserati'
Which entrant scored less than 8 points and used a Maserati chassis?
CREATE TABLE table_70593 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real )
SELECT school FROM table_2439728_1 WHERE location = "Milton, MA"
name the school located at Milton, ma.
CREATE TABLE table_2439728_1 (school VARCHAR, location VARCHAR)
SELECT COUNT(english) FROM table_26263954_1 WHERE kunrei_shiki = "otya"
how many number of english when kunrei-shiki is otya
CREATE TABLE table_26263954_1 (english VARCHAR, kunrei_shiki VARCHAR)
SELECT AVG(zone) FROM table_name_54 WHERE stations = "waddon railway station" AND platforms > 2
Name the average zone for waddon railway station and has more than 2 platforms
CREATE TABLE table_name_54 ( zone INTEGER, stations VARCHAR, platforms VARCHAR )
SELECT COUNT(location) FROM table_2439728_1 WHERE varsity_teams = 17
how many places have 17 varsity teams?
CREATE TABLE table_2439728_1 (location VARCHAR, varsity_teams VARCHAR)
SELECT kana_spelling FROM table_26263954_1 WHERE english = "Mount Fuji"
how many kana spelling when english is mount fuji
CREATE TABLE table_26263954_1 (kana_spelling VARCHAR, english VARCHAR)
SELECT AVG(demographic.age) FROM demographic WHERE demographic.insurance = "Government" AND demographic.days_stay = "1"
what is average age of patients whose insurance is government and days of hospital stay is 1?
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 COUNT(episode_no) FROM table_24399615_10 WHERE bbc_three_weekly_ranking = "N/A" AND cable_rank = "N/A"
Which episode had bbc ranking and canle ranking of n/a?
CREATE TABLE table_24399615_10 (episode_no VARCHAR, bbc_three_weekly_ranking VARCHAR, cable_rank VARCHAR)
SELECT nihon_shiki FROM table_26263954_1 WHERE english = "tea"
when english is tea how many nihon-shiki
CREATE TABLE table_26263954_1 (nihon_shiki VARCHAR, english VARCHAR)
SELECT location FROM table_name_22 WHERE time = "11:55"
What is the Location when the time was 11:55?
CREATE TABLE table_name_22 ( location VARCHAR, time VARCHAR )
SELECT bbc_three_weekly_ranking FROM table_24399615_10 WHERE cable_rank = "6"
List the number of bbc rankings with cable rankings of 6.
CREATE TABLE table_24399615_10 (bbc_three_weekly_ranking VARCHAR, cable_rank VARCHAR)
SELECT original_airdate FROM table_26293875_3 WHERE prod_no = "2x03"
What was the original airdate of the episode with production number 2x03?
CREATE TABLE table_26293875_3 (original_airdate VARCHAR, prod_no VARCHAR)
SELECT rebounds FROM table_25353861_5 WHERE player = "Tammy Sutton-Brown"
How many rebounds did Tammy Sutton-Brown have?
CREATE TABLE table_25353861_5 ( rebounds VARCHAR, player VARCHAR )
SELECT viewers FROM table_24399615_10 WHERE cable_rank = "5"
List the number of viewers when the cable rank for Russell Howard's Good New was 5.
CREATE TABLE table_24399615_10 (viewers VARCHAR, cable_rank VARCHAR)
SELECT COUNT(season__number) FROM table_26293875_3 WHERE prod_no = "2x13"
How many episodes had production number 2x13?
CREATE TABLE table_26293875_3 (season__number VARCHAR, prod_no VARCHAR)
SELECT T1.name, T1.num_employees FROM department AS T1 JOIN management AS T2 ON T1.department_id = T2.department_id WHERE T2.temporary_acting = 'Yes'
Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes'?
CREATE TABLE department ( name VARCHAR, num_employees VARCHAR, department_id VARCHAR ) CREATE TABLE management ( department_id VARCHAR, temporary_acting VARCHAR )
SELECT COUNT(viewers) FROM table_24399615_10 WHERE bbc_three_weekly_ranking = "6"
How many individuals watched the show that had a bbc ranking of 6?
CREATE TABLE table_24399615_10 (viewers VARCHAR, bbc_three_weekly_ranking VARCHAR)
SELECT COUNT(kickoff) FROM table_26275503_2 WHERE opponent = "at Rhein Fire"
How many different kickoffs happened when the oppenent was at Rhein Fire?
CREATE TABLE table_26275503_2 (kickoff VARCHAR, opponent VARCHAR)
SELECT demographic.admission_location, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Dominga Garvin"
What is the admission location and diagnosis short title of Dominga Garvin?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE 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 )
SELECT COUNT(cable_rank) FROM table_24399615_5 WHERE episode_no = 8
How many times did episode number 8 air?
CREATE TABLE table_24399615_5 (cable_rank VARCHAR, episode_no VARCHAR)
SELECT COUNT(kickoff) FROM table_26275503_2 WHERE opponent = "Scottish Claymores"
How many different kickoffs happened when the opponent was the Scottish Claymores
CREATE TABLE table_26275503_2 (kickoff VARCHAR, opponent VARCHAR)
SELECT DISTINCT title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid EXCEPT SELECT t2.title FROM vocals AS t1 JOIN songs AS t2 ON t1.songid = t2.songid WHERE TYPE = "lead"
Find all the songs that do not have a lead vocal.
CREATE TABLE vocals ( songid VARCHAR ) CREATE TABLE songs ( title VARCHAR, songid VARCHAR )
SELECT airdate FROM table_24399615_5 WHERE episode_no = 6
When did episode number 6 air?
CREATE TABLE table_24399615_5 (airdate VARCHAR, episode_no VARCHAR)
SELECT MIN(enrollment) FROM table_26351260_1 WHERE institution = "Eastern Michigan University"
What is the lowest enrollment for Eastern Michigan University?
CREATE TABLE table_26351260_1 (enrollment INTEGER, institution VARCHAR)
SELECT "2010/ 11" FROM table_62376 WHERE "2011/ 12" = 'former non-ranking tournaments'
Which 2010/ 11 has a 2011/ 12 of former non-ranking tournaments?
CREATE TABLE table_62376 ( "1999/ 00" text, "2000/ 01" text, "2001/ 02" text, "2002/ 03" text, "2003/ 04" text, "2004/ 05" text, "2005/ 06" text, "2006/ 07" text, "2007/ 08" text, "2008/ 09" text, "2009/ 10" text, "2010/ 11" text, "2011/ 12" text, "2012/ 13" text )
SELECT COUNT(viewers) FROM table_24399615_4 WHERE bbc_three_weekly_ranking = "1"
How many items are listed under viewers column when the bbd three weekly ranking was 1?
CREATE TABLE table_24399615_4 (viewers VARCHAR, bbc_three_weekly_ranking VARCHAR)
SELECT team_nickname FROM table_26351260_1 WHERE institution = "Kent State University"
What is Kent State University's team nickname?
CREATE TABLE table_26351260_1 (team_nickname VARCHAR, institution VARCHAR)
SELECT "Virtue" FROM table_36358 WHERE "(Latin)" = 'acedia'
Which virtue is acedia(Latin)?
CREATE TABLE table_36358 ( "Virtue" text, "Latin" text, "Gloss" text, "(Vice)" text, "(Latin)" text )
SELECT MIN(episode_no) FROM table_24399615_4 WHERE cable_rank = "8"
What episode number had a cable ranking of 8?
CREATE TABLE table_24399615_4 (episode_no INTEGER, cable_rank VARCHAR)
SELECT COUNT(location) FROM table_26351260_1 WHERE institution = "Kent State University"
How many Kent State University's are there?
CREATE TABLE table_26351260_1 (location VARCHAR, institution VARCHAR)
SELECT home_team AS score FROM table_name_20 WHERE venue = "corio oval"
What was the home team's score at Corio Oval?
CREATE TABLE table_name_20 ( home_team VARCHAR, venue VARCHAR )
SELECT airdate FROM table_24399615_4 WHERE bbc_three_weekly_ranking = "N/A"
What date did the episode air that had n/a for it's bbc three weekly ranking?
CREATE TABLE table_24399615_4 (airdate VARCHAR, bbc_three_weekly_ranking VARCHAR)
SELECT location FROM table_26351260_1 WHERE team_nickname = "Bulldogs"
How many school teams are nicknamed "Bulldogs".
CREATE TABLE table_26351260_1 (location VARCHAR, team_nickname VARCHAR)
SELECT SUM("Grid") FROM table_5157 WHERE "Driver" = 'cristiano da matta' AND "Points" < '33'
Which Grid has a Driver of cristiano da matta, and Points smaller than 33?
CREATE TABLE table_5157 ( "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Points" real )
SELECT airdate FROM table_24399615_4 WHERE cable_rank = "17"
What date did the episode air that had a ranking of 17 for cable?
CREATE TABLE table_24399615_4 (airdate VARCHAR, cable_rank VARCHAR)
SELECT total FROM table_26375386_17 WHERE public = 4
If the public is 4, what is the total?
CREATE TABLE table_26375386_17 (total VARCHAR, public VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.diagnosis = "LEFT INTERNAL JUGULAR VEIN THROMBOSIS;LEFT ARM EDEMA"
How many married patients have left internal jugular vein thrombosis left arm edema as their primary disease?
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) 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 )
SELECT airdate FROM table_24399615_8 WHERE bbc_three_weekly_ranking = "3"
When 3 is the bbc three weekly ranking what is the airdate?
CREATE TABLE table_24399615_8 (airdate VARCHAR, bbc_three_weekly_ranking VARCHAR)
SELECT COUNT(result) FROM table_26375386_17 WHERE vote_percentage = "3.1%"
How many results where given for the vote percentage 3.1%?
CREATE TABLE table_26375386_17 (result VARCHAR, vote_percentage VARCHAR)
SELECT * FROM Users WHERE Location LIKE '%Frederick, MD%' ORDER BY Reputation DESC
Emacs users in Frederick, MD.
CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE ReviewTaskTypes ( 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 ) 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 CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ApprovalDate time, ApprovalModeratorId number, DeactivationDate time, DeactivationModeratorId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE VoteTypes ( Id number, Name 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 Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId 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 ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number )
SELECT airdate FROM table_24399615_8 WHERE cable_rank = "N/A" AND viewers = 656000
When 656000 is the amount of viewers and n/a is the cable rank what is the airdate?
CREATE TABLE table_24399615_8 (airdate VARCHAR, cable_rank VARCHAR, viewers VARCHAR)
SELECT couple FROM table_26375386_17 WHERE vote_percentage = "5.2%"
What couple had a vote percentage of 5.2%?
CREATE TABLE table_26375386_17 (couple VARCHAR, vote_percentage VARCHAR)
SELECT SUM("Matches") FROM table_71853 WHERE "High Score" = '299' AND "Innings" < '412'
What is the match total for a score over 299 and under 412 innings?
CREATE TABLE table_71853 ( "Matches" real, "Innings" real, "Not Out" real, "High Score" text, "Runs" real, "Average" real )
SELECT state_served FROM table_24415627_2 WHERE time_since_entry = "49years, 29days"
List the states that have entry times of 49years, 29days
CREATE TABLE table_24415627_2 (state_served VARCHAR, time_since_entry VARCHAR)
SELECT vote_percentage FROM table_26375386_18 WHERE couple = "Heather and Matt"
What was the vote % of Heather and Matt?
CREATE TABLE table_26375386_18 (vote_percentage VARCHAR, couple VARCHAR)
SELECT "city" FROM table_203_323 WHERE "end" - "begin" < 1
which two destinations were available for less than one year ?
CREATE TABLE table_203_323 ( id number, "city" text, "country" text, "airport" text, "begin" number, "end" number )
SELECT party FROM table_24415627_2 WHERE senator = "Dick Clark"
Of which part does congressman dick clark belong to?
CREATE TABLE table_24415627_2 (party VARCHAR, senator VARCHAR)
SELECT couple FROM table_26375386_18 WHERE result = "Bottom two"
Who was the couple on the bottom two?
CREATE TABLE table_26375386_18 (couple VARCHAR, result VARCHAR)
SELECT "1st Party" FROM table_71438 WHERE "2nd Member" = 'charles isaac elton'
What is the 1st party with Charles Isaac Elton as the 2nd member?
CREATE TABLE table_71438 ( "Election" text, "1st Member" text, "1st Party" text, "2nd Member" text, "2nd Party" text )
SELECT entered_senate FROM table_24415627_2 WHERE senator = "Joseph Tydings"
On what date did congressman joseph tydings enter take his seat?
CREATE TABLE table_24415627_2 (entered_senate VARCHAR, senator VARCHAR)
SELECT MAX(public) FROM table_26375386_18 WHERE couple = "Danniella and Matthew"
WHat was the max public with danniella and matthew?
CREATE TABLE table_26375386_18 (public INTEGER, couple VARCHAR)
SELECT MAX("Year") FROM table_11121 WHERE "Venue" = 'athens, greece'
What year is the event in athens, greece?
CREATE TABLE table_11121 ( "Year" real, "Tournament" text, "Venue" text, "Result" text, "Extra" text )
SELECT MIN(points) FROM table_24405773_1 WHERE poles = 0 AND races = 10
What are the lowest points when poles were 0 and races were 10?
CREATE TABLE table_24405773_1 (points INTEGER, poles VARCHAR, races VARCHAR)
SELECT market_share__overall_ FROM table_2639433_4 WHERE viewers__in_millions_overall_ = "1.83"
If the overall viewers were 1.83 millions, what was the overall market share?
CREATE TABLE table_2639433_4 (market_share__overall_ VARCHAR, viewers__in_millions_overall_ VARCHAR)
SELECT AVG("% 2006") FROM table_70957 WHERE "seats 2001" > '15' AND "% 2001" > '100'
When seats for 2001 is greater than 15 and % 2001 is greater than 100, what is the % 2006?
CREATE TABLE table_70957 ( "Parties and voter communities" text, "% 2006" real, "seats 2006" real, "% 2001" real, "seats 2001" real )
SELECT MAX(points) FROM table_24405773_1 WHERE flaps = 0
What was the highest number of points when flaps were 0?
CREATE TABLE table_24405773_1 (points INTEGER, flaps VARCHAR)
SELECT timeslot FROM table_2639433_4 WHERE episodes = 234
If the episode was number 234, what was it's timeslot?
CREATE TABLE table_2639433_4 (timeslot VARCHAR, episodes VARCHAR)
SELECT round FROM table_name_61 WHERE tournament = "paris"
What is Round, when Tournament is 'Paris'?
CREATE TABLE table_name_61 ( round VARCHAR, tournament VARCHAR )
SELECT 20 AS _questions FROM table_24425491_3 WHERE cover_model = "Pamela Horton"
Who played 20 questions during the issue in which Pamela Horton is on the cover?
CREATE TABLE table_24425491_3 (cover_model VARCHAR)
SELECT episodes FROM table_2639433_4 WHERE year = 2007
What episode came out in the year 2007?
CREATE TABLE table_2639433_4 (episodes VARCHAR, year VARCHAR)
SELECT a.Id AS "post_link", a.Score, au.Id AS "user_link" FROM Posts AS p JOIN Posts AS a ON p.Id = a.ParentId JOIN Users AS au ON a.OwnerUserId = au.Id WHERE p.PostTypeId = 1 AND p.OwnerUserId = '##UserId##' ORDER BY a.Score DESC
Who Answers My Questions? (Tutorial).
CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) 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 TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE 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 VoteTypes ( Id number, Name text ) CREATE TABLE ReviewTaskTypes ( 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 PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE 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 )
SELECT frequency FROM table_24418525_1 WHERE power_kw = "5kW"
When the power kw is 5kw, what is the frequency?
CREATE TABLE table_24418525_1 (frequency VARCHAR, power_kw VARCHAR)
SELECT timeslot FROM table_2639433_4 WHERE year = 2008
What was the timeslot for the episode in the year 2008?
CREATE TABLE table_2639433_4 (timeslot VARCHAR, year VARCHAR)
SELECT JOB_ID, SUM(EMPLOYEE_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY SUM(EMPLOYEE_ID)
For all employees who have the letters D or S in their first name, draw a bar chart about the distribution of job_id and the sum of employee_id , and group by attribute job_id, and order total number from low to high order please.
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) 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 countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE 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) )
SELECT callsign FROM table_24418525_1 WHERE coverage = "Dumaguete Central Visayas Region"
when coverage is dumaguete central visayas region, what is the callsign?
CREATE TABLE table_24418525_1 (callsign VARCHAR, coverage VARCHAR)
SELECT COUNT(market_share__target_group_14_49_) FROM table_2639433_4 WHERE viewers__in_millions_target_group_14_49_ = "0.63"
How many times was the viewer target group 0.63?
CREATE TABLE table_2639433_4 (market_share__target_group_14_49_ VARCHAR, viewers__in_millions_target_group_14_49_ VARCHAR)
SELECT no FROM table_11545282_10 WHERE school_club_team = "Ohio"
What number does the player from Ohio play with?
CREATE TABLE table_11545282_10 ( no VARCHAR, school_club_team VARCHAR )
SELECT COUNT(power_kw) FROM table_24418525_1 WHERE coverage = "Dumaguete Central Visayas Region"
How much power covers dumaguete central visayas region?
CREATE TABLE table_24418525_1 (power_kw VARCHAR, coverage VARCHAR)
SELECT role_s_ FROM table_26397277_3 WHERE pick__number = 17
Name the role for pick number 17
CREATE TABLE table_26397277_3 (role_s_ VARCHAR, pick__number VARCHAR)
SELECT "Date" FROM table_13951 WHERE "Tournament" = 'joué-lès-tours'
what is the date for the tournament jou -l s-tours?
CREATE TABLE table_13951 ( "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text )
SELECT frequency FROM table_24418525_1 WHERE coverage = "Mega Manila"
What frequency is mega manila set to?
CREATE TABLE table_24418525_1 (frequency VARCHAR, coverage VARCHAR)
SELECT brand__to_ FROM table_26397277_3 WHERE pick__number = 15
Name the brand for pick number 15
CREATE TABLE table_26397277_3 (brand__to_ VARCHAR, pick__number VARCHAR)
SELECT "Intelligence" FROM table_2150 WHERE "Thought" = '思 sī, "thought'
What is the intelligence os the one that has s , 'thought'?
CREATE TABLE table_2150 ( "Shekhina:" text, "Reason" text, "Mind" text, "Intelligence" text, "Thought" text, "Understanding" text )
SELECT original_air_date FROM table_24425976_2 WHERE production_code = "108"
What original air date was for the episode with production code of 108?
CREATE TABLE table_24425976_2 (original_air_date VARCHAR, production_code VARCHAR)
SELECT employee__real_name_ FROM table_26397277_3 WHERE brand__from_ = "Raw" AND role_s_ = "Superstar"
Name the employee real name for raw and superstar
CREATE TABLE table_26397277_3 (employee__real_name_ VARCHAR, brand__from_ VARCHAR, role_s_ VARCHAR)