Database: manufacturer
Question: what is the average number of factories and maximum number of shops for manufacturers that opened before 1990.
SQL:
SELECT max(num_of_shops) ,  avg(Num_of_Factories) FROM manufacturer WHERE open_year  <  1990