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