select count(fyid) as appesfddpc from (select fyid,count(fyid) counts from jy510_esf_zhuzhai WHERE sfsh=1 AND fylx=1 AND szqy = '169' AND jg>'0' AND jg<='60' AND mj > 0 AND jg > 0 group by xqid,mj,szlc ) temp