@Yang Chow Mun Thank you for reaching out.
Yes, the composite index will help with query a, c and d. But for b, the composite index might not help because the query has a property time which is not included in the composite index. The composite index only includes id, year and date.
Please learn more with the below links.
Composite indexed policy examples
New ways to use composite indexes in Azure Cosmos DB
Hope that helps.
Regards,
Oury