Instruct: What is the grid total that had a retired for engine, teo fabi driving, and under 39 laps?
Output: SELECT SUM Grid FROM table WHERE Time/Retired = engine AND Driver = teo fabi AND Laps < 39