instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
Which home team score has an Away team score of 15.9 (99)? | CREATE TABLE table_54551 (
"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_54551 WHERE "Away team score" = '15.9 (99)' |
Who was in 4th when in 6th is Air Traffic? | CREATE TABLE table_72843 (
"Poll Year" text,
"Winner" text,
"Second" text,
"Third" text,
"Fourth" text,
"Fifth" text,
"Sixth" text,
"Seventh" text,
"Eighth" text,
"Ninth" text,
"Tenth" text
) | SELECT "Fourth" FROM table_72843 WHERE "Sixth" = 'Air Traffic' |
How many people attended the home game for South Melbourne? | CREATE TABLE table_name_58 (
crowd INTEGER,
home_team VARCHAR
) | SELECT SUM(crowd) FROM table_name_58 WHERE home_team = "south melbourne" |
For those records from the products and each product's manufacturer, find name and the average of manufacturer , and group by attribute name, and visualize them by a bar chart. | 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 T2.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name |
In the final against Ashley Harkleroad what was the score? | CREATE TABLE table_66202 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Score" FROM table_66202 WHERE "Opponent in the final" = 'ashley harkleroad' |
With a score of 2-2, what was the Result? | CREATE TABLE table_name_30 (
result VARCHAR,
score VARCHAR
) | SELECT result FROM table_name_30 WHERE score = "2-2" |
What is the average number of House of Representatives seats had an abbreviation of d66? | CREATE TABLE table_40788 (
"Abbr." text,
"Political Leader" text,
"International Affiliation" text,
"Votes ( 2012 )" text,
"House of Rep. seats" real,
"Senate seats" real,
"European Parliament seats" real
) | SELECT AVG("House of Rep. seats") FROM table_40788 WHERE "Abbr." = 'd66' |
How many debut albums did mike mohede have? | CREATE TABLE table_1646960_3 (
debut_album VARCHAR,
winner VARCHAR
) | SELECT COUNT(debut_album) FROM table_1646960_3 WHERE winner = "Mike Mohede" |
what is the name of the coloneo of the 35th regiment | CREATE TABLE table_31155 (
"Division" text,
"Brigade" text,
"Regiment" text,
"Colonel" text,
"County" text
) | SELECT "Colonel" FROM table_31155 WHERE "Regiment" = '35th Regiment' |
Who is the March playmate with an August playmate Gianna Amore? | CREATE TABLE table_69253 (
"January" text,
"February" text,
"March" text,
"April" text,
"June" text,
"July" text,
"August" text,
"September" text,
"October" text,
"November" text,
"December" text
) | SELECT "March" FROM table_69253 WHERE "August" = 'gianna amore' |
Name the most vote % with election of 1946 | CREATE TABLE table_name_53 (
vote__percentage INTEGER,
election VARCHAR
) | SELECT MAX(vote__percentage) FROM table_name_53 WHERE election = "1946" |
Which station has a frequency of 873khz? | CREATE TABLE table_64207 (
"Frequency" text,
"Station" text,
"Operator" text,
"Country of origin" text,
"Transmitter location" text,
"Format" text
) | SELECT "Station" FROM table_64207 WHERE "Frequency" = '873khz' |
What was the label in the region of Canada? | CREATE TABLE table_46824 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Label" FROM table_46824 WHERE "Region" = 'canada' |
Find the name of companies whose revenue is between 100 and 150. | CREATE TABLE manufacturers (
name VARCHAR,
revenue INTEGER
) | SELECT name FROM manufacturers WHERE revenue BETWEEN 100 AND 150 |
What was the position of the Slavia team in 1998? | CREATE TABLE table_name_10 (
position_in_1998 VARCHAR,
team VARCHAR
) | SELECT position_in_1998 FROM table_name_10 WHERE team = "slavia" |
What year was remark #104 us? | CREATE TABLE table_36551 (
"Year" real,
"Title" text,
"Format" text,
"Label" text,
"Catalogno" text,
"Remark" text
) | SELECT "Year" FROM table_36551 WHERE "Remark" = '#104 us' |
What was the date of the game that had a goal of 3? | CREATE TABLE table_71388 (
"Goal" real,
"Date" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Date" FROM table_71388 WHERE "Goal" = '3' |
What was the highest average attendance in the 2009 season? | CREATE TABLE table_name_94 (
average_attendance INTEGER,
season VARCHAR
) | SELECT MAX(average_attendance) FROM table_name_94 WHERE season = "2009" |
hypotension requiring vasopressor therapy, despite fluid resuscitation of at least 30 cc / kg and lactate > 2 mmol / l | CREATE TABLE table_train_57 (
"id" int,
"bleeding" int,
"in_another_study" bool,
"hiv_infection" bool,
"hepatitis_c_infection" bool,
"receiving_vasopressor" bool,
"hypotension" bool,
"NOUSE" float
) | SELECT * FROM table_train_57 WHERE hypotension = 1 AND receiving_vasopressor = 1 |
What Inchicore Class has a GSR Class of 235? | CREATE TABLE table_56551 (
"Year" text,
"Type" text,
"Nos." text,
"GSWR Class" real,
"GSWR Nos." text,
"GSR Class" text,
"Inchicore Class" text,
"Withdrawn" text
) | SELECT "Inchicore Class" FROM table_56551 WHERE "GSR Class" = '235' |
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_34961 (
"Eruptions" text,
"Country" text,
"Location" text,
"Year" real,
"Volcanic Explosivity Index" text,
"Fatalities" text
) | SELECT "Eruptions" FROM table_34961 WHERE "Location" = 'pacific ring of fire' AND "Volcanic Explosivity Index" = '6' AND "Country" = 'peru' |
Who won stage 18? | CREATE TABLE table_14395920_2 (
winner VARCHAR,
stage VARCHAR
) | SELECT winner FROM table_14395920_2 WHERE stage = 18 |
What is the Points against for the ystradgynlais rfc club? | CREATE TABLE table_name_58 (
points_against VARCHAR,
club VARCHAR
) | SELECT points_against FROM table_name_58 WHERE club = "ystradgynlais rfc" |
How much do the tickets cost for August 7, 1987? | CREATE TABLE table_1845 (
"Date(s)" text,
"Venue" text,
"City, state" text,
"Ticket price(s)" text,
"Ticket sold / available" text,
"Ticket grossing" text
) | SELECT "Ticket price(s)" FROM table_1845 WHERE "Date(s)" = 'August 7, 1987' |
How much Area (km 2) has a Common of collegno, and a Population smaller than 50137? | CREATE TABLE table_name_60 (
area__km_2__ VARCHAR,
common_of VARCHAR,
population VARCHAR
) | SELECT COUNT(area__km_2__) FROM table_name_60 WHERE common_of = "collegno" AND population < 50137 |
Show me how many destination by destination in a histogram, display by the bars in ascending. | CREATE TABLE certificate (
eid number(9,0),
aid number(9,0)
)
CREATE TABLE employee (
eid number(9,0),
name varchar2(30),
salary number(10,2)
)
CREATE TABLE flight (
flno number(4,0),
origin varchar2(20),
destination varchar2(20),
distance number(6,0),
departure_date date,
arrival_date date,
price number(7,2),
aid number(9,0)
)
CREATE TABLE aircraft (
aid number(9,0),
name varchar2(30),
distance number(6,0)
) | SELECT destination, COUNT(destination) FROM flight GROUP BY destination ORDER BY destination |
What is the average cap number in scotland in 1986 1998 leass than 69? | CREATE TABLE table_54656 (
"Name" text,
"Scotland career" text,
"Caps" real,
"Goals" real,
"Average" real
) | SELECT COUNT("Average") FROM table_54656 WHERE "Caps" < '69' AND "Scotland career" = '1986–1998' |
Show me about the distribution of All_Road and All_Games_Percent in a bar chart, and I want to show by the names in desc 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 All_Road, All_Games_Percent FROM basketball_match ORDER BY All_Road DESC |
What is Nation, when Rank is greater than 2, when Total is greater than 1, and when Bronze is less than 3? | CREATE TABLE table_77021 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT "Nation" FROM table_77021 WHERE "Rank" > '2' AND "Total" > '1' AND "Bronze" < '3' |
List the state names and the number of customers living in each state. | CREATE TABLE customer_addresses (
address_id VARCHAR
)
CREATE TABLE addresses (
state_province_county VARCHAR,
address_id VARCHAR
) | SELECT t2.state_province_county, COUNT(*) FROM customer_addresses AS t1 JOIN addresses AS t2 ON t1.address_id = t2.address_id GROUP BY t2.state_province_county |
Against which team was game 21? | CREATE TABLE table_17001658_6 (
team VARCHAR,
game VARCHAR
) | SELECT team FROM table_17001658_6 WHERE game = 21 |
Show the movie titles and book titles for all companies in China. | CREATE TABLE book_club (
book_club_id number,
year number,
author_or_editor text,
book_title text,
publisher text,
category text,
result text
)
CREATE TABLE movie (
movie_id number,
title text,
year number,
director text,
budget_million number,
gross_worldwide number
)
CREATE TABLE culture_company (
company_name text,
type text,
incorporated_in text,
group_equity_shareholding number,
book_club_id text,
movie_id text
) | SELECT T1.title, T3.book_title FROM movie AS T1 JOIN culture_company AS T2 ON T1.movie_id = T2.movie_id JOIN book_club AS T3 ON T3.book_club_id = T2.book_club_id WHERE T2.incorporated_in = 'China' |
What is Party, when Minister is 'Franco Frattini'? | CREATE TABLE table_name_55 (
party VARCHAR,
minister VARCHAR
) | SELECT party FROM table_name_55 WHERE minister = "franco frattini" |
What CD has a catalog # of PCR 502? | CREATE TABLE table_name_12 (
title VARCHAR,
catalog__number VARCHAR
) | SELECT title FROM table_name_12 WHERE catalog__number = "pcr 502" |
How many total smartphones were shipped during the quarter 2012 Q1? | CREATE TABLE table_974 (
"Quarter" text,
"Android" text,
"iOS" text,
"Symbian" text,
"BlackBerry OS" text,
"Linux" text,
"Windows Phone" text,
"Other" text,
"Total" text
) | SELECT COUNT("Total") FROM table_974 WHERE "Quarter" = '2012 Q1' |
What was the english translation for the song by svetlana loboda? | CREATE TABLE table_76346 (
"Draw" real,
"Language" text,
"Artist" text,
"Song" text,
"English translation" text,
"Place" real,
"Points" real
) | SELECT "English translation" FROM table_76346 WHERE "Artist" = 'svetlana loboda' |
What was St Kilda's score as the Away team? | CREATE TABLE table_name_59 (
away_team VARCHAR
) | SELECT away_team AS score FROM table_name_59 WHERE away_team = "st kilda" |
What 7:00 has a 7:30 of w-five? | CREATE TABLE table_67383 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"10:00" text
) | SELECT "7:00" FROM table_67383 WHERE "7:30" = 'w-five' |
What's the romanised name of the official who was Secretary for health, welfare and food? | CREATE TABLE table_25185 (
"Romanised name" text,
"Chinese name" text,
"age at appointment" real,
"Portfolio" text,
"Prior occupation" text
) | SELECT "Romanised name" FROM table_25185 WHERE "Portfolio" = 'Secretary for Health, Welfare and Food' |
What is the lowest crowd with home team richmond? | CREATE TABLE table_58281 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_58281 WHERE "Home team" = 'richmond' |
How many Picks have a College of tennessee, and an Overall smaller than 270? | CREATE TABLE table_name_59 (
pick__number INTEGER,
college VARCHAR,
overall VARCHAR
) | SELECT SUM(pick__number) FROM table_name_59 WHERE college = "tennessee" AND overall < 270 |
Which Top-5 is the highest one that has Wins of 0, and Events larger than 6? | CREATE TABLE table_name_47 (
top_5 INTEGER,
wins VARCHAR,
events VARCHAR
) | SELECT MAX(top_5) FROM table_name_47 WHERE wins = 0 AND events > 6 |
Return a bar chart about the distribution of All_Home and School_ID , and group by attribute ACC_Home. | 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, School_ID FROM basketball_match GROUP BY ACC_Home, All_Home |
Where is the Venue that has an away team score of 13.16 (94) points? | CREATE TABLE table_54151 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Venue" FROM table_54151 WHERE "Away team score" = '13.16 (94)' |
What is the result for the Outer Critics Circle award earlier than 2004? | CREATE TABLE table_61106 (
"Year" real,
"Award" text,
"Category" text,
"Nominated Work" text,
"Result" text
) | SELECT "Result" FROM table_61106 WHERE "Award" = 'outer critics circle award' AND "Year" < '2004' |
What is the player that went to st. benedict's prep? | CREATE TABLE table_51427 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
) | SELECT "Player" FROM table_51427 WHERE "School" = 'st. benedict''s prep' |
What is the percentage of females where the state code is a 4? | CREATE TABLE table_19425 (
"State/UT Code" real,
"India/State/UT" text,
"Literate Persons (%)" text,
"Males (%)" text,
"Females (%)" text
) | SELECT "Females (%)" FROM table_19425 WHERE "State/UT Code" = '4' |
The event rip curl pro mademoiselle is in which location? | CREATE TABLE table_name_55 (
location VARCHAR,
event VARCHAR
) | SELECT location FROM table_name_55 WHERE event = "rip curl pro mademoiselle" |
What is the Shirt No for Henry Bell Cisnero whose height is less than 190? | CREATE TABLE table_64515 (
"Shirt No" real,
"Nationality" text,
"Player" text,
"Birth Date" text,
"Height" real,
"Position" text
) | SELECT MAX("Shirt No") FROM table_64515 WHERE "Height" < '190' AND "Player" = 'henry bell cisnero' |
What is the model that was made in the years 2011 2012-? | CREATE TABLE table_63380 (
"Model" text,
"Years" text,
"Engine code" text,
"Power" text,
"Torque" text
) | SELECT "Model" FROM table_63380 WHERE "Years" = '2011 2012-' |
Can you tell me the highest Total votes that has the % of popular vote of 0.86%, and the # of seats won larger than 0? | CREATE TABLE table_45694 (
"Election" real,
"Candidates fielded" real,
"# of seats won" real,
"Total votes" real,
"% of popular vote" text,
"Place" text
) | SELECT MAX("Total votes") FROM table_45694 WHERE "% of popular vote" = '0.86%' AND "# of seats won" > '0' |
What was the GDP for 2002-2005 for the construction center? | CREATE TABLE table_25282151_1 (
supply_sector___percentage_of_gdp_in_current_prices_ VARCHAR
) | SELECT 2002 AS _2005 FROM table_25282151_1 WHERE supply_sector___percentage_of_gdp_in_current_prices_ = "Construction" |
What was the attendence of the game on 26 April 1948 and an away team of Hawthorn? | CREATE TABLE table_53093 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_53093 WHERE "Date" = '26 april 1948' AND "Away team" = 'hawthorn' |
Can you tell me the Position that has the Entrant of j ampt? | CREATE TABLE table_61236 (
"Position" text,
"Driver" text,
"Entrant" text,
"Class" text,
"Laps" real
) | SELECT "Position" FROM table_61236 WHERE "Entrant" = 'j ampt' |
Which settlement has the cyrillic name ? | CREATE TABLE table_2562572_30 (
settlement VARCHAR,
cyrillic_name_other_names VARCHAR
) | SELECT settlement FROM table_2562572_30 WHERE cyrillic_name_other_names = "Сигет" |
what's the maximum purse( $ ) with score value of 204 (-9) | CREATE TABLE table_11621915_1 (
purse__ INTEGER,
score VARCHAR
) | SELECT MAX(purse__) AS $__ FROM table_11621915_1 WHERE score = "204 (-9)" |
Which event has a distance of ft10in (m)? | CREATE TABLE table_51072 (
"Date" text,
"Distance" text,
"Handler" text,
"Event" text,
"Location" text
) | SELECT "Event" FROM table_51072 WHERE "Distance" = 'ft10in (m)' |
What is the status for the monarch Mingyinyo? | CREATE TABLE table_26460435_7 (
status VARCHAR,
monarch VARCHAR
) | SELECT status FROM table_26460435_7 WHERE monarch = "Mingyinyo" |
known allergy or sensitivity to penicillin or cephalosporin | CREATE TABLE table_train_26 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"allergy_to_penicillin" bool,
"active_infection" bool,
"allergy_to_cephalosporin" bool,
"receiving_anticoagulants" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_26 WHERE allergy_to_penicillin = 1 OR allergy_to_cephalosporin = 1 |
What is the average total with less than 8 bronze, 3 silver, and a Rank smaller than 2? | CREATE TABLE table_name_76 (
total INTEGER,
rank VARCHAR,
bronze VARCHAR,
silver VARCHAR
) | SELECT AVG(total) FROM table_name_76 WHERE bronze < 8 AND silver = 3 AND rank < 2 |
How much is the lowest glucose(mmol/L) with [Na +] under 0? | CREATE TABLE table_44695 (
"Solution" text,
"Other Name" text,
"[Na + ](mmol/L)" real,
"[Cl - ](mmol/L)" real,
"[Glucose](mmol/L)" real,
"[Glucose](mg/dl)" real
) | SELECT MIN("[Glucose](mmol/L)") FROM table_44695 WHERE "[Na + ](mmol/L)" < '0' |
In which year did he compete in the Universiade? | CREATE TABLE table_77018 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | SELECT "Year" FROM table_77018 WHERE "Competition" = 'universiade' |
who is ranked before delhi ? | CREATE TABLE table_203_860 (
id number,
"rank" number,
"city" text,
"population (2011)" number,
"population (2001)" number,
"state/territory" text
) | SELECT "city" FROM table_203_860 WHERE "rank" = (SELECT "rank" FROM table_203_860 WHERE "city" = 'delhi') - 1 |
who is the driver with the engine era 1.5 l6 s and the chassis is era b? | CREATE TABLE table_name_17 (
driver VARCHAR,
engine VARCHAR,
chassis VARCHAR
) | SELECT driver FROM table_name_17 WHERE engine = "era 1.5 l6 s" AND chassis = "era b" |
What is the percentage of the popular vote when there were 90 seats available? | CREATE TABLE table_name_53 (
_percentage_of_popular_vote VARCHAR,
_number_of_seats_available VARCHAR
) | SELECT _percentage_of_popular_vote FROM table_name_53 WHERE _number_of_seats_available = 90 |
What is Wu Xing ( ) with Korean (RR) of (im)? | CREATE TABLE table_name_80 (
wu_xing___五行__ VARCHAR,
korean___rr__ VARCHAR
) | SELECT wu_xing___五行__ FROM table_name_80 WHERE korean___rr__ = "임 (im)" |
What is Partner, when Outcome is Winner, and when Date is 12 October 2003? | CREATE TABLE table_name_73 (
partner VARCHAR,
outcome VARCHAR,
date VARCHAR
) | SELECT partner FROM table_name_73 WHERE outcome = "winner" AND date = "12 october 2003" |
Which entrant scored less than 8 points and used a Maserati chassis? | CREATE TABLE table_70593 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT "Entrant" FROM table_70593 WHERE "Points" < '8' AND "Chassis" = 'maserati' |
WHat in 2005 has a Win % of 82.61? | CREATE TABLE table_name_59 (
win__percentage VARCHAR
) | SELECT 2005 FROM table_name_59 WHERE win__percentage = "82.61" |
What was the pick number when mark hayes was drafted? | CREATE TABLE table_57621 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
) | SELECT "Pick" FROM table_57621 WHERE "Player" = 'mark hayes' |
When la salle is the team who has the highest amount of points? | CREATE TABLE table_31208 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High points" FROM table_31208 WHERE "Team" = 'La Salle' |
Who had the high rebounds in the game with a final score of w 140-108? | CREATE TABLE table_1683 (
"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_1683 WHERE "Score" = 'W 140-108' |
What is the home score with marek dupnitsa as opponent? | CREATE TABLE table_75922 (
"Season" text,
"Competition" text,
"Round" text,
"Opponent" text,
"Home" text,
"Away" text
) | SELECT "Home" FROM table_75922 WHERE "Opponent" = 'marek dupnitsa' |
What is the score for the match where the opponent in the final was james cerretani todd perry? | CREATE TABLE table_name_5 (
score VARCHAR,
opponents_in_the_final VARCHAR
) | SELECT score FROM table_name_5 WHERE opponents_in_the_final = "james cerretani todd perry" |
which other ship was launched in the same year as the wave victor ? | CREATE TABLE table_203_313 (
id number,
"name" text,
"pennant" text,
"builder" text,
"launched" text,
"original name" text,
"fate" text
) | SELECT "name" FROM table_203_313 WHERE "name" <> 'wave victor' AND "launched" = (SELECT "launched" FROM table_203_313 WHERE "name" = 'wave victor') |
Show the name for regions and the number of storms for each region by a bar chart, and sort from high to low by the X-axis. | CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
) | SELECT Region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.Region_id = T2.Region_id GROUP BY T1.Region_id ORDER BY Region_name DESC |
how many medals did france get in total ? | CREATE TABLE table_204_261 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "total" FROM table_204_261 WHERE "nation" = 'france' |
What Soap Opera with the character Teemu Luotola? | CREATE TABLE table_64020 (
"Actor" text,
"Character" text,
"Soap Opera" text,
"Years" text,
"Duration" text
) | SELECT "Soap Opera" FROM table_64020 WHERE "Character" = 'teemu luotola' |
What is the label for the album with a catalog number of 83061-2? | CREATE TABLE table_56703 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog #" text
) | SELECT "Label" FROM table_56703 WHERE "Catalog #" = '83061-2' |
which company has a person that can wear clothing in 33-23-36 | CREATE TABLE table_27515452_3 (
agency VARCHAR,
sizes VARCHAR
) | SELECT agency FROM table_27515452_3 WHERE sizes = "33-23-36" |
What is the number of games for the season with 10 ties? | CREATE TABLE table_name_86 (
games VARCHAR,
tied VARCHAR
) | SELECT games FROM table_name_86 WHERE tied = 10 |
What Points for has a Try bonus of 140? | CREATE TABLE table_name_26 (
points_for VARCHAR,
try_bonus VARCHAR
) | SELECT points_for FROM table_name_26 WHERE try_bonus = "140" |
Where was the 1400 m held? | CREATE TABLE table_14981555_1 (
venue VARCHAR,
distance VARCHAR
) | SELECT venue FROM table_14981555_1 WHERE distance = "1400 m" |
What average city has a total less than 2, with a borough greater than 0? | CREATE TABLE table_63505 (
"Party" text,
"County" real,
"City" real,
"Borough" real,
"Town" real,
"Total" real
) | SELECT AVG("City") FROM table_63505 WHERE "Total" < '2' AND "Borough" > '0' |
What's the highest scoring team in the round in Ring Knutstorp in which Polestar Racing is the winning team? | CREATE TABLE table_20079931_4 (
highest_scoring_team VARCHAR,
circuit_location VARCHAR,
winning_team VARCHAR
) | SELECT highest_scoring_team FROM table_20079931_4 WHERE circuit_location = "Ring Knutstorp" AND winning_team = "Polestar Racing" |
What is the Johnny Palmer with a To larger than 6 Money sum? | CREATE TABLE table_76217 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
) | SELECT SUM("Money ( $ )") FROM table_76217 WHERE "To par" > '6' AND "Player" = 'johnny palmer' |
What is the subject when the highest mark is 79? | CREATE TABLE table_29842201_1 (
subject VARCHAR,
highest_mark VARCHAR
) | SELECT subject FROM table_29842201_1 WHERE highest_mark = 79 |
What is the queens where richmond staten is 42%? | CREATE TABLE table_16449 (
"1973 Democratic initial primary" text,
"Manhattan" text,
"The Bronx" text,
"Brooklyn" text,
"Queens" text,
"Richmond [Staten Is.]" text,
"Total" real,
"%" text
) | SELECT "Queens" FROM table_16449 WHERE "Richmond [Staten Is.]" = '42%' |
Which margin of defeats had points of 30? | CREATE TABLE table_10753917_1 (
margin_of_defeat VARCHAR,
points VARCHAR
) | SELECT margin_of_defeat FROM table_10753917_1 WHERE points = "30" |
What is the location of the tallahassee open, with a Score of 269 ( 19)? | CREATE TABLE table_name_83 (
location VARCHAR,
score VARCHAR,
tournament VARCHAR
) | SELECT location FROM table_name_83 WHERE score = "269 (–19)" AND tournament = "tallahassee open" |
Show the account id and the number of transactions for each accoun. Show scatter chart. | CREATE TABLE Customers (
customer_id INTEGER,
customer_first_name VARCHAR(20),
customer_last_name VARCHAR(20),
customer_address VARCHAR(255),
customer_phone VARCHAR(255),
customer_email VARCHAR(255),
other_customer_details VARCHAR(255)
)
CREATE TABLE Accounts (
account_id INTEGER,
customer_id INTEGER,
account_name VARCHAR(50),
other_account_details VARCHAR(255)
)
CREATE TABLE Customers_Cards (
card_id INTEGER,
customer_id INTEGER,
card_type_code VARCHAR(15),
card_number VARCHAR(80),
date_valid_from DATETIME,
date_valid_to DATETIME,
other_card_details VARCHAR(255)
)
CREATE TABLE Financial_Transactions (
transaction_id INTEGER,
previous_transaction_id INTEGER,
account_id INTEGER,
card_id INTEGER,
transaction_type VARCHAR(15),
transaction_date DATETIME,
transaction_amount DOUBLE,
transaction_comment VARCHAR(255),
other_transaction_details VARCHAR(255)
) | SELECT account_id, COUNT(*) FROM Financial_Transactions GROUP BY account_id |
Venue of Pepsi arena involved what club? | CREATE TABLE table_36909 (
"Club" text,
"Sport" text,
"Founded" real,
"League" text,
"Venue" text,
"Head Coach" text
) | SELECT "Club" FROM table_36909 WHERE "Venue" = 'pepsi arena' |
Where was the fight located that lasted 1 round against luiz claudio das dores? | CREATE TABLE table_76384 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text,
"Location" text
) | SELECT "Location" FROM table_76384 WHERE "Round" = '1' AND "Opponent" = 'luiz claudio das dores' |
When Lansing's fare is $433.59, what is the Detroit fare? | CREATE TABLE table_1637981_7 (
detroit__dtw_ VARCHAR,
lansing__lan_ VARCHAR
) | SELECT detroit__dtw_ FROM table_1637981_7 WHERE lansing__lan_ = "$433.59" |
What is the Median household income associated with a median family income of $46,616? | CREATE TABLE table_name_56 (
median_household_income VARCHAR,
median_family_income VARCHAR
) | SELECT median_household_income FROM table_name_56 WHERE median_family_income = "$46,616" |
Score of 2-1, and a Competition of pl, and a Date of december 22, 2006 had what opponents? | CREATE TABLE table_name_84 (
opponents VARCHAR,
date VARCHAR,
score VARCHAR,
competition VARCHAR
) | SELECT opponents FROM table_name_84 WHERE score = "2-1" AND competition = "pl" AND date = "december 22, 2006" |
Which Drobo (2nd) has a Drobo S (2nd) of 5? | CREATE TABLE table_11041 (
"Drobo (1st)" text,
"Drobo (2nd)" text,
"Drobo S" text,
"Drobo S (2nd)" text,
"Drobo FS" text,
"Drobo Mini" text,
"Drobo 5D" text
) | SELECT "Drobo (2nd)" FROM table_11041 WHERE "Drobo S (2nd)" = '5' |
Which event is a win by an opponent of Nicolas Smith, with the round marked n/a? | CREATE TABLE table_name_24 (
event VARCHAR,
opponent VARCHAR,
res VARCHAR,
round VARCHAR
) | SELECT event FROM table_name_24 WHERE res = "win" AND round = "n/a" AND opponent = "nicolas smith" |
What's the class of the HMS Heartsease? | CREATE TABLE table_name_75 (
class VARCHAR,
name VARCHAR
) | SELECT class FROM table_name_75 WHERE name = "hms heartsease" |
how many trains are going to trivandrum ? | CREATE TABLE table_204_78 (
id number,
"no." number,
"train no." text,
"origin" text,
"destination" text,
"train name" text
) | SELECT COUNT("train name") FROM table_204_78 WHERE "destination" = 'trivandrum' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.