SELECT movesrunid, countyid, pollutantid, yearid, monthid, dayid, SUM(emissionquant)/907184.74 FROM movesoutput WHERE pollutantid IN(3,87) GROUP BY movesrunid, yearid, countyid, monthid, dayid, pollutantid ORDER BY movesrunid, pollutantid,yearid,countyid, monthid, dayid