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
What is the id and name of the browser that is compatible with the most web accelerators?
assistant
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
human
How many main stream browsers whose market share is at least 5 exist?
assistant
SELECT count(*) FROM browser WHERE market_share >= 5
human
List the name of browsers in descending order by market share.
assistant
SELECT name FROM browser ORDER BY market_share DESC
human
List the ids, names and market shares of all browsers.
assistant
SELECT id , name , market_share FROM browser
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
What is the id and market share of the browser Safari?
assistant
SELECT id , market_share FROM browser WHERE name = "Safari" ;