instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
Bar chart x axis nationality y axis how many nationality, and list in descending by the Y-axis.
|
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
)
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
)
|
SELECT Nationality, COUNT(Nationality) FROM swimmer GROUP BY Nationality ORDER BY COUNT(Nationality) DESC
|
For those records from the products and each product's manufacturer, a bar chart shows the distribution of headquarter and the average of manufacturer , and group by attribute headquarter.
|
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, AVG(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter
|
which team did not have more than 16 wins ?
|
CREATE TABLE table_203_412 (
id number,
"school" text,
"conference" text,
"record (conference)" text,
"head coach" text,
"cws appearances" text,
"cws best finish" text,
"cws record" text
)
|
SELECT "school" FROM table_203_412 WHERE "record (conference)" <= 16
|
What is the 1985 value for the year when GDP as of 2012 after PPP was 369.38?
|
CREATE TABLE table_30133_3 (
gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ VARCHAR
)
|
SELECT 1985 FROM table_30133_3 WHERE gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ = "369.38"
|
What Player is from Connecticut?
|
CREATE TABLE table_46647 (
"Pick" real,
"Player" text,
"Nationality" text,
"New WNBA Team" text,
"Former WNBA Team" text,
"College/Country/Team" text
)
|
SELECT "Player" FROM table_46647 WHERE "College/Country/Team" = 'connecticut'
|
What is the Tenure of the Officer who died in a helicopter accident with Badge/Serial Number 16805?
|
CREATE TABLE table_name_95 (
tenure VARCHAR,
cause_of_death VARCHAR,
badge_serial_number VARCHAR
)
|
SELECT tenure FROM table_name_95 WHERE cause_of_death = "helicopter accident" AND badge_serial_number = "16805"
|
How many goals were scored by Eugene Galekovi ?
|
CREATE TABLE table_name_54 (
goals VARCHAR,
player VARCHAR
)
|
SELECT goals FROM table_name_54 WHERE player = "eugene galeković"
|
What is the region 4 (Aus) date associated with a region 1 (US) date of January 16, 2007?
|
CREATE TABLE table_240936_2 (
region_4__australia_ VARCHAR,
region_1__us_ VARCHAR
)
|
SELECT region_4__australia_ FROM table_240936_2 WHERE region_1__us_ = "January 16, 2007"
|
Name the opponent with loss of sanderson (9-8)
|
CREATE TABLE table_75609 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
)
|
SELECT "Opponent" FROM table_75609 WHERE "Loss" = 'sanderson (9-8)'
|
What is the total of all YARDS with 0 SACK and less than 14 P/KO RET?
|
CREATE TABLE table_54010 (
"Year" text,
"TCKL" real,
"SACK" real,
"P/KO RET" real,
"YARDS" real
)
|
SELECT COUNT("YARDS") FROM table_54010 WHERE "SACK" = '0' AND "P/KO RET" < '14'
|
How many points are there for rank 5 with more than 34 games?
|
CREATE TABLE table_name_80 (
points VARCHAR,
rank VARCHAR,
games VARCHAR
)
|
SELECT COUNT(points) FROM table_name_80 WHERE rank = 5 AND games > 34
|
What is the record of the game with 28,135 people in attendance?
|
CREATE TABLE table_name_30 (
record VARCHAR,
attendance VARCHAR
)
|
SELECT record FROM table_name_30 WHERE attendance = "28,135"
|
What is the year range of season 4?
|
CREATE TABLE table_24966 (
"No." real,
"Season" text,
"Championship" real,
"No. of teams" real,
"Start (reg. season)" text,
"Finish (incl. championship)" text,
"Top record" text,
"National Champion" text
)
|
SELECT "Season" FROM table_24966 WHERE "No." = '4'
|
The Kansas City Wizards had a 9-10-9 record and what goals against avg?
|
CREATE TABLE table_17708 (
"Club" text,
"Overall Record" text,
"Goals For" real,
"Goals For Avg." text,
"Goals Against" real,
"Goals Against Avg." text
)
|
SELECT "Goals Against Avg." FROM table_17708 WHERE "Overall Record" = '9-10-9'
|
What is the finishing time with a 2/1q finish on the Meadowlands track?
|
CREATE TABLE table_name_10 (
fin_time VARCHAR,
finish VARCHAR,
track VARCHAR
)
|
SELECT fin_time FROM table_name_10 WHERE finish = "2/1q" AND track = "the meadowlands"
|
Name the crownded for 17 september 1025
|
CREATE TABLE table_26516 (
"Co-king" text,
"Relationship to Monarch" text,
"Crowned" text,
"Co-kingship ceased" text,
"Reason" text,
"Monarch" text
)
|
SELECT "Crowned" FROM table_26516 WHERE "Co-kingship ceased" = '17 September 1025'
|
what is the 1406 komppa of asteroid which 1391 carelia is 1460 haltia
|
CREATE TABLE table_21566 (
"1391 Carelia" text,
"1398 Donnera" text,
"1405 Sibelius" text,
"1406 Komppa" text,
"1407 Lindel\u00f6f" text
)
|
SELECT "1406 Komppa" FROM table_21566 WHERE "1391 Carelia" = '1460 Haltia'
|
how many total games did the chicago bears win in the 1980s ?
|
CREATE TABLE table_204_855 (
id number,
"year" number,
"date" text,
"winner" text,
"result" text,
"loser" text,
"attendance" number,
"location" text
)
|
SELECT COUNT(*) FROM table_204_855 WHERE "winner" = 'chicago bears'
|
hba1c > 7 % and not to exceed 10.5 % .
|
CREATE TABLE table_dev_26 (
"id" int,
"gender" string,
"hemoglobin_a1c_hba1c" float,
"dyslipidemia" bool,
"body_weight" float,
"hba1c" float,
"body_mass_index_bmi" float,
"hypertension" bool,
"NOUSE" float
)
|
SELECT * FROM table_dev_26 WHERE hba1c > 7 AND hemoglobin_a1c_hba1c < 10.5
|
where was the location of the last venue held ?
|
CREATE TABLE table_204_813 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
)
|
SELECT "venue" FROM table_204_813 ORDER BY "year" DESC LIMIT 1
|
What is the score on 22 September 1972?
|
CREATE TABLE table_name_24 (
score VARCHAR,
date VARCHAR
)
|
SELECT score FROM table_name_24 WHERE date = "22 september 1972"
|
Which away team has a venue of Arden Street Oval?
|
CREATE TABLE table_name_76 (
away_team VARCHAR,
venue VARCHAR
)
|
SELECT away_team FROM table_name_76 WHERE venue = "arden street oval"
|
Name the segment c for pottery
|
CREATE TABLE table_15187735_3 (
segment_c VARCHAR,
segment_b VARCHAR
)
|
SELECT segment_c FROM table_15187735_3 WHERE segment_b = "Pottery"
|
What is the PA when the PF is 73?
|
CREATE TABLE table_29565601_2 (
pa INTEGER,
pf VARCHAR
)
|
SELECT MIN(pa) FROM table_29565601_2 WHERE pf = 73
|
Show the name of each county along with the corresponding number of delegates from that county.
|
CREATE TABLE county (
County_Id int,
County_name text,
Population real,
Zip_code text
)
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
Attorney_General text,
US_Senate text
)
CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
|
SELECT County_name, COUNT(*) FROM county AS T1 JOIN election AS T2 ON T1.County_Id = T2.District GROUP BY T1.County_Id
|
What is the rating of the episode with a share of 4 and a rating/share (18-49) of 0.7/2?
|
CREATE TABLE table_28088 (
"Episode Number" real,
"Episode" text,
"Rating" text,
"Share" real,
"Rating/Share (18-49)" text,
"Viewers (millions)" text,
"Rank (Timeslot)" real,
"Rank (Night)" real
)
|
SELECT "Rating" FROM table_28088 WHERE "Share" = '4' AND "Rating/Share (18-49)" = '0.7/2'
|
Name the status for points 3185
|
CREATE TABLE table_73561 (
"Seed" real,
"Rank" real,
"Player" text,
"Points" real,
"Points defending" text,
"Points won" real,
"New points" real,
"Status" text
)
|
SELECT "Status" FROM table_73561 WHERE "Points" = '3185'
|
which team had the top transfer come in ?
|
CREATE TABLE table_203_440 (
id number,
"rank" number,
"player" text,
"from" text,
"to" text,
"transfer fee\n(\u20ac million)" number,
"year" number
)
|
SELECT "to" FROM table_203_440 ORDER BY "rank" LIMIT 1
|
what is the molecules when the percent mass is 1.0?
|
CREATE TABLE table_name_8 (
molecules VARCHAR,
percent_of_mass VARCHAR
)
|
SELECT molecules FROM table_name_8 WHERE percent_of_mass = "1.0"
|
Return a pie chart about 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
|
A bar chart shows the distribution of All_Home and the amount of All_Home , and group by attribute All_Home, and sort by the x axis from high to low.
|
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_Home, COUNT(All_Home) FROM basketball_match GROUP BY All_Home ORDER BY All_Home DESC
|
What number has 2002-2003 as the season?
|
CREATE TABLE table_name_32 (
number VARCHAR,
season VARCHAR
)
|
SELECT number FROM table_name_32 WHERE season = "2002-2003"
|
What is 4:30 pm, when Noon is 'Local Programs', and when 11:00 am is 'Local Programs'?
|
CREATE TABLE table_61154 (
"7:00 am" text,
"7:30 am" text,
"8:00 am" text,
"9:00 am" text,
"11:00 am" text,
"noon" text,
"12:30 pm" text,
"1:00 pm" text,
"1:30 pm" text,
"2:00 pm" text,
"3:00 pm" text,
"3:30 pm" text,
"4:00 pm" text,
"4:30 pm" text,
"5:00 pm" text,
"6:30 pm" text
)
|
SELECT "4:30 pm" FROM table_61154 WHERE "noon" = 'local programs' AND "11:00 am" = 'local programs'
|
What was the home score for the Home team Melbourne?
|
CREATE TABLE table_10710 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
|
SELECT "Home team score" FROM table_10710 WHERE "Home team" = 'melbourne'
|
Which Against has a Draws larger than 0, a Losses smaller than 16, and a Wins smaller than 4?
|
CREATE TABLE table_name_50 (
against INTEGER,
wins VARCHAR,
draws VARCHAR,
losses VARCHAR
)
|
SELECT MAX(against) FROM table_name_50 WHERE draws > 0 AND losses < 16 AND wins < 4
|
What is the earliest year a Chairman who took office after 2011 is up for reelection?
|
CREATE TABLE table_name_80 (
up_for_reelection INTEGER,
took_office VARCHAR,
position VARCHAR
)
|
SELECT MIN(up_for_reelection) FROM table_name_80 WHERE took_office > 2011 AND position = "chairman"
|
What is 2011, when 2010 is 'WTA Premier 5 Tournaments'?
|
CREATE TABLE table_78687 (
"Tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
)
|
SELECT "2011" FROM table_78687 WHERE "2010" = 'wta premier 5 tournaments'
|
What is Jonathan Kaye's money list ranking?
|
CREATE TABLE table_4212 (
"Player" text,
"Starts" real,
"Cuts made" real,
"Best finish" text,
"Money list rank" text,
"Earnings ($)" real
)
|
SELECT COUNT("Money list rank") FROM table_4212 WHERE "Player" = 'Jonathan Kaye'
|
What was the type of sussex?
|
CREATE TABLE table_357 (
"L&CR No." real,
"Type" text,
"Manufacturer" text,
"Delivered" text,
"Name" text,
"Jt. Cttee No." real,
"1845 disposal" text
)
|
SELECT "Type" FROM table_357 WHERE "Name" = 'Sussex'
|
What was the surface for the game that was played on 12-Apr-2005?
|
CREATE TABLE table_name_50 (
surface VARCHAR,
date VARCHAR
)
|
SELECT surface FROM table_name_50 WHERE date = "12-apr-2005"
|
Which race has a Margin of 8?
|
CREATE TABLE table_name_5 (
race VARCHAR,
margin VARCHAR
)
|
SELECT race FROM table_name_5 WHERE margin = "8"
|
how many shows were modern dramas ?
|
CREATE TABLE table_204_671 (
id number,
"airing\ndate" text,
"english title\n(chinese title)" text,
"number of episodes" number,
"main cast" text,
"theme song (t)\nsub-theme song (st)" text,
"genre" text,
"notes" text,
"official website" text
)
|
SELECT COUNT(*) FROM table_204_671 WHERE "genre" = 'modern drama'
|
What is the location for the software of BIND and an IPv6 address of 2001:503:c27::2:30?
|
CREATE TABLE table_46736 (
"Letter" text,
"IPv6 address" text,
"AS-number" text,
"Operator" text,
"Location #sites (global/local)" text,
"Software" text
)
|
SELECT "Location #sites (global/local)" FROM table_46736 WHERE "Software" = 'bind' AND "IPv6 address" = '2001:503:c27::2:30'
|
who wrote s01e06
|
CREATE TABLE table_73201 (
"No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"Television order" text
)
|
SELECT "Written by" FROM table_73201 WHERE "Television order" = 'S01E06'
|
How many blockings occured in the game with 198 rebounds?
|
CREATE TABLE table_73476 (
"Player" text,
"Games Played" real,
"Minutes" real,
"Field Goals" real,
"Three Pointers" real,
"Free Throws" real,
"Rebounds" real,
"Assists" real,
"Blocks" real,
"Steals" real,
"Points" real
)
|
SELECT MAX("Blocks") FROM table_73476 WHERE "Rebounds" = '198'
|
What is the highest population of Trondra Island in the Scalloway Islands?
|
CREATE TABLE table_name_17 (
population INTEGER,
location VARCHAR,
island VARCHAR
)
|
SELECT MAX(population) FROM table_name_17 WHERE location = "scalloway islands" AND island = "trondra"
|
What daft pick number is the player coming from Regina Pats (WHL)?
|
CREATE TABLE table_2850912_1 (
pick__number VARCHAR,
college_junior_club_team VARCHAR
)
|
SELECT pick__number FROM table_2850912_1 WHERE college_junior_club_team = "Regina Pats (WHL)"
|
A bar chart shows the distribution of All_Home and the average of Team_ID , and group by attribute All_Home, rank by the y-axis from low to high.
|
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_Home, AVG(Team_ID) FROM basketball_match GROUP BY All_Home ORDER BY AVG(Team_ID)
|
What is the swimsuit score for the item that has 7.61 as evening gown
|
CREATE TABLE table_15081939_4 (
swimsuit VARCHAR,
evening_gown VARCHAR
)
|
SELECT swimsuit FROM table_15081939_4 WHERE evening_gown = "7.61"
|
What is the combined attendance of all games that had a result of w 35-14?
|
CREATE TABLE table_78334 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
|
SELECT SUM("Attendance") FROM table_78334 WHERE "Result" = 'w 35-14'
|
tell me the number of stations tv azteca owns .
|
CREATE TABLE table_204_796 (
id number,
"network name" text,
"flagship" text,
"programming type" text,
"owner" text,
"affiliates" number
)
|
SELECT COUNT("network name") FROM table_204_796 WHERE "owner" = 'tv azteca'
|
How many millions of people in the US saw the episode with production code 214?
|
CREATE TABLE table_23502 (
"No. in series" text,
"No. in season" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
)
|
SELECT "U.S. viewers (millions)" FROM table_23502 WHERE "Production code" = '214'
|
previous to the tippeligaen , what was the league called ?
|
CREATE TABLE table_203_683 (
id number,
"season" text,
"league" text,
"gold" text,
"silver" text,
"bronze" text,
"winning manager" text
)
|
SELECT "league" FROM table_203_683 WHERE "season" < (SELECT "season" FROM table_203_683 WHERE "league" = 'tippeligaen') ORDER BY "season" DESC LIMIT 1
|
How many picks played Tight end?
|
CREATE TABLE table_14650162_1 (
pick__number VARCHAR,
position VARCHAR
)
|
SELECT COUNT(pick__number) FROM table_14650162_1 WHERE position = "Tight End"
|
How many bill cosponsored during those years where bills originally cosponsored is 113?
|
CREATE TABLE table_22638 (
"Years covered" text,
"All bills sponsored" real,
"All amendments sponsored" real,
"All bills cosponsored" real,
"All amendments cosponsored" real,
"Bills originally cosponsored" real,
"Amendments originally cosponsored" real
)
|
SELECT "All bills cosponsored" FROM table_22638 WHERE "Bills originally cosponsored" = '113'
|
What is the 2013 press freedom index of the country Egypt?
|
CREATE TABLE table_name_20 (
country VARCHAR
)
|
SELECT 2013 AS _press_freedom_index FROM table_name_20 WHERE country = "egypt"
|
What school has the Lancers as their mascot?
|
CREATE TABLE table_65693 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
)
|
SELECT "Location" FROM table_65693 WHERE "Mascot" = 'lancers'
|
What is every value on Thursday August 25 for rank 3?
|
CREATE TABLE table_30058355_3 (
thurs_25_aug VARCHAR,
rank VARCHAR
)
|
SELECT thurs_25_aug FROM table_30058355_3 WHERE rank = 3
|
When 2008 t is the original number what is the lowest year?
|
CREATE TABLE table_24614 (
"Original number" text,
"UIC number" text,
"Name" text,
"Constructer" text,
"constructor number" real,
"Year" real,
"Withdrawn" text,
"Kilometers worked" real
)
|
SELECT MIN("Year") FROM table_24614 WHERE "Original number" = '2008 T'
|
Which Director has a Role of melissa?
|
CREATE TABLE table_name_80 (
director VARCHAR,
role VARCHAR
)
|
SELECT director FROM table_name_80 WHERE role = "melissa"
|
which is the only nation to win a gold medal and nothing else ?
|
CREATE TABLE table_204_302 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
|
SELECT "nation" FROM table_204_302 WHERE "gold" = 1 AND "silver" = 0 AND "bronze" = 0
|
How many centerfold models were there when the cover model was Torrie Wilson?
|
CREATE TABLE table_1566852_4 (
centerfold_model VARCHAR,
cover_model VARCHAR
)
|
SELECT COUNT(centerfold_model) FROM table_1566852_4 WHERE cover_model = "Torrie Wilson"
|
What nationality for neil korzack?
|
CREATE TABLE table_23137 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
|
SELECT "Nationality" FROM table_23137 WHERE "Player" = 'Neil Korzack'
|
Visualize the total smallest rating of different movie title using a pie chart.
|
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
|
SELECT T2.title, SUM(MIN(T1.stars)) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.title
|
What was the score for 1911?
|
CREATE TABLE table_name_10 (
score VARCHAR,
year VARCHAR
)
|
SELECT score FROM table_name_10 WHERE year = 1911
|
What was the score in the game where the record was 10-9-7?
|
CREATE TABLE table_name_94 (
score VARCHAR,
record VARCHAR
)
|
SELECT score FROM table_name_94 WHERE record = "10-9-7"
|
What is the highest number of successful defenses in brandon, florida and a reign less than 1?
|
CREATE TABLE table_name_13 (
successful_defenses INTEGER,
location VARCHAR,
reign VARCHAR
)
|
SELECT MAX(successful_defenses) FROM table_name_13 WHERE location = "brandon, florida" AND reign < 1
|
Who won the 350cc at Sachsenring?
|
CREATE TABLE table_name_90 (
track VARCHAR
)
|
SELECT 350 AS _cc FROM table_name_90 WHERE track = "sachsenring"
|
What is the area of the coed school with a state authority and a roll number of 122?
|
CREATE TABLE table_69300 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
|
SELECT "Area" FROM table_69300 WHERE "Authority" = 'state' AND "Gender" = 'coed' AND "Roll" = '122'
|
who was the last ranked competitor in group a ?
|
CREATE TABLE table_204_741 (
id number,
"rank" number,
"name" text,
"nationality" text,
"1,62" text,
"1,67" text,
"1,72" text,
"1,75" text,
"notes" text
)
|
SELECT "name" FROM table_204_741 ORDER BY "rank" DESC LIMIT 1
|
What is the highest value for col(m) when prominence(m) is 3755?
|
CREATE TABLE table_18946749_4 (
col__m_ INTEGER,
prominence__m_ VARCHAR
)
|
SELECT MAX(col__m_) FROM table_18946749_4 WHERE prominence__m_ = 3755
|
Who was the opponent when they played at the Skydome?
|
CREATE TABLE table_name_53 (
opponent VARCHAR,
location_attendance VARCHAR
)
|
SELECT opponent FROM table_name_53 WHERE location_attendance = "skydome"
|
What is the highest crowd number for the home team Richmond?
|
CREATE TABLE table_name_5 (
crowd INTEGER,
home_team VARCHAR
)
|
SELECT MAX(crowd) FROM table_name_5 WHERE home_team = "richmond"
|
How many years of nasl years did the accolades read 'captained england to victory at the 1966 world cup'?
|
CREATE TABLE table_2931 (
"Player" text,
"Position" text,
"NASL years" text,
"NASL club(s)" text,
"Accolades (Pre-NASL)" text
)
|
SELECT COUNT("NASL years") FROM table_2931 WHERE "Accolades (Pre-NASL)" = 'Captained England to victory at the 1966 World Cup'
|
Capacity smaller than 3,292, and a Highest larger than 812, and a Stadium of strathclyde homes stadium has what sum of the average?
|
CREATE TABLE table_34734 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
)
|
SELECT SUM("Average") FROM table_34734 WHERE "Capacity" < '3,292' AND "Highest" > '812' AND "Stadium" = 'strathclyde homes stadium'
|
What source has a race winner of ben adriaenssen / ben van den bogaart, and the gp winner of ben adriaenssen / ben van den bogaart, for the date of 1 april?
|
CREATE TABLE table_name_8 (
source VARCHAR,
date VARCHAR,
race_winners VARCHAR,
gp_winner VARCHAR
)
|
SELECT source FROM table_name_8 WHERE race_winners = "ben adriaenssen / ben van den bogaart" AND gp_winner = "ben adriaenssen / ben van den bogaart" AND date = "1 april"
|
Which F/Laps has Podiums of 1, and a Season of 2000, and a Final Placing of nc?
|
CREATE TABLE table_name_98 (
f_laps VARCHAR,
final_placing VARCHAR,
podiums VARCHAR,
season VARCHAR
)
|
SELECT f_laps FROM table_name_98 WHERE podiums = "1" AND season = 2000 AND final_placing = "nc"
|
What was the time for the match that resulted in a loss in less than 3 rounds?
|
CREATE TABLE table_13516 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
|
SELECT "Time" FROM table_13516 WHERE "Res." = 'loss' AND "Round" < '3'
|
What date did the Boston Celtics play at Richfield Coliseum?
|
CREATE TABLE table_46302 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
|
SELECT "Date" FROM table_46302 WHERE "Location" = 'richfield coliseum'
|
Who was the winner in the stage that Damiano Cunego led the points classification?
|
CREATE TABLE table_name_48 (
winner VARCHAR,
points_classification VARCHAR
)
|
SELECT winner FROM table_name_48 WHERE points_classification = "damiano cunego"
|
what's the first elected with candidates being joe starnes (d) 100.0% george bogus ( w/i ) 0.003%
|
CREATE TABLE table_18620 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
|
SELECT "First elected" FROM table_18620 WHERE "Candidates" = 'Joe Starnes (D) 100.0% George Bogus ( W/I ) 0.003%'
|
What was the record on March 22?
|
CREATE TABLE table_34599 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
|
SELECT "Record" FROM table_34599 WHERE "Date" = 'march 22'
|
How many total wins does Ballarat FL of East point have when the against is greater than 1000?
|
CREATE TABLE table_7309 (
"Ballarat FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
|
SELECT COUNT("Wins") FROM table_7309 WHERE "Ballarat FL" = 'east point' AND "Against" > '1000'
|
What is Australia's score where they were in place t1?
|
CREATE TABLE table_61607 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
|
SELECT "Score" FROM table_61607 WHERE "Country" = 'australia' AND "Place" = 't1'
|
Who played against in venue a on 17 february 1900?
|
CREATE TABLE table_name_43 (
opponent VARCHAR,
venue VARCHAR,
date VARCHAR
)
|
SELECT opponent FROM table_name_43 WHERE venue = "a" AND date = "17 february 1900"
|
What is Package/Option, when Content is Poker?
|
CREATE TABLE table_75795 (
"Television service" text,
"Country" text,
"Language" text,
"Content" text,
"HDTV" text,
"Package/Option" text
)
|
SELECT "Package/Option" FROM table_75795 WHERE "Content" = 'poker'
|
Who is the 2008 head coach of UCLA?
|
CREATE TABLE table_name_7 (
team VARCHAR
)
|
SELECT 2008 AS _head_coach FROM table_name_7 WHERE team = "ucla"
|
How many times is the couple laura and colin?
|
CREATE TABLE table_29583818_3 (
place VARCHAR,
couple VARCHAR
)
|
SELECT COUNT(place) FROM table_29583818_3 WHERE couple = "Laura and Colin"
|
Who directed the episode that had 6.04 million viewers?
|
CREATE TABLE table_12976038_1 (
director VARCHAR,
viewers__in_millions_ VARCHAR
)
|
SELECT director FROM table_12976038_1 WHERE viewers__in_millions_ = "6.04"
|
What amount of senior high school where junior high school is 114cm?
|
CREATE TABLE table_18812 (
"Specification" text,
"Gender" text,
"Junior High School (12\u201315 yrs)" text,
"Senior High School (15\u201318 yrs)" text,
"University students and Adults (18yrs+)" text
)
|
SELECT "Senior High School (15\u201318 yrs)" FROM table_18812 WHERE "Junior High School (12\u201315 yrs)" = '114cm'
|
What is the famous release date of the artist with the oldest age?
|
CREATE TABLE artist (
artist_id number,
artist text,
age number,
famous_title text,
famous_release_date text
)
CREATE TABLE volume (
volume_id number,
volume_issue text,
issue_date text,
weeks_on_top number,
song text,
artist_id number
)
CREATE TABLE music_festival (
id number,
music_festival text,
date_of_ceremony text,
category text,
volume number,
result text
)
|
SELECT famous_release_date FROM artist ORDER BY age DESC LIMIT 1
|
Name the title for production code 2t6908
|
CREATE TABLE table_18569389_1 (
title VARCHAR,
production_code VARCHAR
)
|
SELECT title FROM table_18569389_1 WHERE production_code = "2T6908"
|
Visualize a bar chart about the distribution of All_Home and Team_ID , and group by attribute ACC_Road, I want to order in descending by the Y please.
|
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_Home, Team_ID FROM basketball_match GROUP BY ACC_Road, All_Home ORDER BY Team_ID DESC
|
What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8?
|
CREATE TABLE table_name_68 (
lane INTEGER,
time VARCHAR,
rank VARCHAR
)
|
SELECT MAX(lane) FROM table_name_68 WHERE time > 55.94 AND rank > 8
|
Which Grid has Laps smaller than 22, and a Bike of honda cbr1000rr, and a Rider of luca morelli?
|
CREATE TABLE table_8761 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
)
|
SELECT MIN("Grid") FROM table_8761 WHERE "Laps" < '22' AND "Bike" = 'honda cbr1000rr' AND "Rider" = 'luca morelli'
|
In the system where Sunday is ny yitru kizhamai, what is Saturday?
|
CREATE TABLE table_17783 (
"Day" text,
"Sunday Surya (the Sun)" text,
"Monday Soma (the Moon)" text,
"Tuesday Mangala (Mars)" text,
"Wednesday Budha (Mercury)" text,
"Thursday Guru (Jupiter)" text,
"Friday Shukra (Venus)" text,
"Saturday Shani (Saturn)" text
)
|
SELECT "Saturday Shani (Saturn)" FROM table_17783 WHERE "Sunday Surya (the Sun)" = 'ஞாயிற்று கிழமை Nyāyitru kizhamai'
|
What was the type of ballot measure with the description of Department of Industry and Public Works Amendment?
|
CREATE TABLE table_27953 (
"meas. num" real,
"passed" text,
"YES votes" real,
"NO votes" real,
"% YES" text,
"Const. Amd.?" text,
"type" text,
"description" text
)
|
SELECT "type" FROM table_27953 WHERE "description" = 'Department of Industry and Public Works Amendment'
|
What is Location, when Game is 42?
|
CREATE TABLE table_name_70 (
location VARCHAR,
game VARCHAR
)
|
SELECT location FROM table_name_70 WHERE game = 42
|
How many million U.S. viewers watched episode number 6 in the series?
|
CREATE TABLE table_25668962_1 (
us_viewers__million_ VARCHAR,
no_in_series VARCHAR
)
|
SELECT us_viewers__million_ FROM table_25668962_1 WHERE no_in_series = 6
|
How many copies per particle are created by the enterotoxin?
|
CREATE TABLE table_925 (
"RNA Segment (Gene)" real,
"Size ( s base pair )" real,
"Protein" text,
"Molecular weight kDa" text,
"Location" text,
"Copies per particle" text,
"Function" text
)
|
SELECT "Copies per particle" FROM table_925 WHERE "Function" = 'Enterotoxin'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.