instruction
stringlengths 5
766
| input
stringlengths 38
5.51k
| response
stringlengths 4
3.91k
|
---|---|---|
Return a bar chart showing the number of schools in each county, order X in ascending order. | CREATE TABLE School (
School_id text,
School_name text,
Location text,
Mascot text,
Enrollment int,
IHSAA_Class text,
IHSAA_Football_Class text,
County text
)
CREATE TABLE budget (
School_id int,
Year int,
Budgeted int,
total_budget_percent_budgeted real,
Invested int,
total_budget_percent_invested real,
Budget_invested_percent text
)
CREATE TABLE endowment (
endowment_id int,
School_id int,
donator_name text,
amount real
) | SELECT County, COUNT(*) FROM School GROUP BY County ORDER BY County |
Who was the centerfold model when a pictorial was done on marilyn monroe? | CREATE TABLE table_1566850_8 (
centerfold_model VARCHAR,
pictorials VARCHAR
) | SELECT centerfold_model FROM table_1566850_8 WHERE pictorials = "Marilyn Monroe" |
What was the score on April 6, 2008? | CREATE TABLE table_name_12 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_12 WHERE date = "april 6, 2008" |
A scatter chart shows the correlation between Team_ID and ACC_Percent , and group by attribute ACC_Regular_Season. | 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 Team_ID, ACC_Percent FROM basketball_match GROUP BY ACC_Regular_Season |
What is the total number of McCain vote totals where Obama percentages was 17.34%? | CREATE TABLE table_20684390_1 (
mccain_number VARCHAR,
obama_percentage VARCHAR
) | SELECT COUNT(mccain_number) FROM table_20684390_1 WHERE obama_percentage = "17.34%" |
What is the minimum number of f/laps? | CREATE TABLE table_28445 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
) | SELECT MIN("F/Laps") FROM table_28445 |
Return a bar chart about the distribution of All_Games and ACC_Percent , and could you show in desc by the X-axis? | 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_Games, ACC_Percent FROM basketball_match ORDER BY All_Games DESC |
Which award was given for the role of Elphaba in 2009? | CREATE TABLE table_43430 (
"Year" text,
"Award" text,
"Production" text,
"Role" text,
"Result" text
) | SELECT "Award" FROM table_43430 WHERE "Role" = 'elphaba' AND "Year" = '2009' |
What is the status(es) of the place with an area of 304.06 km2? | CREATE TABLE table_72918 (
"Official Name" text,
"Status" text,
"Area km 2" text,
"Population" real,
"Census Ranking" text
) | SELECT "Status" FROM table_72918 WHERE "Area km 2" = '304.06' |
Which Constructor won the Roussillon Grand Prix? | CREATE TABLE table_name_95 (
winning_constructor VARCHAR,
name VARCHAR
) | SELECT winning_constructor FROM table_name_95 WHERE name = "roussillon grand prix" |
what is the location when the designer is glen peloso and the restaurant is joe boo's cookoos? | CREATE TABLE table_63664 (
"Restaurant Name" text,
"Original Name" text,
"Location" text,
"Chef" text,
"Designer" text,
"Still Open?" text
) | SELECT "Location" FROM table_63664 WHERE "Designer" = 'glen peloso' AND "Restaurant Name" = 'joe boo''s cookoos' |
What player that has a Position of df, and Loaned to is Stoke City? | CREATE TABLE table_name_89 (
player VARCHAR,
position VARCHAR,
loaned_to VARCHAR
) | SELECT player FROM table_name_89 WHERE position = "df" AND loaned_to = "stoke city" |
Which venue had an extra of Junior Race? | CREATE TABLE table_80318 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Extra" text
) | SELECT "Venue" FROM table_80318 WHERE "Extra" = 'junior race' |
Name the host for prime | CREATE TABLE table_21143 (
"Country" text,
"Name" text,
"Network" text,
"Premiere" text,
"Host(s)" text,
"Judges" text,
"Seasons and Winners" text
) | SELECT "Host(s)" FROM table_21143 WHERE "Network" = 'Prime' |
What is the name of person that scored 10 goals? | CREATE TABLE table_16901 (
"number" real,
"date of debut" text,
"name" text,
"date of birth" text,
"number of caps" real,
"number of goals" real,
"date of death\u2020" text
) | SELECT "name" FROM table_16901 WHERE "number of goals" = '10' |
what is the average for 2005 when 1995 is more than 3, 1996 is less than 4, and 2011 is more than 5? | CREATE TABLE table_67535 (
"Country" text,
"2012" real,
"2011" real,
"2010" real,
"2009" real,
"2008" real,
"2007" real,
"2006" real,
"2005" real,
"2004" real,
"2003" real,
"2002" real,
"2001" real,
"2000" real,
"1999" real,
"1998" real,
"1997" real,
"1996" real,
"1995" real,
"1994" real,
"1993" real,
"1992" real,
"1991" real,
"1990" real,
"1989" real,
"1988" real
) | SELECT AVG("2005") FROM table_67535 WHERE "1995" > '3' AND "1996" < '4' AND "2011" > '5' |
How many games were against Furman? | CREATE TABLE table_23872 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Tar Heels points" real,
"Opponents" real,
"Record" text
) | SELECT MAX("Game") FROM table_23872 WHERE "Opponent" = 'Furman' |
What was the percentage for T. Papadopoulos when I. Kasoulidis was 27.1%? | CREATE TABLE table_name_85 (
t_papadopoulos VARCHAR,
i_kasoulidis VARCHAR
) | SELECT t_papadopoulos FROM table_name_85 WHERE i_kasoulidis = "27.1%" |
Name the week 3 for team of mark/jennifer | CREATE TABLE table_name_99 (
week_3 VARCHAR,
team VARCHAR
) | SELECT week_3 FROM table_name_99 WHERE team = "mark/jennifer" |
how many high points where date is february 19 | CREATE TABLE table_23480 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("High points") FROM table_23480 WHERE "Date" = 'February 19' |
which was the first canal opened in scotland ? | CREATE TABLE table_203_594 (
id number,
"canal" text,
"length (miles)" number,
"locks" number,
"max length (ft)" number,
"width (ft)" number,
"year opened" number,
"year abandoned" number,
"year restored" number
) | SELECT "canal" FROM table_203_594 ORDER BY "year opened" LIMIT 1 |
Who replaced the manager of team arminia bielefeld? | CREATE TABLE table_47921 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Replaced by" FROM table_47921 WHERE "Team" = 'arminia bielefeld' |
Which round did Dundee United end in? | CREATE TABLE table_70025 (
"Season" text,
"Competition" text,
"Round" text,
"Club" text,
"Home" text,
"Away" text,
"Aggregate" text
) | SELECT "Round" FROM table_70025 WHERE "Club" = 'dundee united' |
What is the Metacritic released after 2005, with a Platform of playstation 3 and a GameRankings of 84.44%? | CREATE TABLE table_name_76 (
metacritic VARCHAR,
gamerankings VARCHAR,
year_released VARCHAR,
platform VARCHAR
) | SELECT metacritic FROM table_name_76 WHERE year_released > 2005 AND platform = "playstation 3" AND gamerankings = "84.44%" |
Which Nation has a Gold larger than 0, and a Total larger than 4, and a Rank of 6? | CREATE TABLE table_48308 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT "Nation" FROM table_48308 WHERE "Gold" > '0' AND "Total" > '4' AND "Rank" = '6' |
what were the number of goals scored by team a.d.isidro metapan ? | CREATE TABLE table_203_30 (
id number,
"place" number,
"team" text,
"played" number,
"won" number,
"draw" number,
"lost" number,
"goals\nscored" number,
"goals\nconceded" number,
"+/-" number,
"points" number
) | SELECT "goals\nscored" FROM table_203_30 WHERE "team" = 'a.d. isidro metapan' |
How big (in km2) is Persarmenia? | CREATE TABLE table_26375 (
"Province (ashkharh)" text,
"Armenian name" text,
"Area (km\u00b2)" real,
"Number of cantons (gavars)" real,
"Center" text
) | SELECT "Area (km\u00b2)" FROM table_26375 WHERE "Province (ashkharh)" = 'Persarmenia' |
When 2005 is the season how many drivers are there? | CREATE TABLE table_21881 (
"Season" text,
"Date" text,
"Driver" text,
"Team" text,
"Chassis" text,
"Engine" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) | SELECT COUNT("Driver") FROM table_21881 WHERE "Season" = '2005' |
What is the Peak with a Project Name that is talakan ph 1? | CREATE TABLE table_75369 (
"Country" text,
"Project Name" text,
"Year startup" text,
"Operator" text,
"Peak" text
) | SELECT "Peak" FROM table_75369 WHERE "Project Name" = 'talakan ph 1' |
What was the rank of Svetlana Fedorenko? | CREATE TABLE table_71569 (
"Rank" real,
"Name" text,
"Nationality" text,
"Score" text,
"Perfection" text
) | SELECT "Rank" FROM table_71569 WHERE "Name" = 'svetlana fedorenko' |
On which datebis arco arena 17361 the location attendance? | CREATE TABLE table_23285805_8 (
date VARCHAR,
location_attendance VARCHAR
) | SELECT date FROM table_23285805_8 WHERE location_attendance = "Arco Arena 17361" |
Name the date for pescara | CREATE TABLE table_name_76 (
date VARCHAR,
circuit VARCHAR
) | SELECT date FROM table_name_76 WHERE circuit = "pescara" |
Which Rank has a Player of matt ruth? | CREATE TABLE table_13632 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Opposition" text
) | SELECT SUM("Rank") FROM table_13632 WHERE "Player" = 'matt ruth' |
Who directed episode 11 of the season? | CREATE TABLE table_28785738_1 (
director VARCHAR,
no_in_season VARCHAR
) | SELECT director FROM table_28785738_1 WHERE no_in_season = 11 |
Name the highest Comp which has a Yds/game larger than 0, bostick, and a Rating smaller than 91.77? | CREATE TABLE table_name_19 (
comp INTEGER,
rating VARCHAR,
yds_game VARCHAR,
name VARCHAR
) | SELECT MAX(comp) FROM table_name_19 WHERE yds_game > 0 AND name = "bostick" AND rating < 91.77 |
On average, how many Starts have Wins that are smaller than 0? | CREATE TABLE table_name_86 (
starts INTEGER,
wins INTEGER
) | SELECT AVG(starts) FROM table_name_86 WHERE wins < 0 |
What is the largest round number for Dan Connor, the player? | CREATE TABLE table_37749 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School/Club Team" text
) | SELECT MAX("Round") FROM table_37749 WHERE "Player" = 'dan connor' |
Find All_Neutral and Team_ID , and visualize them by a bar chart, and show in descending by the names. | 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_Neutral, Team_ID FROM basketball_match ORDER BY All_Neutral DESC |
what is the price of bot the via and tour models combined ? | CREATE TABLE table_203_42 (
id number,
"model" text,
"class" text,
"length" text,
"fuel" text,
"starting price" text
) | SELECT SUM("starting price") FROM table_203_42 WHERE "model" IN ('via', 'tour') |
Select the name of each manufacturer along with the name and price of its most expensive product. | CREATE TABLE products (
Name VARCHAR,
Price INTEGER,
manufacturer VARCHAR
)
CREATE TABLE Manufacturers (
name VARCHAR,
code VARCHAR
) | SELECT T1.Name, MAX(T1.Price), T2.Name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.Name |
What is the average number of points for a team in the 250cc class with fewer than 0 wins? | CREATE TABLE table_35810 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
) | SELECT AVG("Points") FROM table_35810 WHERE "Class" = '250cc' AND "Wins" < '0' |
Which AFC cup does Kenji Arai have? | CREATE TABLE table_44862 (
"Rank" real,
"Name" text,
"S-League" text,
"Singapore Cup" text,
"Singapore League Cup" text,
"AFC Cup" text,
"Total" text
) | SELECT "AFC Cup" FROM table_44862 WHERE "Name" = 'kenji arai' |
What is the number of rank of peak fresvikbreen? | CREATE TABLE table_17588 (
"Rank" real,
"Peak" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Isolation (km)" real,
"Municipality" text,
"County" text
) | SELECT COUNT("Rank") FROM table_17588 WHERE "Peak" = 'Fresvikbreen' |
What is the average weight of the player with a height of 180 cm and plays the d position? | CREATE TABLE table_41587 (
"Position" text,
"Jersey number" real,
"Name v t e" text,
"Height (cm)" real,
"Weight (kg)" real,
"Birthplace" text,
"2008-09 team" text,
"NHL rights, if any" text
) | SELECT AVG("Weight (kg)") FROM table_41587 WHERE "Height (cm)" = '180' AND "Position" = 'd' |
What's the lowest number of total passengers (millions) for an annual entry/exit of 36.609? | CREATE TABLE table_62659 (
"Rank" real,
"Railway Station" text,
"Annual entry/exit (millions) 2011\u201312" real,
"Annual interchanges (millions) 2011\u201312" real,
"Total Passengers (millions) 2011\u201312" real,
"Location" text,
"Number of Platforms" real
) | SELECT MIN("Total Passengers (millions) 2011\u201312") FROM table_62659 WHERE "Annual entry/exit (millions) 2011\u201312" = '36.609' |
What mean number of extra points was there when James Lawrence was a player and the touchdown number was less than 1? | CREATE TABLE table_name_7 (
extra_points INTEGER,
player VARCHAR,
touchdowns VARCHAR
) | SELECT AVG(extra_points) FROM table_name_7 WHERE player = "james lawrence" AND touchdowns < 1 |
What is the highest championship that has 1 as the league cup, and 17 as the total? | CREATE TABLE table_name_85 (
championship INTEGER,
league_cup VARCHAR,
total VARCHAR
) | SELECT MAX(championship) FROM table_name_85 WHERE league_cup = 1 AND total = "17" |
Who was number 9 that had a number 7 of Joana and a Final of Pedro? | CREATE TABLE table_name_96 (
no9 VARCHAR,
no7 VARCHAR,
final VARCHAR
) | SELECT no9 FROM table_name_96 WHERE no7 = "joana" AND final = "pedro" |
What is the total number of 2012 Employees (Total) when 2007 Employees (Total) is 8,985, and rank (2010) is smaller than 9? | CREATE TABLE table_63078 (
"Rank (2012)" real,
"Rank (2010)" real,
"Employer" text,
"Industry" text,
"2012 Employees (Total)" real,
"2010 Employees (Total)" real,
"2007 Employees (Total)" text,
"Head office" text
) | SELECT COUNT("2012 Employees (Total)") FROM table_63078 WHERE "2007 Employees (Total)" = '8,985' AND "Rank (2010)" < '9' |
Name the jason for public vote being 19.20% | CREATE TABLE table_24208 (
"Order" real,
"Couple" text,
"Karen" text,
"Nicky" text,
"Jason" text,
"Ruthie" text,
"Robin" text,
"Total" text,
"Scoreboard" text,
"Song" text,
"Public Vote %" text,
"Result" text
) | SELECT "Jason" FROM table_24208 WHERE "Public Vote %" = '19.20%' |
Tell me the the date when the first claim was made. | CREATE TABLE settlements (
settlement_id number,
claim_id number,
date_claim_made time,
date_claim_settled time,
amount_claimed number,
amount_settled number,
customer_policy_id number
)
CREATE TABLE customers (
customer_id number,
customer_details text
)
CREATE TABLE claims (
claim_id number,
policy_id number,
date_claim_made time,
date_claim_settled time,
amount_claimed number,
amount_settled number
)
CREATE TABLE payments (
payment_id number,
settlement_id number,
payment_method_code text,
date_payment_made time,
amount_payment number
)
CREATE TABLE customer_policies (
policy_id number,
customer_id number,
policy_type_code text,
start_date time,
end_date time
) | SELECT date_claim_made FROM claims ORDER BY date_claim_made LIMIT 1 |
What year did the school from mars hill, north carolina join? | CREATE TABLE table_11658094_3 (
joined VARCHAR,
location VARCHAR
) | SELECT joined FROM table_11658094_3 WHERE location = "Mars Hill, North Carolina" |
Which golfer finished with a score of 70-71=141? | CREATE TABLE table_59416 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) | SELECT "Player" FROM table_59416 WHERE "Score" = '70-71=141' |
Which Surface has an Opponent in the final of don mcneill, and a Year of 1940? | CREATE TABLE table_name_52 (
surface VARCHAR,
opponent_in_the_final VARCHAR,
year VARCHAR
) | SELECT surface FROM table_name_52 WHERE opponent_in_the_final = "don mcneill" AND year = 1940 |
Name the Time of broadcast has a Picture format of 4:3, and Hours of 20:30, and Days of the week of monday, wednesday, friday? | CREATE TABLE table_name_23 (
time_of_broadcast VARCHAR,
days_of_the_week VARCHAR,
picture_format VARCHAR,
hours VARCHAR
) | SELECT time_of_broadcast FROM table_name_23 WHERE picture_format = "4:3" AND hours = "20:30" AND days_of_the_week = "monday, wednesday, friday" |
What is the time for a lane less than 6, and a heat less than 4 for Joanne Malar? | CREATE TABLE table_name_19 (
time VARCHAR,
name VARCHAR,
lane VARCHAR,
heat VARCHAR
) | SELECT time FROM table_name_19 WHERE lane < 6 AND heat < 4 AND name = "joanne malar" |
What is the highest draws when more than 6 are played and the points against are 54? | CREATE TABLE table_name_92 (
drawn INTEGER,
against VARCHAR,
played VARCHAR
) | SELECT MAX(drawn) FROM table_name_92 WHERE against = 54 AND played > 6 |
What is the highest value for race? | CREATE TABLE table_1348 (
"Season" real,
"Series" text,
"Team Name" text,
"Races" real,
"Podiums" real,
"Poles" real,
"Wins" real,
"Points" real,
"Final Placing" text
) | SELECT MAX("Races") FROM table_1348 |
What Player is a Wide Receiver? | CREATE TABLE table_74914 (
"Pick #" real,
"Round" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Player" FROM table_74914 WHERE "Position" = 'wide receiver' |
What is the Year of Rio? | CREATE TABLE table_name_14 (
year VARCHAR,
title VARCHAR
) | SELECT year FROM table_name_14 WHERE title = "rio" |
such as are entire the rating of closing where championship is moscow | CREATE TABLE table_23197088_4 (
score_in_final VARCHAR,
championship VARCHAR
) | SELECT score_in_final FROM table_23197088_4 WHERE championship = "Moscow" |
What is the to par for the United States with a 67-71-73=211 score? | CREATE TABLE table_name_72 (
to_par VARCHAR,
country VARCHAR,
score VARCHAR
) | SELECT to_par FROM table_name_72 WHERE country = "united states" AND score = 67 - 71 - 73 = 211 |
What year was Zona Sur nominated? | CREATE TABLE table_name_69 (
year__ceremony_ VARCHAR,
original_title VARCHAR
) | SELECT year__ceremony_ FROM table_name_69 WHERE original_title = "zona sur" |
When did the term begin that ended January 3, 1995? | CREATE TABLE table_224672_2 (
term_began VARCHAR,
term_ended VARCHAR
) | SELECT term_began FROM table_224672_2 WHERE term_ended = "January 3, 1995" |
What is the sum of matches played that has a year of first match before 2000, fewer than 21 lost, and 0 drawn? | CREATE TABLE table_69759 (
"First game" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Percentage" text
) | SELECT SUM("Played") FROM table_69759 WHERE "First game" < '2000' AND "Lost" < '21' AND "Drawn" < '0' |
Who was in 2nd leg when Boca Juniors was in home (1st leg)? | CREATE TABLE table_14219514_1 (
home__1st_leg_ VARCHAR
) | SELECT 2 AS nd_leg FROM table_14219514_1 WHERE home__1st_leg_ = "Boca Juniors" |
Did the I Brazilian Grand Prix have a report? | CREATE TABLE table_16744 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
) | SELECT "Report" FROM table_16744 WHERE "Race Name" = 'I Brazilian Grand Prix' |
On what date did Fleetcenter have a game lower than 9 with a score of 104-94? | CREATE TABLE table_76887 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Date" FROM table_76887 WHERE "Location" = 'fleetcenter' AND "Game" < '9' AND "Score" = '104-94' |
Total weeks of 49,980 attendance? | CREATE TABLE table_name_55 (
week INTEGER,
attendance VARCHAR
) | SELECT SUM(week) FROM table_name_55 WHERE attendance = 49 OFFSET 980 |
What is the lowest numbered division Cleveland played in? | CREATE TABLE table_26156 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) | SELECT MIN("Division") FROM table_26156 |
How many Antonov An-2 Colt aircraft are in service? | CREATE TABLE table_name_37 (
in_service INTEGER,
aircraft VARCHAR
) | SELECT AVG(in_service) FROM table_name_37 WHERE aircraft = "antonov an-2 colt" |
What was South Melbourne's score as the away team? | CREATE TABLE table_name_50 (
away_team VARCHAR
) | SELECT away_team AS score FROM table_name_50 WHERE away_team = "south melbourne" |
What is the average Episode Number, when Original Airdate is March 21, 2010, and when Season is less than 3? | CREATE TABLE table_46367 (
"Year" real,
"Show" text,
"Season" real,
"Episode" text,
"Episode number" real,
"Original airdate" text
) | SELECT AVG("Episode number") FROM table_46367 WHERE "Original airdate" = 'march 21, 2010' AND "Season" < '3' |
What is the region for tv uskana? | CREATE TABLE table_60015 (
"Name" text,
"Region" text,
"Programming" text,
"Type" text,
"Encryption" text
) | SELECT "Region" FROM table_60015 WHERE "Name" = 'tv uskana' |
What is the Rank of the game with an Attendance of 93,039? | CREATE TABLE table_63834 (
"Rank" real,
"Attendance" real,
"Visiting Team" text,
"Date" text,
"Result" text
) | SELECT COUNT("Rank") FROM table_63834 WHERE "Attendance" = '93,039' |
Tell me the Stem Meaning of ical | CREATE TABLE table_31998 (
"Stem Meaning" text,
"2nd person sg" text,
"2nd person sg honorific" text,
"3rd person sg" text,
"3rd person sg honorific" text
) | SELECT "Stem Meaning" FROM table_31998 WHERE "3rd person sg" = 'ical' |
Where did Geelong play as the away team? | CREATE TABLE table_name_62 (
venue VARCHAR,
away_team VARCHAR
) | SELECT venue FROM table_name_62 WHERE away_team = "geelong" |
how many companies had over $ 1,000,000 profit ? | CREATE TABLE table_203_320 (
id number,
"rank in\n2011" number,
"name of\nconcern" text,
"location of\nheadquarters" text,
"revenue\n(thou.\npln)" number,
"profit\n(thou.\npln)" number,
"employees" number
) | SELECT COUNT("name of\nconcern") FROM table_203_320 WHERE "profit\n(thou.\npln)" > 1000000 |
What was the record when Vancouver was the visitor? | CREATE TABLE table_name_9 (
record VARCHAR,
visitor VARCHAR
) | SELECT record FROM table_name_9 WHERE visitor = "vancouver" |
What date is aston villa away? | CREATE TABLE table_43536 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Date" FROM table_43536 WHERE "Away team" = 'aston villa' |
Name the proto-austrronesian for *pine, *papine | CREATE TABLE table_15568886_14 (
proto_austronesian VARCHAR,
proto_oceanic VARCHAR
) | SELECT proto_austronesian FROM table_15568886_14 WHERE proto_oceanic = "*pine, *papine" |
name the nations that won at least 2 gold medals . | CREATE TABLE table_204_771 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_204_771 WHERE "gold" >= 2 |
What is the year Airds High School was founded? | CREATE TABLE table_59509 (
"School" text,
"Suburb/Town" text,
"Years" text,
"Founded" real,
"Website" text
) | SELECT "Founded" FROM table_59509 WHERE "School" = 'airds high school' |
How many colleges have the NFL Team Buffalo Bills? | CREATE TABLE table_2508633_11 (
college VARCHAR,
nfl_team VARCHAR
) | SELECT COUNT(college) FROM table_2508633_11 WHERE nfl_team = "Buffalo Bills" |
What is the name of the course that has the most student enrollment? | CREATE TABLE Courses (
course_name VARCHAR,
course_id VARCHAR
)
CREATE TABLE Student_Course_Enrolment (
course_id VARCHAR
) | SELECT T1.course_name FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1 |
Name a music director, belonging to a year after 2003? | CREATE TABLE table_name_86 (
music_director VARCHAR,
year INTEGER
) | SELECT music_director FROM table_name_86 WHERE year > 2003 |
What is the average final with an all around greater than 19.35 and a total over 40? | CREATE TABLE table_name_42 (
final INTEGER,
all_around VARCHAR,
total VARCHAR
) | SELECT AVG(final) FROM table_name_42 WHERE all_around > 19.35 AND total > 40 |
List all information about college sorted by enrollment number in the ascending order. | CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
) | SELECT * FROM college ORDER BY enr |
For those records from the products and each product's manufacturer, visualize a bar chart about the distribution of name and the sum of code , and group by attribute name, and I want to display Name in asc order. | 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.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name |
What league does Delaware Military Academy belong to | CREATE TABLE table_15475116_1 (
league VARCHAR,
school VARCHAR
) | SELECT league FROM table_15475116_1 WHERE school = "Delaware Military Academy" |
What is the score of the home team that played Collingwood? | CREATE TABLE table_51472 (
"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_51472 WHERE "Away team" = 'collingwood' |
What Branding does WRKO calls use? | CREATE TABLE table_10333757_1 (
branding VARCHAR,
calls VARCHAR
) | SELECT branding FROM table_10333757_1 WHERE calls = "WRKO" |
Who preforms at 2:00PM on Monday? | CREATE TABLE table_39768 (
"Time" text,
"12:00 PM" text,
"01:00 PM" text,
"02:00 PM" text,
"03:00 PM" text,
"04:00 PM" text,
"05:00 PM" text,
"05:55 PM" text
) | SELECT "02:00 PM" FROM table_39768 WHERE "Time" = 'monday' |
The cylinder layout v8 is produced in what years? | CREATE TABLE table_26352332_4 (
years_produced VARCHAR,
cylinder_layout VARCHAR
) | SELECT years_produced FROM table_26352332_4 WHERE cylinder_layout = "V8" |
What shuttle Run (sec) time has a 2.4km Run (min:sec) of 12:21-13:00? | CREATE TABLE table_56767 (
"Grade" text,
"Points" real,
"Sit-up (reps)" text,
"Standing Broad Jump (cm)" text,
"Chin-up (reps)" text,
"Shuttle Run (sec)" text,
"2.4km Run (min:sec)" text
) | SELECT "Shuttle Run (sec)" FROM table_56767 WHERE "2.4km Run (min:sec)" = '12:21-13:00' |
Draw a bar chart for what are the ids and names of the architects who built at least 3 bridges ?, rank in desc by the x-axis. | CREATE TABLE mill (
architect_id int,
id int,
location text,
name text,
type text,
built_year int,
notes text
)
CREATE TABLE architect (
id text,
name text,
nationality text,
gender text
)
CREATE TABLE bridge (
architect_id int,
id int,
name text,
location text,
length_meters real,
length_feet real
) | SELECT T1.name, T1.id FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id ORDER BY T1.name DESC |
What was Berlin when fk pirmasens was S dwest and westfalia herne was west? | CREATE TABLE table_51004 (
"Year" real,
"Nord" text,
"West" text,
"S\u00fcdwest" text,
"Berlin" text
) | SELECT "Berlin" FROM table_51004 WHERE "S\u00fcdwest" = 'fk pirmasens' AND "West" = 'westfalia herne' |
how many nations earned no bronze medals ? | CREATE TABLE table_203_724 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT COUNT("nation") FROM table_203_724 WHERE "bronze" = 0 |
which player had the status to the fourth round lost to tsvetana pironkova [32] Answers: | CREATE TABLE table_29572583_20 (
player VARCHAR,
status VARCHAR
) | SELECT player FROM table_29572583_20 WHERE status = "Fourth round lost to Tsvetana Pironkova [32]" |
What is every song title for 2007? | CREATE TABLE table_24419 (
"Year" real,
"Song Title" text,
"Artist" text,
"Genre" text,
"Original Game" text,
"Band Tier/Venue" text,
"Exportable to GH5/BH" text
) | SELECT "Song Title" FROM table_24419 WHERE "Year" = '2007' |
Subsets and Splits