instruction
stringlengths
5
766
input
stringlengths
38
5.51k
response
stringlengths
4
3.91k
How many types of valves were used on this engine that was built on 1902-05?
CREATE TABLE table_25695027_1 ( valves VARCHAR, years_built VARCHAR )
SELECT COUNT(valves) FROM table_25695027_1 WHERE years_built = "1902-05"
Album # of 3rd is what chinese title?
CREATE TABLE table_36119 ( "Album#" text, "English title" text, "Chinese title" text, "Released" text, "Label" text )
SELECT "Chinese title" FROM table_36119 WHERE "Album#" = '3rd'
For those records from the products and each product's manufacturer, return a bar chart about the distribution of headquarter and the average of price , and group by attribute headquarter, list in asc by the X.
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT Headquarter, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter
What was the rating/share for 18-49 for the episode that had 5.90 million viewers?
CREATE TABLE table_23730973_5 ( rating VARCHAR, viewers__millions_ VARCHAR )
SELECT rating / SHARE(18 - 49) FROM table_23730973_5 WHERE viewers__millions_ = "5.90"
What is the local name for the episodes that aired in 1981?
CREATE TABLE table_79774 ( "Region/Country" text, "Local name" text, "Network" text, "Dates aired" text, "Starring" text )
SELECT "Local name" FROM table_79774 WHERE "Dates aired" = '1981'
For what competition was the game played on 28 March 2009?
CREATE TABLE table_name_28 ( competition VARCHAR, date VARCHAR )
SELECT competition FROM table_name_28 WHERE date = "28 march 2009"
What home has February 10 as the date?
CREATE TABLE table_name_67 ( home VARCHAR, date VARCHAR )
SELECT home FROM table_name_67 WHERE date = "february 10"
What is the least amount of tropical lows for the 1993 94 season with less than 11 tropical cyclones
CREATE TABLE table_36948 ( "Season" text, "Tropical Lows" real, "Tropical Cyclones" real, "Severe Tropical Cyclones" real, "Strongest storm" text )
SELECT MIN("Tropical Lows") FROM table_36948 WHERE "Season" = '1993–94' AND "Tropical Cyclones" < '11'
What country was Danissa Zurek from?
CREATE TABLE table_25461827_2 ( country VARCHAR, contestant VARCHAR )
SELECT country FROM table_25461827_2 WHERE contestant = "Danissa Zurek"
What was the publication date of the photos of Sean Preston Federline that cost $500,000 and were published by People?
CREATE TABLE table_80032 ( "Type" text, "Person(s)" text, "Publisher(s)" text, "Publication date" text, "Reported price" text )
SELECT "Publication date" FROM table_80032 WHERE "Reported price" = '$500,000' AND "Publisher(s)" = 'people' AND "Person(s)" = 'sean preston federline'
Who are the Rowers with a Time of 6:39.49?
CREATE TABLE table_65473 ( "Rank" real, "Rowers" text, "Country" text, "Time" text, "Notes" text )
SELECT "Rowers" FROM table_65473 WHERE "Time" = '6:39.49'
When was 11-8 the record?
CREATE TABLE table_name_43 ( date VARCHAR, record VARCHAR )
SELECT date FROM table_name_43 WHERE record = "11-8"
What race is on 26 June 2011?
CREATE TABLE table_43995 ( "Rank" text, "Time" text, "Athlete" text, "Nation" text, "Date" text, "Race" text )
SELECT "Race" FROM table_43995 WHERE "Date" = '26 june 2011'
Which clubs have players with height 2.14m?
CREATE TABLE table_23670057_5 ( current_club VARCHAR, height__m_ VARCHAR )
SELECT current_club FROM table_23670057_5 WHERE height__m_ = "2.14"
Which Yellow Cards has a Season of 1999/2000?
CREATE TABLE table_name_75 ( yellow_cards INTEGER, season VARCHAR )
SELECT AVG(yellow_cards) FROM table_name_75 WHERE season = "1999/2000"
What was the worldwide gross for the film directed by joe pytka?
CREATE TABLE table_name_65 ( worldwide_gross VARCHAR, director VARCHAR )
SELECT worldwide_gross FROM table_name_65 WHERE director = "joe pytka"
What is the number of films of each director? Return a bar chart, and could you display by the how many directed by in asc?
CREATE TABLE schedule ( Cinema_ID int, Film_ID int, Date text, Show_times_per_day int, Price float ) 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 )
SELECT Directed_by, COUNT(Directed_by) FROM film GROUP BY Directed_by ORDER BY COUNT(Directed_by)
In what region was the change in % of the country's population since 1993 at 0.3?
CREATE TABLE table_28627 ( "Region" text, "Population" real, "% of countrys population" text, "Change in population since 1993" real, "Change in % of countrys population since 1993" text )
SELECT "Region" FROM table_28627 WHERE "Change in % of countrys population since 1993" = '0.3'
name the player for number 5
CREATE TABLE table_26229 ( "No" real, "Player" text, "Height (m)" text, "Height (f)" text, "Position" text, "Year born" real, "Current Club" text )
SELECT "Player" FROM table_26229 WHERE "No" = '5'
What is the effective date of the claim that has the largest amount of total settlement?
CREATE TABLE claims ( Effective_Date VARCHAR, claim_id VARCHAR ) CREATE TABLE settlements ( claim_id VARCHAR, settlement_amount INTEGER )
SELECT t1.Effective_Date FROM claims AS t1 JOIN settlements AS t2 ON t1.claim_id = t2.claim_id GROUP BY t1.claim_id ORDER BY SUM(t2.settlement_amount) DESC LIMIT 1
What was the manner of departure for the vacancy date of 20 September 2009?
CREATE TABLE table_46755 ( "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 "Manner of departure" FROM table_46755 WHERE "Date of vacancy" = '20 september 2009'
What is Home Team, when Date is 18 February 1956, and when Tie No is 3?
CREATE TABLE table_9451 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT "Home team" FROM table_9451 WHERE "Date" = '18 february 1956' AND "Tie no" = '3'
Who was the home team on March 5, 2008?
CREATE TABLE table_10100 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text )
SELECT "Home" FROM table_10100 WHERE "Date" = 'march 5, 2008'
What Catalog has a Label of geffen records / universal music special markets?
CREATE TABLE table_59824 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text )
SELECT "Catalog" FROM table_59824 WHERE "Label" = 'geffen records / universal music special markets'
What is the location when KO is the method, the result is a win, and the record is 2-0?
CREATE TABLE table_61734 ( "Result" text, "Record" text, "Opponent" text, "Method" text, "Location" text )
SELECT "Location" FROM table_61734 WHERE "Method" = 'ko' AND "Result" = 'win' AND "Record" = '2-0'
What is the latest year when Phil Anderson won?
CREATE TABLE table_name_28 ( year INTEGER, winner VARCHAR )
SELECT MAX(year) FROM table_name_28 WHERE winner = "phil anderson"
What is the lowest number for draw when the points are less than 17, and the lost is 13?
CREATE TABLE table_name_4 ( draw INTEGER, points VARCHAR, lost VARCHAR )
SELECT MIN(draw) FROM table_name_4 WHERE points < 17 AND lost = 13
Name the role for pick number 17
CREATE TABLE table_26397277_3 ( role_s_ VARCHAR, pick__number VARCHAR )
SELECT role_s_ FROM table_26397277_3 WHERE pick__number = 17
What were the points for when there were 30 tries against?
CREATE TABLE table_13564637_5 ( points_for VARCHAR, tries_against VARCHAR )
SELECT points_for FROM table_13564637_5 WHERE tries_against = "30"
For those products with a price between 60 and 120, show me about the correlation between code and price , and group by attribute name in a scatter 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 Code, Price FROM Products WHERE Price BETWEEN 60 AND 120 GROUP BY Name
Which Points have a Score of 4 1, and a Record of 18 10 8 1, and a January larger than 2?
CREATE TABLE table_75362 ( "Game" real, "January" real, "Opponent" text, "Score" text, "Record" text, "Points" real )
SELECT AVG("Points") FROM table_75362 WHERE "Score" = '4–1' AND "Record" = '18–10–8–1' AND "January" > '2'
Display a pie chart for what are the names and average prices of products for manufacturers whose products cost on average 150 or more?
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 T2.Name, AVG(T1.Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name
what's the game with date being march 7
CREATE TABLE table_18820 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "Game" FROM table_18820 WHERE "Date" = 'March 7'
How many players named Jeff Brown were drafted
CREATE TABLE table_20819 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text )
SELECT COUNT("Position") FROM table_20819 WHERE "Player" = 'Jeff Brown'
WHAT IS THE MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED?
CREATE TABLE table_47681 ( "Rider" text, "Manufacturer" text, "Laps" text, "Time/Retired" text, "Grid" text )
SELECT "Manufacturer" FROM table_47681 WHERE "Laps" = '24' AND "Time/Retired" = '+1.965'
What team was the home team when the away team scored 12.11 (83)?
CREATE TABLE table_54290 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Home team" FROM table_54290 WHERE "Away team score" = '12.11 (83)'
What is Opponent, when Date is 8 April 1999?
CREATE TABLE table_name_18 ( opponent VARCHAR, date VARCHAR )
SELECT opponent FROM table_name_18 WHERE date = "8 april 1999"
How many laps did Ricardo Zonta drive with a grid less than 14?
CREATE TABLE table_name_15 ( laps INTEGER, grid VARCHAR, driver VARCHAR )
SELECT SUM(laps) FROM table_name_15 WHERE grid < 14 AND driver = "ricardo zonta"
How many different weeks are there in order number 4 that were judge's choice?
CREATE TABLE table_29673 ( "Week #" text, "Theme" text, "Song Choice" text, "Original Artist" text, "Order #" text, "Result" text )
SELECT COUNT("Week #") FROM table_29673 WHERE "Theme" = 'Judge''s Choice' AND "Order #" = '4'
When 15 is the number in season what is the highest number in series?
CREATE TABLE table_27058 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real )
SELECT MAX("No. in series") FROM table_27058 WHERE "No. in season" = '15'
What is the NBA draft for ohio state?
CREATE TABLE table_51428 ( "Player" text, "Height" text, "School" text, "Hometown" text, "College" text, "NBA Draft" text )
SELECT "NBA Draft" FROM table_51428 WHERE "College" = 'ohio state'
For each account type, find the average account balance of customers with credit score lower than 50 Show bar chart, show by the y-axis in ascending.
CREATE TABLE customer ( cust_ID varchar(3), cust_name varchar(20), acc_type char(1), acc_bal int, no_of_loans int, credit_score int, branch_ID int, state varchar(20) ) CREATE TABLE bank ( branch_ID int, bname varchar(20), no_of_customers int, city varchar(10), state varchar(20) ) CREATE TABLE loan ( loan_ID varchar(3), loan_type varchar(15), cust_ID varchar(3), branch_ID varchar(3), amount int )
SELECT acc_type, AVG(acc_bal) FROM customer WHERE credit_score < 50 GROUP BY acc_type ORDER BY AVG(acc_bal)
Name the most number for new england blazers
CREATE TABLE table_20630 ( "#" real, "Date" text, "at/vs." text, "Opponent" text, "Score" text, "Attendance" real, "Record" text )
SELECT MAX("#") FROM table_20630 WHERE "Opponent" = 'New England Blazers'
what is the place for gary player?
CREATE TABLE table_45450 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text )
SELECT "Place" FROM table_45450 WHERE "Player" = 'gary player'
what is the title when the year is after 2011 and the original channel is nhk?
CREATE TABLE table_57911 ( "Year" real, "Title" text, "Original channel" text, "Role" text, "Note" text )
SELECT "Title" FROM table_57911 WHERE "Year" > '2011' AND "Original channel" = 'nhk'
Which manager has Manchester City as the team?
CREATE TABLE table_name_14 ( manager VARCHAR, team VARCHAR )
SELECT manager FROM table_name_14 WHERE team = "manchester city"
What is the crowd with a Home team score of 8.17 (65)?
CREATE TABLE table_58278 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT AVG("Crowd") FROM table_58278 WHERE "Home team score" = '8.17 (65)'
Name the rank on channel for pilot
CREATE TABLE table_26688 ( "Episode number Production number" text, "Title" text, "Original airdate" text, "Time of airing" text, "Total viewers on Hallmark" real, "Total viewers on Hallmark+1" real, "Total viewers" real, "Rank on channel" text )
SELECT "Rank on channel" FROM table_26688 WHERE "Title" = 'Pilot'
What is Tries Against, when Tries For is 20?
CREATE TABLE table_name_22 ( tries_against VARCHAR, tries_for VARCHAR )
SELECT tries_against FROM table_name_22 WHERE tries_for = "20"
What percentage of users were using Firefox during the period in which *0.77% were using Netscape?
CREATE TABLE table_name_8 ( firefox VARCHAR, netscape VARCHAR )
SELECT firefox FROM table_name_8 WHERE netscape = "*0.77%"
What is the event where the opponent was Chris Barden?
CREATE TABLE table_48682 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text )
SELECT "Event" FROM table_48682 WHERE "Opponent" = 'chris barden'
What is the Name of the stage with S. Loeb as the Winner with a Length of 13.04km and a Stage of SS12?
CREATE TABLE table_75047 ( "Stage" text, "Time" text, "Name" text, "Length" text, "Winner" text )
SELECT "Name" FROM table_75047 WHERE "Winner" = 's. loeb' AND "Length" = '13.04km' AND "Stage" = 'ss12'
What was the score of the game on November 22?
CREATE TABLE table_name_8 ( result VARCHAR, date VARCHAR )
SELECT result FROM table_name_8 WHERE date = "november 22"
How many people were in attendance for the game with a score of 98 111?
CREATE TABLE table_10700 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text )
SELECT SUM("Attendance") FROM table_10700 WHERE "Score" = '98–111'
How many grids had a Time/Retired of +4 laps?
CREATE TABLE table_43494 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real )
SELECT COUNT("Grid") FROM table_43494 WHERE "Time/Retired" = '+4 laps'
What circuit did marlboro team penske win with an unknown fastest lap?
CREATE TABLE table_name_67 ( circuit VARCHAR, winning_team VARCHAR, fastest_lap VARCHAR )
SELECT circuit FROM table_name_67 WHERE winning_team = "marlboro team penske" AND fastest_lap = "unknown"
What is the cooper with an Ashmolean less than 21, and hahland smaller than 4?
CREATE TABLE table_67359 ( "Image" real, "Smith" text, "Ashmolean" real, "Foster" real, "Hahland" real, "Dinsmoor" text, "Hofkes-Brukker" text, "Harrison" text, "Cooper" text, "BM/Corbett" text )
SELECT "Cooper" FROM table_67359 WHERE "Ashmolean" < '21' AND "Hahland" < '4'
What was the nationality of five-eighth player Darren Lockyer?
CREATE TABLE table_4886 ( "Year" text, "Player" text, "Nationality" text, "Position" text, "Club" text )
SELECT "Nationality" FROM table_4886 WHERE "Player" = 'darren lockyer' AND "Position" = 'five-eighth'
What is the position of the team that played at the venue, Central, Gomel?
CREATE TABLE table_name_71 ( position_in_1999 VARCHAR, venue VARCHAR )
SELECT position_in_1999 FROM table_name_71 WHERE venue = "central, gomel"
Was the release on April 8 available on Windows?
CREATE TABLE table_18012 ( "Release" text, "Title" text, "Windows" text, "5th Gen" text, "6th Gen" text, "Handheld" text )
SELECT "Windows" FROM table_18012 WHERE "Release" = 'April 8'
What is the most recent season for the Prema Powerteam with a Masters of Formula Three series?
CREATE TABLE table_name_34 ( season INTEGER, team VARCHAR, series VARCHAR )
SELECT MAX(season) FROM table_name_34 WHERE team = "prema powerteam" AND series = "masters of formula three"
Give me the comparison about School_ID over the ACC_Road , and group by attribute ACC_Home by a bar chart.
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_Road, School_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road
Name the number of families for uk30
CREATE TABLE table_23409 ( "No. overall" text, "No. in series" real, "Family/families" text, "Location(s)" text, "Original air date" text )
SELECT COUNT("Family/families") FROM table_23409 WHERE "No. overall" = 'UK30'
During st kilda's home game, what was the number of people in the crowd?
CREATE TABLE table_78481 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Crowd" FROM table_78481 WHERE "Home team" = 'st kilda'
What is Pick #, when Round is '10'?
CREATE TABLE table_name_49 ( pick__number VARCHAR, round VARCHAR )
SELECT pick__number FROM table_name_49 WHERE round = 10
What is the home team for victoria park?
CREATE TABLE table_77897 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Home team" FROM table_77897 WHERE "Venue" = 'victoria park'
Name the record for october 11
CREATE TABLE table_name_34 ( record VARCHAR, date VARCHAR )
SELECT record FROM table_name_34 WHERE date = "october 11"
Name the try bonus for tries against is 70
CREATE TABLE table_13741576_4 ( try_bonus VARCHAR, tries_against VARCHAR )
SELECT try_bonus FROM table_13741576_4 WHERE tries_against = "70"
How much power does the 1500 model have with a displacement of 1490cc?
CREATE TABLE table_name_22 ( power VARCHAR, model VARCHAR, displacement VARCHAR )
SELECT power FROM table_name_22 WHERE model = "1500" AND displacement = "1490cc"
Which round was Joe Taylor selected in?
CREATE TABLE table_name_40 ( round INTEGER, player VARCHAR )
SELECT SUM(round) FROM table_name_40 WHERE player = "joe taylor"
What is listed under L when the ends won is 21?
CREATE TABLE table_31228 ( "Skip (Club)" text, "W" real, "L" real, "PF" real, "PA" real, "Ends Won" real, "Ends Lost" real, "Blank Ends" real, "Stolen Ends" real )
SELECT MAX("L") FROM table_31228 WHERE "Ends Won" = '21'
what is the average gold when rank is total and silver is more than 20?
CREATE TABLE table_13501 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real )
SELECT AVG("Gold") FROM table_13501 WHERE "Rank" = 'total' AND "Silver" > '20'
What is the i/o bus for the brand name Core i3-21xx?
CREATE TABLE table_24538587_11 ( i_o_bus VARCHAR, brand_name__list_ VARCHAR )
SELECT i_o_bus FROM table_24538587_11 WHERE brand_name__list_ = "Core i3-21xx"
Name the location attendance of 5-15
CREATE TABLE table_25704 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "Location Attendance" FROM table_25704 WHERE "Record" = '5-15'
Which visitor has detroit as the home, and february 24 as the date?
CREATE TABLE table_6607 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text )
SELECT "Visitor" FROM table_6607 WHERE "Home" = 'detroit' AND "Date" = 'february 24'
What was the final score of the Paul Goldstein match?
CREATE TABLE table_name_96 ( score VARCHAR, opponent_in_the_final VARCHAR )
SELECT score FROM table_name_96 WHERE opponent_in_the_final = "paul goldstein"
What is Ivaipor , pr's biggest population?
CREATE TABLE table_11750 ( "Town/City" text, "Population" real, "Operator" text, "First year" real, "Duration" text )
SELECT MAX("Population") FROM table_11750 WHERE "Town/City" = 'ivaiporã, pr'
What position did Garion Weller hold in 2012?
CREATE TABLE table_name_23 ( position VARCHAR )
SELECT position FROM table_name_23 WHERE 2012 = "garion weller"
Who is the Opponent playing at 20:00 GMT at Camp Nou?
CREATE TABLE table_name_64 ( opponent VARCHAR, time VARCHAR, ground VARCHAR )
SELECT opponent FROM table_name_64 WHERE time = "20:00 gmt" AND ground = "camp nou"
Who did they lose to 3-17?
CREATE TABLE table_54289 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text )
SELECT "Opponent" FROM table_54289 WHERE "Score" = '3-17'
how many days after september 3rd did brian perform in stockholm ?
CREATE TABLE table_203_855 ( id number, "date" text, "city" text, "venue" text, "member" text, "performance" text, "notes" text )
SELECT (SELECT "date" FROM table_203_855 WHERE "city" = 'stockholm') - 3
Name the college for dl
CREATE TABLE table_28059992_2 ( college VARCHAR, position VARCHAR )
SELECT college FROM table_28059992_2 WHERE position = "DL"
At what venue did the match where the home team scored 8.6 (54) take place?
CREATE TABLE table_33293 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
SELECT "Venue" FROM table_33293 WHERE "Home team score" = '8.6 (54)'
For those records from the products and each product's manufacturer, give me the comparison about the sum of code over the name , and group by attribute name, and could you display total number in desc order please?
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 T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Code DESC
who was the lead vocalist in sweat it out ?
CREATE TABLE table_203_629 ( id number, "year" number, "title" text, "lead vocalist" text, "aria chart position" number, "album" text )
SELECT "lead vocalist" FROM table_203_629 WHERE "title" = '"sweat it out"'
On June 29, who was the opponent?
CREATE TABLE table_name_96 ( opponent VARCHAR, date VARCHAR )
SELECT opponent FROM table_name_96 WHERE date = "june 29"
What venue has more than 50,715 attending?
CREATE TABLE table_name_45 ( venue VARCHAR, attendance INTEGER )
SELECT venue FROM table_name_45 WHERE attendance > 50 OFFSET 715
What was the original title for the film used in nomination of street days?
CREATE TABLE table_61774 ( "Year [e ] (Ceremony)" text, "Film title used in nomination" text, "Original title" text, "Director" text, "Main Language(s)" text, "Result" text )
SELECT "Original title" FROM table_61774 WHERE "Film title used in nomination" = 'street days'
What stadium was the 1994 Gator Bowl in?
CREATE TABLE table_15190346_2 ( stadium VARCHAR, bowl_game VARCHAR )
SELECT stadium FROM table_15190346_2 WHERE bowl_game = "1994 Gator Bowl"
What is the genus & species of the animal whose accession number is XP_002439156.1?
CREATE TABLE table_29154 ( "Common Name" text, "Genus & Species" text, "NCBI Accession Number" text, "Length (AA)" real, "% Identity to C7orf38" real, "% Similarity to C7orf38" real )
SELECT "Genus & Species" FROM table_29154 WHERE "NCBI Accession Number" = 'XP_002439156.1'
Which Attendance has a Result of w 23-21, and a Week smaller than 5?
CREATE TABLE table_45717 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real )
SELECT AVG("Attendance") FROM table_45717 WHERE "Result" = 'w 23-21' AND "Week" < '5'
For those records from the products and each product's manufacturer, find founder and the average of manufacturer , and group by attribute founder, and visualize them by a bar chart, I want to sort by the Y-axis in asc.
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 Founder, AVG(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY AVG(Manufacturer)
For the verb dhoa, what is the 2VF?
CREATE TABLE table_name_75 ( verb VARCHAR )
SELECT 2 AS __vf_ FROM table_name_75 WHERE verb = "dhoa"
how many home games did st. gallen win ?
CREATE TABLE table_203_5 ( id number, "season" text, "competition" text, "round" text, "opponent" text, "home" text, "away" text, "aggregate" text )
SELECT COUNT(*) FROM table_203_5 WHERE "home" > "home"
What is Myron Walwyn with a Territorial at-large Constiuency's First Elected Date
CREATE TABLE table_name_87 ( first_elected VARCHAR, constiuency VARCHAR, name VARCHAR )
SELECT first_elected FROM table_name_87 WHERE constiuency = "territorial at-large" AND name = "myron walwyn"
What Number of electorates (2009) has a District of mathura, and a Name of mant?
CREATE TABLE table_13086 ( "Constituency number" text, "Name" text, "Reserved for ( SC / ST /None)" text, "District" text, "Number of electorates (2009)" real )
SELECT MIN("Number of electorates (2009)") FROM table_13086 WHERE "District" = 'mathura' AND "Name" = 'mant'
Show all allergy types and the number of allergies in each type in a bar chart, and show in descending by the total number please.
CREATE TABLE Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) ) 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 Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) )
SELECT AllergyType, COUNT(*) FROM Allergy_Type GROUP BY AllergyType ORDER BY COUNT(*) DESC
What is the safari value with a 2.4% opera and 29.9% internet explorer?
CREATE TABLE table_79523 ( "Date" text, "Internet Explorer" text, "Firefox" text, "Safari" text, "Opera" text )
SELECT "Safari" FROM table_79523 WHERE "Opera" = '2.4%' AND "Internet Explorer" = '29.9%'
Which Title has a Dance Partner of adele astaire, and Lyrics of ira gershwin, and a Director of felix edwardes?
CREATE TABLE table_37099 ( "Title" text, "Date" text, "Theatre" text, "Role" text, "Dance Partner" text, "Director" text, "Lyrics" text, "Music" text )
SELECT "Title" FROM table_37099 WHERE "Dance Partner" = 'adele astaire' AND "Lyrics" = 'ira gershwin' AND "Director" = 'felix edwardes'
What are names for top three branches with most number of membership?
CREATE TABLE branch ( branch_id number, name text, open_year text, address_road text, city text, membership_amount text ) CREATE TABLE member ( member_id number, card_number text, name text, hometown text, level number ) CREATE TABLE purchase ( member_id number, branch_id text, year text, total_pounds number ) CREATE TABLE membership_register_branch ( member_id number, branch_id text, register_year text )
SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3