Assuming your MAINTENANCES table has columns like CarID, TaskID, and DueDate, the query is given below.
-- Assuming your table structure is something like this
-- MAINTENANCES table: CarID, TaskID, DueDate
-- Inserting tire change tasks for cars with model year 2018 in InstantRide
INSERT INTO MAINTENANCES (CarID, TaskID, DueDate)
SELECT CarID, 1 AS TaskID, '2020-12-31' AS DueDate
FROM CARS
WHERE ModelYear = 2018 AND Manufacturer = 'InstantRide';
-- Inserting tire maintenance tasks for each car with a model year of 2022
INSERT INTO MAINTENANCES (CarID, TaskID, DueDate)
SELECT CarID, 1 AS TaskID, '2023-12-31' AS DueDate
FROM CARS
WHERE ModelYear = 2022;