instruction
stringlengths 12
317
| input
stringlengths 38
973
| response
stringlengths 25
526
|
---|---|---|
What is the highest Year, when the Venue is Beijing, PR China? | CREATE TABLE table_42266 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
) | SELECT MAX("Year") FROM table_42266 WHERE "Venue" = 'beijing, pr china' |
Visualize a bar chart about the distribution of ACC_Road and Team_ID , and group by attribute All_Home, list ACC_Road in ascending order 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 ACC_Road, Team_ID FROM basketball_match GROUP BY All_Home, ACC_Road ORDER BY ACC_Road |
Give me a pie to show how many directed by from different directed by. | CREATE TABLE cinema (
Cinema_ID int,
Name text,
Openning_year int,
Capacity int,
Location text
)
CREATE TABLE film (
Film_ID int,
Rank_in_series int,
Number_in_season int,
Title text,
Directed_by text,
Original_air_date text,
Production_code text
)
CREATE TABLE schedule (
Cinema_ID int,
Film_ID int,
Date text,
Show_times_per_day int,
Price float
) | SELECT Directed_by, COUNT(Directed_by) FROM film GROUP BY Directed_by |
Where was game number 5 played? | CREATE TABLE table_25882 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
) | SELECT "Location Attendance" FROM table_25882 WHERE "Game" = '5' |
What's the price (in USD) of the model whose L3 is 18 mb? | CREATE TABLE table_17763 (
"Model Number" text,
"Clock Speed" text,
"L2" text,
"L3" text,
"FSB Speed" text,
"Multiplier" text,
"Cores" real,
"Threads per core" real,
"Voltage" text,
"TDP (W)" text,
"Socket" text,
"Release Date" text,
"Price ( USD )" text
) | SELECT "Price ( USD )" FROM table_17763 WHERE "L3" = '18 MB' |
What are the countries of perpetrators? Show each country and the corresponding number of perpetrators there Plot them as bar chart, I want to show names from low to high order. | CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
"Home Town" text
)
CREATE TABLE perpetrator (
Perpetrator_ID int,
People_ID int,
Date text,
Year real,
Location text,
Country text,
Killed int,
Injured int
) | SELECT Country, COUNT(*) FROM perpetrator GROUP BY Country ORDER BY Country |
Which Tie is from birmingham city? | CREATE TABLE table_name_97 (
tie_no VARCHAR,
home_team VARCHAR
) | SELECT tie_no FROM table_name_97 WHERE home_team = "birmingham city" |
Display a pie chart for what are the names and prices of products that cost at least 180, sorted by price decreasing and name ascending? | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT Name, Price FROM Products WHERE Price >= 180 ORDER BY Price DESC, Name |
Name the winner for date of nov 5, 1987 | CREATE TABLE table_20457 (
"S No" real,
"Team (A)" text,
"Team (B)" text,
"Winner" text,
"Margin" text,
"Match Date" text
) | SELECT "Winner" FROM table_20457 WHERE "Match Date" = 'Nov 5, 1987' |
What was the average attendance on October 12? | CREATE TABLE table_14722 (
"Game" real,
"Date" text,
"Location" text,
"Time" text,
"Attendance" real
) | SELECT AVG("Attendance") FROM table_14722 WHERE "Date" = 'october 12' |
what is the soap opera when the duration is 18 years and the character is miley byrne? | CREATE TABLE table_name_4 (
soap_opera VARCHAR,
duration VARCHAR,
character VARCHAR
) | SELECT soap_opera FROM table_name_4 WHERE duration = "18 years" AND character = "miley byrne" |
What is the total End term with a Title of prince regent of bavaria? | CREATE TABLE table_name_88 (
end_term INTEGER,
title VARCHAR
) | SELECT SUM(end_term) FROM table_name_88 WHERE title = "prince regent of bavaria" |
What was West Manila's tariff increase when its CPI is 60.6? | CREATE TABLE table_21482 (
"Year" real,
"West Manila" text,
"East Manila" text,
"Consumer Price Index (2005=100)" text,
"West Manila as a share of 1996 real tariff" text,
"East Manila as a share of 1996 real tariff" text
) | SELECT "West Manila" FROM table_21482 WHERE "Consumer Price Index (2005=100)" = '60.6' |
What is the average decile of Ruapehu college, which has a state authority? | CREATE TABLE table_name_64 (
decile INTEGER,
authority VARCHAR,
name VARCHAR
) | SELECT AVG(decile) FROM table_name_64 WHERE authority = "state" AND name = "ruapehu college" |
Name the role for mono studio and title of paradise canyon | CREATE TABLE table_name_62 (
role VARCHAR,
studio VARCHAR,
title VARCHAR
) | SELECT role FROM table_name_62 WHERE studio = "mono" AND title = "paradise canyon" |
What is the value for Bahia when the Northeast total was 6747013? | CREATE TABLE table_name_97 (
bahia VARCHAR,
northeast_total VARCHAR
) | SELECT bahia FROM table_name_97 WHERE northeast_total = "6747013" |
What was the Away Team of Blackpool's Home game? | CREATE TABLE table_40750 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text,
"Attendance" real
) | SELECT "Away team" FROM table_40750 WHERE "Home team" = 'blackpool' |
What date has dallas cowboys as the opponent? | CREATE TABLE table_37462 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" text
) | SELECT "Date" FROM table_37462 WHERE "Opponent" = 'dallas cowboys' |
How many people wrote the episode that had 7.26 million u.s. viewers? | CREATE TABLE table_28037619_2 (
written_by VARCHAR,
us_viewers__million_ VARCHAR
) | SELECT COUNT(written_by) FROM table_28037619_2 WHERE us_viewers__million_ = "7.26" |
Find the total student enrollment for different affiliation type schools. | CREATE TABLE university (
affiliation VARCHAR,
enrollment INTEGER
) | SELECT SUM(enrollment), affiliation FROM university GROUP BY affiliation |
What is Time, when Round is less than 2, and when Opponent is 'Valentijn Overeem'? | CREATE TABLE table_43630 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT "Time" FROM table_43630 WHERE "Round" < '2' AND "Opponent" = 'valentijn overeem' |
Which losing team had a score of 24-12? | CREATE TABLE table_11236195_2 (
losingteam VARCHAR,
score VARCHAR
) | SELECT losingteam FROM table_11236195_2 WHERE score = "24-12" |
Name the cyrillic name for lazarevo | CREATE TABLE table_3336 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
) | SELECT "Cyrillic Name Other Names" FROM table_3336 WHERE "Settlement" = 'Lazarevo' |
On what Date had a Score of 5-2 and a Loss of Greinke (1-2)? | CREATE TABLE table_15816 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text
) | SELECT "Date" FROM table_15816 WHERE "Score" = '5-2' AND "Loss" = 'greinke (1-2)' |
What is the sum of March, when Score is '2 - 2', and when Game is greater than 67? | CREATE TABLE table_9969 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT SUM("March") FROM table_9969 WHERE "Score" = '2 - 2' AND "Game" > '67' |
Who has a position of sg? | CREATE TABLE table_name_86 (
player VARCHAR,
position VARCHAR
) | SELECT player FROM table_name_86 WHERE position = "sg" |
A bar chart about what are the average ages for male and female students?, and could you rank by the bars in desc? | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
) | SELECT Sex, AVG(Age) FROM Student GROUP BY Sex ORDER BY Sex DESC |
What is total number of show times per dat for each cinema? | CREATE TABLE film (
film_id number,
rank_in_series number,
number_in_season number,
title text,
directed_by text,
original_air_date text,
production_code text
)
CREATE TABLE schedule (
cinema_id number,
film_id number,
date text,
show_times_per_day number,
price number
)
CREATE TABLE cinema (
cinema_id number,
name text,
openning_year number,
capacity number,
location text
) | SELECT T2.name, SUM(T1.show_times_per_day) FROM schedule AS T1 JOIN cinema AS T2 ON T1.cinema_id = T2.cinema_id GROUP BY T1.cinema_id |
Which Body Width/mm has a Lead Pitch/mm smaller than 0.55, and a Body Length/mm larger than 18.4? | CREATE TABLE table_name_48 (
body_width_mm INTEGER,
lead_pitch_mm VARCHAR,
body_length_mm VARCHAR
) | SELECT MIN(body_width_mm) FROM table_name_48 WHERE lead_pitch_mm < 0.55 AND body_length_mm > 18.4 |
Which Emission (in nanometers) that has a molar mass of 1078 g/mol? | CREATE TABLE table_name_86 (
emit__nm_ VARCHAR,
mass__g_mol_ VARCHAR
) | SELECT emit__nm_ FROM table_name_86 WHERE mass__g_mol_ = "1078" |
Name the most field goals | CREATE TABLE table_72533 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
) | SELECT MAX("Field goals") FROM table_72533 |
What is the attendance in a week earlier than 4, and result is w 31-20? | CREATE TABLE table_66377 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT AVG("Attendance") FROM table_66377 WHERE "Week" < '4' AND "Result" = 'w 31-20' |
Which home team's venue is junction oval? | CREATE TABLE table_name_71 (
home_team VARCHAR,
venue VARCHAR
) | SELECT home_team FROM table_name_71 WHERE venue = "junction oval" |
Who were the runner(s)-up when the winning score was 10 (69-68-74-67=278)? | CREATE TABLE table_40276 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Margin of victory" FROM table_40276 WHERE "Winning score" = '–10 (69-68-74-67=278)' |
Which railway was built in 1920? | CREATE TABLE table_10062 (
"Railway" text,
"Builder" text,
"Built" text,
"Wheels" text,
"Location" text,
"ObjectNumber" text
) | SELECT "Railway" FROM table_10062 WHERE "Built" = '1920' |
What was the rank of operator whose technology is CDMA EVDO? | CREATE TABLE table_26316 (
"Rank" real,
"Operators Name" text,
"Technology" text,
"Subscribers (in millions)" text,
"Ownership" text,
"Market Share" text
) | SELECT MIN("Rank") FROM table_26316 WHERE "Technology" = 'CDMA EVDO' |
Which player's home town is Swift Current, AB? | CREATE TABLE table_67030 (
"Number" text,
"Player" text,
"Position" text,
"Height" text,
"Weight" text,
"Home Town" text
) | SELECT "Player" FROM table_67030 WHERE "Home Town" = 'swift current, ab' |
What was the result after the week # top 11? | CREATE TABLE table_45619 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Result" text
) | SELECT "Result" FROM table_45619 WHERE "Week #" = 'top 11' |
What was the date of the Red Wings home game against Anaheim? | CREATE TABLE table_name_30 (
date VARCHAR,
visitor VARCHAR
) | SELECT date FROM table_name_30 WHERE visitor = "anaheim" |
Who had a Qualifying 2 time over 58.669 for Team Australia? | CREATE TABLE table_38483 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" real,
"Best" real
) | SELECT "Name" FROM table_38483 WHERE "Qual 2" > '58.669' AND "Team" = 'team australia' |
Visualize the relationship between Team_ID and ACC_Percent , and group by attribute All_Road. | 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, ACC_Percent FROM basketball_match GROUP BY All_Road |
What mobile markets have cvt hd? | CREATE TABLE table_28155 (
"Graphics" text,
"Launch" real,
"Market" text,
"CPU" text,
"Code name" text,
"Device ID" real,
"Core clock ( MHz )" text,
"Execution units" real,
"Shader model" text,
"DirectX" text,
"OpenGL" text,
"OpenCL" text,
"Memory bandwidth ( GB/s )" text,
"DVMT ( MB )" real,
"CVT HD" text,
"QSV" text
) | SELECT "CVT HD" FROM table_28155 WHERE "Market" = 'Mobile' |
March 0.41 in July? | CREATE TABLE table_15945862_1 (
july VARCHAR,
march VARCHAR
) | SELECT july FROM table_15945862_1 WHERE march = "0.41" |
What is the title for the Korean progran on KBS2? | CREATE TABLE table_47993 (
"Year" real,
"Network" text,
"Title" text,
"Notes" text,
"Language" text
) | SELECT "Title" FROM table_47993 WHERE "Language" = 'korean' AND "Network" = 'kbs2' |
What was the game site week 15? | CREATE TABLE table_name_79 (
game_site VARCHAR,
week VARCHAR
) | SELECT game_site FROM table_name_79 WHERE week = 15 |
What's the track for 1982? | CREATE TABLE table_7795 (
"Year" real,
"Track" text,
"50 cc" text,
"125 cc" text,
"Report" text
) | SELECT "Track" FROM table_7795 WHERE "Year" = '1982' |
What number was there 6.01 million u.s. drivers? | CREATE TABLE table_23483182_1 (
no_in_season VARCHAR,
us_viewers__million_ VARCHAR
) | SELECT no_in_season FROM table_23483182_1 WHERE us_viewers__million_ = "6.01" |
Who is the representative with a presentation of credentials date on February 23, 1854? | CREATE TABLE table_71880 (
"Representative" text,
"Title" text,
"Presentation of Credentials" text,
"Termination of Mission" text,
"Appointed by" text
) | SELECT "Representative" FROM table_71880 WHERE "Presentation of Credentials" = 'february 23, 1854' |
What team had 10 Labs and the Driver was Alex Yoong? | CREATE TABLE table_name_24 (
team VARCHAR,
laps VARCHAR,
driver VARCHAR
) | SELECT team FROM table_name_24 WHERE laps = 10 AND driver = "alex yoong" |
What is the sum of Metres wiht a Feet that's smaller than 196? | CREATE TABLE table_name_51 (
metres VARCHAR,
feet INTEGER
) | SELECT COUNT(metres) FROM table_name_51 WHERE feet < 196 |
What is the prize money amount after match 1, with 102 new entries to the round? | CREATE TABLE table_name_40 (
prize_money VARCHAR,
matches VARCHAR,
new_entries_this_round VARCHAR
) | SELECT prize_money FROM table_name_40 WHERE matches > 1 AND new_entries_this_round = "102" |
What are the start and end dates for incidents with incident type code 'NOISE'? | CREATE TABLE Behavior_Incident (
date_incident_start VARCHAR,
date_incident_end VARCHAR,
incident_type_code VARCHAR
) | SELECT date_incident_start, date_incident_end FROM Behavior_Incident WHERE incident_type_code = "NOISE" |
How many losingteams were for the cup finaldate 20 August 1989? | CREATE TABLE table_12028543_3 (
losingteam VARCHAR,
cup_finaldate VARCHAR
) | SELECT COUNT(losingteam) FROM table_12028543_3 WHERE cup_finaldate = "20 August 1989" |
Name the D 42 which has a D 46 of r 26 | CREATE TABLE table_51880 (
"D 41" text,
"D 42" text,
"D 43" text,
"D 44" text,
"D 45" text,
"D 46" text,
"R 54" text,
"R 53" text,
"R 52" text,
"R 51" text
) | SELECT "D 42" FROM table_51880 WHERE "D 46" = 'r 26' |
What's the 2nd leg result in the round where Panionios is team #2? | CREATE TABLE table_22824 (
"Team #1" text,
"Agg. score" text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "2nd leg" FROM table_22824 WHERE "Team #2" = 'Panionios' |
What was the score when the home team was Stockport County? | CREATE TABLE table_47602 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Score" FROM table_47602 WHERE "Home team" = 'stockport county' |
Name the minoru for block A being koji kanemoto | CREATE TABLE table_name_38 (
minoru VARCHAR,
block_a VARCHAR
) | SELECT minoru FROM table_name_38 WHERE block_a = "koji kanemoto" |
mini _ mental status exam score < 25 . | CREATE TABLE table_train_85 (
"id" int,
"mini_mental_state_examination_mmse" int,
"elevated_serum_phenylalanine" int,
"elevated_creatinine" float,
"renal_disease" bool,
"geriatric_depression_scale_gds" int,
"NOUSE" float
) | SELECT * FROM table_train_85 WHERE mini_mental_state_examination_mmse < 25 |
What is the total attendance on April 25? | CREATE TABLE table_46725 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
) | SELECT COUNT("Attendance") FROM table_46725 WHERE "Date" = 'april 25' |
What is every missile type with a code and location of M-20 Harbor Drive? | CREATE TABLE table_24900 (
"Code & location" text,
"Missile Type" text,
"Defense Area" text,
"Dates" text,
"Control Site condition/owner" text,
"Launch Site condition/owner" text
) | SELECT "Missile Type" FROM table_24900 WHERE "Code & location" = 'M-20 Harbor Drive' |
Which title was directed by chuck jones and released on 1958-04-12? | CREATE TABLE table_name_56 (
title VARCHAR,
director VARCHAR,
release_date VARCHAR
) | SELECT title FROM table_name_56 WHERE director = "chuck jones" AND release_date = "1958-04-12" |
who was the last representative to take office ? | CREATE TABLE table_203_345 (
id number,
"name" text,
"party" text,
"took office" number,
"left office" number
) | SELECT "name" FROM table_203_345 ORDER BY "took office" DESC LIMIT 1 |
in what sport did india win the most silver medals ? | CREATE TABLE table_204_103 (
id number,
"medal" text,
"name" text,
"sport" text,
"event" text
) | SELECT "sport" FROM table_204_103 GROUP BY "sport" ORDER BY COUNT("medal") DESC LIMIT 1 |
When was there a record of 13 17 3? | CREATE TABLE table_name_63 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_63 WHERE record = "13–17–3" |
Who is the player who had more than 1,052 points? | CREATE TABLE table_34511 (
"Rank" text,
"Player" text,
"Position" text,
"Career" text,
"Points" real
) | SELECT "Player" FROM table_34511 WHERE "Points" > '1,052' |
how many times was the televote/sms 2.39% and the place more than 9? | CREATE TABLE table_66500 (
"Draw" real,
"Artist" text,
"Song" text,
"Televote/SMS" text,
"Place" real
) | SELECT COUNT("Draw") FROM table_66500 WHERE "Televote/SMS" = '2.39%' AND "Place" > '9' |
What is the date of the match with a result of ud 12/12 between Pernell Whitaker and James Mcgirt? | CREATE TABLE table_name_87 (
date VARCHAR,
opponent VARCHAR,
result VARCHAR,
name VARCHAR
) | SELECT date FROM table_name_87 WHERE result = "ud 12/12" AND name = "pernell whitaker" AND opponent = "james mcgirt" |
What was the score of the game on February 8? | CREATE TABLE table_name_34 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_34 WHERE date = "february 8" |
What was the Nickname that had a No. 0, and Years in Competition of 1982-2003? | CREATE TABLE table_name_26 (
nickname VARCHAR,
no_of_premierships VARCHAR,
years_in_competition VARCHAR
) | SELECT nickname FROM table_name_26 WHERE no_of_premierships = 0 AND years_in_competition = "1982-2003" |
How did the match end when his record was 15-11? | CREATE TABLE table_name_37 (
method VARCHAR,
record VARCHAR
) | SELECT method FROM table_name_37 WHERE record = "15-11" |
In what district was the incumbent Edwin Gray? | CREATE TABLE table_2668401_17 (
district VARCHAR,
incumbent VARCHAR
) | SELECT district FROM table_2668401_17 WHERE incumbent = "Edwin Gray" |
How many Extra points have Touchdowns larger than 2, and Field goals larger than 0? | CREATE TABLE table_name_4 (
extra_points VARCHAR,
touchdowns VARCHAR,
field_goals VARCHAR
) | SELECT COUNT(extra_points) FROM table_name_4 WHERE touchdowns > 2 AND field_goals > 0 |
How many basketball arenas are there that belong to a school with a capacity of 3,000? | CREATE TABLE table_1974545_3 (
basketball_arena VARCHAR,
capacity VARCHAR
) | SELECT COUNT(basketball_arena) FROM table_1974545_3 WHERE capacity = "3,000" |
how many player with no being 12 | CREATE TABLE table_12962773_5 (
player VARCHAR,
no VARCHAR
) | SELECT COUNT(player) FROM table_12962773_5 WHERE no = 12 |
What team was the away team when the home team was Hereford United? | CREATE TABLE table_name_32 (
away_team VARCHAR,
home_team VARCHAR
) | SELECT away_team FROM table_name_32 WHERE home_team = "hereford united" |
Who had the high assists in game 80? | CREATE TABLE table_17355408_9 (
high_assists VARCHAR,
game VARCHAR
) | SELECT high_assists FROM table_17355408_9 WHERE game = 80 |
What is the number of points when the match is smaller than 14? | CREATE TABLE table_10038 (
"Team" text,
"Match" real,
"Points" real,
"Draw" real,
"Lost" real
) | SELECT COUNT("Points") FROM table_10038 WHERE "Match" < '14' |
Find ACC_Regular_Season and ACC_Percent , and visualize them by a bar chart, and could you order by the y axis from high to low? | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT ACC_Regular_Season, ACC_Percent FROM basketball_match ORDER BY ACC_Percent DESC |
What is the number of bronze when the total is smaller than 1? | CREATE TABLE table_name_58 (
bronze INTEGER,
total INTEGER
) | SELECT AVG(bronze) FROM table_name_58 WHERE total < 1 |
what language is seethaiah in | CREATE TABLE table_name_27 (
language VARCHAR,
film_name VARCHAR
) | SELECT language FROM table_name_27 WHERE film_name = "seethaiah" |
Please show the different statuses of cities and the average population of cities with each status. | CREATE TABLE competition_record (
competition_id number,
farm_id number,
rank number
)
CREATE TABLE farm (
farm_id number,
year number,
total_horses number,
working_horses number,
total_cattle number,
oxen number,
bulls number,
cows number,
pigs number,
sheep_and_goats number
)
CREATE TABLE farm_competition (
competition_id number,
year number,
theme text,
host_city_id number,
hosts text
)
CREATE TABLE city (
city_id number,
official_name text,
status text,
area_km_2 number,
population number,
census_ranking text
) | SELECT status, AVG(population) FROM city GROUP BY status |
What is the total number of values for 'Teleplay by' category for series # 35? | CREATE TABLE table_72542 (
"Series #" real,
"Season #" real,
"Title" text,
"Story by" text,
"Teleplay by" text,
"Directed by" text,
"Original air date" text
) | SELECT COUNT("Teleplay by") FROM table_72542 WHERE "Series #" = '35' |
What nation won the fewest gold medals while being in Rank 1, with a total of 37 medals and more than 7 bronze medals? | CREATE TABLE table_name_4 (
gold INTEGER,
bronze VARCHAR,
total VARCHAR,
rank VARCHAR
) | SELECT MIN(gold) FROM table_name_4 WHERE total = 37 AND rank = "1" AND bronze > 7 |
WHAT SEASON HAD COACH JONAS KAZLAUSKAS AT champions cup group stage? | CREATE TABLE table_60992 (
"Season" text,
"LKF Cup" text,
"Regional Competitions" text,
"Europe" text,
"Head Coach" text
) | SELECT "Season" FROM table_60992 WHERE "Head Coach" = 'jonas kazlauskas' AND "Europe" = 'champions cup group stage' |
When Payne Stewart of the United States scored higher than 69, what was the To Par? | CREATE TABLE table_47375 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "To par" FROM table_47375 WHERE "Country" = 'united states' AND "Score" > '69' AND "Player" = 'payne stewart' |
What is Assists that has a Blocks of 2 tied (1) with a Year larger than 1995 | CREATE TABLE table_70811 (
"Year" real,
"Points" text,
"Rebounds" text,
"Assists" text,
"Steals" text,
"Blocks" text
) | SELECT "Assists" FROM table_70811 WHERE "Blocks" = '2 tied (1)' AND "Year" > '1995' |
Which location includes Sakakita BS? | CREATE TABLE table_39596 (
"Name" text,
"Dist. from Origin" text,
"Dist. from Terminus" text,
"Speed Limit" text,
"Location (all in Nagano )" text
) | SELECT "Location (all in Nagano )" FROM table_39596 WHERE "Name" = 'sakakita bs' |
Name the team for copa conmebol 1992 is round of 16 | CREATE TABLE table_15013825_8 (
team VARCHAR,
copa_conmebol_1992 VARCHAR
) | SELECT team FROM table_15013825_8 WHERE copa_conmebol_1992 = "Round of 16" |
What is the height of the building named 555 17th street? | CREATE TABLE table_75582 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"Height ft / m" text,
"Floors" real
) | SELECT "Height ft / m" FROM table_75582 WHERE "Name" = '555 17th street' |
How many times is there a golden tickets entry when the callback venue is rcti studio, jakarta? | CREATE TABLE table_28793672_1 (
golden_tickets VARCHAR,
callback_venue VARCHAR
) | SELECT COUNT(golden_tickets) FROM table_28793672_1 WHERE callback_venue = "RCTI Studio, Jakarta" |
What was the Home team score when the crowd was larger than 12,240 and Carlton was the away team? | CREATE TABLE table_55963 (
"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_55963 WHERE "Crowd" > '12,240' AND "Away team" = 'carlton' |
What is the numberof running wiht pamela zapata? | CREATE TABLE table_17648 (
"#" real,
"Athlete" text,
"Shooting" text,
"Fencing" text,
"Swimming" text,
"Riding" text,
"Running" text,
"Total" real
) | SELECT COUNT("Running") FROM table_17648 WHERE "Athlete" = 'Pamela Zapata' |
How many directors were there for season 3 episode 1? | CREATE TABLE table_28453 (
"Episode #" text,
"Season Episode #" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Prod. code" text
) | SELECT COUNT("Directed by") FROM table_28453 WHERE "Season Episode #" = '1' |
Who directed the movie The Star Packer? | CREATE TABLE table_67265 (
"Title" text,
"Studio" text,
"Role" text,
"Leading lady" text,
"Director" text
) | SELECT "Director" FROM table_67265 WHERE "Title" = 'the star packer' |
Which state has a royal house of Ying? | CREATE TABLE table_name_66 (
state VARCHAR,
royal_house VARCHAR
) | SELECT state FROM table_name_66 WHERE royal_house = "ying" |
Player of mike o'quinn, and a Round smaller than 15 had what lowest pick? | CREATE TABLE table_5749 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
) | SELECT MIN("Pick") FROM table_5749 WHERE "Player" = 'mike o''quinn' AND "Round" < '15' |
On what date was game 3? | CREATE TABLE table_79596 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location Attendance" text,
"Record" text
) | SELECT "Date" FROM table_79596 WHERE "Game" = '3' |
Name the opponent with record of 12-18 | CREATE TABLE table_68894 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | SELECT "Opponent" FROM table_68894 WHERE "Record" = '12-18' |
What was the injured entry for Venezuela? | CREATE TABLE table_name_16 (
injured VARCHAR,
country VARCHAR
) | SELECT injured FROM table_name_16 WHERE country = "venezuela" |
How many field goals were scored by the player that got 7 touchdowns? | CREATE TABLE table_25711913_14 (
field_goals__4_points_ VARCHAR,
touchdowns__5_points_ VARCHAR
) | SELECT field_goals__4_points_ FROM table_25711913_14 WHERE touchdowns__5_points_ = 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.