select count(*), sum(quantity), avg(quantity) from userinfo 可以。
加上CountryType,意思已经很清楚:列 'userinfo.CountryType' 在选择列表中无效,因为该列未包含在聚合函数中,并且没有 GROUP BY 子句。