question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What was the highest pick number of the player who went to LSU in college?
CREATE TABLE table_name_20 (pick INTEGER, college VARCHAR)
SELECT MAX(pick) FROM table_name_20 WHERE college = "lsu"
What is the height in meters for a building in Frankfurt that is 850 feet tall?
CREATE TABLE table_name_66 (height__m_ VARCHAR, city VARCHAR, height__ft_ VARCHAR)
SELECT height__m_ FROM table_name_66 WHERE city = "frankfurt" AND height__ft_ = 850
What is the total number of Yds/Att where Net Yds was 1818, and Rank was larger than 1?
CREATE TABLE table_name_10 (yds_att VARCHAR, net_yds VARCHAR, rank VARCHAR)
SELECT COUNT(yds_att) FROM table_name_10 WHERE net_yds = 1818 AND rank > 1
On what date did Portland play game 5 at home?
CREATE TABLE table_name_98 (date VARCHAR, home_team VARCHAR, game VARCHAR)
SELECT date FROM table_name_98 WHERE home_team = "portland" AND game = "game 5"
Please mention those appointment dates those are replaced by alfredo aglietti
CREATE TABLE table_27114708_2 (date_of_appointment VARCHAR, replaced_by VARCHAR)
SELECT date_of_appointment FROM table_27114708_2 WHERE replaced_by = "Alfredo Aglietti"
What conference is Tennessee?
CREATE TABLE table_26423157_2 (conference VARCHAR, school VARCHAR)
SELECT conference FROM table_26423157_2 WHERE school = "Tennessee"
Marcell Jansen with a transfer window of summer, and of transfer as type is from what nation?
CREATE TABLE table_name_15 (nat VARCHAR, name VARCHAR, transfer_window VARCHAR, type VARCHAR)
SELECT nat FROM table_name_15 WHERE transfer_window = "summer" AND type = "transfer" AND name = "marcell jansen"
What is the American Labor ticket when Henry Epstein is the liberal ticket?
CREATE TABLE table_name_3 (american_labor_ticket VARCHAR, liberal_ticket VARCHAR)
SELECT american_labor_ticket FROM table_name_3 WHERE liberal_ticket = "henry epstein"
Who is the Glendale principal with Greg Smorel as m.s. principal and Joleen Reinholz as H.S. principal during 2006-2007?
CREATE TABLE table_name_58 (glendale_principal VARCHAR, year VARCHAR, ms_principal VARCHAR, hs_principal VARCHAR)
SELECT glendale_principal FROM table_name_58 WHERE ms_principal = "greg smorel" AND hs_principal = "joleen reinholz" AND year = "2006-2007"
What position does adam rachel play?
CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_35 WHERE player = "adam rachel"
what is the class when the chassis is dallara f308, rounds is all and the driver is sam abay?
CREATE TABLE table_name_6 (class VARCHAR, driver VARCHAR, chassis VARCHAR, rounds VARCHAR)
SELECT class FROM table_name_6 WHERE chassis = "dallara f308" AND rounds = "all" AND driver = "sam abay"
What is the team 2 for team 1 of Valletta?
CREATE TABLE table_name_60 (team_2 VARCHAR, team_1 VARCHAR)
SELECT team_2 FROM table_name_60 WHERE team_1 = "valletta"
WHAT WAS THE ATTENDANCE FOR WEEK 15?
CREATE TABLE table_name_17 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_17 WHERE week = 15
What is the Canton of Vaud's highest point?
CREATE TABLE table_name_85 (highest_point VARCHAR, canton VARCHAR)
SELECT highest_point FROM table_name_85 WHERE canton = "vaud"
What is the average Tries with less than 0 goals?
CREATE TABLE table_name_7 (tries INTEGER, goals INTEGER)
SELECT AVG(tries) FROM table_name_7 WHERE goals < 0
Find the total number of instructors who teach a course in the Spring 2010 semester.
CREATE TABLE teaches (ID VARCHAR, semester VARCHAR, YEAR VARCHAR)
SELECT COUNT(DISTINCT ID) FROM teaches WHERE semester = 'Spring' AND YEAR = 2010
What was the circuit when Jochen Rindt won?
CREATE TABLE table_name_28 (circuit VARCHAR, winning_driver VARCHAR)
SELECT circuit FROM table_name_28 WHERE winning_driver = "jochen rindt"
What is the id and name of the browser that is compatible with the most web accelerators?
CREATE TABLE browser (id VARCHAR, name VARCHAR); CREATE TABLE accelerator_compatible_browser (browser_id VARCHAR)
SELECT T1.id, T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 1
If the horizontal bar is n/a and the floor is 14.175, what is the number for the parallel bars?
CREATE TABLE table_18662026_10 (parallel_bars VARCHAR, floor VARCHAR, horizontal_bar VARCHAR)
SELECT parallel_bars FROM table_18662026_10 WHERE floor = "14.175" AND horizontal_bar = "N/A"
What year was the athletic nickname blue crusaders founded?
CREATE TABLE table_22171978_1 (founded VARCHAR, athletic_nickname VARCHAR)
SELECT founded FROM table_22171978_1 WHERE athletic_nickname = "Blue Crusaders"
Which opponent used a grass surface?
CREATE TABLE table_name_1 (opponent VARCHAR, surface VARCHAR)
SELECT opponent FROM table_name_1 WHERE surface = "grass"
Which distinct source system code includes the substring 'en'?
CREATE TABLE cmi_cross_references (source_system_code VARCHAR)
SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%'
What is the Date of the game with a Record of 1–2–4?
CREATE TABLE table_name_27 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_27 WHERE record = "1–2–4"
what is the number of original airdate written by allan hawco?
CREATE TABLE table_27547668_4 (original_airdate VARCHAR, written_by VARCHAR)
SELECT COUNT(original_airdate) FROM table_27547668_4 WHERE written_by = "Allan Hawco"
Name the FCC info for call sign of w279at
CREATE TABLE table_name_17 (fcc_info VARCHAR, call_sign VARCHAR)
SELECT fcc_info FROM table_name_17 WHERE call_sign = "w279at"
Which Genre has a Game of donkey kong country?
CREATE TABLE table_name_81 (genre VARCHAR, game VARCHAR)
SELECT genre FROM table_name_81 WHERE game = "donkey kong country"
what is the Chinese name for Forensic heroes ii?
CREATE TABLE table_11926114_1 (chinese_title VARCHAR, english_title VARCHAR)
SELECT chinese_title FROM table_11926114_1 WHERE english_title = "Forensic Heroes II"
What is the webkit version when the minor version was 3.1.2.?
CREATE TABLE table_24257833_4 (webkit_version VARCHAR, minor_version VARCHAR)
SELECT webkit_version FROM table_24257833_4 WHERE minor_version = "3.1.2"
When julien jousse patrice goueslard yann clairay is teh gt1 of the winning team how many measurements of rnd. are there?
CREATE TABLE table_19722436_2 (rnd VARCHAR, gt1_winning_team VARCHAR)
SELECT COUNT(rnd) FROM table_19722436_2 WHERE gt1_winning_team = "Julien Jousse Patrice Goueslard Yann Clairay"
How many sound engineers were there for law hakon '3er leek?
CREATE TABLE table_28005100_1 (sound_engineer VARCHAR, title VARCHAR)
SELECT COUNT(sound_engineer) FROM table_28005100_1 WHERE title = "Law Hakon '3er Leek"
what's the party with opponent being mike oxley (r) unopposed
CREATE TABLE table_1341522_38 (party VARCHAR, opponent VARCHAR)
SELECT party FROM table_1341522_38 WHERE opponent = "Mike Oxley (R) unopposed"
What is the total number of bronze medals for teams with less than 0 silver?
CREATE TABLE table_name_98 (bronze VARCHAR, silver INTEGER)
SELECT COUNT(bronze) FROM table_name_98 WHERE silver < 0
What was the first leg score in the match against Twente?
CREATE TABLE table_name_58 (first_leg VARCHAR, opposition VARCHAR)
SELECT first_leg FROM table_name_58 WHERE opposition = "twente"
What is the average score of player lee trevino, who has a t8 place?
CREATE TABLE table_name_39 (score INTEGER, place VARCHAR, player VARCHAR)
SELECT AVG(score) FROM table_name_39 WHERE place = "t8" AND player = "lee trevino"
What's the most enrollment in Hamilton?
CREATE TABLE table_name_71 (enrollment INTEGER, location VARCHAR)
SELECT MAX(enrollment) FROM table_name_71 WHERE location = "hamilton"
If the country of origin is switzerland, what is the name/ designation?
CREATE TABLE table_26389588_1 (name___designation VARCHAR, country_of_origin VARCHAR)
SELECT name___designation FROM table_26389588_1 WHERE country_of_origin = "Switzerland"
What is every institution with a nickname of Ravens?
CREATE TABLE table_262514_1 (institution VARCHAR, nickname VARCHAR)
SELECT institution FROM table_262514_1 WHERE nickname = "Ravens"
What is the average age of all gymnasts?
CREATE TABLE people (Age INTEGER, People_ID VARCHAR); CREATE TABLE gymnast (Gymnast_ID VARCHAR)
SELECT AVG(T2.Age) FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID
What the rank in the top 10 when the winnings were $1,741,176?
CREATE TABLE table_2506300_1 (top_10 INTEGER, winnings VARCHAR)
SELECT MIN(top_10) FROM table_2506300_1 WHERE winnings = "$1,741,176"
What is Builder, when Country is "United Kingdom", and when Location is "Chatham, Kent"?
CREATE TABLE table_name_35 (builder VARCHAR, country VARCHAR, location VARCHAR)
SELECT builder FROM table_name_35 WHERE country = "united kingdom" AND location = "chatham, kent"
Which country is akiko suzuki from?
CREATE TABLE table_24990183_5 (country VARCHAR, name VARCHAR)
SELECT country FROM table_24990183_5 WHERE name = "Akiko Suzuki"
What is the class of the qb, Josh Riddell?
CREATE TABLE table_name_45 (class VARCHAR, position VARCHAR, name VARCHAR)
SELECT class FROM table_name_45 WHERE position = "qb" AND name = "josh riddell"
What is the number of wins with a 0 F.L., 0 poles, a position of 7th, and 35 points?
CREATE TABLE table_name_98 (wins VARCHAR, points VARCHAR, position VARCHAR, fl VARCHAR, poles VARCHAR)
SELECT wins FROM table_name_98 WHERE fl = "0" AND poles = "0" AND position = "7th" AND points = "35"
Which venue has a Goal of 3?
CREATE TABLE table_name_81 (venue VARCHAR, goal VARCHAR)
SELECT venue FROM table_name_81 WHERE goal = 3
What is the Cardinalatial order and title that Pedro Martínez de Luna y Gotor elevated?
CREATE TABLE table_name_84 (cardinalatial_order_and_title VARCHAR, elector VARCHAR)
SELECT cardinalatial_order_and_title FROM table_name_84 WHERE elector = "pedro martínez de luna y gotor"
What is Nationality, when College/Junior/Club Team (League) is "Guelph Storm ( OHL )"?
CREATE TABLE table_name_73 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT nationality FROM table_name_73 WHERE college_junior_club_team__league_ = "guelph storm ( ohl )"
Who scored the High points in the game with High rebounds by Nick Collison (14)?
CREATE TABLE table_name_20 (high_points VARCHAR, high_rebounds VARCHAR)
SELECT high_points FROM table_name_20 WHERE high_rebounds = "nick collison (14)"
what's the turing complete with numeral system being decimal
CREATE TABLE table_13636_1 (turing_complete VARCHAR, numeral_system VARCHAR)
SELECT turing_complete FROM table_13636_1 WHERE numeral_system = "Decimal"
If the equation is (10 times 8) + 4, what would be the 2nd throw?
CREATE TABLE table_17265535_6 (equation VARCHAR)
SELECT MAX(2 AS nd_throw) FROM table_17265535_6 WHERE equation = "(10 times 8) + 4"
Which City has a School of indianapolis brebeuf?
CREATE TABLE table_name_54 (city VARCHAR, school VARCHAR)
SELECT city FROM table_name_54 WHERE school = "indianapolis brebeuf"
What is the date of the game with less than 35 points and chicago as the home team?
CREATE TABLE table_name_99 (date VARCHAR, points VARCHAR, home VARCHAR)
SELECT date FROM table_name_99 WHERE points < 35 AND home = "chicago"
Where was the BRDC International Trophy with driver Emerson Fittipaldi held?
CREATE TABLE table_name_61 (venue VARCHAR, driver VARCHAR, event VARCHAR)
SELECT venue FROM table_name_61 WHERE driver = "emerson fittipaldi" AND event = "brdc international trophy"
Which Game has a Record of 4–2–1, and Points larger than 9?
CREATE TABLE table_name_19 (game INTEGER, record VARCHAR, points VARCHAR)
SELECT SUM(game) FROM table_name_19 WHERE record = "4–2–1" AND points > 9
Name the number of events for 3031
CREATE TABLE table_24108789_6 (events VARCHAR, points VARCHAR)
SELECT COUNT(events) FROM table_24108789_6 WHERE points = 3031
How many Points have Drawn of 7, and a Team of corinthians, and a Played larger than 18?
CREATE TABLE table_name_72 (points VARCHAR, played VARCHAR, drawn VARCHAR, team VARCHAR)
SELECT COUNT(points) FROM table_name_72 WHERE drawn = 7 AND team = "corinthians" AND played > 18
Who is the chairman when teh captain is fawzi bashir?
CREATE TABLE table_27631756_2 (chairman VARCHAR, captain VARCHAR)
SELECT chairman FROM table_27631756_2 WHERE captain = "Fawzi Bashir"
What is the first name, last name, and phone of the customer with card 4560596484842.
CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE Customers_cards (customer_id VARCHAR, card_number VARCHAR)
SELECT T2.customer_first_name, T2.customer_last_name, T2.customer_phone FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T1.card_number = "4560596484842"
Who was the opponent in the game in which Hakim Warrick (14) did the most high points?
CREATE TABLE table_22669044_10 (team VARCHAR, high_points VARCHAR)
SELECT team FROM table_22669044_10 WHERE high_points = "Hakim Warrick (14)"
What was the score after february 4 in the game 61?
CREATE TABLE table_name_30 (score VARCHAR, february VARCHAR, game VARCHAR)
SELECT score FROM table_name_30 WHERE february > 4 AND game = 61
what are all the date for gtc winners graeme mundy jamie smyth and gt3 winners hector lester tim mullen
CREATE TABLE table_13079788_3 (date VARCHAR, gtc_winner VARCHAR, gt3_winner VARCHAR)
SELECT date FROM table_13079788_3 WHERE gtc_winner = "Graeme Mundy Jamie Smyth" AND gt3_winner = "Hector Lester Tim Mullen"
Which position does Colt Brennan play?
CREATE TABLE table_10966926_2 (position VARCHAR, player_name VARCHAR)
SELECT position FROM table_10966926_2 WHERE player_name = "Colt Brennan"
Name the memory for meodel number for atom e640t
CREATE TABLE table_16729930_17 (memory VARCHAR, model_number VARCHAR)
SELECT memory FROM table_16729930_17 WHERE model_number = "Atom E640T"
What is the maximum elevation of all airports in the country of Iceland?
CREATE TABLE airports (elevation INTEGER, country VARCHAR)
SELECT MAX(elevation) FROM airports WHERE country = 'Iceland'
Who boarded first class?
CREATE TABLE table_name_48 (boarded VARCHAR, class VARCHAR)
SELECT boarded FROM table_name_48 WHERE class = "first"
What was Alexander Wurz's highest laps when he has a grid less than 14 and a time/retired of +1 lap.
CREATE TABLE table_name_52 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT MAX(laps) FROM table_name_52 WHERE time_retired = "+1 lap" AND driver = "alexander wurz" AND grid < 14
Show the average share count of transactions each each investor, ordered by average share count.
CREATE TABLE TRANSACTIONS (investor_id VARCHAR, share_count INTEGER)
SELECT investor_id, AVG(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY AVG(share_count)
what is 1955 when 1961 is n/a?
CREATE TABLE table_name_78 (Id VARCHAR)
SELECT 1955 FROM table_name_78 WHERE 1961 = "n/a"
Where was the tourney when Weber State won the regular season?
CREATE TABLE table_21269441_4 (tournament_venue__city_ VARCHAR, regular_season_winner VARCHAR)
SELECT tournament_venue__city_ FROM table_21269441_4 WHERE regular_season_winner = "Weber State"
What's the average number of floors that were built in 2004, and have a roof (m) of 106?
CREATE TABLE table_name_67 (floors INTEGER, built VARCHAR, roof___m__ VARCHAR)
SELECT AVG(floors) FROM table_name_67 WHERE built = 2004 AND roof___m__ = 106
What is the week with attendance of 73,572?
CREATE TABLE table_name_61 (week INTEGER, attendance VARCHAR)
SELECT MAX(week) FROM table_name_61 WHERE attendance = "73,572"
What date did Mike Rockenfeller have the fastest lap?
CREATE TABLE table_24732149_2 (date VARCHAR, fastest_lap VARCHAR)
SELECT date FROM table_24732149_2 WHERE fastest_lap = "Mike Rockenfeller"
What is the average number of attendees for performances?
CREATE TABLE performance (Attendance INTEGER)
SELECT AVG(Attendance) FROM performance
What's the abbreviation of the month in the zodiac sign scorpio?
CREATE TABLE table_180802_2 (abbr VARCHAR, zodiac_sign VARCHAR)
SELECT abbr FROM table_180802_2 WHERE zodiac_sign = "Scorpio"
Who's the actor for the Archers having a character of Martha Woodford?
CREATE TABLE table_name_14 (actor VARCHAR, soap_opera VARCHAR, character VARCHAR)
SELECT actor FROM table_name_14 WHERE soap_opera = "the archers" AND character = "martha woodford"
Which show as previously on The Family Channel?
CREATE TABLE table_169766_13 (show VARCHAR, previous_network VARCHAR)
SELECT show FROM table_169766_13 WHERE previous_network = "The Family Channel"
What is the Player in T5 Place?
CREATE TABLE table_name_71 (player VARCHAR, place VARCHAR)
SELECT player FROM table_name_71 WHERE place = "t5"
Who was in Lane 5?
CREATE TABLE table_name_84 (name VARCHAR, lane VARCHAR)
SELECT name FROM table_name_84 WHERE lane = 5
Who was the top goalscorer for season 2001-02?
CREATE TABLE table_2429942_2 (top_goalscorer VARCHAR, season VARCHAR)
SELECT top_goalscorer FROM table_2429942_2 WHERE season = "2001-02"
What's the clock speed of the model that costs $910?
CREATE TABLE table_12740151_8 (clock_speed VARCHAR, price___usd__ VARCHAR)
SELECT clock_speed FROM table_12740151_8 WHERE price___usd__ = "$910"
How many players scored the most points on game 4?
CREATE TABLE table_13762472_3 (high_points VARCHAR, game VARCHAR)
SELECT COUNT(high_points) FROM table_13762472_3 WHERE game = 4
Who is the Outgoing Manager replaced by Sandy Clark?
CREATE TABLE table_name_66 (outgoing_manager VARCHAR, replaced_by VARCHAR)
SELECT outgoing_manager FROM table_name_66 WHERE replaced_by = "sandy clark"
What is the result for the Call to Arms I event?
CREATE TABLE table_name_98 (res VARCHAR, event VARCHAR)
SELECT res FROM table_name_98 WHERE event = "call to arms i"
What is the Opponent in the final of the game on february 2, 2004?
CREATE TABLE table_name_68 (opponent_in_the_final VARCHAR, date VARCHAR)
SELECT opponent_in_the_final FROM table_name_68 WHERE date = "february 2, 2004"
What 1951 has dne for 1948?
CREATE TABLE table_name_26 (Id VARCHAR)
SELECT 1951 FROM table_name_26 WHERE 1948 = "dne"
What team plays their home games in Victoria Park?
CREATE TABLE table_name_30 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_30 WHERE venue = "victoria park"
What is the sum of points for teams with more than 10 matches, more than 0 draws, and 7 losses?
CREATE TABLE table_name_86 (points INTEGER, match VARCHAR, draw VARCHAR, lost VARCHAR)
SELECT SUM(points) FROM table_name_86 WHERE draw > 0 AND lost = 7 AND match > 10
What is the enrollment of the university established in or after 2011?
CREATE TABLE table_name_68 (enrollment VARCHAR, established INTEGER)
SELECT enrollment FROM table_name_68 WHERE established > 2011
What date has alamodome, san antonio, united states as the venue?
CREATE TABLE table_name_63 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_63 WHERE venue = "alamodome, san antonio, united states"
How many sprint points have 0 extra laps for rank 19?
CREATE TABLE table_name_13 (sprint_points VARCHAR, extra_laps VARCHAR, rank VARCHAR)
SELECT sprint_points FROM table_name_13 WHERE extra_laps = "0" AND rank = "19"
When 1872-10-10 is the founding date what are the canadian chapters?
CREATE TABLE table_28436909_4 (canadian_chapters VARCHAR, founding_date VARCHAR)
SELECT canadian_chapters FROM table_28436909_4 WHERE founding_date = "1872-10-10"
How many against for the Moyston-Willaura team with 4 losses and fewer than 2 byes?
CREATE TABLE table_name_15 (against INTEGER, byes VARCHAR, losses VARCHAR, mininera_dfl VARCHAR)
SELECT MAX(against) FROM table_name_15 WHERE losses = 4 AND mininera_dfl = "moyston-willaura" AND byes < 2
Game site of kingdome, and a Result of w 24-6 has what record?
CREATE TABLE table_name_32 (record VARCHAR, game_site VARCHAR, result VARCHAR)
SELECT record FROM table_name_32 WHERE game_site = "kingdome" AND result = "w 24-6"
what's the byu-uu score with uu-usu score being 44–16
CREATE TABLE table_13665809_2 (byu_uu_score VARCHAR, uu_usu_score VARCHAR)
SELECT byu_uu_score FROM table_13665809_2 WHERE uu_usu_score = "44–16"
What is the lowest number of seasons that the head coach of 1982 had with larger than 9 losses?
CREATE TABLE table_name_36 (seasons INTEGER, years VARCHAR, lost VARCHAR)
SELECT MIN(seasons) FROM table_name_36 WHERE years = "1982" AND lost > 9
What was the country with a population density per km² of 3.5/km² (/sqmi)?
CREATE TABLE table_26769_1 (country_or_territory_with_flag VARCHAR, population_density_per_km² VARCHAR)
SELECT country_or_territory_with_flag FROM table_26769_1 WHERE population_density_per_km² = "3.5/km² (/sqmi)"
What school in Dalefield has a roll less than 81?
CREATE TABLE table_name_61 (name VARCHAR, roll VARCHAR, area VARCHAR)
SELECT name FROM table_name_61 WHERE roll < 81 AND area = "dalefield"
Which premier team played the 1951 NSWRFL Grand Final?
CREATE TABLE table_name_17 (premiers VARCHAR, details VARCHAR)
SELECT premiers FROM table_name_17 WHERE details = "1951 nswrfl grand final"
What is the nickname of the team that has the colors blue and gold?
CREATE TABLE table_name_42 (nickname VARCHAR, colors VARCHAR)
SELECT nickname FROM table_name_42 WHERE colors = "blue and gold"
What is the grid total associated with a Time/Retired of +33.634, and a Laps smaller than 19?
CREATE TABLE table_name_77 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT MIN(grid) FROM table_name_77 WHERE time_retired = "+33.634" AND laps < 19
Find the average prices of all products from each manufacture, and list each company's name.
CREATE TABLE products (price INTEGER, Manufacturer VARCHAR); CREATE TABLE manufacturers (name VARCHAR, code VARCHAR)
SELECT AVG(T1.price), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name