The problem of attributive clauses
The logic is very confusing ... this sentence is not quite right. I changed it for you. They are eating the food they didn't eat. Analysis: {They are eating food}-main sentence {(that/ Which/ space) They are not eating. }-Food is the object. You can fill in which/that leading clause in brackets. Since food is the object, you can also fill in nothing in brackets.