instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
Which Res has a Method of decision (unanimous) and an Opponent of Wataru Sakata? | CREATE TABLE table_name_10 (
res VARCHAR,
method VARCHAR,
opponent VARCHAR
) | SELECT res FROM table_name_10 WHERE method = "decision (unanimous)" AND opponent = "wataru sakata" |
How many records were there when opponents were 9? | CREATE TABLE table_22815265_1 (
record VARCHAR,
opponents VARCHAR
) | SELECT COUNT(record) FROM table_22815265_1 WHERE opponents = 9 |
How many field goals did Donald Green score? | CREATE TABLE table_28062 (
"Player" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT COUNT("Field goals") FROM table_28062 WHERE "Player" = 'Donald Green' |
Which outcome has a Surface of clay and a Score of 4 6, 7 5, 2 6? | CREATE TABLE table_name_50 (
outcome VARCHAR,
surface VARCHAR,
score VARCHAR
) | SELECT outcome FROM table_name_50 WHERE surface = "clay" AND score = "4–6, 7–5, 2–6" |
What was the time of the person in lane 7? | CREATE TABLE table_66760 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT "Time" FROM table_66760 WHERE "Lane" = '7' |
Show all ministers who do not belong to Progress Party. | CREATE TABLE party (
minister VARCHAR,
party_name VARCHAR
) | SELECT minister FROM party WHERE party_name <> 'Progress Party' |
What was the course on 13 may? | CREATE TABLE table_57017 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
) | SELECT "Course" FROM table_57017 WHERE "Date" = '13 may' |
Where was the game against Detroit played? | CREATE TABLE table_27704187_7 (
location_attendance VARCHAR,
team VARCHAR
) | SELECT location_attendance FROM table_27704187_7 WHERE team = "Detroit" |
Return a bar chart about the distribution of ACC_Road and the sum of Team_ID , and group by attribute ACC_Road, list in desc by the Y please. | 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, SUM(Team_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY SUM(Team_ID) DESC |
What is the lowest rank (night) for having viewers (millions) 5.25? | CREATE TABLE table_16579 (
"#" real,
"Episode" text,
"Rating" text,
"Share" real,
"Rating/Share (18-49)" text,
"Viewers (millions)" text,
"Rank (timeslot)" real,
"Rank (night)" real,
"Rank (week)" text
) | SELECT MIN("Rank (night)") FROM table_16579 WHERE "Viewers (millions)" = '5.25' |
what is the pick # when the nhl team is montreal canadiens and the college/junior/club team is trois-rivi res draveurs (qmjhl)? | CREATE TABLE table_2679061_2 (
pick__number INTEGER,
nhl_team VARCHAR,
college_junior_club_team VARCHAR
) | SELECT MIN(pick__number) FROM table_2679061_2 WHERE nhl_team = "Montreal Canadiens" AND college_junior_club_team = "Trois-Rivières Draveurs (QMJHL)" |
What is the size of the rest bit field when the leading bits are more than 110 and the start address is 224.0.0.0? | CREATE TABLE table_name_12 (
size_of_rest_bit_field VARCHAR,
leading_bits VARCHAR,
start_address VARCHAR
) | SELECT size_of_rest_bit_field FROM table_name_12 WHERE leading_bits > 110 AND start_address = "224.0.0.0" |
Who did the high rebounds for the team Minnesota? | CREATE TABLE table_29893 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High rebounds" FROM table_29893 WHERE "Team" = 'Minnesota' |
When did they play at Candlestick Park? | CREATE TABLE table_name_25 (
date VARCHAR,
game_site VARCHAR
) | SELECT date FROM table_name_25 WHERE game_site = "candlestick park" |
What is Country, when Time is 1:29.43.60? | CREATE TABLE table_name_68 (
country VARCHAR,
time VARCHAR
) | SELECT country FROM table_name_68 WHERE time = "1:29.43.60" |
What is the 2003 statistic for general cargo? | CREATE TABLE table_name_94 (
product VARCHAR
) | SELECT 2003 FROM table_name_94 WHERE product = "general cargo" |
What is the order number that has top 20 (10 women) as the week number? | CREATE TABLE table_75713 (
"Week #" text,
"Theme" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT "Order #" FROM table_75713 WHERE "Week #" = 'top 20 (10 women)' |
What is the total number of games for the opponent in Washington? | CREATE TABLE table_name_89 (
game VARCHAR,
opponent VARCHAR
) | SELECT COUNT(game) FROM table_name_89 WHERE opponent = "washington" |
What is the rank where the gold is 0? | CREATE TABLE table_name_70 (
rank INTEGER,
gold INTEGER
) | SELECT AVG(rank) FROM table_name_70 WHERE gold < 0 |
Competition of friendly, and a Date of 03-jun-62 had what score? | CREATE TABLE table_name_72 (
score VARCHAR,
competition VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_72 WHERE competition = "friendly" AND date = "03-jun-62" |
What was the record on April 22? | CREATE TABLE table_name_1 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_1 WHERE date = "april 22" |
Which Venue was used when the Home team was geelong? | CREATE TABLE table_name_47 (
venue VARCHAR,
home_team VARCHAR
) | SELECT venue FROM table_name_47 WHERE home_team = "geelong" |
How many episodes had 9.90 million viewers? | CREATE TABLE table_12146637_1 (
episode_title VARCHAR,
us_viewers__millions_ VARCHAR
) | SELECT COUNT(episode_title) FROM table_12146637_1 WHERE us_viewers__millions_ = "9.90" |
What is the Event, when Year is 2002, and when Competition is European Indoor Championships? | CREATE TABLE table_49684 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
) | SELECT "Event" FROM table_49684 WHERE "Year" = '2002' AND "Competition" = 'european indoor championships' |
what are all the open 1st viii with u15 4th iv being gt | CREATE TABLE table_11318462_5 (
open_1st_viii VARCHAR,
u15_4th_iv VARCHAR
) | SELECT open_1st_viii FROM table_11318462_5 WHERE u15_4th_iv = "GT" |
what was the total prize money earned by contestants ? | CREATE TABLE table_203_446 (
id number,
"name" text,
"gender" text,
"age" number,
"from" text,
"occupation" text,
"prize money (usd)" text,
"status" text
) | SELECT SUM("prize money (usd)") FROM table_203_446 |
What is the away team score of a Melbourne team that has a home team score of 12.7 (79)? | CREATE TABLE table_54881 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
) | SELECT "Away team score" FROM table_54881 WHERE "Home team score" = '12.7 (79)' AND "Away team" = 'melbourne' |
Who is the captain of the manchester city team? | CREATE TABLE table_14634 (
"Team" text,
"Manager" text,
"Captain" text,
"Kit manufacturer" text,
"Shirt sponsor" text
) | SELECT "Captain" FROM table_14634 WHERE "Team" = 'manchester city' |
Who was the winner of Stage 12 with a Points Classification of Francesco Moser? | CREATE TABLE table_54226 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Trofeo Fast Team" text
) | SELECT "Winner" FROM table_54226 WHERE "Points classification" = 'francesco moser' AND "Stage" = '12' |
What is the district with the candidates leven powell (f) 63.8% roger west (dr) 36.4%? | CREATE TABLE table_28947 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "District" FROM table_28947 WHERE "Candidates" = 'Leven Powell (F) 63.8% Roger West (DR) 36.4%' |
Name the prize pool for 706 (481 r, 346 a) | CREATE TABLE table_3260 (
"Date" text,
"Time (ET)" text,
"Event #" real,
"Event" text,
"Winner" text,
"Prize" text,
"Entries" text,
"Prize Pool" text,
"Elapsed Time" text
) | SELECT "Prize Pool" FROM table_3260 WHERE "Entries" = '706 (481 R, 346 A)' |
What was the film title nominated from the Netherlands? | CREATE TABLE table_71315 (
"Country" text,
"Film title used in nomination" text,
"Language" text,
"Original title" text,
"Director" text
) | SELECT "Film title used in nomination" FROM table_71315 WHERE "Country" = 'netherlands' |
What was the highest heat with a time slower than 48.87 from sweden? | CREATE TABLE table_name_48 (
heat INTEGER,
time VARCHAR,
nationality VARCHAR
) | SELECT MAX(heat) FROM table_name_48 WHERE time > 48.87 AND nationality = "sweden" |
What position did the BMW vehicle made in 2006 hold? | CREATE TABLE table_71693 (
"Year" real,
"Class" text,
"Vehicle" text,
"Position" text,
"Stages won" text
) | SELECT "Position" FROM table_71693 WHERE "Vehicle" = 'bmw' AND "Year" = '2006' |
Which episode had celebrities Nick Hewer and Saira Khan in them? | CREATE TABLE table_24725951_1 (
episode VARCHAR,
celebrities VARCHAR
) | SELECT episode FROM table_24725951_1 WHERE celebrities = "Nick Hewer and Saira Khan" |
Who holds the time of 17:11.572? | CREATE TABLE table_name_83 (
race VARCHAR,
time VARCHAR
) | SELECT race FROM table_name_83 WHERE time = "17:11.572" |
Which Eruptions have a Location of pacific ring of fire, and a Volcanic Explosivity Index of 6, and a Country of peru? | CREATE TABLE table_name_51 (
eruptions VARCHAR,
country VARCHAR,
location VARCHAR,
volcanic_explosivity_index VARCHAR
) | SELECT eruptions FROM table_name_51 WHERE location = "pacific ring of fire" AND volcanic_explosivity_index = "6" AND country = "peru" |
Name the least frequency Mhz with call sign of k202ag | CREATE TABLE table_37040 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
) | SELECT MIN("Frequency MHz") FROM table_37040 WHERE "Call sign" = 'k202ag' |
Which Club has a League goals of 21? | CREATE TABLE table_name_66 (
club VARCHAR,
league_goals VARCHAR
) | SELECT club FROM table_name_66 WHERE league_goals = "21" |
What was the place and date that the Apartments area was damaged? | CREATE TABLE table_23014685_1 (
place_ VARCHAR,
_date VARCHAR,
area_damaged VARCHAR
) | SELECT place_ & _date FROM table_23014685_1 WHERE area_damaged = "Apartments area" |
Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin. | CREATE TABLE manufacturers (
name VARCHAR,
revenue INTEGER,
headquarter VARCHAR
) | SELECT name FROM manufacturers WHERE revenue < (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin') |
Which school was Lawrence Roberts from ? | CREATE TABLE table_46045 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
) | SELECT "School/Club Team" FROM table_46045 WHERE "Player" = 'lawrence roberts' |
What did they do against Memphis? | CREATE TABLE table_21058823_1 (
result VARCHAR,
opponent VARCHAR
) | SELECT result FROM table_21058823_1 WHERE opponent = "Memphis" |
Which chassis did Aguri Suzuki drive with an entrant of Larrousse F1? | CREATE TABLE table_name_41 (
chassis VARCHAR,
entrant VARCHAR,
driver VARCHAR
) | SELECT chassis FROM table_name_41 WHERE entrant = "larrousse f1" AND driver = "aguri suzuki" |
What is the Purpose of the Callsign with a Freq currently of 4gld? | CREATE TABLE table_50345 (
"Callsign" text,
"Area served" text,
"Band" text,
"Freq currently" text,
"Purpose" text
) | SELECT "Purpose" FROM table_50345 WHERE "Freq currently" = '4gld' |
When Richmond is the away team, what is the crowd size? | CREATE TABLE table_name_23 (
crowd VARCHAR,
away_team VARCHAR
) | SELECT crowd FROM table_name_23 WHERE away_team = "richmond" |
Anthony West ride which Motorcyle? | CREATE TABLE table_67166 (
"Team" text,
"Constructor" text,
"Motorcycle" text,
"Tyre" text,
"Rider" text,
"Rounds" text
) | SELECT "Motorcycle" FROM table_67166 WHERE "Rider" = 'anthony west' |
How many races had #99 gainsco/bob stallings racing in round 10? | CREATE TABLE table_19751479_4 (
fastest_lap VARCHAR,
rnd VARCHAR,
pole_position VARCHAR
) | SELECT COUNT(fastest_lap) FROM table_19751479_4 WHERE rnd = 10 AND pole_position = "#99 GAINSCO/Bob Stallings Racing" |
which date had the least attendance ? | 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 "date" FROM table_204_123 ORDER BY "attendance" LIMIT 1 |
What is the highest crude death rate when deaths are 3 433 and average population is greater than 298? | CREATE TABLE table_13038 (
"Average population (x 1000)" real,
"Live births" text,
"Deaths" text,
"Natural change" text,
"Crude birth rate (per 1000)" real,
"Crude death rate (per 1000)" real,
"Natural change (per 1000)" real
) | SELECT MAX("Crude death rate (per 1000)") FROM table_13038 WHERE "Deaths" = '3 433' AND "Average population (x 1000)" > '298' |
What's the name of the person in the CF Pos? | CREATE TABLE table_name_43 (
name VARCHAR,
pos VARCHAR
) | SELECT name FROM table_name_43 WHERE pos = "cf" |
which state has the largest amount of judges to serve ? | CREATE TABLE table_203_563 (
id number,
"#" number,
"judge" text,
"state" text,
"born/died" text,
"active" text,
"chief" text,
"senior" text,
"appointed by" text,
"reason for\ntermination" text
) | SELECT "state" FROM table_203_563 GROUP BY "state" ORDER BY COUNT("judge") DESC LIMIT 1 |
Which game did was Bud Eley a player in? | CREATE TABLE table_52202 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Rebounds" real
) | SELECT "Games" FROM table_52202 WHERE "Name" = 'bud eley' |
What is WSU Year(s), when Pro Year(s) is 1974-77? | CREATE TABLE table_name_88 (
wsu_year_s_ VARCHAR,
pro_year_s_ VARCHAR
) | SELECT wsu_year_s_ FROM table_name_88 WHERE pro_year_s_ = "1974-77" |
Which school has a website of http://www.sjfisher.herts.sch.uk/? | CREATE TABLE table_4042 (
"School" text,
"Gender" text,
"Age Range" text,
"Religious Affiliation" text,
"Location" text,
"School website" text
) | SELECT "School" FROM table_4042 WHERE "School website" = 'http://www.sjfisher.herts.sch.uk/' |
What is the total for National University of Ireland with an industrial and commercial panel less than 1, and the cultural and educational panel bigger than 0? | CREATE TABLE table_name_17 (
national_university_of_ireland VARCHAR,
industrial_and_commercial_panel VARCHAR,
cultural_and_educational_panel VARCHAR
) | SELECT COUNT(national_university_of_ireland) FROM table_name_17 WHERE industrial_and_commercial_panel < 1 AND cultural_and_educational_panel > 0 |
What was the date of appointment for Christos Kassianos who belonged to AEK? | CREATE TABLE table_name_38 (
date_of_appointment VARCHAR,
team VARCHAR,
replaced_by VARCHAR
) | SELECT date_of_appointment FROM table_name_38 WHERE team = "aek" AND replaced_by = "christos kassianos" |
Find the last name and age of the student who has allergy to both milk and cat Show a bar chart, order in asc by the Y. | 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 Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
) | SELECT LName, Age FROM Student WHERE StuID IN (SELECT StuID FROM Has_Allergy WHERE Allergy = "Milk" INTERSECT SELECT StuID FROM Has_Allergy WHERE Allergy = "Cat") ORDER BY Age |
What is the volume when the resrvoir is Tanes? | CREATE TABLE table_30696 (
"Reservoir" text,
"Basin" text,
"Location" text,
"Type" text,
"Height (m)" text,
"Length along the top (m)" text,
"Drainage basin (km\u00b2)" text,
"Reservoir surface (ha)" text,
"Volume (hm\u00b3)" text
) | SELECT "Volume (hm\u00b3)" FROM table_30696 WHERE "Reservoir" = 'Tanes' |
What is the lowest number of field goals when the points were less than 5? | CREATE TABLE table_75349 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT MIN("Field goals") FROM table_75349 WHERE "Points" < '5' |
Which team was the visitor on January 10? | CREATE TABLE table_name_69 (
visitor VARCHAR,
date VARCHAR
) | SELECT visitor FROM table_name_69 WHERE date = "january 10" |
Where was the event Kage Kombat 16? | CREATE TABLE table_48561 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Time" text,
"Location" text
) | SELECT "Location" FROM table_48561 WHERE "Event" = 'kage kombat 16' |
Who were the batting partners in Colombo? | CREATE TABLE table_45683 (
"Wicket" text,
"Runs" text,
"Batting partners" text,
"Batting team" text,
"Fielding team" text,
"Venue" text,
"Season" text
) | SELECT "Batting partners" FROM table_45683 WHERE "Venue" = 'colombo' |
what is the player who's college is listed as direct to nba, school is st. vincent st. mary high school and the year is 2001-2002? | CREATE TABLE table_17100 (
"Year" text,
"Player" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) | SELECT "Player" FROM table_17100 WHERE "College" = 'Direct to NBA' AND "School" = 'St. Vincent – St. Mary High School' AND "Year" = '2001-2002' |
How many bank branches are there? | CREATE TABLE bank (
branch_id number,
bname text,
no_of_customers number,
city text,
state text
)
CREATE TABLE customer (
cust_id text,
cust_name text,
acc_type text,
acc_bal number,
no_of_loans number,
credit_score number,
branch_id number,
state text
)
CREATE TABLE loan (
loan_id text,
loan_type text,
cust_id text,
branch_id text,
amount number
) | SELECT COUNT(*) FROM bank |
What was the startup year for the project with a nioc operator? | CREATE TABLE table_5930 (
"Country" text,
"Project Name" text,
"Year startup" text,
"Operator" text,
"Peak" text
) | SELECT "Year startup" FROM table_5930 WHERE "Operator" = 'nioc' |
What Player had a Score of 70-71=141? | CREATE TABLE table_name_80 (
player VARCHAR,
score VARCHAR
) | SELECT player FROM table_name_80 WHERE score = 70 - 71 = 141 |
What is the player listed when the score is 68-70-68-69=275 | CREATE TABLE table_28498999_5 (
player VARCHAR,
score VARCHAR
) | SELECT player FROM table_28498999_5 WHERE score = 68 - 70 - 68 - 69 = 275 |
For those records from the products and each product's manufacturer, return a scatter chart about the correlation between code and price , and group by attribute founder. | 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 T1.Code, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder |
What is the 1979 number for Standing Rock Indian Reservation when the 1989 is less than 54.9? | CREATE TABLE table_name_51 (
reservation VARCHAR
) | SELECT SUM(1979) FROM table_name_51 WHERE reservation = "standing rock indian reservation" AND 1989 < 54.9 |
What's the website for the yamagata international documentary film festival? | CREATE TABLE table_name_27 (
website VARCHAR,
name VARCHAR
) | SELECT website FROM table_name_27 WHERE name = "yamagata international documentary film festival" |
What is the long for the player with 26 carries? | CREATE TABLE table_53198 (
"Player" text,
"Car." real,
"Yards" text,
"Avg." text,
"TD's" real,
"Long" text
) | SELECT "Long" FROM table_53198 WHERE "Car." = '26' |
which player has the highest number of career home runs ? | CREATE TABLE table_203_611 (
id number,
"player" text,
"hr" number,
"date reached 500 hr" text,
"team" text,
"seasons played" text
) | SELECT "player" FROM table_203_611 ORDER BY "hr" DESC LIMIT 1 |
How many millions of U.S. viewers watched the episode titled 'New Beginnings'? | CREATE TABLE table_30683 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
) | SELECT "U.S. viewers (million)" FROM table_30683 WHERE "Title" = 'New Beginnings' |
What club has less than 60 goals against, a goal difference smaller than 1, and a position of 8? | CREATE TABLE table_14454 (
"Position" real,
"Club" text,
"Played" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Points" real,
"Goal Difference" real
) | SELECT "Club" FROM table_14454 WHERE "Goals against" < '60' AND "Goal Difference" < '1' AND "Position" = '8' |
What was the record when chicago was the visiting team? | CREATE TABLE table_51273 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) | SELECT "Record" FROM table_51273 WHERE "Visitor" = 'chicago' |
What sum of Attendance has a Week smaller than 10, and a Result of l 30-21? | CREATE TABLE table_78304 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT SUM("Attendance") FROM table_78304 WHERE "Week" < '10' AND "Result" = 'l 30-21' |
Successes smaller than 6, and Launches larger than 1, and a Failures of 2 is what sum of the partial failures? | CREATE TABLE table_name_35 (
partial_failures INTEGER,
failures VARCHAR,
successes VARCHAR,
launches VARCHAR
) | SELECT SUM(partial_failures) FROM table_name_35 WHERE successes < 6 AND launches > 1 AND failures = 2 |
What position was pick # 54? | CREATE TABLE table_29228 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Position" FROM table_29228 WHERE "Pick #" = '54' |
Who was appointed on October 21, 2011 from Quebec? | CREATE TABLE table_name_31 (
name VARCHAR,
province VARCHAR,
appointed VARCHAR
) | SELECT name FROM table_name_31 WHERE province = "quebec" AND appointed = "october 21, 2011" |
How many seasons had episode 158? | CREATE TABLE table_2226817_9 (
no_in_season INTEGER,
no_in_series VARCHAR
) | SELECT MIN(no_in_season) FROM table_2226817_9 WHERE no_in_series = 158 |
What is the result for game 5? | CREATE TABLE table_9742 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
) | SELECT "Result" FROM table_9742 WHERE "Game" = 'game 5' |
What country has the SBA Towers Tower Hayneville? | CREATE TABLE table_45247 (
"Name" text,
"Pinnacle height" text,
"Structure type" text,
"Main use" text,
"Country" text,
"Town" text
) | SELECT "Country" FROM table_45247 WHERE "Name" = 'sba towers tower hayneville' |
How much did the away team score at Victoria park? | CREATE TABLE table_name_84 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team AS score FROM table_name_84 WHERE venue = "victoria park" |
Which Run 4 has a Run 1 of 1:25.82? | CREATE TABLE table_77471 (
"Team" text,
"Athletes" text,
"Run 1" text,
"Run 2" text,
"Run 3" text,
"Run 4" text,
"Final" text
) | SELECT "Run 4" FROM table_77471 WHERE "Run 1" = '1:25.82' |
What was the home team score at Kardinia Park? | CREATE TABLE table_name_43 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team AS score FROM table_name_43 WHERE venue = "kardinia park" |
What dates was champion masahiro kawamura at the ibaraki country club tournament? | CREATE TABLE table_name_6 (
dates VARCHAR,
tournament_location VARCHAR,
champion VARCHAR
) | SELECT dates FROM table_name_6 WHERE tournament_location = "ibaraki country club" AND champion = "masahiro kawamura" |
How many television station listing have a radio station as lao national radio? | CREATE TABLE table_30745 (
"IOC Code" text,
"Country" text,
"Network Station" text,
"Television Station" text,
"Radio Station" text
) | SELECT COUNT("Television Station") FROM table_30745 WHERE "Radio Station" = 'Lao National Radio' |
What is the status of the airport line? | CREATE TABLE table_1603807_2 (
status VARCHAR,
line VARCHAR
) | SELECT status FROM table_1603807_2 WHERE line = "Airport line" |
What is the first class team of the player born on 23 February 1973? | CREATE TABLE table_name_70 (
first_class_team VARCHAR,
date_of_birth VARCHAR
) | SELECT first_class_team FROM table_name_70 WHERE date_of_birth = "23 february 1973" |
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 MIN("District") FROM table_23331 WHERE "Residence" = 'Newtown Square' |
Show me about the distribution of All_Home and Team_ID , and group by attribute ACC_Home in a bar chart, and rank x-axis from low to high order. | 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, Team_ID FROM basketball_match GROUP BY ACC_Home, All_Home ORDER BY All_Home |
Which Conference Joined has a Previous Conference of northwestern, and a Mascot of oilers? | CREATE TABLE table_name_95 (
conference_joined VARCHAR,
previous_conference VARCHAR,
mascot VARCHAR
) | SELECT conference_joined FROM table_name_95 WHERE previous_conference = "northwestern" AND mascot = "oilers" |
What is the release date of the CD by EG Records in the UK? | CREATE TABLE table_57026 (
"Country" text,
"Release Date" real,
"Music Label" text,
"Media" text,
"Catalogue Number" text
) | SELECT SUM("Release Date") FROM table_57026 WHERE "Media" = 'cd' AND "Country" = 'uk' AND "Music Label" = 'eg records' |
With which association did estribillo ii run as Horse 1? | CREATE TABLE table_10578 (
"Year" real,
"City" text,
"Rider 1" text,
"Rider 2" text,
"Horse 1" text,
"Horse 2" text,
"Association" text
) | SELECT "Association" FROM table_10578 WHERE "Horse 1" = 'estribillo ii' |
What years did Marienhof run, which featured Leonore Capell and lasted 10 years? | CREATE TABLE table_name_88 (
years VARCHAR,
actor VARCHAR,
soap_opera VARCHAR,
duration VARCHAR
) | SELECT years FROM table_name_88 WHERE soap_opera = "marienhof" AND duration = "10 years" AND actor = "leonore capell" |
Which nationality's pick was 415? | CREATE TABLE table_name_21 (
nationality VARCHAR,
pick VARCHAR
) | SELECT nationality FROM table_name_21 WHERE pick = "415" |
does toronto 's population grow more or less than hamilton 's ? | CREATE TABLE table_204_113 (
id number,
"rank" number,
"area" text,
"state/\nprovince" text,
"csa/cma\n2009 population" number,
"projected\n2025 population" number,
"projected increase\n2009-2025" number
) | SELECT (SELECT "projected increase\n2009-2025" FROM table_204_113 WHERE "area" = 'toronto') > (SELECT "projected increase\n2009-2025" FROM table_204_113 WHERE "area" = 'hamilton') |
What is Fitzroy's Home team Crowd? | CREATE TABLE table_name_90 (
crowd INTEGER,
home_team VARCHAR
) | SELECT SUM(crowd) FROM table_name_90 WHERE home_team = "fitzroy" |
who was phil ward racing 's other driver ? | CREATE TABLE table_203_161 (
id number,
"pos." text,
"div." number,
"no." number,
"team" text,
"drivers" text,
"car" text,
"laps" number,
"qual.\npos." number
) | SELECT "drivers" FROM table_203_161 WHERE "team" = 'phil ward racing' AND "drivers" <> 'phil ward' |