human
Schema:
Web_client_accelerator (id, name, Operating_system, Client, Connection)
browser (id, name, market_share)
accelerator_compatible_browser (accelerator_id, browser_id, compatible_since_year)
Please answer with SQL.
assistant
Sure, I understand.
human
give me names of all compatible browsers and accelerators in the descending order of compatible year
assistant
SELECT T2.name , T3.name FROM accelerator_compatible_browser AS T1 JOIN browser AS T2 ON T1.browser_id = T2.id JOIN web_client_accelerator AS T3 ON T1.accelerator_id = T3.id ORDER BY T1.compatible_since_year DESC
human
What is the id and market share of the browser Safari?
assistant
SELECT id , market_share FROM browser WHERE name = 'Safari'
human
How many main stream browsers whose market share is at least 5 exist?
assistant
SELECT count(*) FROM browser WHERE market_share >= 5
human
What is the maximum, minimum and average market share of the listed browsers?
assistant
SELECT max(market_share) , min(market_share) , avg(market_share) FROM browser
human
List the ids, names and market shares of all browsers.
assistant
SELECT id , name , market_share FROM browser
human
List the name of browsers in descending order by market share.
assistant
SELECT name FROM browser ORDER BY market_share DESC ;