instruction
stringlengths 5
766
| input
stringlengths 38
5.51k
| response
stringlengths 4
3.91k
|
---|---|---|
What did the Dallara chassis with a 5 start in 2006 finish? | CREATE TABLE table_42279 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" text,
"Finish" real,
"Team" text
) | SELECT "Finish" FROM table_42279 WHERE "Chassis" = 'dallara' AND "Start" = '5' AND "Year" = '2006' |
A scatter chart shows the correlation between ACC_Percent and All_Games_Percent , and group by attribute All_Neutral. | 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_Percent, All_Games_Percent FROM basketball_match GROUP BY All_Neutral |
What is the sum of Artist Steve Hepburn's Mintage? | CREATE TABLE table_54944 (
"Year" real,
"Artist" text,
"Composition" text,
"Mintage" real,
"Issue Price" text
) | SELECT SUM("Mintage") FROM table_54944 WHERE "Artist" = 'steve hepburn' |
What isthe minor (South) winners total number is the primary (South) winners is Mendip Gate? | CREATE TABLE table_25635 (
"Season" text,
"Junior (South) Winners" text,
"Intermediate (South) Winners" text,
"Minor (South) Winners" text,
"Primary (South) Winners" text
) | SELECT COUNT("Minor (South) Winners") FROM table_25635 WHERE "Primary (South) Winners" = 'Mendip Gate' |
gshp , ground at 10degrees is next to low output temp or high output temp ? | CREATE TABLE table_203_195 (
id number,
"pump type and source" text,
"typical use" text,
"35 \u00b0c\n(e.g. heated screed floor)" number,
"45 \u00b0c\n(e.g. heated screed floor)" number,
"55 \u00b0c\n(e.g. heated timber floor)" number,
"65 \u00b0c\n(e.g. radiator or dhw)" number,
"75 \u00b0c\n(e.g. radiator and dhw)" number,
"85 \u00b0c\n(e.g. radiator and dhw)" number
) | SELECT "typical use" FROM table_203_195 WHERE "pump type and source" = 'gshp, ground at 10 °c' |
How many people directed episode 3 in the season? | CREATE TABLE table_25277262_2 (
directed_by VARCHAR,
no_in_season VARCHAR
) | SELECT COUNT(directed_by) FROM table_25277262_2 WHERE no_in_season = 3 |
What was the lowest number of points scored in the league cup? | CREATE TABLE table_22683369_8 (
league INTEGER
) | SELECT MIN(league) AS Cup FROM table_22683369_8 |
what is the next whitworth size -lrb- in -rrb- below 1/8 ? | CREATE TABLE table_204_828 (
id number,
"whitworth size (in)" number,
"core diameter (in)" number,
"threads per inch" number,
"pitch (in)" number,
"tapping drill size" text
) | SELECT "whitworth size (in)" FROM table_204_828 WHERE id = (SELECT id FROM table_204_828 WHERE "whitworth size (in)" = '1/8') + 1 |
is the best time for the 100 m more or less than the time for the 110 m hurdles ? | CREATE TABLE table_203_102 (
id number,
"event" text,
"performance" text,
"athlete" text,
"nation" text,
"place" text,
"date" text
) | SELECT (SELECT "performance" FROM table_203_102 WHERE "event" = '100 m') > (SELECT "performance" FROM table_203_102 WHERE "event" = '110 m hurdles') |
how many stadiums have a capacity between 6000 and 8000 ? | CREATE TABLE table_203_420 (
id number,
"#" number,
"stadium" text,
"capacity" number,
"city" text,
"home team" text
) | SELECT COUNT("stadium") FROM table_203_420 WHERE "capacity" >= 6000 AND "capacity" <= 8000 |
What was the table position for the team whose outgoing manager was Brian Laws? | CREATE TABLE table_28800 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Position in table" text,
"Incoming manager" text,
"Date of appointment" text
) | SELECT "Position in table" FROM table_28800 WHERE "Outgoing manager" = 'Brian Laws' |
How many players played each position Plot them as bar chart, and rank in asc by the y-axis. | CREATE TABLE team (
Team_id int,
Name text
)
CREATE TABLE player (
Player_ID int,
Player text,
Years_Played text,
Total_WL text,
Singles_WL text,
Doubles_WL text,
Team int
)
CREATE TABLE match_season (
Season real,
Player text,
Position text,
Country int,
Team int,
Draft_Pick_Number int,
Draft_Class text,
College text
)
CREATE TABLE country (
Country_id int,
Country_name text,
Capital text,
Official_native_language text
) | SELECT Position, COUNT(*) FROM match_season GROUP BY Position ORDER BY COUNT(*) |
how many people lived in predeal in 2011 ? | CREATE TABLE table_203_465 (
id number,
"name" text,
"population (2002 census)" number,
"population (2007 estimation)" number,
"population (2011 census)" number,
"area (km2)" number,
"density (pop/km2)" number
) | SELECT "population (2011 census)" FROM table_203_465 WHERE "name" = 'predeal' |
What is the 2010 for the grand slam tournaments of 2007? | CREATE TABLE table_name_44 (
Id VARCHAR
) | SELECT 2010 FROM table_name_44 WHERE 2007 = "grand slam tournaments" |
Find the names of catalog entries with level number 8. | CREATE TABLE Catalog_Contents_Additional_Attributes (
catalog_entry_id VARCHAR,
catalog_level_number VARCHAR
)
CREATE TABLE Catalog_Contents (
catalog_entry_name VARCHAR,
catalog_entry_id VARCHAR
) | SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.catalog_level_number = "8" |
What's jim colbert's highest rank? | CREATE TABLE table_name_60 (
rank INTEGER,
player VARCHAR
) | SELECT MAX(rank) FROM table_name_60 WHERE player = "jim colbert" |
What Away Competition had a Result of lost 2-4? | CREATE TABLE table_7905 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" text,
"Competition" text,
"Man of the Match" text
) | SELECT "Competition" FROM table_7905 WHERE "Venue" = 'away' AND "Result" = 'lost 2-4' |
What day was the record 14-27? | CREATE TABLE table_23274514_6 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_23274514_6 WHERE record = "14-27" |
Name the least matches for year 2008 | CREATE TABLE table_15829930_5 (
matches INTEGER,
year VARCHAR
) | SELECT MIN(matches) FROM table_15829930_5 WHERE year = 2008 |
First elected in 1807 1817 in what district? | CREATE TABLE table_2668336_17 (
district VARCHAR,
first_elected VARCHAR
) | SELECT district FROM table_2668336_17 WHERE first_elected = "1807 1817" |
what track was next after all i got ? | CREATE TABLE table_203_701 (
id number,
"#" number,
"title" text,
"featured guest(s)" text,
"producer(s)" text,
"length" text
) | SELECT "title" FROM table_203_701 WHERE "#" = (SELECT "#" FROM table_203_701 WHERE "title" = '"all i got"') + 1 |
Bin the year attribute into the Year interval and count them for a bar chart, and rank total number in desc order. | CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE appellations (
No INTEGER,
Appelation TEXT,
County TEXT,
State TEXT,
Area TEXT,
isAVA TEXT
)
CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
) | SELECT Year, COUNT(Year) FROM wine ORDER BY COUNT(Year) DESC |
What is the title of the episode with production code 305? | CREATE TABLE table_26448179_4 (
title VARCHAR,
production_code VARCHAR
) | SELECT title FROM table_26448179_4 WHERE production_code = 305 |
What years did number 54 play for the jazz | CREATE TABLE table_16858 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | SELECT "Years for Jazz" FROM table_16858 WHERE "No." = '54' |
What were the LOA metres for the yacht ichi ban? | CREATE TABLE table_3313 (
"Position" real,
"Sail number" text,
"Yacht" text,
"State/country" text,
"Yacht type" text,
"LOA (Metres)" text,
"Skipper" text,
"Corrected time d:hh:mm:ss" text
) | SELECT "LOA (Metres)" FROM table_3313 WHERE "Yacht" = 'Ichi Ban' |
For those records from the products and each product's manufacturer, give me the comparison about the average of code over the headquarter , and group by attribute headquarter, and could you order in desc by the x axis? | 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.Headquarter, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Headquarter ORDER BY T2.Headquarter DESC |
What was the result of week 13? | CREATE TABLE table_name_38 (
result VARCHAR,
week VARCHAR
) | SELECT result FROM table_name_38 WHERE week = 13 |
What is the place when the performance is 60.73m? | CREATE TABLE table_name_65 (
place VARCHAR,
performance VARCHAR
) | SELECT place FROM table_name_65 WHERE performance = "60.73m" |
how many people attended the game in november against sunderland ? | CREATE TABLE table_204_318 (
id number,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" number,
"scorers" text
) | SELECT "attendance" FROM table_204_318 WHERE "date" = 11 AND "opponent" = 'sunderland' |
What is To Par, when Player is 'Tommy Bolt'? | CREATE TABLE table_name_55 (
to_par VARCHAR,
player VARCHAR
) | SELECT to_par FROM table_name_55 WHERE player = "tommy bolt" |
Draw a bar chart of name versus age, and I want to rank by the x axis in asc. | CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
)
CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
)
CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
) | SELECT Name, Age FROM editor ORDER BY Name |
What country had a film in 1993? | CREATE TABLE table_70029 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Director(s)" text
) | SELECT "Country" FROM table_70029 WHERE "Year" = '1993' |
What Call sign has a City of license of higgston, ga? | CREATE TABLE table_name_95 (
call_sign VARCHAR,
city_of_license VARCHAR
) | SELECT call_sign FROM table_name_95 WHERE city_of_license = "higgston, ga" |
Where did the player who won in 1965 finish? | CREATE TABLE table_name_92 (
finish VARCHAR,
year_s__won VARCHAR
) | SELECT finish FROM table_name_92 WHERE year_s__won = "1965" |
Which team played Footscray? | CREATE TABLE table_11606 (
"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_11606 WHERE "Home team" = 'footscray' |
What was the Match Report for the Euro2008q at the Athens Olympic Stadium on November 17, 2007? | CREATE TABLE table_67793 (
"Date" text,
"Venue" text,
"Score" text,
"Competition" text,
"Match report" text
) | SELECT "Match report" FROM table_67793 WHERE "Competition" = 'euro2008q' AND "Venue" = 'athens olympic stadium' AND "Date" = 'november 17, 2007' |
What is Status, when Newspaper/Magazine is Al-Thawra? | CREATE TABLE table_name_24 (
status VARCHAR,
newspaper_magazine VARCHAR
) | SELECT status FROM table_name_24 WHERE newspaper_magazine = "al-thawra" |
What is the largest frequency owned by multicultural broadcasting with a Format of vietnamese? | CREATE TABLE table_14920 (
"Station" text,
"Frequency" real,
"Network Affiliation" text,
"Format" text,
"City of License" text,
"Status" text
) | SELECT MAX("Frequency") FROM table_14920 WHERE "Status" = 'owned by multicultural broadcasting' AND "Format" = 'vietnamese' |
What is the score in the touranament of Antalya-Belek? | CREATE TABLE table_name_66 (
score VARCHAR,
tournament VARCHAR
) | SELECT score FROM table_name_66 WHERE tournament = "antalya-belek" |
Which engine has a Chassis of lotus 44 f2? | CREATE TABLE table_name_24 (
engine VARCHAR,
chassis VARCHAR
) | SELECT engine FROM table_name_24 WHERE chassis = "lotus 44 f2" |
what are all the type where location is st ives, cambridgeshire | CREATE TABLE table_17253 (
"Station Number" text,
"District" text,
"Location" text,
"Type" text,
"Appliances" text,
"Registrations" text
) | SELECT "Type" FROM table_17253 WHERE "Location" = 'St Ives, Cambridgeshire' |
What is the Rank of the swimmer with a Time of 49 in Lane 7 or larger? | CREATE TABLE table_64464 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
) | SELECT COUNT("Rank") FROM table_64464 WHERE "Time" = '49' AND "Lane" > '7' |
what is the mascot when the school is warsaw? | CREATE TABLE table_64076 (
"School" text,
"Location" text,
"Mascot" text,
"County" text,
"Year Joined" text,
"Previous Conference" text,
"Year Left" text
) | SELECT "Mascot" FROM table_64076 WHERE "School" = 'warsaw' |
What was the total effic for the quarterbacks? | CREATE TABLE table_9027 (
"Name" text,
"GP-GS" text,
"Effic" real,
"Att-Cmp-Int" text,
"Avg/G" real
) | SELECT MIN("Effic") FROM table_9027 WHERE "Name" = 'total' |
What is the highest number of draws with 14 points and less than 7 games? | CREATE TABLE table_38237 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
) | SELECT MAX("Drawn") FROM table_38237 WHERE "Points" = '14' AND "Games" < '7' |
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 Team_ID, School_ID FROM basketball_match GROUP BY Team_Name |
What is the sum of the bronze medals when there were less than 8 total medals, 0 silver medals and a rank of 9? | CREATE TABLE table_64785 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Bronze") FROM table_64785 WHERE "Total" < '8' AND "Rank" = '9' AND "Silver" < '0' |
What is the athlete from Edwardsville? | CREATE TABLE table_17616 (
"Rank" real,
"Fastest time (s)" text,
"Wind (m/s)" text,
"Athlete" text,
"Nation" text,
"Date" text,
"Location" text
) | SELECT "Athlete" FROM table_17616 WHERE "Location" = 'Edwardsville' |
What's the post code of the county with the Chinese name / ? | CREATE TABLE table_23303 (
"English Name" text,
"Chinese Name (Simplified / Traditional)" text,
"Pinyin" text,
"Population" real,
"Post Code" real
) | SELECT MIN("Post Code") FROM table_23303 WHERE "Chinese Name (Simplified / Traditional)" = '潜山县 / 潛山縣' |
What is the to par of player john buczek, who has a t9 place and is from the United States? | CREATE TABLE table_46821 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "To par" FROM table_46821 WHERE "Place" = 't9' AND "Country" = 'united states' AND "Player" = 'john buczek' |
What is the natural change per year for the 34 IMR group? | CREATE TABLE table_29509 (
"Period" text,
"Live births per year" text,
"Deaths per year" text,
"Natural change per year" text,
"CBR*" text,
"CDR*" text,
"NC*" text,
"TFR*" text,
"IMR*" real,
"Life expectancy total" text,
"Life expectancy males" text,
"Life expectancy females" text
) | SELECT "Natural change per year" FROM table_29509 WHERE "IMR*" = '34' |
What 1997, has qf as a 1994, and 1r as a 1999? | CREATE TABLE table_name_6 (
Id VARCHAR
) | SELECT 1997 FROM table_name_6 WHERE 1994 = "qf" AND 1999 = "1r" |
What year is the founding year, for the school that had an enrollment in 2005 of 963? | CREATE TABLE table_2076490_1 (
founded VARCHAR,
enrollment__2005_ VARCHAR
) | SELECT founded FROM table_2076490_1 WHERE enrollment__2005_ = "963" |
What date did Episode 22 originally air? | CREATE TABLE table_23392257_4 (
original_airdate VARCHAR,
_number VARCHAR
) | SELECT COUNT(original_airdate) FROM table_23392257_4 WHERE _number = 22 |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the average of manufacturer , and group by attribute name, I want to show by the X in desc. | 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.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name DESC |
what's the tries against with tries for being 47 | CREATE TABLE table_12828723_3 (
tries_against VARCHAR,
tries_for VARCHAR
) | SELECT tries_against FROM table_12828723_3 WHERE tries_for = "47" |
Which Draws has a Wins smaller than 17, and an Against smaller than 1158? | CREATE TABLE table_6897 (
"Peel" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT COUNT("Draws") FROM table_6897 WHERE "Wins" < '17' AND "Against" < '1158' |
Who is the player in guard position from Stephen F. Austin in a round less than 8? | CREATE TABLE table_45213 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"School/Club Team" text
) | SELECT "Player" FROM table_45213 WHERE "Round" < '8' AND "Position" = 'guard' AND "School/Club Team" = 'stephen f. austin' |
Which Game has a Score of w 90 82 (ot)? | CREATE TABLE table_name_40 (
game VARCHAR,
score VARCHAR
) | SELECT game FROM table_name_40 WHERE score = "w 90–82 (ot)" |
How many averages were listed for the couple who had 12 dances? | CREATE TABLE table_23662356_3 (
average VARCHAR,
number_of_dances VARCHAR
) | SELECT COUNT(average) FROM table_23662356_3 WHERE number_of_dances = 12 |
What is the May 7 finalist? | CREATE TABLE table_name_14 (
finalist VARCHAR,
week VARCHAR
) | SELECT finalist FROM table_name_14 WHERE week = "may 7" |
What is the earliest week with an opponent of cincinnati bengals? | CREATE TABLE table_name_15 (
week INTEGER,
opponent VARCHAR
) | SELECT MIN(week) FROM table_name_15 WHERE opponent = "cincinnati bengals" |
Which school/club team has a player named Mark Sanford? | CREATE TABLE table_15463188_17 (
school_club_team VARCHAR,
name VARCHAR
) | SELECT school_club_team FROM table_15463188_17 WHERE name = "Mark Sanford" |
What's the leader team in the Trofeo Fast Team in stage 20? | CREATE TABLE table_17563 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Young rider classification" text,
"Intergiro classification" text,
"Trofeo Fast Team" text
) | SELECT "Trofeo Fast Team" FROM table_17563 WHERE "Stage" = '20' |
How many ends lost for Alberta when stolen ends are greater than 7? | CREATE TABLE table_9712 (
"Province" text,
"Skip" text,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
) | SELECT SUM("Ends Lost") FROM table_9712 WHERE "Province" = 'alberta' AND "Stolen Ends" > '7' |
Which Zone 2008 has Services of greater anglia, and a Station of cheshunt? | CREATE TABLE table_name_17 (
zone_2008 VARCHAR,
services VARCHAR,
station VARCHAR
) | SELECT zone_2008 FROM table_name_17 WHERE services = "greater anglia" AND station = "cheshunt" |
what is the result for the world group, semifinals after the year 1997? | CREATE TABLE table_52583 (
"Year" real,
"Competition" text,
"Date" text,
"Location" text,
"Score" text,
"Result" text
) | SELECT "Result" FROM table_52583 WHERE "Year" > '1997' AND "Competition" = 'world group, semifinals' |
What year resulted in 54 laps? | CREATE TABLE table_name_39 (
year VARCHAR,
laps VARCHAR
) | SELECT year FROM table_name_39 WHERE laps = 54 |
What is the power that belongs to Class A with an Identifier of CBOC-FM? | CREATE TABLE table_name_90 (
power VARCHAR,
class VARCHAR,
identifier VARCHAR
) | SELECT power FROM table_name_90 WHERE class = "a" AND identifier = "cboc-fm" |
at the 2006 gran premio telmex , who finished last ? | CREATE TABLE table_204_496 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
) | SELECT "driver" FROM table_204_496 ORDER BY "pos" DESC LIMIT 1 |
If the episode was number 234, what was it's timeslot? | CREATE TABLE table_2639433_4 (
timeslot VARCHAR,
episodes VARCHAR
) | SELECT timeslot FROM table_2639433_4 WHERE episodes = 234 |
how many years was it before the first partly free status ? | CREATE TABLE table_203_528 (
id number,
"year" number,
"political rights" number,
"civil liberties" number,
"status" text,
"president" text
) | SELECT COUNT("year") FROM table_203_528 WHERE id < (SELECT id FROM table_203_528 WHERE "status" = 'partly free') |
Visualize a bar chart about the distribution of meter_600 and ID , and order by the bars in asc. | CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
) | SELECT meter_600, ID FROM swimmer ORDER BY meter_600 |
In the Tennis Masters Cup, how did Ji Nov k do in 1997? | CREATE TABLE table_7412 (
"Tournament" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"1999" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text
) | SELECT "1997" FROM table_7412 WHERE "Tournament" = 'tennis masters cup' |
What was the highest Pick for Lonnie Brockman before round 9? | CREATE TABLE table_name_30 (
pick INTEGER,
player VARCHAR,
round VARCHAR
) | SELECT MAX(pick) FROM table_name_30 WHERE player = "lonnie brockman" AND round < 9 |
What date was the away team from Adelaide? | CREATE TABLE table_8168 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Date" text,
"Crowd" real
) | SELECT "Date" FROM table_8168 WHERE "Away team" = 'adelaide' |
How many companies each investor has invested? Show me a bar chart. | CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
) | SELECT Investor, COUNT(Investor) FROM entrepreneur GROUP BY Investor |
How many draft picks is player byron dafoe? | CREATE TABLE table_2897457_2 (
pick__number VARCHAR,
player VARCHAR
) | SELECT COUNT(pick__number) FROM table_2897457_2 WHERE player = "Byron Dafoe" |
What is the date when Miranda Gore Browne was runner-up? | CREATE TABLE table_30849 (
"Series" real,
"Premiere" text,
"Finale" text,
"Runners-up" text,
"Winner" text
) | SELECT "Finale" FROM table_30849 WHERE "Runners-up" = 'Miranda Gore Browne' |
What 7:00 has a 10:00 of dirty sexy money? | CREATE TABLE table_67978 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text,
"10:30" text
) | SELECT "7:00" FROM table_67978 WHERE "10:00" = 'dirty sexy money' |
How many problems does the product with the most problems have? List the number of the problems and product name. | CREATE TABLE product (
product_name VARCHAR,
product_id VARCHAR
)
CREATE TABLE problems (
product_id VARCHAR
) | SELECT COUNT(*), T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY COUNT(*) DESC LIMIT 1 |
What is the name of the US Acres episode following the Garfield episode titled Robodie II? | CREATE TABLE table_22390 (
"Episode" text,
"Garfield Episode 1" text,
"U.S. Acres Episode" text,
"Garfield Episode 2" text,
"Original Airdate" text
) | SELECT "U.S. Acres Episode" FROM table_22390 WHERE "Garfield Episode 1" = 'Robodie II' |
weekday , and could you order in ascending by the y-axis? | CREATE TABLE farm (
Farm_ID int,
Year int,
Total_Horses real,
Working_Horses real,
Total_Cattle real,
Oxen real,
Bulls real,
Cows real,
Pigs real,
Sheep_and_Goats real
)
CREATE TABLE competition_record (
Competition_ID int,
Farm_ID int,
Rank int
)
CREATE TABLE city (
City_ID int,
Official_Name text,
Status text,
Area_km_2 real,
Population real,
Census_Ranking text
)
CREATE TABLE farm_competition (
Competition_ID int,
Year int,
Theme text,
Host_city_ID int,
Hosts text
) | SELECT Year, COUNT(Year) FROM city AS T1 JOIN farm_competition AS T2 ON T1.City_ID = T2.Host_city_ID ORDER BY COUNT(Year) |
What's the agency of the member born on 1998.11.09? | CREATE TABLE table_name_32 (
agency VARCHAR,
birthday VARCHAR
) | SELECT agency FROM table_name_32 WHERE birthday = "1998.11.09" |
What club/province has 41 caps? | CREATE TABLE table_name_66 (
club_province VARCHAR,
caps VARCHAR
) | SELECT club_province FROM table_name_66 WHERE caps = 41 |
How many people are under 40 for each gender. Plot them as bar chart. | CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
) | SELECT gender, COUNT(*) FROM Person WHERE age < 40 GROUP BY gender |
What year was the team named the Raiders established? | CREATE TABLE table_20526 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
) | SELECT MAX("Founded") FROM table_20526 WHERE "Team Nickname" = 'Raiders' |
Which area has Years of 1 8, and a Name of broomfield school? | CREATE TABLE table_name_9 (
area VARCHAR,
years VARCHAR,
name VARCHAR
) | SELECT area FROM table_name_9 WHERE years = "1–8" AND name = "broomfield school" |
Find those themes and years for all exhibitions with ticket prices lower than 15, show me a stacked bar chart that groups by themes, counts year, and the x-axis is Year, I want to show how many year in descending order. | CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
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
) | SELECT Year, COUNT(Year) FROM exhibition WHERE Ticket_Price < 15 GROUP BY Theme ORDER BY COUNT(Year) DESC |
Which branding has the format of southern country? | CREATE TABLE table_22831 (
"DMA" real,
"Market" text,
"Station" text,
"Frequency" text,
"Branding" text,
"Format" text
) | SELECT "Branding" FROM table_22831 WHERE "Format" = 'Southern Country' |
Who is team c when dhez javier is team e? | CREATE TABLE table_name_44 (
team_c VARCHAR,
team_e VARCHAR
) | SELECT team_c FROM table_name_44 WHERE team_e = "dhez javier" |
Which record has an Attendance larger than 12,552, and a Score of 7-0? | CREATE TABLE table_15617 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Record" FROM table_15617 WHERE "Attendance" > '12,552' AND "Score" = '7-0' |
What is the total number of losses that have 1 draw and games over 7? | CREATE TABLE table_name_31 (
lost VARCHAR,
drawn VARCHAR,
games VARCHAR
) | SELECT COUNT(lost) FROM table_name_31 WHERE drawn = 1 AND games > 7 |
How many were in Attendance on December 11, 1954? | CREATE TABLE table_name_14 (
attendance VARCHAR,
date VARCHAR
) | SELECT COUNT(attendance) FROM table_name_14 WHERE date = "december 11, 1954" |
WHAT IS THE PLAYER WITH A SCORE OF 66? | CREATE TABLE table_name_76 (
player VARCHAR,
score VARCHAR
) | SELECT player FROM table_name_76 WHERE score = 66 |
When was Shannon Long the Centerfold model? | CREATE TABLE table_41912 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text
) | SELECT "Date" FROM table_41912 WHERE "Centerfold model" = 'shannon long' |
Which Crowd has a Home team of st kilda? | CREATE TABLE table_47719 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_47719 WHERE "Home team" = 'st kilda' |
What is the defective year for the regular year of 29 days and month sequence of 2? | CREATE TABLE table_30897 (
"Month Sequence" real,
"Numbered Month" text,
"Month Name" text,
"Regular Year" text,
"Defective Year" real,
"Excessive Year" real
) | SELECT MAX("Defective Year") FROM table_30897 WHERE "Regular Year" = '29 days' AND "Month Sequence" = '2' |
What was the time of the games that took place at the cassell coliseum blacksburg, va? | CREATE TABLE table_74398 (
"Date" text,
"Time" text,
"ACC Team" text,
"Big Ten Team" text,
"Location" text,
"Television" text,
"Attendance" real,
"Winner" text,
"Challenge Leader" text
) | SELECT "Time" FROM table_74398 WHERE "Location" = 'Cassell Coliseum • Blacksburg, VA' |
What year did the team from City of Aurora join? | CREATE TABLE table_63668 (
"School" text,
"City" text,
"Team Name" text,
"Enrollment 08-09" real,
"IHSAA Class" text,
"IHSAA Class Football" text,
"County" text,
"Year Joined (Or Joining)" real,
"Previous Conference" text
) | SELECT AVG("Year Joined (Or Joining)") FROM table_63668 WHERE "City" = 'aurora' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.