Ted: "Did you eat enough fruit yesterday?"
Ted asked if I ate enough fruit yesterday.
Ted asked if I had eaten enough fruit the day before.