Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What is the sum of grids with an engine in Time/Retired with less than 45 laps for Giancarlo Baghetti?

### Inputs:
table_name: table, columns: ['Driver', 'Constructor', 'Laps', 'Time/Retired', 'Grid']

### Response:
SELECT SUM Grid FROM table WHERE Time/Retired = engine AND Laps < 45 AND Driver = giancarlo baghetti