answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT nationality FROM table_2679061_9 WHERE player = "Cliff Abrecht"
What was the nationality of player Cliff Abrecht?
CREATE TABLE table_2679061_9 (nationality VARCHAR, player VARCHAR)
SELECT matches_w_l FROM table_name_64 WHERE players = "judith wiesner and alex antonitsch"
Players of judith wiesner and alex antonitsch had what match w-l?
CREATE TABLE table_name_64 (matches_w_l VARCHAR, players VARCHAR)
SELECT Team_ID, School_ID FROM basketball_match GROUP BY Team_Name
Visualize a scatter chart about the correlation between Team_ID and School_ID , and group by attribute Team_Name.
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text )
SELECT MAX(poles) FROM table_26794530_1
What is the highest number of poles?
CREATE TABLE table_26794530_1 (poles INTEGER)
SELECT matches_w_l FROM table_name_20 WHERE placing = 3
Placing of 3 had what match w-l?
CREATE TABLE table_name_20 (matches_w_l VARCHAR, placing VARCHAR)
SELECT location FROM table_name_23 WHERE name = "telmatosaurus"
What is the Location when the name is telmatosaurus?
CREATE TABLE table_name_23 ( location VARCHAR, name VARCHAR )
SELECT COUNT(f_laps) FROM table_26794530_1 WHERE points = "170"
How many f/laps were there when he scored 170 points?
CREATE TABLE table_26794530_1 (f_laps VARCHAR, points VARCHAR)
SELECT seeding FROM table_name_41 WHERE matches_w_l = "1-2" AND team = "spain"
Matches W-L of 1-2, and a Team of spain had what seeding?
CREATE TABLE table_name_41 (seeding VARCHAR, matches_w_l VARCHAR, team VARCHAR)
SELECT MIN("Rank Subcontinent") FROM table_25049 WHERE "Country" = 'Bangladesh'
Name the least rank subcontinent for bangladesh
CREATE TABLE table_25049 ( "Rank Subcontinent" real, "Rank Asia" real, "Rank World" real, "Country" text, "2011 GDP (PPP) billions of USD" text )
SELECT points FROM table_26794530_1 WHERE final_placing = "13th" AND races = 30
When there were 30 races and the final placing was 13th, how many points were scored?
CREATE TABLE table_26794530_1 (points VARCHAR, final_placing VARCHAR, races VARCHAR)
SELECT AVG(year) FROM table_name_67 WHERE notes = "bbc radio 4" AND director = "peter kavanagh"
Notes of bbc radio 4, and a Director of peter kavanagh includes which average year?
CREATE TABLE table_name_67 (year INTEGER, notes VARCHAR, director VARCHAR)
SELECT home_team FROM table_name_89 WHERE away_team = "preston north end"
Who is the home team when Preston North End is the away team?
CREATE TABLE table_name_89 ( home_team VARCHAR, away_team VARCHAR )
SELECT nhl_team FROM table_2679061_8 WHERE pick__number = 155
What club is associated with draft number 155?
CREATE TABLE table_2679061_8 (nhl_team VARCHAR, pick__number VARCHAR)
SELECT MIN(year) FROM table_name_49 WHERE title = "the angry brigade"
Title of the angry brigade involves which lowest year?
CREATE TABLE table_name_49 (year INTEGER, title VARCHAR)
SELECT T2.Name, COUNT(T2.Name) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name DESC
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the amount of name , and group by attribute name, and rank from high to low by the bars please.
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 production_code FROM table_26801821_1 WHERE no_in_series = 5
What is the production code for the number 5 series ?
CREATE TABLE table_26801821_1 (production_code VARCHAR, no_in_series VARCHAR)
SELECT notes FROM table_name_35 WHERE year > 2008
Year larger than 2008 includes which notes?
CREATE TABLE table_name_35 (notes VARCHAR, year INTEGER)
SELECT COUNT("Byes") FROM table_65612 WHERE "Wins" < '11' AND "Wimmera FL" = 'minyip murtoa' AND "Losses" < '6'
How many Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa, and Losses smaller than 6?
CREATE TABLE table_65612 ( "Wimmera FL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real )
SELECT COUNT(no_in_series) FROM table_26801821_1 WHERE written_by = "Teresa Lin"
What is the number of the series written by Teresa Lin?
CREATE TABLE table_26801821_1 (no_in_series VARCHAR, written_by VARCHAR)
SELECT director FROM table_name_74 WHERE notes = "bbc radio 3" AND title = "carnival"
Notes of bbc radio 3, and a Title of carnival involves which director?
CREATE TABLE table_name_74 (director VARCHAR, notes VARCHAR, title VARCHAR)
SELECT year_of_previous_participation FROM table_2518850_4 WHERE prefecture = "Kagoshima"
What was the year of previous participation for the school in the Kagoshima prefecture?
CREATE TABLE table_2518850_4 ( year_of_previous_participation VARCHAR, prefecture VARCHAR )
SELECT MAX(series__number) FROM table_26808178_3 WHERE us_viewers__millions_ = "0.852"
Which series # had 0.852 U.S. viewers(millions)?
CREATE TABLE table_26808178_3 (series__number INTEGER, us_viewers__millions_ VARCHAR)
SELECT song_choice FROM table_name_26 WHERE theme = "free choice" AND result = "through to bootcamp"
What was the song choice when the theme was free choice and Adeleye made it through to bootcamp?
CREATE TABLE table_name_26 (song_choice VARCHAR, theme VARCHAR, result VARCHAR)
SELECT written_by FROM table_16617025_1 WHERE season__number = 8
Who wrote Season 8?
CREATE TABLE table_16617025_1 ( written_by VARCHAR, season__number VARCHAR )
SELECT original_air_date FROM table_26808178_3 WHERE us_viewers__millions_ = "0.871"
Which original air date had 0.871 U.S. viewers (millions)?
CREATE TABLE table_26808178_3 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT result FROM table_name_93 WHERE week = "week 2"
What was the result of week 2?
CREATE TABLE table_name_93 (result VARCHAR, week VARCHAR)
SELECT admissions.subject_id FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'b-complex defic nec') AND STRFTIME('%y', diagnoses_icd.charttime) = '2101')
show me the patient ids who are diagnosed with b-complex defic nec in 2101.
CREATE TABLE d_labitems ( row_id number, itemid number, label 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 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 inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value 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 procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE 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 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 d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom 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 transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time )
SELECT MAX(series__number) FROM table_26808178_3 WHERE us_viewers__millions_ = "0.645"
Which series # had 0.645 U.S. viewers(millions)?
CREATE TABLE table_26808178_3 (series__number INTEGER, us_viewers__millions_ VARCHAR)
SELECT theme FROM table_name_38 WHERE week = "week 3"
What was the theme for week 3?
CREATE TABLE table_name_38 (theme VARCHAR, week VARCHAR)
SELECT "Home team" FROM table_55148 WHERE "Away team score" = '18.14 (122)'
Which team has an away score of 18.14 (122)?
CREATE TABLE table_55148 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT wins FROM table_26815674_1 WHERE final_placing = "12th"
When 12th is the final placing what is the wins?
CREATE TABLE table_26815674_1 (wins VARCHAR, final_placing VARCHAR)
SELECT theme FROM table_name_93 WHERE week = "final showdown (week 3)"
What was the theme for the final showdown (week 3)?
CREATE TABLE table_name_93 (theme VARCHAR, week VARCHAR)
SELECT "player" FROM table_204_188 ORDER BY "rank" LIMIT 1
who was the highest ranking player to withdraw from the 2010 french open tournament ?
CREATE TABLE table_204_188 ( id number, "rank" number, "player" text, "points" number, "points defending" number, "points won" number, "new points" number, "withdrew due to" text )
SELECT COUNT(wins) FROM table_26815674_1 WHERE final_placing = "24th"
When 24th is the final placing how many wins are there?
CREATE TABLE table_26815674_1 (wins VARCHAR, final_placing VARCHAR)
SELECT score FROM table_name_17 WHERE opponent = "florida panthers" AND game = 2
What was the score of Game 2 in the series against the Florida Panthers?
CREATE TABLE table_name_17 (score VARCHAR, opponent VARCHAR, game VARCHAR)
SELECT aorist FROM table_27298240_26 WHERE present = "bude"
What aorist has bude in present tense?
CREATE TABLE table_27298240_26 ( aorist VARCHAR, present VARCHAR )
SELECT MIN(wins) FROM table_26815674_1
What is the lowest overall amount of wins?
CREATE TABLE table_26815674_1 (wins INTEGER)
SELECT score FROM table_name_91 WHERE record = "7-5"
What was the score of the game that led to a 7-5 record?
CREATE TABLE table_name_91 (score VARCHAR, record VARCHAR)
SELECT date_aired FROM table_name_90 WHERE network = "rtl televizija"
Which date was the show aired on the RTL Televizija network?
CREATE TABLE table_name_90 ( date_aired VARCHAR, network VARCHAR )
SELECT original_air_date FROM table_26824484_1 WHERE production_code = "3AKY05"
What date did the episode with production code 3aky05 air?
CREATE TABLE table_26824484_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT name FROM table_name_4 WHERE position = "tight end" AND round > 3
Which player is a tight end with a round higher than 3?
CREATE TABLE table_name_4 (name VARCHAR, position VARCHAR, round VARCHAR)
SELECT "Country" FROM table_61581 WHERE "Year(s) won" = '1988'
Which country won in 1988?
CREATE TABLE table_61581 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text )
SELECT title FROM table_26824484_1 WHERE directed_by = "Jeff Woolnough" AND written_by = "Christopher Ambrose"
Which episode was directed by Jeff Woolnough and written by Christopher Ambrose?
CREATE TABLE table_26824484_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT position FROM table_name_89 WHERE college = "louisiana state"
What position does the College of Louisiana State have?
CREATE TABLE table_name_89 (position VARCHAR, college VARCHAR)
SELECT network FROM table_27871460_2 WHERE state_or_territory = "Illinois"
Which network was located in Illinois?
CREATE TABLE table_27871460_2 ( network VARCHAR, state_or_territory VARCHAR )
SELECT original_air_date FROM table_26824484_1 WHERE directed_by = "Jessica Landaw"
What was the original air date of the episode that was directed by Jessica Landaw?
CREATE TABLE table_26824484_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT COUNT(round) FROM table_name_13 WHERE name = "jamaal charles"
How many rounds does Jamaal Charles have?
CREATE TABLE table_name_13 (round VARCHAR, name VARCHAR)
SELECT T1.id, T1.Name, T1.FDA_approved FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC
What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.
CREATE TABLE medicine_enzyme_interaction ( medicine_id VARCHAR ) CREATE TABLE medicine ( id VARCHAR, Name VARCHAR, FDA_approved VARCHAR )
SELECT no_in_season FROM table_26825349_1 WHERE production_code = "4AKY14"
What is the episode number of the episode with a production code of 4aky14?
CREATE TABLE table_26825349_1 (no_in_season VARCHAR, production_code VARCHAR)
SELECT opponent FROM table_name_53 WHERE save = "smith (26)"
Who was the opponent that also has a save of Smith (26)?
CREATE TABLE table_name_53 (opponent VARCHAR, save VARCHAR)
SELECT MAX("First elected") FROM table_18681
What is the last year that someone is first elected?
CREATE TABLE table_18681 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
SELECT original_air_date FROM table_26825349_1 WHERE us_viewers__millions_ = "8.62"
The episode that had 8.62 million US viewers originally aired on which date?
CREATE TABLE table_26825349_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT score FROM table_name_47 WHERE save = "smith (25)"
Which score has a save of Smith (25)?
CREATE TABLE table_name_47 (score VARCHAR, save VARCHAR)
SELECT COUNT("Wins") FROM table_24648 WHERE "Avg. Start" = '29.0'
How many wins when the average start is 29.0?
CREATE TABLE table_24648 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text )
SELECT result FROM table_26842217_12 WHERE broadcast = "Big East Network"
What was the result in the game broadcast on the Big East Network?
CREATE TABLE table_26842217_12 (result VARCHAR, broadcast VARCHAR)
SELECT circuit FROM table_name_77 WHERE date = "july 24"
Which circuit is on July 24?
CREATE TABLE table_name_77 (circuit VARCHAR, date VARCHAR)
SELECT T1.Code, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code
For those records from the products and each product's manufacturer, visualize the relationship between code and code .
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT result FROM table_26842217_12 WHERE visiting_team = "Louisiana-Monroe"
What was the result in the game where the visiting team was Louisiana-Monroe?
CREATE TABLE table_26842217_12 (result VARCHAR, visiting_team VARCHAR)
SELECT date FROM table_name_8 WHERE class = "gt" AND race = "monterey sports car grand prix"
On which date was the GT class at Monterey Sports Car Grand Prix?
CREATE TABLE table_name_8 (date VARCHAR, class VARCHAR, race VARCHAR)
SELECT MIN("Podiums") FROM table_23703 WHERE "Wins" = '0' AND "Season" = '2005' AND "Points" = '321'
Name the least podiums for 0 wins and 2005 season for 321 points
CREATE TABLE table_23703 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" text, "Position" text )
SELECT home_team FROM table_26842217_12 WHERE broadcast = "Big East Network"
Who was the home team in the game broadcast on the Big East Network?
CREATE TABLE table_26842217_12 (home_team VARCHAR, broadcast VARCHAR)
SELECT length FROM table_name_22 WHERE class = "gt" AND circuit = "portland international raceway"
What was the length for GT class at Portland International Raceway?
CREATE TABLE table_name_22 (length VARCHAR, class VARCHAR, circuit VARCHAR)
SELECT MIN("W") FROM table_31198
What is the lowest overall amount of w's?
CREATE TABLE table_31198 ( "Skip (Club)" text, "W" real, "L" real, "PF" real, "PA" real, "Ends Won" real, "Ends Lost" real, "Blank Ends" real, "Stolen Ends" real )
SELECT result FROM table_26842217_12 WHERE broadcast = "SEC Network"
What was the result in the game broadcast on the SEC Network?
CREATE TABLE table_26842217_12 (result VARCHAR, broadcast VARCHAR)
SELECT date FROM table_name_21 WHERE race = "contac 12 hours of sebring"
On what date did Contac 12 Hours of Sebring take place?
CREATE TABLE table_name_21 (date VARCHAR, race VARCHAR)
SELECT a.Id AS "post_link", a.Body FROM Posts AS a INNER JOIN Posts AS b ON a.ParentId = b.Id WHERE a.OwnerUserId = '##UserId##' AND LOWER(b.Title) LIKE '%##Keyword##%' ORDER BY a.Id DESC
Questions which you answered, by title keyword.
CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId 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 FlagTypes ( 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 ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE CloseReasonTypes ( 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 PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text, LastEditDate time, LastActivityDate time, Title text, Tags text, AnswerCount number, CommentCount number, FavoriteCount number, ClosedDate time, CommunityOwnedDate time, ContentLicense text ) CREATE TABLE 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 Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId 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 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 PostHistoryTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number )
SELECT E / vap FROM table_2683116_1 WHERE turnout = "85.7%"
What is the e/vap value for a turnout of exactly 85.7%?
CREATE TABLE table_2683116_1 (E VARCHAR, vap VARCHAR, turnout VARCHAR)
SELECT opponent FROM table_name_94 WHERE attendance = "24,791"
Which Opponent has an Attendance of 24,791?
CREATE TABLE table_name_94 (opponent VARCHAR, attendance VARCHAR)
SELECT COUNT("Avg.") FROM table_34231 WHERE "Yards" > '20' AND "Player" = 'darrius heyward-bey' AND "Long" < '80'
What is Darrius Heyward-Bey's average with more than 20 yards and less than 80 long?
CREATE TABLE table_34231 ( "Player" text, "Rec." real, "Yards" real, "Avg." real, "Long" real )
SELECT communes FROM table_2683116_1 WHERE enrolled = 174946
What communes have enrolled values of 174946?
CREATE TABLE table_2683116_1 (communes VARCHAR, enrolled VARCHAR)
SELECT score FROM table_name_91 WHERE opponent = "mariners" AND record = "24–25"
Which Score has Opponent of mariners and a Record of 24–25?
CREATE TABLE table_name_91 (score VARCHAR, opponent VARCHAR, record VARCHAR)
SELECT score FROM table_name_64 WHERE to_par = "+1" AND country = "united states"
What was the score for the player from the United states that was +1 to par?
CREATE TABLE table_name_64 ( score VARCHAR, to_par VARCHAR, country VARCHAR )
SELECT COUNT(vap) FROM table_2683116_1 WHERE valid_votes = 140469
How many vap values are associated with 140469 valid votes?
CREATE TABLE table_2683116_1 (vap VARCHAR, valid_votes VARCHAR)
SELECT date FROM table_name_6 WHERE record = "16–16"
When is Record of 16–16 taken?
CREATE TABLE table_name_6 (date VARCHAR, record VARCHAR)
SELECT ABS((SELECT "status" FROM table_204_200 WHERE "iso/iec standard" = 'iso/iec 15288') - (SELECT "status" FROM table_204_200 WHERE "iso/iec standard" = 'iso/iec 20000-1'))
what is the difference in the year published between iso/iec 15288 and iso/ice 20000-1 ?
CREATE TABLE table_204_200 ( id number, "iso/iec standard" text, "title" text, "status" text, "description" text, "wg" number )
SELECT time FROM table_26842217_10 WHERE visiting_team = "Georgia"
Name the time for georgia
CREATE TABLE table_26842217_10 (time VARCHAR, visiting_team VARCHAR)
SELECT score FROM table_name_2 WHERE record = "7–10–3–1"
What was the score of the game with a record of 7–10–3–1?
CREATE TABLE table_name_2 (score VARCHAR, record VARCHAR)
SELECT winner FROM table_name_96 WHERE general_classification = "nick nuyens" AND stage = "2"
Name the winner for nick nuyens for general classification and stage of 2
CREATE TABLE table_name_96 ( winner VARCHAR, general_classification VARCHAR, stage VARCHAR )
SELECT time FROM table_26842217_10 WHERE visiting_team = "#1 Alabama"
Name the time for #1 alabama
CREATE TABLE table_26842217_10 (time VARCHAR, visiting_team VARCHAR)
SELECT year_ended FROM table_name_80 WHERE passenger_load_factor___percentage_ > 72.8 AND revenue__€m_ < 906.8
Which Year Ended has a Passenger Load Factor (%) larger than 72.8, and a Revenue (€m) smaller than 906.8?
CREATE TABLE table_name_80 (year_ended VARCHAR, passenger_load_factor___percentage_ VARCHAR, revenue__€m_ VARCHAR)
SELECT SUM(bronze) FROM table_name_69 WHERE total < 2 AND silver > 0 AND gold < 0
Which Bronze has a Total smaller than 2, and a Silver larger than 0, and a Gold smaller than 0?
CREATE TABLE table_name_69 ( bronze INTEGER, gold VARCHAR, total VARCHAR, silver VARCHAR )
SELECT time FROM table_26842217_18 WHERE result = "MSST 29–24"
Name the time for result msst 29–24
CREATE TABLE table_26842217_18 (time VARCHAR, result VARCHAR)
SELECT passenger_load_factor___percentage_ FROM table_name_86 WHERE revenue__€m_ < 958.6 AND profit____loss__before_tax__€m_ = "1.1"
What Passenger Load Factor (%) that has a Revenue (€m) less than 958.6 and a Profit / (Loss) Before Tax (€m) of 1.1?
CREATE TABLE table_name_86 (passenger_load_factor___percentage_ VARCHAR, revenue__€m_ VARCHAR, profit____loss__before_tax__€m_ VARCHAR)
SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SEATTLE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SALT LAKE CITY' AND flight.airline_code = airline.airline_code AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code
list airlines that fly from SEATTLE to SALT LAKE CITY
CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time int, dual_carrier text, flight_days text, flight_id int, flight_number int, from_airport varchar, meal_code text, stops int, time_elapsed int, to_airport varchar ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE flight_fare ( flight_id int, fare_id 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 airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE days ( days_code varchar, day_name 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 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 ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) 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 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 airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE month ( month_number int, month_name text )
SELECT COUNT(time) FROM table_26842217_18 WHERE visiting_team = "UAB"
Name the number of time for uab
CREATE TABLE table_26842217_18 (time VARCHAR, visiting_team VARCHAR)
SELECT first_used FROM table_name_84 WHERE quantity = 26
Which First used has a Quantity of 26?
CREATE TABLE table_name_84 (first_used VARCHAR, quantity VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "DMII oth uncntrld"
how many patients whose diagnoses short title is dmii oth uncntrld?
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 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 )
SELECT date FROM table_26842217_18 WHERE broadcast = "FSN"
Name the date for broadcast fsn
CREATE TABLE table_26842217_18 (date VARCHAR, broadcast VARCHAR)
SELECT designation FROM table_name_56 WHERE manufacturer = "siemens" AND quantity = 52
Which Designation has a Manufacturer of siemens, and a Quantity of 52?
CREATE TABLE table_name_56 (designation VARCHAR, manufacturer VARCHAR, quantity VARCHAR)
SELECT "Venue" FROM table_60429 WHERE "Competition" = 'friendly' AND "Score" = '1–4'
What is the Venue of the Friendly Competition with a Score of 1 4?
CREATE TABLE table_60429 ( "Date" text, "Venue" text, "Score" text, "Competition" text, "Report" text )
SELECT broadcast FROM table_26842217_18 WHERE time = "7:00pm" AND home_team = "Mississippi State"
Name the broadcast for 7:00pm and mississippi state
CREATE TABLE table_26842217_18 (broadcast VARCHAR, time VARCHAR, home_team VARCHAR)
SELECT designation FROM table_name_84 WHERE quantity = 52
Which Designation has a Quantity of 52?
CREATE TABLE table_name_84 (designation VARCHAR, quantity VARCHAR)
SELECT Team_Name, Team_ID FROM basketball_match ORDER BY Team_Name
Show me about the distribution of Team_Name and Team_ID in a bar chart, sort X-axis from low to high order.
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text )
SELECT date FROM table_26842217_18 WHERE broadcast = "ESPN"
Name the date for espn
CREATE TABLE table_26842217_18 (date VARCHAR, broadcast VARCHAR)
SELECT AVG(quantity) FROM table_name_82 WHERE designation = "type 4"
Which Quantity has a Designation of type 4?
CREATE TABLE table_name_82 (quantity INTEGER, designation VARCHAR)
SELECT "1. vs 2." FROM table_12199 WHERE "Total" > '28' AND "2. vs 3." = '8'
What is 1 vs 2 when total is more than 28 and 2 vs 3 is 8?
CREATE TABLE table_12199 ( "Preferences" text, "1. vs 2." real, "1. vs 3." real, "2. vs 3." real, "Total" real )
SELECT broadcast FROM table_26842217_18 WHERE site = "Davis-Wade Stadium • Starkville MS"
Name the broadcast for davis-wade stadium • starkville ms
CREATE TABLE table_26842217_18 (broadcast VARCHAR, site VARCHAR)
SELECT model_no FROM table_name_28 WHERE manufacturer = "bombardier"
Which model number does bombardier manufacture?
CREATE TABLE table_name_28 (model_no VARCHAR, manufacturer VARCHAR)
SELECT best FROM table_name_99 WHERE name = "justin wilson"
Justin Wilson has what has his best time?
CREATE TABLE table_name_99 ( best VARCHAR, name VARCHAR )
SELECT broadcast FROM table_26842217_16 WHERE home_team = "Kentucky"
On what network was the Kentucky game broadcast?
CREATE TABLE table_26842217_16 (broadcast VARCHAR, home_team VARCHAR)