instruction stringlengths 12 317 | input stringlengths 38 973 | response stringlengths 25 526 |
|---|---|---|
Original title of das leben der anderen had what director? | CREATE TABLE table_39380 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Director" text
) | SELECT "Director" FROM table_39380 WHERE "Original title" = 'das leben der anderen' |
What is the 1995 value with of the 1993 ATP Masters Series? | CREATE TABLE table_34222 (
"Tournament" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text,
"1998" text,
"Career SR" text,
"Career Win-Loss" text
) | SELECT "1995" FROM table_34222 WHERE "1993" = 'atp masters series' |
Which date has a score of 2-1? | CREATE TABLE table_68490 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Date" FROM table_68490 WHERE "Score" = '2-1' |
Tell me the elevation for oslo | CREATE TABLE table_name_20 (
elevation VARCHAR,
county VARCHAR
) | SELECT elevation FROM table_name_20 WHERE county = "oslo" |
Which visitor visited on February 21? | CREATE TABLE table_name_14 (
visitor VARCHAR,
date VARCHAR
) | SELECT visitor FROM table_name_14 WHERE date = "february 21" |
What is the highest geohash length when the lat error is 0.00068, and the lat bits larger than 17? | CREATE TABLE table_7441 (
"geohash length" real,
"lat bits" real,
"lng bits" real,
"lat error" text,
"lng error" text,
"km error" text
) | SELECT MAX("geohash length") FROM table_7441 WHERE "lat error" = '±0.00068' AND "lat bits" > '17' |
To which political party did the prime minister who served under George V and was born in Manchester belong? | CREATE TABLE table_name_5 (
political_party VARCHAR,
monarchs_served VARCHAR,
birth_place VARCHAR
) | SELECT political_party FROM table_name_5 WHERE monarchs_served = "george v" AND birth_place = "manchester" |
Visualize a bar chart about the distribution of meter_400 and ID , sort in asc by the y axis. | 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 event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE... | SELECT meter_400, ID FROM swimmer ORDER BY ID |
What was the home team for the game with more than 25,000 crowd? | CREATE TABLE table_name_70 (
home_team VARCHAR,
crowd INTEGER
) | SELECT home_team FROM table_name_70 WHERE crowd > 25 OFFSET 000 |
How many cities have an enrollment of 19082? | CREATE TABLE table_12896884_1 (
city VARCHAR,
enrollment VARCHAR
) | SELECT COUNT(city) FROM table_12896884_1 WHERE enrollment = 19082 |
Which Overall place has a Yacht name of lg flatron? | CREATE TABLE table_70393 (
"Overall place" text,
"Yacht name" text,
"Skipper" text,
"Points" text,
"Combined elapsed time" text
) | SELECT "Overall place" FROM table_70393 WHERE "Yacht name" = 'lg flatron' |
At which stadiums was attendance total 79176? | CREATE TABLE table_1401 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
) | SELECT "Game Site" FROM table_1401 WHERE "Attendance" = '79176' |
What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver? | CREATE TABLE table_name_37 (
rank INTEGER,
silver VARCHAR,
total VARCHAR,
nation VARCHAR
) | SELECT MIN(rank) FROM table_name_37 WHERE total = 8 AND nation = "hungary" AND silver > 2 |
Which Score has a Away team of walthamstow avenue? | CREATE TABLE table_name_44 (
score VARCHAR,
away_team VARCHAR
) | SELECT score FROM table_name_44 WHERE away_team = "walthamstow avenue" |
name the models that had the same caliber as the remington beals navy model revolver . | CREATE TABLE table_203_253 (
id number,
"model" text,
"frame" text,
"years mfg'd" text,
"caliber(s)" text,
"production" text,
"barrel" text,
"notes" text
) | SELECT "model" FROM table_203_253 WHERE "model" <> 'remington-beals navy model revolver' AND "caliber(s)" = (SELECT "caliber(s)" FROM table_203_253 WHERE "model" = 'remington-beals navy model revolver') |
Who had the placekicker position with a round above 10? | CREATE TABLE table_69836 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT "Name" FROM table_69836 WHERE "Round" > '10' AND "Position" = 'placekicker' |
What is the point total for the Formula Renault 2.0 Italy series? | CREATE TABLE table_21795650_1 (
points VARCHAR,
series VARCHAR
) | SELECT COUNT(points) FROM table_21795650_1 WHERE series = "Formula Renault 2.0 Italy" |
what year is at least on the list ? | CREATE TABLE table_204_117 (
id number,
"season" number,
"level" text,
"division" text,
"section" text,
"position" text,
"movements" text
) | SELECT "season" FROM table_204_117 ORDER BY id DESC LIMIT 1 |
What position did the player from Jersey City, New Jersey play? | CREATE TABLE table_11677691_1 (
position VARCHAR,
hometown VARCHAR
) | SELECT position FROM table_11677691_1 WHERE hometown = "Jersey City, New Jersey" |
which king ruled the longest ? | CREATE TABLE table_204_125 (
id number,
"state" text,
"type" text,
"name" text,
"title" text,
"royal house" text,
"from" text,
"to" text
) | SELECT "name" FROM table_204_125 ORDER BY "from" - "to" DESC LIMIT 1 |
What is the hometown for the player that is defensive back and went to alabama? | CREATE TABLE table_54596 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "Hometown" FROM table_54596 WHERE "Position" = 'defensive back' AND "College" = 'alabama' |
Show the names of countries and the average speed of roller coasters from each country Plot them as bar chart, sort from high to low by the Name please. | CREATE TABLE roller_coaster (
Roller_Coaster_ID int,
Name text,
Park text,
Country_ID int,
Length real,
Height real,
Speed text,
Opened text,
Status text
)
CREATE TABLE country (
Country_ID int,
Name text,
Population int,
Area int,
Languages text
) | SELECT T1.Name, AVG(T2.Speed) FROM country AS T1 JOIN roller_coaster AS T2 ON T1.Country_ID = T2.Country_ID GROUP BY T1.Name ORDER BY T1.Name DESC |
What was the record on 12 march 2008? | CREATE TABLE table_name_63 (
record VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_63 WHERE date = "12 march 2008" |
What is the largest amount of wins of someone who has an against score greater than 1249 and a number of losses less than 17? | CREATE TABLE table_58322 (
"Mid Gippsland FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
) | SELECT MAX("Wins") FROM table_58322 WHERE "Against" > '1249' AND "Losses" < '17' |
When did the fourth episode of the season (4 1-04) first air? | CREATE TABLE table_73636 (
"Episode number Production number" text,
"Title" text,
"Original airdate" text,
"Rating/Share in Households" text,
"18\u201349 Rating Live+SD / Live+7" text,
"Share" text,
"Live+SD Total viewers" text,
"Live+7 Day DVR Total viewers" text
) | SELECT "Original airdate" FROM table_73636 WHERE "Episode number Production number" = '4 1-04' |
Tell me the date of stade des martyrs, dr congo | CREATE TABLE table_name_89 (
date VARCHAR,
venue VARCHAR
) | SELECT date FROM table_name_89 WHERE venue = "stade des martyrs, dr congo" |
what is the position of the player of height ft0in (m) | CREATE TABLE table_20898602_1 (
position VARCHAR,
height VARCHAR
) | SELECT position FROM table_20898602_1 WHERE height = "ft0in (m)" |
What is the lowest rank of Jens Kruppa in a lane larger than 2? | CREATE TABLE table_71392 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT MIN("Rank") FROM table_71392 WHERE "Name" = 'jens kruppa' AND "Lane" > '2' |
Name the seasons and winners that airs 28 january 2007 | CREATE TABLE table_16884579_1 (
seasons_and_winners VARCHAR,
premiere VARCHAR
) | SELECT seasons_and_winners FROM table_16884579_1 WHERE premiere = "28 January 2007" |
For those records from the products and each product's manufacturer, return a bar chart about the distribution of name and price , and group by attribute name, display by the bar 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.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name, T1.Name ORDER BY T1.Name DESC |
What is the home team with scarborough as the away team? | CREATE TABLE table_name_50 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team FROM table_name_50 WHERE away_team = "scarborough" |
Who was the interview subject on the date 1-97? | CREATE TABLE table_1566850_8 (
interview_subject VARCHAR,
date VARCHAR
) | SELECT interview_subject FROM table_1566850_8 WHERE date = "1-97" |
What is the sum of the area values for districts having density over 462 and websites of http://krishna.nic.in/? | CREATE TABLE table_name_19 (
area__km²_ INTEGER,
density___km²_ VARCHAR,
official_website VARCHAR
) | SELECT SUM(area__km²_) FROM table_name_19 WHERE density___km²_ > 462 AND official_website = "http://krishna.nic.in/" |
which competition took place in 2008 but had only one event ? | CREATE TABLE table_204_975 (
id number,
"year" number,
"competition" text,
"location" text,
"event" text,
"final-rank" text,
"final-score" number,
"qualifying rank" number,
"qualifying score" number
) | SELECT "competition" FROM table_204_975 GROUP BY "competition" HAVING COUNT("event") = 1 |
What is Turkey's average Gold entry that also has a Bronze entry that is smaller than 2 and the Total is greater than 1? | CREATE TABLE table_79402 (
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT AVG("Gold") FROM table_79402 WHERE "Bronze" < '2' AND "Nation" = 'turkey' AND "Total" > '1' |
Draw a bar chart of owner versus total number of rating in percent, and display in ascending by the X. | CREATE TABLE program (
Program_ID int,
Name text,
Origin text,
Launch real,
Owner text
)
CREATE TABLE channel (
Channel_ID int,
Name text,
Owner text,
Share_in_percent real,
Rating_in_percent real
)
CREATE TABLE broadcast (
Channel_ID int,
Program_ID int,
Time_of_da... | SELECT Owner, SUM(Rating_in_percent) FROM channel GROUP BY Owner ORDER BY Owner |
who was the first samoan flag bearer at the olympic games ? | CREATE TABLE table_204_986 (
id number,
"#" number,
"event year" number,
"season" text,
"flag bearer" text
) | SELECT "flag bearer" FROM table_204_986 ORDER BY "event year" LIMIT 1 |
What is the minimum sum? | CREATE TABLE table_30281 (
"Position" text,
"Number" real,
"Player" text,
"Super League" real,
"Champions League" real,
"Swiss Cup" real,
"Total" real
) | SELECT MIN("Total") FROM table_30281 |
how many album entries are there ? | CREATE TABLE table_204_244 (
id number,
"year" number,
"album" text,
"peak\nus" number,
"peak\nus\nholiday" number,
"certifications\n(sales threshold)" text
) | SELECT COUNT("album") FROM table_204_244 |
What is the station that is transmitted at 20 kw and has a frequency of 48 uhf? | CREATE TABLE table_1601792_4 (
television_station VARCHAR,
transmitted VARCHAR,
frequency VARCHAR
) | SELECT television_station FROM table_1601792_4 WHERE transmitted = "20 kW" AND frequency = "48 UHF" |
How far is the olbia to sassari route? | CREATE TABLE table_10194 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
) | SELECT "Distance" FROM table_10194 WHERE "Course" = 'olbia to sassari' |
What date was the result 6 2, 4 6, 6 4? | CREATE TABLE table_11636213_7 (
date VARCHAR,
result VARCHAR
) | SELECT date FROM table_11636213_7 WHERE result = "6–2, 4–6, 6–4" |
Which driver was in 8 rounds with a chassis of dallara f306? | CREATE TABLE table_44017 (
"Team" text,
"Driver" text,
"Class" text,
"Chassis" text,
"Rounds" text
) | SELECT "Driver" FROM table_44017 WHERE "Chassis" = 'dallara f306' AND "Rounds" = '8' |
What is High Assists, when High Points is 'Tayshaun Prince (23)'? | CREATE TABLE table_50501 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High assists" FROM table_50501 WHERE "High points" = 'tayshaun prince (23)' |
What round was the game against Cedric Marks? | CREATE TABLE table_48017 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text
) | SELECT "Round" FROM table_48017 WHERE "Opponent" = 'cedric marks' |
Who is the home team of the game on December 21? | CREATE TABLE table_14951 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Home" FROM table_14951 WHERE "Date" = 'december 21' |
What is average age for different job title Visualize by bar chart, I want to rank by the bars from low to high. | 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 job, AVG(age) FROM Person GROUP BY job ORDER BY job |
With 4645 as the production number what was the title? | CREATE TABLE table_65236 (
"Title" text,
"Series" text,
"Characters" text,
"Production Num." real,
"Release date" text
) | SELECT "Title" FROM table_65236 WHERE "Production Num." = '4645' |
What is the height that has a year after 1983 and is named Phoenix Tower? | CREATE TABLE table_name_28 (
height_ft___m VARCHAR,
year VARCHAR,
name VARCHAR
) | SELECT height_ft___m FROM table_name_28 WHERE year > 1983 AND name = "phoenix tower" |
What is the Surface of the court in the match with a Score of 4 6, 6 4, 3 6? | CREATE TABLE table_name_16 (
surface VARCHAR,
score VARCHAR
) | SELECT surface FROM table_name_16 WHERE score = "4–6, 6–4, 3–6" |
What are the average prominence of the mountains in country 'Morocco'? | CREATE TABLE photos (
id number,
camera_lens_id number,
mountain_id number,
color text,
name text
)
CREATE TABLE mountain (
id number,
name text,
height number,
prominence number,
range text,
country text
)
CREATE TABLE camera_lens (
id number,
brand text,
name ... | SELECT AVG(prominence) FROM mountain WHERE country = 'Morocco' |
What is the current status for GM Advanced Design with more than 41 seats? | CREATE TABLE table_name_64 (
current_status VARCHAR,
make VARCHAR,
number_of_seats VARCHAR
) | SELECT current_status FROM table_name_64 WHERE make = "gm advanced design" AND number_of_seats > 41 |
Which club has 1 runners-up with 0 winners and 2 third place earned? | CREATE TABLE table_50722 (
"Rank" real,
"Club" text,
"Winners" real,
"Runners-up" real,
"Third" real
) | SELECT "Club" FROM table_50722 WHERE "Runners-up" = '1' AND "Winners" = '0' AND "Third" = '2' |
What is the length of the UK remix version? | CREATE TABLE table_name_68 (
length VARCHAR,
version VARCHAR
) | SELECT length FROM table_name_68 WHERE version = "uk remix" |
What is the lowest Greater Doubles, when Doubles, I Class is 23, and when Doubles, II Class is less than 27? | CREATE TABLE table_40513 (
"Date" real,
"Doubles, I Class" real,
"Doubles, II Class" real,
"Greater Doubles" real,
"Doubles" real,
"Semidoubles" real,
"Total" real
) | SELECT MIN("Greater Doubles") FROM table_40513 WHERE "Doubles, I Class" = '23' AND "Doubles, II Class" < '27' |
How many Car numbers have a Driver of erik darnell, and a Pos smaller than 2? | CREATE TABLE table_38292 (
"Pos." real,
"Car #" real,
"Driver" text,
"Make" text,
"Team" text
) | SELECT COUNT("Car #") FROM table_38292 WHERE "Driver" = 'erik darnell' AND "Pos." < '2' |
what is the color quality when the proxy is x, the encryption is x, the webclient is x and authentication is ? | CREATE TABLE table_65068 (
"Project" text,
"License" text,
"Date" text,
"Protocol" text,
"Technology" text,
"Server" text,
"Client" text,
"Web Client" text,
"Multiple Sessions" text,
"Encryption" text,
"Authentication" text,
"Data Compression" text,
"Image Quality" te... | SELECT "Color Quality" FROM table_65068 WHERE "Proxy" = 'x' AND "Encryption" = 'x' AND "Web Client" = 'x' AND "Authentication" = '✓' |
What is the score from the game where Algeria is the opponent at Porto-Novo? | CREATE TABLE table_name_28 (
score VARCHAR,
opponent VARCHAR,
location VARCHAR
) | SELECT score FROM table_name_28 WHERE opponent = "algeria" AND location = "porto-novo" |
Hom many albums does the artist 'Metallica' have? | CREATE TABLE ALBUM (
ArtistId VARCHAR
)
CREATE TABLE ARTIST (
ArtistId VARCHAR,
Name VARCHAR
) | SELECT COUNT(*) FROM ALBUM AS T1 JOIN ARTIST AS T2 ON T1.ArtistId = T2.ArtistId WHERE T2.Name = "Metallica" |
What is Competition, when Date is 30 December 2005? | CREATE TABLE table_name_96 (
competition VARCHAR,
date VARCHAR
) | SELECT competition FROM table_name_96 WHERE date = "30 december 2005" |
Which events have a Rank of 1? | CREATE TABLE table_5082 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Events" real,
"Wins" real
) | SELECT "Events" FROM table_5082 WHERE "Rank" = '1' |
Which episode was directed by Jean de Segonzac? | CREATE TABLE table_10935548_1 (
title VARCHAR,
directed_by VARCHAR
) | SELECT title FROM table_10935548_1 WHERE directed_by = "Jean de Segonzac" |
When 142900 is the population what is the highest rank? | CREATE TABLE table_25794 (
"Rank" real,
"City/Town" text,
"County" text,
"Region/Province" text,
"Population" real,
"Country" text
) | SELECT MAX("Rank") FROM table_25794 WHERE "Population" = '142900' |
On what date(s) was the winning team Prema Powerteam? | CREATE TABLE table_3247 (
"Round" real,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Team" text
) | SELECT "Date" FROM table_3247 WHERE "Winning Team" = 'Prema Powerteam' |
What is the verbal noun connected to the participle e-duki? | CREATE TABLE table_558 (
"Basic stem (root)" text,
"Present stem" text,
"Non-present stem" text,
"Participle" text,
"Verbal noun" text,
"Short stem" text,
"Meaning" text
) | SELECT "Verbal noun" FROM table_558 WHERE "Participle" = 'e-duki' |
What is the mascot of Hammond Tech? | CREATE TABLE table_65664 (
"School" text,
"City" text,
"Mascot" text,
"County" text,
"Year joined" real,
"Previous Conference" text,
"Year Left" real,
"Conference Joined" text
) | SELECT "Mascot" FROM table_65664 WHERE "City" = 'hammond' AND "School" = 'hammond tech' |
What was the lowest attendance at a game when Pittsburgh was the home team? | CREATE TABLE table_name_68 (
attendance INTEGER,
home VARCHAR
) | SELECT MIN(attendance) FROM table_name_68 WHERE home = "pittsburgh" |
Name the english name for orach, zarev | CREATE TABLE table_19975 (
"No." real,
"English name" text,
"Bulgarian name" text,
"Bulgarian name ( Transliteration )" text,
"Old Bulgarian Names" text,
"Old Bulgarian name (Transliteration)" text,
"Old Bulgarian name - Meaning" text
) | SELECT "English name" FROM table_19975 WHERE "Old Bulgarian name (Transliteration)" = 'Orach, Zarev' |
What is the score for the Dec 11 game? | CREATE TABLE table_name_83 (
score VARCHAR,
december VARCHAR
) | SELECT score FROM table_name_83 WHERE december = 11 |
How many points did Carlin have when they had 3 wins? | CREATE TABLE table_name_90 (
points VARCHAR,
wins VARCHAR,
team VARCHAR
) | SELECT points FROM table_name_90 WHERE wins = "3" AND team = "carlin" |
What is the 100 m time when the 110 m H number is 0 dnf? | CREATE TABLE table_13410 (
"Overall points" text,
"100 m" text,
"400 m" text,
"110 m H" text,
"1500 m" text
) | SELECT "100 m" FROM table_13410 WHERE "110 m H" = '0 dnf' |
What was the final score of the game with 7523 in attendance? | CREATE TABLE table_27550 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
) | SELECT "Final score" FROM table_27550 WHERE "Attendance" = '7523' |
who are the candidates with district being kansas 4 | CREATE TABLE table_1342359_15 (
candidates VARCHAR,
district VARCHAR
) | SELECT candidates FROM table_1342359_15 WHERE district = "Kansas 4" |
For all storms with at least 1 death, compare the number of deaths by name. | 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_cit... | SELECT Name, Number_Deaths FROM storm WHERE Number_Deaths >= 1 |
Which Team has Podiums of 0, and a Position of nc ? | CREATE TABLE table_name_94 (
team VARCHAR,
podiums VARCHAR,
position VARCHAR
) | SELECT team FROM table_name_94 WHERE podiums = "0" AND position = "nc†" |
How tall is nerlens noel? | CREATE TABLE table_57174 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "Height" FROM table_57174 WHERE "Player" = 'nerlens noel' |
What is the highest Laps Led with a grid of less than 4 and a finishing position of 15? | CREATE TABLE table_61631 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
) | SELECT MAX("Laps Led") FROM table_61631 WHERE "Grid" < '4' AND "Fin. Pos" = '15' |
Show the musical nominee with award 'Bob Fosse' or 'Cleavant Derricks', and count them by a bar chart, and could you list from high to low by the total number? | CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
)
CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
) | SELECT Nominee, COUNT(Nominee) FROM musical WHERE Award = "Tony Award" OR Award = "Cleavant Derricks" GROUP BY Nominee ORDER BY COUNT(Nominee) DESC |
what is the last treaty morocco ratified ? | CREATE TABLE table_203_109 (
id number,
"treaty" text,
"organization" text,
"introduced" number,
"signed" number,
"ratified" number
) | SELECT "treaty" FROM table_203_109 ORDER BY "ratified" DESC LIMIT 1 |
What is the number of names for each product in the store?, and sort by the Name in descending. | 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 Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY Name DESC |
What was the game number of the game played against Charlotte? | CREATE TABLE table_7818 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("Game") FROM table_7818 WHERE "Team" = 'charlotte' |
During which years was Marcus Banks in Toronto? | CREATE TABLE table_15875 (
"Player" text,
"No." text,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
) | SELECT "Years in Toronto" FROM table_15875 WHERE "Player" = 'Marcus Banks' |
Where does the common of Galliate rank in population? | CREATE TABLE table_72556 (
"Rank" text,
"Common" text,
"Population" real,
"Area (km 2 )" text,
"Density (inhabitants/km 2 )" text,
"Altitude (mslm)" real
) | SELECT "Rank" FROM table_72556 WHERE "Common" = 'Galliate' |
When did the United Kingdom format a stereo LP? | CREATE TABLE table_48398 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Date" FROM table_48398 WHERE "Region" = 'united kingdom' AND "Format" = 'stereo lp' |
Which Blackpool has a Preston North End smaller than 46, and a Competition of other, and a Draw larger than 1? | CREATE TABLE table_name_94 (
blackpool INTEGER,
draw VARCHAR,
preston_north_end VARCHAR,
competition VARCHAR
) | SELECT SUM(blackpool) FROM table_name_94 WHERE preston_north_end < 46 AND competition = "other" AND draw > 1 |
How many products were not included in any order? | CREATE TABLE products (
product_id VARCHAR
)
CREATE TABLE Order_items (
product_id VARCHAR
) | SELECT COUNT(*) FROM products WHERE NOT product_id IN (SELECT product_id FROM Order_items) |
Name the result for willis alston | CREATE TABLE table_73999 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | SELECT "Result" FROM table_73999 WHERE "Incumbent" = 'Willis Alston' |
which nation has earned the least amount of gold medals ? | CREATE TABLE table_203_497 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_203_497 ORDER BY "gold" LIMIT 1 |
Which Season has 95 Points? | CREATE TABLE table_14917 (
"Season" text,
"Series" text,
"Races" text,
"Wins" text,
"Podiums" text,
"Points" text,
"Final Placing" text
) | SELECT "Season" FROM table_14917 WHERE "Points" = '95' |
What is the maximum number of starts? | CREATE TABLE table_3005915_3 (
starts INTEGER
) | SELECT MAX(starts) FROM table_3005915_3 |
What is the average Goals for team Kairat, in the 2002 season with more than 29 apps? | CREATE TABLE table_name_81 (
goals INTEGER,
apps VARCHAR,
team VARCHAR,
season VARCHAR
) | SELECT AVG(goals) FROM table_name_81 WHERE team = "kairat" AND season = "2002" AND apps > 29 |
What rank is Miller Barber with more than 11 wins? | CREATE TABLE table_name_35 (
rank VARCHAR,
wins VARCHAR,
player VARCHAR
) | SELECT rank FROM table_name_35 WHERE wins > 11 AND player = "miller barber" |
What is Tries Against, when Points Against is 213? | CREATE TABLE table_44485 (
"Team" text,
"Tries for" text,
"Tries against" text,
"Try diff" text,
"Points for" text,
"Points against" text,
"Points diff" text
) | SELECT "Tries against" FROM table_44485 WHERE "Points against" = '213' |
Name the party for john randolph redistricted from the 15th district | CREATE TABLE table_74010 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | SELECT "Party" FROM table_74010 WHERE "Incumbent" = 'John Randolph Redistricted from the 15th district' |
Who is the player from Hotchkiss School with a position of d? | CREATE TABLE table_name_45 (
player VARCHAR,
position VARCHAR,
team_from VARCHAR
) | SELECT player FROM table_name_45 WHERE position = "d" AND team_from = "hotchkiss school" |
Who won when np cooper av cooke was runner up? | CREATE TABLE table_71889 (
"Year" real,
"Winners" text,
"Club" text,
"Time" text,
"Runners-up" text
) | SELECT "Winners" FROM table_71889 WHERE "Runners-up" = 'np cooper av cooke' |
Which School's Mascot is Raiders? | CREATE TABLE table_name_28 (
school VARCHAR,
mascot VARCHAR
) | SELECT school FROM table_name_28 WHERE mascot = "raiders" |
Which Frequency has a Webcast of , and a Callsign of xemr? | CREATE TABLE table_name_31 (
frequency INTEGER,
webcast VARCHAR,
callsign VARCHAR
) | SELECT AVG(frequency) FROM table_name_31 WHERE webcast = "•" AND callsign = "xemr" |
How many Pick has a Round smaller than 13, and a Position of fullback? | CREATE TABLE table_name_64 (
pick VARCHAR,
round VARCHAR,
position VARCHAR
) | SELECT COUNT(pick) FROM table_name_64 WHERE round < 13 AND position = "fullback" |
What is the Profit / (Loss) Before Tax ( m) that has a Revenue ( m) larger than 1,115.8, and on 31 december 2012? | CREATE TABLE table_5848 (
"Year Ended" text,
"Passengers Flown" real,
"Passenger Load Factor (%)" real,
"Revenue (\u20acm)" real,
"Profit / (Loss) Before Tax (\u20acm)" text,
"Net Profit / (Loss) (\u20acm)" text
) | SELECT "Profit / (Loss) Before Tax (\u20acm)" FROM table_5848 WHERE "Revenue (\u20acm)" > '1,115.8' AND "Year Ended" = '31 december 2012' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.