Database schema: create table InventoryCategory(Id Integer Primary Key, Description varchar(50), CanMove integer, IsActive Integer, StaticTypeIdentifier varchar(50));Create Table Inventory(SnapShotDate Date, ItemId Integer FK->Items.Id, Locationid Integer FK->Locations.Id, SystemQty integer, PhysicalQty integer, InventoryCategoryId Integer FK->InventoryCategory.Id);create table Items ( CollapsedHeight integer, Collapsible integer, CustomerItemNumber varchar(20), Height integer, Id integer primary key, FloorLocation varchar(20), FullTrailerLoad varchar(20), ImageFileName varchar(20), IsUnitLoad integer, Length integer, Name varchar(20), PalletQty integer, ShortName varchar(20), StackHeight integer,  TypeId integer FK->ItemTypes.Id, UnitCost Decimal(18,2),Weight float, Width integer );create table Locations (CloseTime time, Deleted integer, EquipmentInspectionInterval integer, Id integer primary key, LocationNumber varchar(20), FreightCodeId integer FK->FreightCodes.id, MaxLoadPerTimeslot integer, IsOpen24Hours integer, LanguageId integer FK->Languages.Id, Name varchar(20), LastCountDate datetime, NextCountDate datetime, NonWorkingTimeSetId integer FK->NonWorkingTimeSet.Id, OpenTime time,  ProcessedPutAwayPullFromLocationId integer FK->Locations.id, ShortName varchar(20),TimeslotDuration integer, TargetDaysOnHand integer, TaxId varchar(50), TypeId integer FK->LocationTypes.Id);Create Table InventoryAverageDailyUsage(LocationId integer FK->Locations.id, ItemId Integer FK->Items.id, Amount integer, Override integer, OverrideExpiration Datetime);
Question: show me the history of inventory of all the items in finished goods at Rivian by date
SQL: select * from inventorysnapshot inv join items it on inv.itemid = it.id join locations loc on inv.locationid = loc.id join inventorycategoryid ic on inv.inventorycategory = ic.id where ic.Description = 'Finished Goods' and loc.name like '%Rivian%' order by snapshotdate