answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT × FROM table_26173063_2 WHERE faisaly = "0-0"
what is x when faisaly is 0-0?
CREATE TABLE table_26173063_2 ( × VARCHAR, faisaly VARCHAR )
SELECT college FROM table_26996293_1 WHERE position = "DE"
What college did the player who played DE go to?
CREATE TABLE table_26996293_1 (college VARCHAR, position VARCHAR)
SELECT mountains_classification FROM table_name_81 WHERE team_classification = "quick step"
Which Mountains classification has a Team classification of quick step?
CREATE TABLE table_name_81 (mountains_classification VARCHAR, team_classification VARCHAR)
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT inputevents_cv.itemid FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19428)) AND DATETIME(inputevents_cv.charttime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-1 day') ORDER BY inputevents_cv.charttime LIMIT 1)
what is the name of the intake that patient 19428 first had the previous day?
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 inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age number ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod 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 outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE 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 cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) 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 microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text )
SELECT MAX(pick__number) FROM table_26996293_1 WHERE player = "Barry Jamieson"
What was Barry Jamieson's pick number?
CREATE TABLE table_26996293_1 (pick__number INTEGER, player VARCHAR)
SELECT team_classification FROM table_name_28 WHERE combination_classification = "egoi martínez" AND winner = "tom boonen"
Which Team classification has a Combination classification of egoi martínez, and a Winner of tom boonen?
CREATE TABLE table_name_28 (team_classification VARCHAR, combination_classification VARCHAR, winner VARCHAR)
SELECT MIN(attendance) FROM table_24786958_2 WHERE game_site = "Jahn-Sportpark"
How many people attended the game at Jahn-sportpark?
CREATE TABLE table_24786958_2 ( attendance INTEGER, game_site VARCHAR )
SELECT college FROM table_26996293_1 WHERE player = "Bob LaRose"
What college did Bob Larose attend?
CREATE TABLE table_26996293_1 (college VARCHAR, player VARCHAR)
SELECT combination_classification FROM table_name_17 WHERE stage = "14"
Which Combination classification has a Stage of 14?
CREATE TABLE table_name_17 (combination_classification VARCHAR, stage VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "2182" AND prescriptions.route = "INHALATION"
provide the number of patients whose year of birth is less than 2182 and drug route is inhalation?
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location text, discharge_location text, diagnosis text, dod text, dob_year text, dod_year text, admittime text, dischtime text, admityear text ) 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 )
SELECT player FROM table_26996293_2 WHERE college = "British Columbia"
where college is british columbia what are all the player
CREATE TABLE table_26996293_2 (player VARCHAR, college VARCHAR)
SELECT mountains_classification FROM table_name_42 WHERE general_classification = "egoi martínez" AND stage = "9"
Which Mountains classification has a General classification of egoi martínez, and a Stage of 9?
CREATE TABLE table_name_42 (mountains_classification VARCHAR, general_classification VARCHAR, stage VARCHAR)
SELECT "Place" FROM table_40464 WHERE "Season" = '8' AND "Rank by average" = '139'
What was the place in season 8 with a rank by average at 139?
CREATE TABLE table_40464 ( "Rank by average" text, "Place" text, "Perfect 40s" text, "Total" text, "Number of dances" text, "Season" text, "Average" text )
SELECT pick__number FROM table_26996293_2 WHERE college = "St. Francis Xavier"
where college is st. francis xavier what are all the pick #
CREATE TABLE table_26996293_2 (pick__number VARCHAR, college VARCHAR)
SELECT mountains_classification FROM table_name_48 WHERE points_classification = "not awarded"
Which Mountains classification has Points classification of not awarded?
CREATE TABLE table_name_48 (mountains_classification VARCHAR, points_classification VARCHAR)
SELECT "Date Released" FROM table_19475 WHERE "Green-Communist" = '8.9%'
When was there 8.9% Green-Communist?
CREATE TABLE table_19475 ( "Date Released" text, "Polling institute" text, "Socialist" text, "Social Democratic" text, "Peoples Party" text, "Green-Communist" text, "Left Bloc" text, "Lead" text )
SELECT position FROM table_26996293_2 WHERE player = "Jim Henshall"
player is jim henshall what are all the position
CREATE TABLE table_26996293_2 (position VARCHAR, player VARCHAR)
SELECT subtitles FROM table_name_85 WHERE classifaction = "15"
What subtitles have 15 as the classification?
CREATE TABLE table_name_85 (subtitles VARCHAR, classifaction VARCHAR)
SELECT bob_dole FROM table_name_67 WHERE george_hw_bush = "81%" AND pat_robertson = "9%"
When George H.W. Bush had 81%, and Pat Robertson had 9%, what did Bob Dole have?
CREATE TABLE table_name_67 ( bob_dole VARCHAR, george_hw_bush VARCHAR, pat_robertson VARCHAR )
SELECT position FROM table_26996293_2 WHERE cfl_team = "Edmonton (2)"
where cfl team is edmonton (2) what are all the position
CREATE TABLE table_26996293_2 (position VARCHAR, cfl_team VARCHAR)
SELECT country FROM table_name_34 WHERE publisher = "deltamac (hk)"
What country has deltamac (hk) as the publisher?
CREATE TABLE table_name_34 (country VARCHAR, publisher VARCHAR)
SELECT "Score" FROM table_31873 WHERE "Date" = '30 april 1977'
I want the score for 30 april 1977
CREATE TABLE table_31873 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT player FROM table_26996293_2 WHERE cfl_team = "Winnipeg (3) via Hamilton"
where cfl team is winnipeg (3) via hamilton what are all the player
CREATE TABLE table_26996293_2 (player VARCHAR, cfl_team VARCHAR)
SELECT release_date FROM table_name_61 WHERE subtitles = "english" AND publisher = "magna pacific"
What is the release date that has english as the subtitles, and magna pacific as the publisher?
CREATE TABLE table_name_61 (release_date VARCHAR, subtitles VARCHAR, publisher VARCHAR)
SELECT "title" FROM table_204_228 WHERE "title" IN ('undefeated', 'freakonomics') AND "year" = 2011
which was released in 2011 , undefeated or freakonomics ?
CREATE TABLE table_204_228 ( id number, "year" number, "title" text, "credit" text, "role" text, "notes" text )
SELECT COUNT(cfl_team) FROM table_26996293_3 WHERE college = "Mount Allison"
How many CFL teams drafted someone from mount allison college?
CREATE TABLE table_26996293_3 (cfl_team VARCHAR, college VARCHAR)
SELECT classifaction FROM table_name_55 WHERE language = "cantonese" AND publisher = "universal pictures japan"
What classification has cantonese as the language, and universal pictures japan as the publisher?
CREATE TABLE table_name_55 (classifaction VARCHAR, language VARCHAR, publisher VARCHAR)
SELECT team FROM table_name_11 WHERE year = 1999 AND versus = "zimbabwe"
what team played against zimbabwe in 1999?
CREATE TABLE table_name_11 ( team VARCHAR, year VARCHAR, versus VARCHAR )
SELECT player FROM table_26996293_3 WHERE position = "OG"
What player drafted was an OG?
CREATE TABLE table_26996293_3 (player VARCHAR, position VARCHAR)
SELECT sound FROM table_name_77 WHERE language = "cantonese" AND classifaction = "n/a" AND publisher = "spectrum dvd"
What sound has cantonese as the language, N/A as the classification, and spectrum dvd as the publisher?
CREATE TABLE table_name_77 (sound VARCHAR, publisher VARCHAR, language VARCHAR, classifaction VARCHAR)
SELECT "Skip" FROM table_43402 WHERE "Nation" = 'germany'
What was the Skip for Germany?
CREATE TABLE table_43402 ( "Nation" text, "Skip" text, "Third" text, "Second" text, "Lead" text, "Alternate" text, "Club" text )
SELECT position FROM table_26996293_7 WHERE player = "Bill Simmons"
What is the position of the player bill simmons?
CREATE TABLE table_26996293_7 (position VARCHAR, player VARCHAR)
SELECT language FROM table_name_52 WHERE publisher = "20th century fox"
What language has 20th century fox as the publisher?
CREATE TABLE table_name_52 (language VARCHAR, publisher VARCHAR)
SELECT SUM("Gold") FROM table_7750 WHERE "Total" < '1'
What is the sum of Gold, when Total is less than 1?
CREATE TABLE table_7750 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT position FROM table_26996293_7 WHERE cfl_team = "Saskatchewan (7)"
What is the position of cfl team saskatchewan (7)?
CREATE TABLE table_26996293_7 (position VARCHAR, cfl_team VARCHAR)
SELECT m939_series FROM table_name_54 WHERE m809_series = "m817" AND m39_series = "m51"
Name the M939 series with M809 series of m817 and M39 series of m51
CREATE TABLE table_name_54 (m939_series VARCHAR, m809_series VARCHAR, m39_series VARCHAR)
SELECT MAX("Total") FROM table_69574 WHERE "Finish" = 't12'
What is the highest total with a t12 finish?
CREATE TABLE table_69574 ( "Player" text, "Country" text, "Year(s) Won" text, "Total" real, "To par" text, "Finish" text )
SELECT COUNT(pick__number) FROM table_26996293_7 WHERE player = "Brian Currie"
How many times was player brian currie picked?
CREATE TABLE table_26996293_7 (pick__number VARCHAR, player VARCHAR)
SELECT m809_series FROM table_name_88 WHERE m939_series = "m931/932"
Name the M809 seris with M939 series of M931/932
CREATE TABLE table_name_88 (m809_series VARCHAR, m939_series VARCHAR)
SELECT "Result" FROM table_12454 WHERE "Week" = '1'
What is the result week 1?
CREATE TABLE table_12454 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "Attendance" real )
SELECT position FROM table_26996293_7 WHERE pick__number = 54
What position was pick # 54?
CREATE TABLE table_26996293_7 (position VARCHAR, pick__number VARCHAR)
SELECT m809_series FROM table_name_76 WHERE wheelbase = "short" AND m939_series = "m931/932"
Name the M809 series for short wheelbase and M939 series of M931/932
CREATE TABLE table_name_76 (m809_series VARCHAR, wheelbase VARCHAR, m939_series VARCHAR)
SELECT "flight" FROM table_203_538 ORDER BY "date" DESC LIMIT 1
what h ii flight took place last ?
CREATE TABLE table_203_538 ( id number, "flight" text, "date" text, "payload nickname" text, "payload" text, "orbit" text, "result" text )
SELECT pick__number FROM table_26996293_7 WHERE cfl_team = "BC Lions (7)"
What is the pick # of cfl team bc lions (7)
CREATE TABLE table_26996293_7 (pick__number VARCHAR, cfl_team VARCHAR)
SELECT type FROM table_name_16 WHERE m809_series = "m814"
Name the type with M809 series of m814
CREATE TABLE table_name_16 (type VARCHAR, m809_series VARCHAR)
SELECT main_developer FROM table_12887260_1 WHERE first_release = 1991 AND console = "Mega Drive/Genesis"
Which main developer made their first release in 1991 and created the Mega Drive/Genesis console?
CREATE TABLE table_12887260_1 ( main_developer VARCHAR, first_release VARCHAR, console VARCHAR )
SELECT college FROM table_26996293_7 WHERE player = "Terry Moss"
What is the college where player terry moss attended?
CREATE TABLE table_26996293_7 (college VARCHAR, player VARCHAR)
SELECT m939_series FROM table_name_95 WHERE wheelbase = "short" AND m809_series = "m817"
Name the M939 series for short wheelbase and M809 series of m817
CREATE TABLE table_name_95 (m939_series VARCHAR, wheelbase VARCHAR, m809_series VARCHAR)
SELECT "Opponent" FROM table_8055 WHERE "Opponents" = '16'
Who is the opponent with 16 points?
CREATE TABLE table_8055 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Falcons points" real, "Opponents" real, "Record" text )
SELECT outgoing_manager FROM table_26998135_2 WHERE team = "Kasımpaşa"
What is the outgoing manager for the team kasımpaşa?
CREATE TABLE table_26998135_2 (outgoing_manager VARCHAR, team VARCHAR)
SELECT m939_series FROM table_name_84 WHERE m809_series = "m817" AND wheelbase = "short"
Name the M939 series for short wheelbase and M809 series of m817
CREATE TABLE table_name_84 (m939_series VARCHAR, m809_series VARCHAR, wheelbase VARCHAR)
SELECT extra_points FROM table_25724294_2 WHERE player = "Jack Loell"
Jack Loell had how many extra points?
CREATE TABLE table_25724294_2 ( extra_points VARCHAR, player VARCHAR )
SELECT replaced_by FROM table_26998135_2 WHERE date_of_vacancy = "27 December 2010"
Who is the replaced by when the date of vacancy is 27 december 2010?
CREATE TABLE table_26998135_2 (replaced_by VARCHAR, date_of_vacancy VARCHAR)
SELECT opponent FROM table_name_92 WHERE result = "w 38-14"
Who was the opponent at the game with a result of W 38-14?
CREATE TABLE table_name_92 (opponent VARCHAR, result VARCHAR)
SELECT MAX(Semi) - final_losses FROM table_17751942_4 WHERE team = "Kitchener Rangers"
What is the total number of semi-final losses for the Kitchener Rangers?
CREATE TABLE table_17751942_4 ( final_losses VARCHAR, Semi INTEGER, team VARCHAR )
SELECT manner_of_departure FROM table_26998135_2 WHERE date_of_appointment = "24 May 2010"
What is the manner of departure for the date of appointment 24 may 2010?
CREATE TABLE table_26998135_2 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT time FROM table_name_2 WHERE nfl_recap = "recap" AND result = "w 22–16"
What was the time of the game that had an NFL recap and a result of W 22–16?
CREATE TABLE table_name_2 (time VARCHAR, nfl_recap VARCHAR, result VARCHAR)
SELECT senator FROM table_1133844_4 WHERE state__linked_to_summaries_below_ = "Arkansas"
who won the senate seat in arkansas
CREATE TABLE table_1133844_4 ( senator VARCHAR, state__linked_to_summaries_below_ VARCHAR )
SELECT date_of_appointment FROM table_26998135_2 WHERE outgoing_manager = "Mustafa Denizli"
What is the date of appointment when the outgoing manager was mustafa denizli?
CREATE TABLE table_26998135_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
SELECT year FROM table_name_11 WHERE label = "cryptogramophon"
what year was cryptogramophon released
CREATE TABLE table_name_11 (year VARCHAR, label VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "41" AND lab.fluid = "Pleural"
give me the number of patients whose age is less than 41 and lab test fluid is pleural?
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 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 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 )
SELECT date_of_appointment FROM table_26998135_2 WHERE date_of_vacancy = "15 March 2011"
What is the date of appointment when the date of vacancy is 15 march 2011?
CREATE TABLE table_26998135_2 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR)
SELECT MAX(wins) FROM table_name_71 WHERE manufacturer = "honda" AND rank = 8
Manufacturer of honda, and a Rank of 8 had what highest wins?
CREATE TABLE table_name_71 (wins INTEGER, manufacturer VARCHAR, rank VARCHAR)
SELECT "Place" FROM table_68437 WHERE "Season" = '1996' AND "Location" = 'lake louise, canada'
What place result was the 1996 season at Lake Louise, Canada?
CREATE TABLE table_68437 ( "Season" real, "Date" text, "Location" text, "Race" text, "Place" text )
SELECT MIN(population) FROM table_27003223_4 WHERE democratic = "28.0%"
What is the lowest population in which 28.0% are democrat?
CREATE TABLE table_27003223_4 (population INTEGER, democratic VARCHAR)
SELECT rider FROM table_name_64 WHERE points > 108 AND wins = 0 AND rank < 8 AND manufacturer = "honda"
Points larger than 108, and a Wins of 0, and a Rank smaller than 8, and a Manufacturer of honda is what rider?
CREATE TABLE table_name_64 (rider VARCHAR, manufacturer VARCHAR, rank VARCHAR, points VARCHAR, wins VARCHAR)
SELECT "Years" FROM table_33869 WHERE "Goals" = '36'
What years had players who scored 36 goals?
CREATE TABLE table_33869 ( "Rank" text, "Player" text, "Goals" text, "Assists" text, "Points" text, "Years" text )
SELECT democratic FROM table_27003223_4 WHERE registered_voters = "67.8%"
what is the percentage of democratic voters in which the registered voters is 67.8%?
CREATE TABLE table_27003223_4 (democratic VARCHAR, registered_voters VARCHAR)
SELECT MIN(points) FROM table_name_84 WHERE rider = "stéphane mertens"
Rider of stéphane mertens had what lowest points?
CREATE TABLE table_name_84 (points INTEGER, rider VARCHAR)
SELECT source FROM table_name_8 WHERE race_winners = "ben adriaenssen / ben van den bogaart" AND gp_winner = "ben adriaenssen / ben van den bogaart" AND date = "1 april"
What source has a race winner of ben adriaenssen / ben van den bogaart, and the gp winner of ben adriaenssen / ben van den bogaart, for the date of 1 april?
CREATE TABLE table_name_8 ( source VARCHAR, date VARCHAR, race_winners VARCHAR, gp_winner VARCHAR )
SELECT registered_voters FROM table_27003223_4 WHERE d_r_spread = "+10.4%"
What is the percentage of registered voters in which the d-r spread is +10.4%?
CREATE TABLE table_27003223_4 (registered_voters VARCHAR, d_r_spread 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 "days held" FROM table_204_23 WHERE "#" = 1
what is the total days held on # 1st ?
CREATE TABLE table_204_23 ( id number, "#" number, "wrestlers" text, "reign" number, "date" text, "days held" number, "location" text, "event" text, "notes" text )
SELECT registered_voters FROM table_27003223_4 WHERE d_r_spread = "+14.3%"
What is the percentage of registered voters in which the d-r spread is +14.3%?
CREATE TABLE table_27003223_4 (registered_voters VARCHAR, d_r_spread VARCHAR)
SELECT SUM(wins) FROM table_name_82 WHERE points = 26 AND rank < 27
Points of 26, and a Rank smaller than 27 had what sum of wins?
CREATE TABLE table_name_82 (wins INTEGER, points VARCHAR, rank VARCHAR)
SELECT length FROM table_name_88 WHERE track = "16"
What is the lengtho f track 16?
CREATE TABLE table_name_88 ( length VARCHAR, track VARCHAR )
SELECT republican FROM table_27003223_4 WHERE d_r_spread = "-14.1%"
What is the percentage of republican voters in which the d-r spread is -14.1%?
CREATE TABLE table_27003223_4 (republican VARCHAR, d_r_spread VARCHAR)
SELECT ret_number FROM table_name_63 WHERE records = "4"
what pitcher scored 4
CREATE TABLE table_name_63 (ret_number VARCHAR, records VARCHAR)
SELECT "Category" FROM table_62276 WHERE "Result" = 'nominated' AND "Award" = 'drama desk award' AND "Nominee" = 'nathan lane'
What is Category, when Result is 'Nominated', when Award is 'Drama Desk Award', and when Nominee is 'Nathan Lane'?
CREATE TABLE table_62276 ( "Year" real, "Award" text, "Category" text, "Nominee" text, "Result" text )
SELECT no_party_preference FROM table_27003223_4 WHERE democratic = "24.8%"
What is the percentage of "no party preference" where the democratic percentage is 24.8%?
CREATE TABLE table_27003223_4 (no_party_preference VARCHAR, democratic VARCHAR)
SELECT AVG(rank) FROM table_name_81 WHERE name = "karen frohner" AND points < 1266
What was the rank for karen frohner with under 1266 points?
CREATE TABLE table_name_81 (rank INTEGER, name VARCHAR, points VARCHAR)
SELECT Id AS "post_link", FavoriteCount, Score, CreationDate FROM Posts WHERE (PostTypeId = 1) AND (NOT ClosedDate IS NULL) AND (FavoriteCount > 0) ORDER BY CreationDate DESC
Questions which are closed and favorited.
CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, 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 SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress 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 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 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 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 PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId 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 ReviewTaskTypes ( Id number, Name text, Description text )
SELECT COUNT(train_no) FROM table_27011761_2 WHERE departure = "17:30"
How many trains depart at 17:30?
CREATE TABLE table_27011761_2 (train_no VARCHAR, departure VARCHAR)
SELECT games_covered FROM table_name_41 WHERE round = "divisional finals"
What Games covered had a round of divisional finals?
CREATE TABLE table_name_41 (games_covered VARCHAR, round VARCHAR)
SELECT MIN(rank) FROM table_name_24 WHERE gross = "$54,215,416"
Which Rank is the lowest one that has a Gross of $54,215,416?
CREATE TABLE table_name_24 ( rank INTEGER, gross VARCHAR )
SELECT COUNT(train_no) FROM table_27011761_2 WHERE arrival = "11:00"
How many trains arrive at 11:00?
CREATE TABLE table_27011761_2 (train_no VARCHAR, arrival VARCHAR)
SELECT COUNT(apps) FROM table_name_69 WHERE national_team = "brazil" AND club = "internazionale"
What is the number of Apps for Internazionale Club of Brazil?
CREATE TABLE table_name_69 (apps VARCHAR, national_team VARCHAR, club VARCHAR)
SELECT "opponent" FROM table_204_123 ORDER BY "results\nfinal score" LIMIT 1
which opponent had the lowest amount of points in one game ?
CREATE TABLE table_204_123 ( id number, "week" number, "date" text, "kickoff" text, "opponent" text, "results\nfinal score" text, "results\nteam record" text, "game site" text, "attendance" number )
SELECT no_party_preference FROM table_27003186_3 WHERE city = "Murrieta"
What is the no party preference when the city is murrieta?
CREATE TABLE table_27003186_3 (no_party_preference VARCHAR, city VARCHAR)
SELECT season FROM table_name_90 WHERE apps > 2 AND club = "internazionale"
In what Season does the Internazionale Club have more than 2 Apps?
CREATE TABLE table_name_90 (season VARCHAR, apps VARCHAR, club 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 = 'MILWAUKEE' 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 = 'PHOENIX' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code
give me the flights from PHOENIX to MILWAUKEE on wednesday
CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight 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 equipment_sequence ( aircraft_code_sequence varchar, aircraft_code 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 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 ( 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 time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE time_interval ( period text, begin_time int, end_time 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 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_fare ( flight_id int, fare_id int ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_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 )
SELECT no_party_preference FROM table_27003186_3 WHERE other = "10.1%"
What is the no party preference when other is 10.1%?
CREATE TABLE table_27003186_3 (no_party_preference VARCHAR, other VARCHAR)
SELECT group FROM table_name_61 WHERE year = 2010 AND award = "best international actress"
For which group was Kim nominated in 2010 for Best International Actress?
CREATE TABLE table_name_61 (group VARCHAR, year VARCHAR, award VARCHAR)
SELECT MIN("District") FROM table_23331 WHERE "Residence" = 'Newtown Square'
Name the district for newtown square
CREATE TABLE table_23331 ( "District" real, "Representative" text, "Party" text, "Residence" text, "Counties represented" text, "Term ends" real, "First Elected" real )
SELECT no_party_preference FROM table_27003186_3 WHERE republican = "45.3%"
What is the no party preference when republican is 45.3%?
CREATE TABLE table_27003186_3 (no_party_preference VARCHAR, republican VARCHAR)
SELECT result FROM table_name_91 WHERE film_series = "thirst" AND year = 2010 AND group = "green globe film awards"
What was the result for Thirst in 2010 at the Green Globe Film Awards?
CREATE TABLE table_name_91 (result VARCHAR, group VARCHAR, film_series VARCHAR, year VARCHAR)
SELECT 2005 FROM table_name_59 WHERE win__percentage = "82.61"
WHat in 2005 has a Win % of 82.61?
CREATE TABLE table_name_59 ( win__percentage VARCHAR )
SELECT other FROM table_27003186_3 WHERE no_party_preference = "19.1%"
What is other when no party preference is 19.1%?
CREATE TABLE table_27003186_3 (other VARCHAR, no_party_preference VARCHAR)
SELECT COUNT(year) FROM table_name_78 WHERE group = "sitges film festival"
What is the number of years that Kim was nominated at the Sitges Film Festival?
CREATE TABLE table_name_78 (year VARCHAR, group VARCHAR)
SELECT DISTINCT course.name, course.number, semester.semester, semester.year FROM course, course_offering, semester WHERE ((semester.semester = 'FA' AND semester.year = 2016) OR (semester.semester = 'FA' AND semester.year = 2017) OR (semester.semester = 'FA' AND semester.year = 2018) OR (semester.semester = 'WN' AND semester.year = 2017) OR (semester.semester = 'WN' AND semester.year = 2018) OR (semester.semester = 'WN' AND semester.year = 2019)) AND course.course_id = course_offering.course_id AND course.department = 'EECS' AND semester.semester_id = course_offering.semester ORDER BY semester.year, semester.semester
Which courses are offered in the next 6 semesters ?
CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, internship varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varchar, has_projects varchar, has_exams varchar, num_reviews int, clarity_score int, easiness_score int, helpfulness_score int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_project varchar, has_final_exam varchar, textbook varchar, class_address varchar, allow_audit varchar ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy_assignments int, respected int, participation int, heavy_reading int, tough_grader int, hilarious int, would_take_again int, good_lecture int, no_skip int ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar )