sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT un_operation_title FROM table_10121127_1 WHERE un_operation_name = "UNCOK" | CREATE TABLE INST, Here is a database schema( table schema); | What is the UN operation title with the UN operation name Uncok?It is not neccessary to use all the tables. |
SELECT Home team FROM table WHERE Score = 100-86 | CREATE TABLE INST, Here is a database schema( table schema); | Which home team had a score of 100-86?.It is not neccessary to use all the tables. |
SELECT MIN(rank) FROM table_name_82 WHERE 2011 < 80.7 AND 2012 < 73.1 | CREATE TABLE INST, Here is a database schema( table schema); | The lowest rank with 2011 less than 80.7 and 2012 less than 73.1 is what?It is not neccessary to use all the tables. |
SELECT Chassis FROM table WHERE Year = 1977 | CREATE TABLE INST, Here is a database schema( table schema); | Can you tell me the Chassis that has the Year of 1977?.It is not neccessary to use all the tables. |
SELECT bhofen_number2__rk_ FROM table_14948647_1 WHERE ga_pa__rk_ = "233.4 (16)" | CREATE TABLE INST, Here is a database schema( table schema); | What was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 233.4 (16)?It is not neccessary to use all the tables. |
SELECT COUNT(men_doubles) FROM table_14903355_2 WHERE year = 2007 | CREATE TABLE INST, Here is a database schema( table schema); | Name the number of men doubles for 2007It is not neccessary to use all the tables. |
SELECT aggregate_score FROM table_28068063_2 WHERE winners = "Brive" | CREATE TABLE INST, Here is a database schema( table schema); | What was the aggregate score for the match won by Brive?It is not neccessary to use all the tables. |
SELECT team FROM table_name_84 WHERE laps > 333 AND year < 2004 | CREATE TABLE INST, Here is a database schema( table schema); | Name the team with laps more than 333 and year less than 2004It is not neccessary to use all the tables. |
SELECT Year FROM table WHERE Partner = yoo sang-hee AND Venue = german open | CREATE TABLE INST, Here is a database schema( table schema); | In what Year did the German Open have Yoo Sang-Hee as Partner?.It is not neccessary to use all the tables. |
SELECT Film title used in nomination FROM table WHERE Country = sweden | CREATE TABLE INST, Here is a database schema( table schema); | What was the film title nominated from the Sweden?.It is not neccessary to use all the tables. |
SELECT Player FROM table WHERE School/Club Team = Westchester High School | CREATE TABLE INST, Here is a database schema( table schema); | Who are all of the players on the Westchester High School club team?.It is not neccessary to use all the tables. |
SELECT Written by FROM table WHERE Directed by = Justin Hartley | CREATE TABLE INST, Here is a database schema( table schema); | Who are the writers of the episodes directed by Justin Hartley?.It is not neccessary to use all the tables. |
SELECT MIN(minutes) FROM table_24915964_4 WHERE player = "Sue Bird" | CREATE TABLE INST, Here is a database schema( table schema); | How many minutes were played by Sue Bird?It is not neccessary to use all the tables. |
SELECT title FROM table_14724369_1 WHERE production_code = "1ACX04" | CREATE TABLE INST, Here is a database schema( table schema); | Which title had the production code 1ACX04?It is not neccessary to use all the tables. |
SELECT home FROM table_name_53 WHERE date = "december 21" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the home team of the game on December 21?It is not neccessary to use all the tables. |
SELECT AVG(wins) FROM table_name_56 WHERE team = "winnipeg blue bombers" AND season > 1964 | CREATE TABLE INST, Here is a database schema( table schema); | Which Wins have a Team of winnipeg blue bombers and a Season larger than 1964?It is not neccessary to use all the tables. |
SELECT Event FROM table WHERE 2008–09 = sf | CREATE TABLE INST, Here is a database schema( table schema); | What is the Event when the 2008–09 is sf?.It is not neccessary to use all the tables. |
SELECT Season FROM table WHERE Score = 3 – 3 aet , 4–3 pen | CREATE TABLE INST, Here is a database schema( table schema); | Which Season has a Score of 3 – 3 aet , 4–3 pen.It is not neccessary to use all the tables. |
SELECT years_for_jazz FROM table_name_53 WHERE player = "eddie hughes" | CREATE TABLE INST, Here is a database schema( table schema); | What years did Eddie Hughes play for the Jazz?It is not neccessary to use all the tables. |
SELECT original_airdate FROM table_12919003_3 WHERE director = "Pete Travis" | CREATE TABLE INST, Here is a database schema( table schema); | What's the original airdate of the episode directed by Pete Travis?It is not neccessary to use all the tables. |
SELECT player FROM table_name_70 WHERE to_par = "+1" AND score = 72 - 70 - 72 = 214 | CREATE TABLE INST, Here is a database schema( table schema); | What is Player when To Par is +1 and when Score is 72-70-72=214?It is not neccessary to use all the tables. |
SELECT COUNT Winners FROM table WHERE Years won = 1983 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of winners when 1983 is the years won?.It is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Year > 2012 | CREATE TABLE INST, Here is a database schema( table schema); | What Record has a Year that's larger than 2012?.It is not neccessary to use all the tables. |
SELECT location FROM table_name_13 WHERE team_nickname = "fighting missionaries" | CREATE TABLE INST, Here is a database schema( table schema); | What Location has a Team Nickname called the Fighting Missionaries?It is not neccessary to use all the tables. |
SELECT event FROM table_name_74 WHERE method = "tko (punches)" AND opponent = "jason macdonald" | CREATE TABLE INST, Here is a database schema( table schema); | What event had a tko (punches) method and jason macdonald as the opponent?It is not neccessary to use all the tables. |
SELECT COUNT(average) FROM table_name_85 WHERE goals < 41 AND goalkeeper = "claudio bravo" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average goals less than 41 that goalkeeper Claudio Bravo had?It is not neccessary to use all the tables. |
SELECT Record FROM table WHERE Date = february 27 | CREATE TABLE INST, Here is a database schema( table schema); | Name the record for february 27.It is not neccessary to use all the tables. |
SELECT MIN Trine Dehli Cleve FROM table WHERE Style = English Waltz | CREATE TABLE INST, Here is a database schema( table schema); | Name the trine dehli cleve for english waltz.It is not neccessary to use all the tables. |
SELECT SUM Wins FROM table WHERE Latest win = 1999 italian grand prix AND Rank > 15 | CREATE TABLE INST, Here is a database schema( table schema); | How many total wins with the latest win at the 1999 Italian Grand Prix at a rank of 15?.It is not neccessary to use all the tables. |
SELECT 4wi FROM table WHERE Economy = 7.82 | CREATE TABLE INST, Here is a database schema( table schema); | What is the 4wi when the economy is 7.82?.It is not neccessary to use all the tables. |
SELECT AVG(valid_poll) FROM table_name_45 WHERE seats < 3 | CREATE TABLE INST, Here is a database schema( table schema); | Name the average valid poll for seats less than 3It is not neccessary to use all the tables. |
SELECT revenue__£million_ FROM table_18304259_1 WHERE earnings_per_share__p_ = "8.9" | CREATE TABLE INST, Here is a database schema( table schema); | Name the revenue for eps being 8.9It is not neccessary to use all the tables. |
SELECT position FROM table_name_47 WHERE first_team_appearances = "ongoing" AND current_club = "aston villa" AND player = "graham burke" | CREATE TABLE INST, Here is a database schema( table schema); | What position has ongoing first-team appearances Graham Burke for a player and whose club is Aston Villa?It is not neccessary to use all the tables. |
SELECT conmebol_1994 FROM table_name_12 WHERE supercopa_1994 = "n/a" AND recopa_1994 = "n/a" AND team = "san lorenzo" | CREATE TABLE INST, Here is a database schema( table schema); | Which CONMEBOL 1994 has a Supercopa 1994 of n/a, and a Recopa 1994 of n/a, and a Team of san lorenzo?It is not neccessary to use all the tables. |
SELECT "team name" FROM table_203_168 WHERE "year ended" > (SELECT "year ended" FROM table_203_168 WHERE "team name" = 'london lions') ORDER BY "year ended" LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | what was the next team to end after the london lions ?It is not neccessary to use all the tables. |
SELECT visitor FROM table_name_59 WHERE date = "march 16" | CREATE TABLE INST, Here is a database schema( table schema); | Who is the Visitor on march 16?It is not neccessary to use all the tables. |
SELECT Genre FROM table WHERE Language = hindi AND Network = star gold | CREATE TABLE INST, Here is a database schema( table schema); | What Genre has Hindi as the Language and Star Gold as the Network?.It is not neccessary to use all the tables. |
SELECT year FROM table_name_91 WHERE manager = "marty berghammer / nick allen" | CREATE TABLE INST, Here is a database schema( table schema); | Manager of marty berghammer / nick allen is what year?It is not neccessary to use all the tables. |
SELECT Country FROM table WHERE Player = raymond floyd | CREATE TABLE INST, Here is a database schema( table schema); | What country is player Raymond Floyd from?.It is not neccessary to use all the tables. |
SELECT place FROM table_name_11 WHERE score = 69 - 68 - 69 - 70 = 276 | CREATE TABLE INST, Here is a database schema( table schema); | What place did the golfer who had a score of 69-68-69-70=276 finish in?It is not neccessary to use all the tables. |
SELECT COUNT Length feet FROM table WHERE Parish = clarendon AND Km from Kingston = 71.2 AND Length meters < 21.3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of Length Feet, when Parish is Clarendon, when Km From Kingston is 71.2, and when Length Meters is less than 21.3?.It is not neccessary to use all the tables. |
SELECT category FROM table_28628309_9 WHERE player = "Olsen Racela" | CREATE TABLE INST, Here is a database schema( table schema); | What are the names of the categories when the player is olsen racela?It is not neccessary to use all the tables. |
SELECT SUM Crowd FROM table WHERE Home team score = 21.22 (148) | CREATE TABLE INST, Here is a database schema( table schema); | If the Home team had a score of 21.22 (148), what is the sum of all Crowds?.It is not neccessary to use all the tables. |
SELECT record FROM table_name_24 WHERE visitor = "trail blazers" | CREATE TABLE INST, Here is a database schema( table schema); | What was the Record of the game in which the Trail Blazers was the visiting team?It is not neccessary to use all the tables. |
SELECT Engine FROM table WHERE Team = alex morales motorsports | CREATE TABLE INST, Here is a database schema( table schema); | What is the engine for the team of Alex Morales Motorsports?.It is not neccessary to use all the tables. |
SELECT "Dominant religion (2002)" FROM table_27860 WHERE "Population (2011)" = '83' | CREATE TABLE INST, Here is a database schema( table schema); | What are the dominant religions in the place with a population of 83?It is not neccessary to use all the tables. |
SELECT SUM(b_score) FROM table_name_10 WHERE position < 7 AND total = 16.125 | CREATE TABLE INST, Here is a database schema( table schema); | What the B Score when the total is 16.125 and the position is less than 7?It is not neccessary to use all the tables. |
SELECT COUNT(position) FROM table_name_56 WHERE points > 5 AND drawn = 3 AND lost < 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total number of positions for teams with more than 5 points 3 draws and under 2 losses?It is not neccessary to use all the tables. |
SELECT run_3 FROM table_name_4 WHERE rank = "12" | CREATE TABLE INST, Here is a database schema( table schema); | What was the run 3 for the team in rank 12?It is not neccessary to use all the tables. |
SELECT date FROM table_name_32 WHERE high_assists = "raymond felton (6)" AND high_points = "jason richardson (42)" | CREATE TABLE INST, Here is a database schema( table schema); | On which date was Raymond Felton (6) the high assists and Jason Richardson (42) the high points?It is not neccessary to use all the tables. |
SELECT Party FROM table WHERE Incumbent = Virgil Chapman | CREATE TABLE INST, Here is a database schema( table schema); | What party is incumbent virgil chapman from?.It is not neccessary to use all the tables. |
SELECT Attendance FROM table WHERE Result = l 31-0 | CREATE TABLE INST, Here is a database schema( table schema); | What was the attendance of the game that ended with L 31-0.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Pitcher = aníbal sánchez | CREATE TABLE INST, Here is a database schema( table schema); | I want the date for aníbal sánchez.It is not neccessary to use all the tables. |
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions... | CREATE TABLE INST, Here is a database schema( table schema); | what were the top three most frequent diagnoses that patients were given within 2 months after being diagnosed with acidosis this year?It is not neccessary to use all the tables. |
SELECT COUNT Cover model FROM table WHERE Centerfold model = Stephanie Larimore | CREATE TABLE INST, Here is a database schema( table schema); | HOW MANY MODELS WERE ON THE COVER OF THE ISSUE WHERE THE CENTERFOLD WAS STEPHANIE LARIMORE?.It is not neccessary to use all the tables. |
SELECT MAX(year) FROM table_name_22 WHERE pts > 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the latesr year that has more points than 0?It is not neccessary to use all the tables. |
SELECT "Dish" FROM table_35509 WHERE "Official Website" = 'ksat.com' | CREATE TABLE INST, Here is a database schema( table schema); | Which dish belongs to the network that has the official website of ksat.com?It is not neccessary to use all the tables. |
SELECT Home FROM table WHERE Record = 2-3 | CREATE TABLE INST, Here is a database schema( table schema); | Who was the home team in the game that led to a 2-3 series record?.It is not neccessary to use all the tables. |
SELECT COUNT Opponents FROM table WHERE Score = 6–7(5), 6–2, 6–3 | CREATE TABLE INST, Here is a database schema( table schema); | How many times was the score 6–7(5), 6–2, 6–3?.It is not neccessary to use all the tables. |
SELECT socket FROM table_name_16 WHERE fsb_speed = "400 mhz" AND voltage_range = "1.004 v" | CREATE TABLE INST, Here is a database schema( table schema); | Which Socket has a FSB Speed of 400 mhz and a Voltage Range of 1.004 v?It is not neccessary to use all the tables. |
SELECT MIN Round FROM table WHERE Overall = 247 AND Pick # < 41 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest Round with Overall of 247 and pick less than 41?.It is not neccessary to use all the tables. |
SELECT away_team FROM table_name_30 WHERE crowd > 17 OFFSET 000 | CREATE TABLE INST, Here is a database schema( table schema); | Which away team has an attendance of more than 17000?It is not neccessary to use all the tables. |
SELECT SUM(total) FROM table_name_46 WHERE rank = "2" | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of Total when rank is 2?It is not neccessary to use all the tables. |
SELECT MIN Diameter (km) FROM table WHERE Name = eirene tholus | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest diameter for Eirene Tholus?.It is not neccessary to use all the tables. |
SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'medication' AND cost.eventid IN (SELECT medication.medicationid FROM medication WHERE medication.drugname = 'aspirin chew tab 81 mg') | CREATE TABLE INST, Here is a database schema( table schema); | what is the cost of drug name aspirin chew tab 81 mg?It is not neccessary to use all the tables. |
SELECT MIN(place) FROM table_name_52 WHERE total = 16 AND average < 16 | CREATE TABLE INST, Here is a database schema( table schema); | What is the smallest place number when the total is 16 and average is less than 16?It is not neccessary to use all the tables. |
SELECT 4 AS th_place FROM table_2388763_1 WHERE year = 2007 | CREATE TABLE INST, Here is a database schema( table schema); | What team finished in 4th place in 2007?It is not neccessary to use all the tables. |
SELECT Genre FROM table WHERE Game = portal 2 | CREATE TABLE INST, Here is a database schema( table schema); | What is the genre for Portal 2?.It is not neccessary to use all the tables. |
SELECT nationality FROM table_1965650_4 WHERE college_junior_club_team = "Edmonton Oil Kings (WCHL)" | CREATE TABLE INST, Here is a database schema( table schema); | What's the nationality of the player coming from Edmonton Oil Kings (WCHL)?It is not neccessary to use all the tables. |
SELECT date FROM table_name_56 WHERE crowd > 20 OFFSET 000 | CREATE TABLE INST, Here is a database schema( table schema); | What date is the crowd larger than 20000?It is not neccessary to use all the tables. |
SELECT high_points FROM table_name_39 WHERE game > 69 AND team = "san francisco" | CREATE TABLE INST, Here is a database schema( table schema); | What high points did San Francisco have in a game later than 69?It is not neccessary to use all the tables. |
SELECT series FROM table_name_78 WHERE title = "boyhood daze" | CREATE TABLE INST, Here is a database schema( table schema); | Which series had a title of Boyhood Daze?It is not neccessary to use all the tables. |
SELECT driver FROM table_name_3 WHERE engine = "7.1 l6" AND chassis = "mercedes-benz ssk l" | CREATE TABLE INST, Here is a database schema( table schema); | Who was the Driver when the Engine was 7.1 l6 and when the Chassis was Mercedes-Benz SSK l?It is not neccessary to use all the tables. |
SELECT "% of global Catholic pop." FROM table_35368 WHERE "Total Population" > '1,528,384,440' AND "% Catholic" = '3.33%' | CREATE TABLE INST, Here is a database schema( table schema); | with catholic of 3.33% and total population more than 1,528,384,440, what is the % global catholic pop.?It is not neccessary to use all the tables. |
SELECT General classification FROM table WHERE Mountains classification = stefano garzelli AND Points classification = danilo di luca AND Winner = ignatas konovalovas | CREATE TABLE INST, Here is a database schema( table schema); | What's the general classification of Ignatas Konovalovas when the mountains classification was Stefano Garzelli and points classification was Danilo Di Luca?.It is not neccessary to use all the tables. |
SELECT SUM(wins) FROM table_name_24 WHERE club = "sd eibar" AND played < 38 | CREATE TABLE INST, Here is a database schema( table schema); | How many wins did SD Eibar which played less than 38 games have?It is not neccessary to use all the tables. |
SELECT record FROM table_name_25 WHERE location_attendance = "the omni" AND date = "april 12" | CREATE TABLE INST, Here is a database schema( table schema); | What's the record on April 12 when the location was The Omni?It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Attendance > 20,268 | CREATE TABLE INST, Here is a database schema( table schema); | Name the date for attendance more than 20,268.It is not neccessary to use all the tables. |
SELECT Ramtha FROM table WHERE Jeel = 1-0 AND Hussein = 1-0 | CREATE TABLE INST, Here is a database schema( table schema); | What is ramtha when jeel is 1-0 and hussein is 1-0?.It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Date = 25th | CREATE TABLE INST, Here is a database schema( table schema); | What was the Result on the Date of 25th?.It is not neccessary to use all the tables. |
SELECT document_id, document_name FROM Documents | CREATE TABLE INST, Here is a database schema( table schema); | Show the ids and names of all documents.It is not neccessary to use all the tables. |
SELECT Away team FROM table WHERE Home team = north melbourne | CREATE TABLE INST, Here is a database schema( table schema); | Who is the away side when north melbourne is the home side?.It is not neccessary to use all the tables. |
SELECT nfl_team FROM table_2508633_9 WHERE college = "Jackson State" | CREATE TABLE INST, Here is a database schema( table schema); | What NFL team picked a player from Jackson State?It is not neccessary to use all the tables. |
SELECT Ratings (Kansai) FROM table WHERE Original airdate = May 25, 2010 22.00 - 22.54 | CREATE TABLE INST, Here is a database schema( table schema); | What is the ratings for the original air date may 25, 2010 22.00 - 22.54?.It is not neccessary to use all the tables. |
SELECT College FROM table WHERE Player = Nate Binder | CREATE TABLE INST, Here is a database schema( table schema); | Name the college for nate binder.It is not neccessary to use all the tables. |
SELECT COUNT Prefecture FROM table WHERE Area (km²) = 361.719 | CREATE TABLE INST, Here is a database schema( table schema); | How many prefectures have an area of 361.719 kilometers squared?.It is not neccessary to use all the tables. |
SELECT pole_position FROM table_26267607_2 WHERE winning_driver = "Bruno Spengler" AND circuit = "Showevent Olympiastadion München" | CREATE TABLE INST, Here is a database schema( table schema); | In the circuit Showevent Olympiastadion München where the winning driver is Bruno Spengler what is the pole position?It is not neccessary to use all the tables. |
SELECT MIN Year FROM table WHERE League = usisl pro league | CREATE TABLE INST, Here is a database schema( table schema); | What was the earliest year for the USISL Pro League?.It is not neccessary to use all the tables. |
SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-11804')) AND intakeoutput.cellpath LIKE '%intake%' AND D... | CREATE TABLE INST, Here is a database schema( table schema); | what did patient 031-11804 last have as an intake on 09/17/this year?It is not neccessary to use all the tables. |
SELECT MIN Last CF FROM table WHERE CF appearances = 2 AND Cup wins = 0 AND CF wins < 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest number of last cfs of the team with 2 cf appearances, 0 cup wins, and less than 0 cf wins?.It is not neccessary to use all the tables. |
SELECT To par FROM table WHERE Player = chris riley | CREATE TABLE INST, Here is a database schema( table schema); | What is the To Par for Player Chris Riley?.It is not neccessary to use all the tables. |
SELECT AVG Points FROM table WHERE Against < 53 AND Drawn < 10 AND Played < 38 | CREATE TABLE INST, Here is a database schema( table schema); | Against smaller than 53, and a Drawn smaller than 10, and a Played smaller than 38 has what average points?.It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT President_Vote) FROM VOTING_RECORD | CREATE TABLE INST, Here is a database schema( table schema); | Find the distinct number of president votes.It is not neccessary to use all the tables. |
SELECT Tongan FROM table WHERE North Marquesan = /haʔe/ | CREATE TABLE INST, Here is a database schema( table schema); | What kind of Tongan has a North Marquesan of /haʔe/?.It is not neccessary to use all the tables. |
SELECT android_version FROM table WHERE code_name = "Lotus" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Android version is the code name is Lotus?It is not neccessary to use all the tables. |
SELECT team_name FROM basketball_match ORDER BY All_Home DESC | CREATE TABLE INST, Here is a database schema( table schema); | List names of all teams in the basketball competition ordered by all home scores in descending order.It is not neccessary to use all the tables. |
SELECT date FROM table_name_63 WHERE distance = "3,000 m" | CREATE TABLE INST, Here is a database schema( table schema); | Which Date has a Distance of 3000 m?It is not neccessary to use all the tables. |
SELECT city FROM table_name_23 WHERE completion = "1910-1978" | CREATE TABLE INST, Here is a database schema( table schema); | What city was completed in 1910-1978?It is not neccessary to use all the tables. |
SELECT scores FROM table_23575917_7 WHERE lees_team = "Clare Balding and Miranda Hart" | CREATE TABLE INST, Here is a database schema( table schema); | If the lees team is Clare Balding and Miranda Hart what was the score?It is not neccessary to use all the tables. |
SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T2.Revenue DESC | CREATE TABLE INST, Here is a database schema( table schema); | For those records from the products and each product's manufacturer, show me about the distribution of name and the average of revenue , and group by attribute name in a bar chart, order y axis from high to low order.It is not neccessary to use all the tables. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.