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 are the name and os of web client accelerators that do not work with only a 'Broadband' type connection?
assistant
SELECT name , operating_system FROM web_client_accelerator WHERE CONNECTION != 'Broadband'
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 name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ?
assistant
SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id = T3.id WHERE T3.name = 'CProxy' AND T2.compatible_since_year > 1998
human
How many accelerators are not compatible with the browsers listed ?
assistant
SELECT count(*) FROM web_client_accelerator WHERE id NOT IN ( SELECT accelerator_id FROM accelerator_compatible_browser );
human
What are the ids and names of the web accelerators that are compatible with two or more browsers?
assistant
SELECT T1.id , T1.Name FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id GROUP BY T1.id HAVING count(*) >= 2
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 ;