How many medications are prescribed for each brand?
SELECT count(*) ,  T1.name FROM medication AS T1 JOIN prescribes AS T2 ON T1.code = T2.medication GROUP BY T1.brand
number of medications prescribed for each brand refers to COUNT(*) GROUP BY brand; medications are identified by a code and linked to prescriptions via a JOIN between medication and prescribes tables;