How could the following SQL query be converted for Mongo:
SELECT KeyID, SUM(Qty) FROM Table WHERE Date <= '1998-12-01'