instruction
stringlengths
5
766
input
stringlengths
38
5.51k
response
stringlengths
4
3.91k
Which bats did mitchell play first?
CREATE TABLE table_name_23 ( bats VARCHAR, first VARCHAR )
SELECT bats FROM table_name_23 WHERE first = "mitchell"
What is the number of weeks where the venue was memorial stadium and the attendance was less than 41,252?
CREATE TABLE table_name_36 ( week VARCHAR, venue VARCHAR, attendance VARCHAR )
SELECT COUNT(week) FROM table_name_36 WHERE venue = "memorial stadium" AND attendance < 41 OFFSET 252
Which Goals For has a Team of congleton town, and a Lost larger than 11?
CREATE TABLE table_name_27 ( goals_for INTEGER, team VARCHAR, lost VARCHAR )
SELECT MAX(goals_for) FROM table_name_27 WHERE team = "congleton town" AND lost > 11
What was 1961's qual?
CREATE TABLE table_45152 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real )
SELECT "Qual" FROM table_45152 WHERE "Year" = '1961'
What is the unanimous result of the player from Michigan Dartmouth?
CREATE TABLE table_name_78 ( unanimous VARCHAR, school VARCHAR )
SELECT unanimous FROM table_name_78 WHERE school = "michigan dartmouth"
What game did they lose by 6 - 5?
CREATE TABLE table_name_67 ( loss VARCHAR, score VARCHAR )
SELECT loss FROM table_name_67 WHERE score = "6 - 5"
Visualize a bar chart about the distribution of ACC_Road and School_ID , and group by attribute ACC_Home, order by the bars in desc.
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 ACC_Road, School_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road ORDER BY ACC_Road DESC
how many singles did kitty wells release before 1952 ?
CREATE TABLE table_204_500 ( id number, "year" number, "title" text, "peak chart positions\nus country" number, "peak chart positions\nus" number, "album" text )
SELECT COUNT("title") FROM table_204_500 WHERE "year" < 1952
what is the name of the builder who launched in danaide
CREATE TABLE table_75588 ( "Name" text, "Pennant number" text, "Builder" text, "Laid Down" text, "Launched" text, "Commissioned" text, "Current status" text )
SELECT "Launched" FROM table_75588 WHERE "Name" = 'danaide'
Which opponent has a Time of 1:34?
CREATE TABLE table_71198 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text )
SELECT "Opponent" FROM table_71198 WHERE "Time" = '1:34'
Show me a bar chart for what is the id and trade name of the medicines can interact with at least 3 enzymes?, sort total number in ascending order please.
CREATE TABLE medicine_enzyme_interaction ( enzyme_id int, medicine_id int, interaction_type text ) CREATE TABLE enzyme ( id int, name text, Location text, Product text, Chromosome text, OMIM int, Porphyria text ) CREATE TABLE medicine ( id int, name text, Trade_Name text, FDA_approved text )
SELECT Trade_Name, id FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id ORDER BY id
How many laps does driver dario franchitti have?
CREATE TABLE table_name_46 ( laps VARCHAR, driver VARCHAR )
SELECT laps FROM table_name_46 WHERE driver = "dario franchitti"
Name the word with pronunciation b of *s ks
CREATE TABLE table_35735 ( "Word" text, "Pronunciation a" text, "Meaning a" text, "Pronunciation b" text, "Meaning b" text )
SELECT "Word" FROM table_35735 WHERE "Pronunciation b" = '*sɨks'
For the game played against the L.A. Lakers, where was the match played and what was the attendance level?
CREATE TABLE table_48467 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "Location Attendance" text, "Record" text )
SELECT "Location Attendance" FROM table_48467 WHERE "Team" = 'l.a. lakers'
What is the year established of North Jersey Phoenix?
CREATE TABLE table_name_74 ( established VARCHAR, institution VARCHAR )
SELECT established FROM table_name_74 WHERE institution = "north jersey phoenix"
What is the Outcome of the game with a Score of 6 4, 6 4?
CREATE TABLE table_48684 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text )
SELECT "Outcome" FROM table_48684 WHERE "Score" = '6–4, 6–4'
What years were from Connecticut?
CREATE TABLE table_47224 ( "Player" text, "Nationality" text, "Jersey Number(s)" text, "Position" text, "Years" text, "From" text )
SELECT "Years" FROM table_47224 WHERE "From" = 'connecticut'
how many seasons did he race in team Carlin?
CREATE TABLE table_3563 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" real, "Position" text )
SELECT COUNT("Podiums") FROM table_3563 WHERE "Team" = 'Carlin'
how many players won at least later than 2010 ?
CREATE TABLE table_204_310 ( id number, "month" text, "year" number, "player" text, "county" text, "club" text, "position" number )
SELECT COUNT("player") FROM table_204_310 WHERE "year" > 2010
Who came in 3rd at Venue?
CREATE TABLE table_name_99 ( Id VARCHAR )
SELECT 3 AS rd_place FROM table_name_99 WHERE "venue" = "venue"
children under the age of 18 will not be included in this study
CREATE TABLE table_train_10 ( "id" int, "severe_sepsis" bool, "consent" bool, "raising_legs_or_head" bool, "intention_to_arterial_catheter" bool, "allergy_to_adhesive" bool, "intention_to_central_venous_catheter" bool, "septic_shock" bool, "age" float, "NOUSE" float )
SELECT * FROM table_train_10 WHERE age >= 18
Where does South Melbourne play?
CREATE TABLE table_name_52 ( venue VARCHAR, away_team VARCHAR )
SELECT venue FROM table_name_52 WHERE away_team = "south melbourne"
What was the score of the game with the Broadview Hawks as the home team?
CREATE TABLE table_43140 ( "Date" text, "Time" text, "Home" text, "Away" text, "Score" text, "Ground" text )
SELECT "Score" FROM table_43140 WHERE "Home" = 'broadview hawks'
In which of North Melbourne's away games was there the lowest crowd?
CREATE TABLE table_54314 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT MIN("Crowd") FROM table_54314 WHERE "Away team" = 'north melbourne'
What is the Result of the AFG Arena, St. Gallen Competition with a Score of 1 0?
CREATE TABLE table_9761 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT "Result" FROM table_9761 WHERE "Venue" = 'afg arena, st. gallen' AND "Score" = '1–0'
What is the smallest introduced value?
CREATE TABLE table_1081459_1 ( introduced INTEGER )
SELECT MIN(introduced) FROM table_1081459_1
Who was the runner-up in 2004?
CREATE TABLE table_70189 ( "Year" text, "Venue" text, "Winners" text, "Runner-up" text, "3rd place" text )
SELECT "Runner-up" FROM table_70189 WHERE "Year" = '2004'
Visualize a bar chart for how many students play each sport?, and show total number from low to high order.
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 Plays_Games ( StuID INTEGER, GameID INTEGER, Hours_Played INTEGER ) CREATE TABLE Video_Games ( GameID INTEGER, GName VARCHAR(40), GType VARCHAR(40) ) CREATE TABLE SportsInfo ( StuID INTEGER, SportName VARCHAR(32), HoursPerWeek INTEGER, GamesPlayed INTEGER, OnScholarship VARCHAR(1) )
SELECT SportName, COUNT(*) FROM SportsInfo GROUP BY SportName ORDER BY COUNT(*)
Where is the location with a record of 50-19?
CREATE TABLE table_name_34 ( location VARCHAR, record VARCHAR )
SELECT location FROM table_name_34 WHERE record = "50-19"
What is the Year for Jazz club of Houston?
CREATE TABLE table_52028 ( "Player" text, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text )
SELECT "Years for Jazz" FROM table_52028 WHERE "School/Club Team" = 'houston'
What are the ground where the crowd totals 19929?
CREATE TABLE table_14312471_4 ( ground VARCHAR, crowd VARCHAR )
SELECT ground FROM table_14312471_4 WHERE crowd = 19929
What division did the Nashville Metros play in during the year that they did not qualify for the Playoffs, where in the USL PDL League, and had the Regular Season 7th, Southeast?
CREATE TABLE table_66952 ( "Year" real, "Division" text, "League" text, "Regular Season" text, "Playoffs" text, "Open Cup" text )
SELECT "Division" FROM table_66952 WHERE "Playoffs" = 'did not qualify' AND "League" = 'usl pdl' AND "Regular Season" = '7th, southeast'
What is the total teams during the 2012-13 season?
CREATE TABLE table_13696 ( "Season" text, "Teams" real, "Minor Ladder Position" text, "Finals Qualification" text, "Final Ladder Position" text, "ACL Qualification" text, "ACL Placing" text )
SELECT SUM("Teams") FROM table_13696 WHERE "Season" = '2012-13'
What is Mark Henry's brand?
CREATE TABLE table_name_28 ( brand VARCHAR, entrant VARCHAR )
SELECT brand FROM table_name_28 WHERE entrant = "mark henry"
Who had the decision goal when the record was 7-7-2?
CREATE TABLE table_name_83 ( decision VARCHAR, record VARCHAR )
SELECT decision FROM table_name_83 WHERE record = "7-7-2"
Show the name for regions and the number of storms for each region in a pie chart.
CREATE TABLE affected_region ( Region_id int, Storm_ID int, Number_city_affected real ) CREATE TABLE storm ( Storm_ID int, Name text, Dates_active text, Max_speed int, Damage_millions_USD real, Number_Deaths int ) CREATE TABLE region ( Region_id int, Region_code text, Region_name text )
SELECT Region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.Region_id = T2.Region_id GROUP BY T1.Region_id
Which spine has 12 issues?
CREATE TABLE table_38310 ( "Start month" text, "End month" text, "Cover" text, "Spine" text, "Indicia" text, "Masthead" text, "Number of issues" real )
SELECT "Spine" FROM table_38310 WHERE "Number of issues" = '12'
What is Country of Origin, when Year of Intro is greater than 1985, and when Primary Cartridge is 125mm?
CREATE TABLE table_name_27 ( country_of_origin VARCHAR, year_of_intro VARCHAR, primary_cartridge VARCHAR )
SELECT country_of_origin FROM table_name_27 WHERE year_of_intro > 1985 AND primary_cartridge = "125mm"
Are there integrated secondary schools in Basel-Stadt?
CREATE TABLE table_22255 ( "Canton" text, "Years of Kindergarten" real, "Years of Kindergarten provided" text, "Years of Kindergarten legally required" text, "Length of Primary School" real, "Length of mandatory Secondary School" real, "Separate Secondary Schools?" text, "Cooperative Secondary Schools?" text, "Integrated Secondary Schools?" text )
SELECT "Integrated Secondary Schools?" FROM table_22255 WHERE "Canton" = 'Basel-Stadt'
Name the least overall for tony baker
CREATE TABLE table_36892 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT MIN("Overall") FROM table_36892 WHERE "Name" = 'tony baker'
Give me a pie chart to reflect the proportion of All_Home and the sum of School_ID.
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 All_Home, SUM(School_ID) FROM basketball_match GROUP BY All_Home
How many entrepreneurs correspond to each investor.
CREATE TABLE entrepreneur ( Entrepreneur_ID int, People_ID int, Company text, Money_Requested real, Investor text ) CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Date_of_Birth text )
SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor
Bar chart, the-axis is the state, and the Y axis is each state's the smallest enrollment.
CREATE TABLE College ( cName varchar(20), state varchar(2), enr numeric(5,0) ) CREATE TABLE Player ( pID numeric(5,0), pName varchar(20), yCard varchar(3), HS numeric(5,0) ) CREATE TABLE Tryout ( pID numeric(5,0), cName varchar(20), pPos varchar(8), decision varchar(3) )
SELECT state, MIN(enr) FROM College GROUP BY state
Who is the away team that played home team Hawthorn?
CREATE TABLE table_58195 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Away team" FROM table_58195 WHERE "Home team" = 'hawthorn'
How many teams scored exactly 38 points
CREATE TABLE table_19215 ( "Team" text, "First Played" real, "Played" real, "Win" real, "Draw" real, "Loss" real, "Points For" real, "Ponts Against" real, "Last Meeting" real )
SELECT COUNT("Team") FROM table_19215 WHERE "Points For" = '38'
What is the title of episode 10?
CREATE TABLE table_74389 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real )
SELECT "Title" FROM table_74389 WHERE "No. in season" = '10'
With the pick of 1 Cecil Martin has what number as the overall?
CREATE TABLE table_name_38 ( overall VARCHAR, pick VARCHAR, name VARCHAR )
SELECT COUNT(overall) FROM table_name_38 WHERE pick = 1 AND name = "cecil martin"
WHAT IS THE RESULT WITH A FILM TITLE FIREDANCER?
CREATE TABLE table_name_3 ( result VARCHAR, film_title_used_in_nomination VARCHAR )
SELECT result FROM table_name_3 WHERE film_title_used_in_nomination = "firedancer"
Can you tell me the Opponent that has the Result of w 37-14?
CREATE TABLE table_name_25 ( opponent VARCHAR, result VARCHAR )
SELECT opponent FROM table_name_25 WHERE result = "w 37-14"
Please list the location and the winning aircraft name.
CREATE TABLE aircraft ( Aircraft VARCHAR, Aircraft_ID VARCHAR ) CREATE TABLE MATCH ( Location VARCHAR, Winning_Aircraft VARCHAR )
SELECT T2.Location, T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft
Which model number has an order part number of TMDML44BKX5LD?
CREATE TABLE table_7139 ( "Model number" text, "Frequency" text, "L2 cache" text, "Multi 1" text, "Voltage" real, "Socket" text, "Release date" text, "Order part number" text )
SELECT "Model number" FROM table_7139 WHERE "Order part number" = 'tmdml44bkx5ld'
What was the average attendance when the record was 17-18?
CREATE TABLE table_68635 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
SELECT AVG("Attendance") FROM table_68635 WHERE "Record" = '17-18'
In what season was the overall record 29-7?
CREATE TABLE table_19441 ( "Season" text, "Coach" text, "Overall" text, "Conference" text, "Standing" text, "Postseason" text )
SELECT "Season" FROM table_19441 WHERE "Overall" = '29-7'
What is the largest Crowd number for the Home team of North Melbourne?
CREATE TABLE table_56750 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT MAX("Crowd") FROM table_56750 WHERE "Home team" = 'north melbourne'
What was the venue where the away team scored 16.11 (107)?
CREATE TABLE table_10203 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Venue" FROM table_10203 WHERE "Away team score" = '16.11 (107)'
Name the highest grid for Laps more than 137 and rank is less than 8
CREATE TABLE table_name_89 ( grid INTEGER, laps VARCHAR, rank VARCHAR )
SELECT MAX(grid) FROM table_name_89 WHERE laps > 137 AND rank < 8
Which driver had a time/retired of fuel system?
CREATE TABLE table_57382 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT "Driver" FROM table_57382 WHERE "Time/Retired" = 'fuel system'
Which venue has a neutral H/A/N, lower than position 3 and a score of 141?
CREATE TABLE table_name_85 ( venue VARCHAR, score VARCHAR, h_a_n VARCHAR, pos VARCHAR )
SELECT venue FROM table_name_85 WHERE h_a_n = "neutral" AND pos < 3 AND score = "141"
What date was the Cross Code Debut of rl 1st test great britain v australia, and the Int'l Debut was RU Five Nations v Ireland?
CREATE TABLE table_63127 ( "Player" text, "Int'l Debut" text, "Year" real, "Cross Code Debut" text, "Date" text, "Position" text )
SELECT "Date" FROM table_63127 WHERE "Cross Code Debut" = 'rl 1st test great britain v australia' AND "Int'l Debut" = 'ru five nations v ireland'
What is the place of the player with a 70-66-67=203 score?
CREATE TABLE table_12095 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "Place" FROM table_12095 WHERE "Score" = '70-66-67=203'
what is the total amount of times they played against opponent @min ?
CREATE TABLE table_203_536 ( id number, "#" number, "date" text, "opponent" text, "score" text, "win" text, "loss" text, "save" text, "crowd" number, "record" text )
SELECT COUNT(*) FROM table_203_536 WHERE "opponent" = '@min'
Draw a bar chart about the distribution of All_Games and School_ID .
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 All_Games, School_ID FROM basketball_match
Who is sezen aksu's producer?
CREATE TABLE table_47475 ( "Track" real, "Title" text, "Songwriter(s)" text, "Producer(s)" text, "Length" text )
SELECT "Producer(s)" FROM table_47475 WHERE "Songwriter(s)" = 'sezen aksu'
What is the name of the player with a pick # less than 5 and an overall of 284?
CREATE TABLE table_35431 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text )
SELECT "Name" FROM table_35431 WHERE "Pick #" < '5' AND "Overall" = '284'
which episode aired after marion the superfluous feed character ?
CREATE TABLE table_204_997 ( id number, "#" text, "title" text, "celebrity guest(s)" text, "directed by" text, "written by" text, "original airdate" text )
SELECT "title" FROM table_204_997 WHERE id = (SELECT id FROM table_204_997 WHERE "title" = '"marion the superfluous feed character"') + 1
Show me mean rating by languages in a histogram, sort X from high to low order.
CREATE TABLE genre ( g_name varchar2(20), rating varchar2(10), most_popular_in varchar2(50) ) CREATE TABLE artist ( artist_name varchar2(50), country varchar2(20), gender varchar2(20), preferred_genre varchar2(50) ) CREATE TABLE song ( song_name varchar2(50), artist_name varchar2(50), country varchar2(20), f_id number(10), genre_is varchar2(20), rating number(10), languages varchar2(20), releasedate Date, resolution number(10) ) CREATE TABLE files ( f_id number(10), artist_name varchar2(50), file_size varchar2(20), duration varchar2(20), formats varchar2(20) )
SELECT languages, AVG(rating) FROM song GROUP BY languages ORDER BY languages DESC
What is the population density of Caramoran?
CREATE TABLE table_27795 ( "Municipality" text, "No. of Barangays" real, "Area (hectares)" real, "Population (2007)" real, "Population (2010)" real, "Pop. density (per km 2 )" text )
SELECT "Pop. density (per km 2 )" FROM table_27795 WHERE "Municipality" = 'Caramoran'
Show the average amount of transactions for different investors with a scatter chart.
CREATE TABLE Transactions ( transaction_id INTEGER, investor_id INTEGER, transaction_type_code VARCHAR(10), date_of_transaction DATETIME, amount_of_transaction DECIMAL(19,4), share_count VARCHAR(40), other_details VARCHAR(255) ) CREATE TABLE Ref_Transaction_Types ( transaction_type_code VARCHAR(10), transaction_type_description VARCHAR(80) ) CREATE TABLE Sales ( sales_transaction_id INTEGER, sales_details VARCHAR(255) ) CREATE TABLE Investors ( investor_id INTEGER, Investor_details VARCHAR(255) ) CREATE TABLE Purchases ( purchase_transaction_id INTEGER, purchase_details VARCHAR(255) ) CREATE TABLE Lots ( lot_id INTEGER, investor_id INTEGER, lot_details VARCHAR(255) ) CREATE TABLE Transactions_Lots ( transaction_id INTEGER, lot_id INTEGER )
SELECT investor_id, AVG(amount_of_transaction) FROM Transactions GROUP BY investor_id
How many artists were there for the show thoroughly modern millie?
CREATE TABLE table_28140141_1 ( artist VARCHAR, show VARCHAR )
SELECT COUNT(artist) FROM table_28140141_1 WHERE show = "Thoroughly Modern Millie"
List all different genre types.
CREATE TABLE genres ( name VARCHAR )
SELECT DISTINCT name FROM genres
What date has a set 4 of 25-19?
CREATE TABLE table_42037 ( "Date" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Set 4" text, "Set 5" text, "Total" text )
SELECT "Date" FROM table_42037 WHERE "Set 4" = '25-19'
What is the average crowd size for games with hawthorn as the home side?
CREATE TABLE table_name_8 ( crowd INTEGER, home_team VARCHAR )
SELECT AVG(crowd) FROM table_name_8 WHERE home_team = "hawthorn"
What is the highest pick from Washington?
CREATE TABLE table_78295 ( "Pick" real, "Round" text, "Player" text, "Position" text, "School" text )
SELECT MAX("Pick") FROM table_78295 WHERE "School" = 'washington'
How much parking is in Van Nuys at the Sepulveda station?
CREATE TABLE table_2093995_1 ( parking VARCHAR, city__neighborhood VARCHAR, stations VARCHAR )
SELECT parking FROM table_2093995_1 WHERE city__neighborhood = "Van Nuys" AND stations = "Sepulveda"
Which team had 21 points?
CREATE TABLE table_20007 ( "Position" real, "Team" text, "Points" real, "Played" real, "Won" real, "Drawn" real, "Lost" real, "For" real, "Against" real, "Difference" text )
SELECT "Team" FROM table_20007 WHERE "Points" = '21'
Name the played with lost of 5
CREATE TABLE table_71374 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text, "Points" text )
SELECT "Played" FROM table_71374 WHERE "Lost" = '5'
Which Party has a Office of majority floor leader
CREATE TABLE table_name_46 ( party VARCHAR, office VARCHAR )
SELECT party FROM table_name_46 WHERE office = "majority floor leader"
When was there a result of 8-1 and a score of 8-1?
CREATE TABLE table_15623 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
SELECT "Date" FROM table_15623 WHERE "Result" = '8-1' AND "Score" = '8-1'
What chassis did the porsche flat-4 use before 1958?
CREATE TABLE table_80210 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real )
SELECT "Chassis" FROM table_80210 WHERE "Engine" = 'porsche flat-4' AND "Year" < '1958'
What is the Unami Delaware value for a Thomas value of nacha?
CREATE TABLE table_52524 ( "Munsee Delaware" text, "Unami Delaware" text, "De Laet (1633)" text, "Campanius (ca. 1645)" text, "Interpreter (1684?)" text, "Thomas (1698)" text )
SELECT "Unami Delaware" FROM table_52524 WHERE "Thomas (1698)" = 'nacha'
What is the rank of the film directed by Kevin Costner?
CREATE TABLE table_44119 ( "Rank" real, "Title" text, "Studio" text, "Director" text, "Gross" text )
SELECT COUNT("Rank") FROM table_44119 WHERE "Director" = 'kevin costner'
What was the result of the game on December 22, 1991?
CREATE TABLE table_74787 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text )
SELECT "Result" FROM table_74787 WHERE "Date" = 'december 22, 1991'
What Player is from Argentina and whose position is a guard-forward?
CREATE TABLE table_4316 ( "Player" text, "Nationality" text, "Position" text, "Years in Toronto" text, "School/Club Team" text )
SELECT "Player" FROM table_4316 WHERE "Position" = 'guard-forward' AND "Nationality" = 'argentina'
Which archive has a run time of 23:48?
CREATE TABLE table_2114238_1 ( archive VARCHAR, run_time VARCHAR )
SELECT archive FROM table_2114238_1 WHERE run_time = "23:48"
Name the number of advocate #1 that aired on april 2, 2008
CREATE TABLE table_20296 ( "#" real, "Advocate # 1" text, "Advocate # 2" text, "Root of All Evil" text, "Poll winner" text, "Original air date" text )
SELECT COUNT("Advocate # 1") FROM table_20296 WHERE "Original air date" = 'April 2, 2008'
How many years did the new york giants win with a result of 15-7 at lincoln financial field?
CREATE TABLE table_47791 ( "Year" real, "Date" text, "Winner" text, "Result" text, "Loser" text, "Location" text )
SELECT COUNT("Year") FROM table_47791 WHERE "Location" = 'lincoln financial field' AND "Winner" = 'new york giants' AND "Result" = '15-7'
What is the catalogue number for the song that is 3:17 and was released 9/21/71?
CREATE TABLE table_name_94 ( catalogue VARCHAR, release_date VARCHAR, time VARCHAR )
SELECT catalogue FROM table_name_94 WHERE release_date = "9/21/71" AND time = "3:17"
Who was Director John Ramster's Composer?
CREATE TABLE table_7034 ( "Year" real, "Production" text, "Composer" text, "Conductor" text, "Director" text )
SELECT "Composer" FROM table_7034 WHERE "Director" = 'john ramster'
If a variant without niqqud is as final letter: or , what is the phonetic realisation?
CREATE TABLE table_56984 ( "Variant (with Niqqud )" text, "without Niqqud" text, "Phonemic Value" text, "Phonetic Realisation" text, "English example" text )
SELECT "Phonetic Realisation" FROM table_56984 WHERE "without Niqqud" = 'as final letter: ו or יו'
What is the sum of top-10 values for the Open Championship and less than 3 in the top-25?
CREATE TABLE table_7814 ( "Tournament" text, "Wins" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real )
SELECT SUM("Top-10") FROM table_7814 WHERE "Tournament" = 'the open championship' AND "Top-25" < '3'
Which Top-10 has a Cuts made of 10, and a Top-5 larger than 1?
CREATE TABLE table_41699 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real )
SELECT MIN("Top-10") FROM table_41699 WHERE "Cuts made" = '10' AND "Top-5" > '1'
What's the 2nd leg result in the round where Panionios is team #2?
CREATE TABLE table_19130829_4 ( team__number2 VARCHAR )
SELECT 2 AS nd_leg FROM table_19130829_4 WHERE team__number2 = "Panionios"
WHAT IS THE 2007 AT MADRID MASTERS?
CREATE TABLE table_61652 ( "Tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text )
SELECT "2007" FROM table_61652 WHERE "Tournament" = 'madrid masters'
Which City has a State of massachusetts, and a School of northeastern university?
CREATE TABLE table_6036 ( "City" text, "State" text, "School" text, "Colony Name" text, "Date Founded" text )
SELECT "City" FROM table_6036 WHERE "State" = 'massachusetts' AND "School" = 'northeastern university'
What is the Semifinalists that has a Tournament of Cincinnati?
CREATE TABLE table_46375 ( "Tournament" text, "Surface" text, "Week" text, "Winner" text, "Finalist" text, "Semifinalists" text )
SELECT "Semifinalists" FROM table_46375 WHERE "Tournament" = 'cincinnati'
what is the number of managerial changes that ttm samut sakhon made in 2009 ?
CREATE TABLE table_204_805 ( id number, "name" text, "club" text, "date of departure" text, "replacement" text, "date of appointment" text )
SELECT COUNT(*) FROM table_204_805 WHERE "club" = 'ttm samut sakhon'
If the college is SMU, what is the position?
CREATE TABLE table_27132791_3 ( position VARCHAR, college VARCHAR )
SELECT position FROM table_27132791_3 WHERE college = "SMU"
How many pages does the edition with a volume # smaller than 8 and an ISBM of 1-40122-892-5 have?
CREATE TABLE table_7363 ( "Vol. #" real, "Title" text, "Material collected" text, "Pages" real, "ISBN" text )
SELECT SUM("Pages") FROM table_7363 WHERE "Vol. #" < '8' AND "ISBN" = '1-40122-892-5'
Who is from italy has 0 giro wins, 0 young rider and less than 3 maglia rosa?
CREATE TABLE table_name_92 ( name VARCHAR, maglia_rosa VARCHAR, young_rider VARCHAR, country VARCHAR, giro_wins VARCHAR )
SELECT name FROM table_name_92 WHERE country = "italy" AND giro_wins = 0 AND young_rider = 0 AND maglia_rosa < 3
Visualize a bar chart about the distribution of ACC_Regular_Season and Team_ID , show by the y axis in asc.
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 ACC_Regular_Season, Team_ID FROM basketball_match ORDER BY Team_ID