SELECT szbj,SUM(IIF(zf_y>=325 and km6>=285,1,0)) rs,"12130229140" lb FROM cj022902 WHERE SUBSTR(ksh,9,3)="140" GROUP BY szbj