Abaixo está uma instrução que descreve uma tarefa de geração de SQL, combinada com uma entrada que fornece mais contexto sobre os esquemas de tabela disponíveis. Escreva o código SQL que responda adequadamente à solicitação
 ###Instrução: Quem é o cliente com o maior custo total de pedidos no mês de outubro de 2021?
 ###Tabelas: 
CREATE TABLE Customers (customer_id INT, first_name VARCHAR(15), last_name VARCHAR(15)); CREATE TABLE Orders (order_id INT, customer_id INT, order_date DATE); CREATE TABLE Order_Items (order_item_id INT, order_id INT, menu_id INT, quantity INT); CREATE TABLE Menu (menu_id INT, menu_name VARCHAR(20), is_vegetarian BOOLEAN); CREATE TABLE Inventory (inventory_id INT, menu_id INT, inventory_cost FLOAT); INSERT INTO Customers (customer_id, first_name, last_name) VALUES (1, 'John', 'Doe'), (2, 'Jane', 'Doe'), (3, 'Bob', 'Smith'); INSERT INTO Orders (order_id, customer_id, order_date) VALUES (1, 1, '2021-10-01'), (2, 1, '2021-10-02'), (3, 2, '2021-10-03'), (4, 1, '2021-10-04'), (5, 3, '2021-10-05'); INSERT INTO Order_Items (order_item_id, order_id, menu_id, quantity) VALUES (1, 1, 1, 2), (2, 2, 2, 1), (3, 3, 3, 3), (4, 4, 1, 1), (5, 5, 4, 2); INSERT INTO Menu (menu_id, menu_name, is_vegetarian) VALUES (1, 'Breakfast', TRUE), (2, 'Lunch', FALSE), (3, 'Dinner', FALSE), (4, 'Dessert', FALSE); INSERT INTO Inventory (inventory_id, menu_id, inventory_cost) VALUES (1, 1, 5.0), (2, 2, 3.5), (3, 1, 8.0), (4, 3, 7.0), (5, 4, 4.0);
SELECT Customers.first_name, Customers.last_name, SUM(Inventory.inventory_cost * Order_Items.quantity) AS total_cost FROM Customers INNER JOIN Orders ON Customers.customer_id = Orders.customer_id INNER JOIN Order_Items ON Orders.order_id = Order_Items.order_id INNER JOIN Menu ON Order_Items.menu_id = Menu.menu_id INNER JOIN Inventory ON Menu.menu_id = Inventory.menu_id WHERE MONTH(Orders.order_date) = 10 AND YEAR(Orders.order_date) = 2021 GROUP BY Customers.customer_id ORDER BY total_cost DESC;