instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
What was the score at Spartan Stadium when San Jose was the Home team? | CREATE TABLE table_35500 (
"Date" text,
"Home Team" text,
"Score" text,
"Away Team" text,
"Venue" text
) | SELECT "Score" FROM table_35500 WHERE "Home Team" = 'san jose' AND "Venue" = 'spartan stadium' |
What year was USF founded? | CREATE TABLE table_262 (
"University Name" text,
"Acronym" text,
"Date founded" real,
"Website" text,
"Official registration notes" text
) | SELECT "Date founded" FROM table_262 WHERE "Acronym" = 'USF' |
What is the Name of the Players with a Rank of 18? | CREATE TABLE table_name_67 (
name VARCHAR,
rank VARCHAR
) | SELECT name FROM table_name_67 WHERE rank = 18 |
Tell what has the App(GS/Sub) of 14 (8/6) | CREATE TABLE table_name_70 (
name VARCHAR,
app_gs_sub_ VARCHAR
) | SELECT name FROM table_name_70 WHERE app_gs_sub_ = "14 (8/6)" |
On what date is Hawthorn the home team? | CREATE TABLE table_name_10 (
date VARCHAR,
home_team VARCHAR
) | SELECT date FROM table_name_10 WHERE home_team = "hawthorn" |
what is the capacity when the code is d4f bi-fuel 732? | CREATE TABLE table_14849 (
"Name" text,
"Code" text,
"Capacity" text,
"Power" text,
"Acceleration 0\u2013100km/h" text,
"Top speed" text,
"Combined consumption" text
) | SELECT "Capacity" FROM table_14849 WHERE "Code" = 'd4f bi-fuel 732' |
Which Away team has a Score of 0 3? | CREATE TABLE table_name_4 (
away_team VARCHAR,
score VARCHAR
) | SELECT away_team FROM table_name_4 WHERE score = "0–3" |
What is the construction of Olivier Panis' car that retired due to a collision? | CREATE TABLE table_name_23 (
constructor VARCHAR,
time_retired VARCHAR,
driver VARCHAR
) | SELECT constructor FROM table_name_23 WHERE time_retired = "collision" AND driver = "olivier panis" |
What day had a time of 29.816? | CREATE TABLE table_53907 (
"Record" text,
"Year" text,
"Date" text,
"Driver" text,
"Car Make" text,
"Time" text,
"Average Speed (mph)" text
) | SELECT "Date" FROM table_53907 WHERE "Time" = '29.816' |
Name the total number of height for number 32 | CREATE TABLE table_25360865_1 (
height VARCHAR,
_number VARCHAR
) | SELECT COUNT(height) FROM table_25360865_1 WHERE _number = 32 |
What class is volleyball in 2000? | CREATE TABLE table_name_40 (
class VARCHAR,
sport VARCHAR,
year VARCHAR
) | SELECT class FROM table_name_40 WHERE sport = "volleyball" AND year = 2000 |
What is the highest elevation for the highest point of Schnebelhorn? | CREATE TABLE table_63629 (
"Rank" real,
"Canton" text,
"Highest point" text,
"Highest elevation" text,
"Lowest point" text,
"Lowest elevation" text
) | SELECT "Highest elevation" FROM table_63629 WHERE "Highest point" = 'schnebelhorn' |
What is Name, when Length Meters is greater than 66.4, and when Km From Kingston is 138.8? | CREATE TABLE table_name_54 (
name VARCHAR,
length_meters VARCHAR,
km_from_kingston VARCHAR
) | SELECT name FROM table_name_54 WHERE length_meters > 66.4 AND km_from_kingston = 138.8 |
what is the lowest geo id? | CREATE TABLE table_22460 (
"Township" text,
"County" text,
"Pop. (2010)" real,
"Land ( sqmi )" text,
"Water (sqmi)" text,
"Latitude" text,
"Longitude" text,
"GEO ID" real,
"ANSI code" real
) | SELECT MIN("GEO ID") FROM table_22460 |
What tournament that Fernando Roca is the runner-up? | CREATE TABLE table_name_14 (
tournament VARCHAR,
runner_s__up VARCHAR
) | SELECT tournament FROM table_name_14 WHERE runner_s__up = "fernando roca" |
What is the number of countries in the artist table?, I want to order from high to low by the x-axis. | CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join int,
Age int
)
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
) | SELECT Country, COUNT(Country) FROM artist GROUP BY Country ORDER BY Country DESC |
What is the Campanius term for an Unami Delaware term of pal naxk? | CREATE TABLE table_52527 (
"Munsee Delaware" text,
"Unami Delaware" text,
"De Laet (1633)" text,
"Campanius (ca. 1645)" text,
"Interpreter (1684?)" text,
"Thomas (1698)" text
) | SELECT "Campanius (ca. 1645)" FROM table_52527 WHERE "Unami Delaware" = 'palé·naxk' |
What was the average finish in 2007? | CREATE TABLE table_2507 (
"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 "Avg. Finish" FROM table_2507 WHERE "Year" = '2007' |
Which Fumb TD has an Int TD of 1, and a Fumb F. smaller than 1? | CREATE TABLE table_name_72 (
fumb_td INTEGER,
int_td VARCHAR,
fumb_f VARCHAR
) | SELECT MIN(fumb_td) FROM table_name_72 WHERE int_td = 1 AND fumb_f < 1 |
What is the value for Slalom in seasons later than 1994 and overall value greater than 22? | CREATE TABLE table_35320 (
"Season" real,
"Overall" real,
"Slalom" text,
"Giant Slalom" real,
"Super G" text,
"Downhill" text,
"Combined" text
) | SELECT "Slalom" FROM table_35320 WHERE "Season" > '1994' AND "Overall" > '22' |
Name the cyrillic name for melenci | CREATE TABLE table_3334 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
) | SELECT "Cyrillic Name Other Names" FROM table_3334 WHERE "Settlement" = 'Melenci' |
Where did the cable-stayed Badong Bridge open in 2005? | CREATE TABLE table_name_18 (
location VARCHAR,
name VARCHAR,
type VARCHAR,
opened VARCHAR
) | SELECT location FROM table_name_18 WHERE type = "cable-stayed" AND opened = 2005 AND name = "badong bridge" |
What is the lowest pick from Elitserien (Sweden)? | CREATE TABLE table_57108 (
"Pick #" real,
"Player" text,
"Nationality" text,
"Position" text,
"Team from" text,
"League from" text
) | SELECT MIN("Pick #") FROM table_57108 WHERE "League from" = 'elitserien (sweden)' |
How many times was the game 39? | CREATE TABLE table_17299 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("Record") FROM table_17299 WHERE "Game" = '39' |
What is the top goal for the result of 2 3? | CREATE TABLE table_name_39 (
goal INTEGER,
result VARCHAR
) | SELECT MAX(goal) FROM table_name_39 WHERE result = "2–3" |
Draw a pie chart about the proportion of ACC_Regular_Season and ACC_Percent. | 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, ACC_Percent FROM basketball_match |
During which loss was the record 48-50? | CREATE TABLE table_name_45 (
loss VARCHAR,
record VARCHAR
) | SELECT loss FROM table_name_45 WHERE record = "48-50" |
What is the Attendance of the game with a Record of 37 21 12 and less than 86 Points? | CREATE TABLE table_name_44 (
attendance INTEGER,
record VARCHAR,
points VARCHAR
) | SELECT AVG(attendance) FROM table_name_44 WHERE record = "37–21–12" AND points < 86 |
Who ran in the election where Claude Fuller was the incumbent? | CREATE TABLE table_72423 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Candidates" FROM table_72423 WHERE "Incumbent" = 'Claude Fuller' |
What is the game with the golden state warriors? | CREATE TABLE table_name_37 (
game VARCHAR,
team VARCHAR
) | SELECT game FROM table_name_37 WHERE team = "golden state warriors" |
Who is the Runner-up that has a Season less than 2005? | CREATE TABLE table_39340 (
"Season" real,
"Winner" text,
"Score" text,
"Runner-up" text,
"Venue" text
) | SELECT "Runner-up" FROM table_39340 WHERE "Season" < '2005' |
How many series were directed by Rob Renzetti? | CREATE TABLE table_18734298_1 (
no_in_series VARCHAR,
directed_by VARCHAR
) | SELECT COUNT(no_in_series) FROM table_18734298_1 WHERE directed_by = "Rob Renzetti" |
what is the number of goals scored in the algarve cup on march 5 , 2002 ? | CREATE TABLE table_204_346 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"result" text,
"competition" text,
"scored" number
) | SELECT "scored" FROM table_204_346 WHERE "date" = '5 march 2002' |
Name the lowest yards for 34 long and avg less than 12.6 | CREATE TABLE table_name_3 (
yards INTEGER,
long VARCHAR,
avg VARCHAR
) | SELECT MIN(yards) FROM table_name_3 WHERE long = 34 AND avg < 12.6 |
List the record from the game where Wildcats had 48 points. | CREATE TABLE table_24561550_1 (
record VARCHAR,
wildcats_points VARCHAR
) | SELECT record FROM table_24561550_1 WHERE wildcats_points = 48 |
What is the timeslot for the episode that aired April 28, 2009? | CREATE TABLE table_name_26 (
timeslot VARCHAR,
air_date VARCHAR
) | SELECT timeslot FROM table_name_26 WHERE air_date = "april 28, 2009" |
What is the home team's score for north melbourne? | CREATE TABLE table_name_57 (
home_team VARCHAR
) | SELECT home_team AS score FROM table_name_57 WHERE home_team = "north melbourne" |
Who was the opponent at the game that had a loss of Bell (6 9)? | CREATE TABLE table_name_96 (
opponent VARCHAR,
loss VARCHAR
) | SELECT opponent FROM table_name_96 WHERE loss = "bell (6–9)" |
What is the ground of the tim trophy competition, which had a time of 23:00 cet? | CREATE TABLE table_name_83 (
ground VARCHAR,
competition VARCHAR,
time VARCHAR
) | SELECT ground FROM table_name_83 WHERE competition = "tim trophy" AND time = "23:00 cet" |
What is the national share of the country whose area is 148064 km^2? | CREATE TABLE table_1630 (
"Rank" real,
"Administrative Division" text,
"Area (km\u00b2)" real,
"Area (sq mi)" real,
"National Share (%)" text,
"Comparable Country" text
) | SELECT "National Share (%)" FROM table_1630 WHERE "Area (km\u00b2)" = '148064' |
who won more gold medals , brazil or china ? | CREATE TABLE table_203_630 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_203_630 WHERE "nation" IN ('brazil', 'china') ORDER BY "gold" DESC LIMIT 1 |
What is the smallest Wins with a Position of 20th, and Poles smaller than 0? | CREATE TABLE table_name_19 (
wins INTEGER,
position VARCHAR,
poles VARCHAR
) | SELECT MIN(wins) FROM table_name_19 WHERE position = "20th" AND poles < 0 |
What is Record, when Date is 'March 1'? | CREATE TABLE table_8365 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
) | SELECT "Record" FROM table_8365 WHERE "Date" = 'march 1' |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of headquarter and the sum of manufacturer , and group by attribute headquarter, list in desc by the Y. | 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 Headquarter, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY SUM(Manufacturer) DESC |
Tell me the goals for score of 38-28 | CREATE TABLE table_name_54 (
goals VARCHAR,
score VARCHAR
) | SELECT goals FROM table_name_54 WHERE score = "38-28" |
What was the Independent Church's Split off/ Continuation? | CREATE TABLE table_name_44 (
split_off___continuation_of VARCHAR,
church_name VARCHAR
) | SELECT split_off___continuation_of FROM table_name_44 WHERE church_name = "independent church" |
Which operating system has a storage (flash) of 128MB? | CREATE TABLE table_name_18 (
operating_system_version VARCHAR,
storage___flash__ VARCHAR
) | SELECT operating_system_version FROM table_name_18 WHERE storage___flash__ = "128mb" |
Bar chart of the number of hometown from each hometown, and I want to display total number in descending order. | CREATE TABLE member (
Member_ID int,
Card_Number text,
Name text,
Hometown text,
Level int
)
CREATE TABLE branch (
Branch_ID int,
Name text,
Open_year text,
Address_road text,
City text,
membership_amount text
)
CREATE TABLE purchase (
Member_ID int,
Branch_ID text,
Year text,
Total_pounds real
)
CREATE TABLE membership_register_branch (
Member_ID int,
Branch_ID text,
Register_Year text
) | SELECT Hometown, COUNT(Hometown) FROM member GROUP BY Hometown ORDER BY COUNT(Hometown) DESC |
Which team has 10 losses? | CREATE TABLE table_41853 (
"Team" text,
"Match" real,
"Points" real,
"Draw" real,
"Lost" real
) | SELECT "Team" FROM table_41853 WHERE "Lost" = '10' |
What County has a Longitude of 85 45 43 w? | CREATE TABLE table_34781 (
"County" text,
"Monument name" text,
"Year built" real,
"City or Town" text,
"Latitude" text,
"Longitude" text
) | SELECT "County" FROM table_34781 WHERE "Longitude" = '85°45′43″w' |
What is the total number of Dates during which the Catalog nebbc003 was given? | CREATE TABLE table_name_71 (
date INTEGER,
catalog VARCHAR
) | SELECT SUM(date) FROM table_name_71 WHERE catalog = "nebbc003" |
What is the GPU frequency for the processor released in June 2013, with a sSpec number of sr17l(c0)? | CREATE TABLE table_name_27 (
gpu_frequency VARCHAR,
release_date VARCHAR,
sspec_number VARCHAR
) | SELECT gpu_frequency FROM table_name_27 WHERE release_date = "june 2013" AND sspec_number = "sr17l(c0)" |
What record medal event has athletics as the sport, with robert garrett as the athlete, and a medal count less than 3? | CREATE TABLE table_63604 (
"Medal count" real,
"Date" text,
"Athlete" text,
"Nation" text,
"Sport" text,
"Record medal event" text
) | SELECT "Record medal event" FROM table_63604 WHERE "Sport" = 'athletics' AND "Athlete" = 'robert garrett' AND "Medal count" < '3' |
When was the runner-up Jane Geddes? | CREATE TABLE table_name_35 (
year VARCHAR,
runner_up VARCHAR
) | SELECT year FROM table_name_35 WHERE runner_up = "jane geddes" |
What is the Spouse of the Duchess that has a Death on 6 april 1780? | CREATE TABLE table_6453 (
"Birth" text,
"Marriage" text,
"Became Duchess" text,
"Ceased to be Duchess" text,
"Death" text,
"Spouse" text
) | SELECT "Spouse" FROM table_6453 WHERE "Death" = '6 april 1780' |
Give me the title and highest price for each film Show bar chart, list from low to high by the Y. | CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
)
CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
) | SELECT Title, MAX(T1.Price) FROM schedule AS T1 JOIN film AS T2 ON T1.Film_ID = T2.Film_ID GROUP BY Title ORDER BY MAX(T1.Price) |
What site(s) for tv station tv3? | CREATE TABLE table_1601792_4 (
site VARCHAR,
television_station VARCHAR
) | SELECT site FROM table_1601792_4 WHERE television_station = "TV3" |
which country won the same amount of medals as bulgaria in these olympics ? | CREATE TABLE table_204_822 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_204_822 WHERE "nation" <> 'bulgaria' AND "total" = (SELECT "total" FROM table_204_822 WHERE "nation" = 'bulgaria') |
Which Draws has a Wins of 10, and a Peel of south mandurah, and a Byes larger than 0? | CREATE TABLE table_name_28 (
draws INTEGER,
byes VARCHAR,
wins VARCHAR,
peel VARCHAR
) | SELECT AVG(draws) FROM table_name_28 WHERE wins = 10 AND peel = "south mandurah" AND byes > 0 |
What is Branding, when Callsign is 'DXED-TV'? | CREATE TABLE table_name_73 (
branding VARCHAR,
callsign VARCHAR
) | SELECT branding FROM table_name_73 WHERE callsign = "dxed-tv" |
Who was the team guest captain for episode 2? | CREATE TABLE table_28132 (
"Episode" real,
"Air Date" text,
"Team Swash" text,
"Team guest captain" text,
"Team Coxy" text
) | SELECT "Team guest captain" FROM table_28132 WHERE "Episode" = '2' |
Who was the finalist in the Monte Carlo Tournament? | CREATE TABLE table_name_91 (
finalist VARCHAR,
tournament VARCHAR
) | SELECT finalist FROM table_name_91 WHERE tournament = "monte carlo" |
What event has 7860 notes? | CREATE TABLE table_name_86 (
event VARCHAR,
notes VARCHAR
) | SELECT event FROM table_name_86 WHERE notes = "7860" |
What team has an against more than 8, lost of 7, and the position is 5? | CREATE TABLE table_75775 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT "Team" FROM table_75775 WHERE "Against" > '8' AND "Lost" = '7' AND "Position" = '5' |
On what date was the record set with a time of 1:07.18? | CREATE TABLE table_49190 (
"Event" text,
"Time" text,
"Name" text,
"Nation" text,
"Games" text,
"Date" text
) | SELECT "Date" FROM table_49190 WHERE "Time" = '1:07.18' |
Who is the head coach of the team, whose shirt sponsor is karstadt quelle versicherungen? | CREATE TABLE table_48625 (
"Team" text,
"Head coach" text,
"Team captain" text,
"Kitmaker" text,
"Shirt sponsor" text
) | SELECT "Head coach" FROM table_48625 WHERE "Shirt sponsor" = 'karstadt quelle versicherungen' |
what is the number of players who weight over 200 pounds ? | CREATE TABLE table_204_105 (
id number,
"#" number,
"name" text,
"height" text,
"weight (lbs.)" number,
"position" text,
"class" text,
"hometown" text,
"previous team(s)" text
) | SELECT COUNT("name") FROM table_204_105 WHERE "weight (lbs.)" > 200 |
What is the Year commissioned of the power station with a Gross head of 60 metres and Average annual output of less than 59 million KWh? | CREATE TABLE table_76085 (
"Name" text,
"Year commissioned" real,
"Gross head (metres)" real,
"Installed capacity (megawatts)" real,
"Average annual output (million KWh)" real
) | SELECT MAX("Year commissioned") FROM table_76085 WHERE "Gross head (metres)" = '60' AND "Average annual output (million KWh)" < '59' |
For those products with a price between 60 and 120, return a bar chart about the distribution of name and manufacturer , and sort in desc by the y-axis. | 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 Name, Manufacturer FROM Products WHERE Price BETWEEN 60 AND 120 ORDER BY Manufacturer DESC |
What is Current Rank, when Ring Name is Kimurayama Mamoru? | CREATE TABLE table_40076 (
"Ring name" text,
"Current rank" text,
"Debut" text,
"Stable" text,
"Birthplace" text
) | SELECT "Current rank" FROM table_40076 WHERE "Ring name" = 'kimurayama mamoru' |
what is the total number of goals for when the ties is more than 0, the goals against is more than 35 and the wins is less than 2? | CREATE TABLE table_name_48 (
goals_for VARCHAR,
wins VARCHAR,
ties VARCHAR,
goals_against VARCHAR
) | SELECT COUNT(goals_for) FROM table_name_48 WHERE ties > 0 AND goals_against > 35 AND wins < 2 |
What is the average number of drawn with a difference of 17 and 22 points? | CREATE TABLE table_41538 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT AVG("Drawn") FROM table_41538 WHERE "Difference" = '17' AND "Points" = '22' |
Which date has a score of 2-1? | CREATE TABLE table_name_6 (
date VARCHAR,
score VARCHAR
) | SELECT date FROM table_name_6 WHERE score = "2-1" |
Who scored 74-70-67=211 and placed t5? | CREATE TABLE table_name_6 (
player VARCHAR,
place VARCHAR,
score VARCHAR
) | SELECT player FROM table_name_6 WHERE place = "t5" AND score = 74 - 70 - 67 = 211 |
Who is the player from round 8? | CREATE TABLE table_50913 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) | SELECT "Player" FROM table_50913 WHERE "Round" = '8' |
For the race Champion Spark Plug 300, what is the report? | CREATE TABLE table_4653 (
"Race Name" text,
"Circuit" text,
"City/Location" text,
"Date" text,
"Pole position" text,
"Winning driver" text,
"Winning team" text,
"Report" text
) | SELECT "Report" FROM table_4653 WHERE "Race Name" = 'champion spark plug 300' |
Tell me the date for new orleans saints | CREATE TABLE table_name_22 (
date VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_name_22 WHERE opponent = "new orleans saints" |
Who has 187kg and a Snatch of Clean & Jerk? | CREATE TABLE table_65876 (
"World record" text,
"Snatch" text,
"Andrei Rybakou ( BLR )" text,
"187kg" text,
"Chiang Mai , Thailand" text
) | SELECT "187kg" FROM table_65876 WHERE "Snatch" = 'clean & jerk' |
What's the total attendance at anaheim stadium after 1983 when the result is 14-28? | CREATE TABLE table_name_67 (
attendance VARCHAR,
result VARCHAR,
year VARCHAR,
venue VARCHAR
) | SELECT COUNT(attendance) FROM table_name_67 WHERE year > 1983 AND venue = "anaheim stadium" AND result = "14-28" |
What was the population in 2010 for Minane | CREATE TABLE table_24373 (
"Barangay" text,
"Population (2000)" real,
"Population (2007)" real,
"Population (2010)" real,
"Barangay Fiesta" text
) | SELECT MAX("Population (2010)") FROM table_24373 WHERE "Barangay" = 'Minane' |
What club has 536 points for? | CREATE TABLE table_13741576_6 (
club VARCHAR,
points_for VARCHAR
) | SELECT club FROM table_13741576_6 WHERE points_for = "536" |
in what date was aired the first broacast of the episode 1x02 | CREATE TABLE table_17413485_1 (
first_broadcast VARCHAR,
episode VARCHAR
) | SELECT first_broadcast FROM table_17413485_1 WHERE episode = "1x02" |
The hanja is for what capital? | CREATE TABLE table_160510_1 (
capital VARCHAR,
hanja VARCHAR
) | SELECT capital FROM table_160510_1 WHERE hanja = "尙州" |
When was the mcdonald's lpga championship? | CREATE TABLE table_17335602_1 (
date VARCHAR,
tournament VARCHAR
) | SELECT date FROM table_17335602_1 WHERE tournament = "McDonald's LPGA Championship" |
What's the score for opponent @ Tigers on July 24? | CREATE TABLE table_name_58 (
score VARCHAR,
opponent VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_58 WHERE opponent = "@ tigers" AND date = "july 24" |
What was the total number of Laps for the rider whose time was +7.951? | CREATE TABLE table_name_2 (
laps VARCHAR,
time VARCHAR
) | SELECT COUNT(laps) FROM table_name_2 WHERE time = "+7.951" |
In which week was attendance at 50,814? | CREATE TABLE table_42912 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT COUNT("Week") FROM table_42912 WHERE "Attendance" = '50,814' |
What are all the labels? | CREATE TABLE Albums (
label VARCHAR
) | SELECT DISTINCT label FROM Albums |
From how many years did tampa, FL depart? | CREATE TABLE table_name_76 (
year INTEGER,
departed_from VARCHAR
) | SELECT SUM(year) FROM table_name_76 WHERE departed_from = "tampa, fl" |
Which home team scored 12.11 (83)? | CREATE TABLE table_56113 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_56113 WHERE "Home team score" = '12.11 (83)' |
Name the opponent for august 26 | CREATE TABLE table_14408 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Opponent" FROM table_14408 WHERE "Date" = 'august 26' |
Who was the visiting team when Winnipeg was the home team? | CREATE TABLE table_name_33 (
visitor VARCHAR,
home VARCHAR
) | SELECT visitor FROM table_name_33 WHERE home = "winnipeg" |
How many weeks have an attendance less than 26,048? | CREATE TABLE table_61657 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
) | SELECT SUM("Week") FROM table_61657 WHERE "Attendance" < '26,048' |
What results in 2012 also has 2013 results of 2r and the tournament was Wimbledon? | CREATE TABLE table_41425 (
"Tournament" text,
"2003" text,
"2004" text,
"2012" text,
"2013" text
) | SELECT "2012" FROM table_41425 WHERE "2013" = '2r' AND "Tournament" = 'wimbledon' |
What place did the player that took won $350 finish in? | CREATE TABLE table_name_21 (
place VARCHAR,
money___$__ VARCHAR
) | SELECT place FROM table_name_21 WHERE money___$__ = 350 |
Which college has 41 picks? | CREATE TABLE table_name_86 (
college VARCHAR,
pick__number VARCHAR
) | SELECT college FROM table_name_86 WHERE pick__number = 41 |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the sum of code , and group by attribute name, sort total number of code in asc order. | 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 T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Code |
What home team played against Richmond? | CREATE TABLE table_52073 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team" FROM table_52073 WHERE "Away team" = 'richmond' |
What is the total number of times points were listed when the distance was 41.05 metres? | CREATE TABLE table_28704 (
"Rank" real,
"Athlete" text,
"Country" text,
"Distance (metres)" text,
"Points" text,
"Adjusted Points" real
) | SELECT COUNT("Points") FROM table_28704 WHERE "Distance (metres)" = '41.05' |
What was Fuzzy Zoeller's score in the United States? | CREATE TABLE table_9624 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Score" FROM table_9624 WHERE "Country" = 'united states' AND "Player" = 'fuzzy zoeller' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.