How to Query attribute at given time

What is the syntax to query the value of an attribute at a given time; for example, translateY of a ball at (time plus 3)?

if this is put in a clip and the clip is scaled and repeated will the (time plus 3) refer to the time in the original keyframes?

Thanks so much

PS

Read the options for the getAttr MEL command it can read values from any channel at any given point in time.

If you then bake this simulation in keyframes you can put it into a clip.

I think you are getting a bit confused, if what you want is the syntax then surely we are looking at a runtime expression, so how would you want to scale that up? Maybe am I getting this completely wrong.. don't know, anyhow hopes this helps:

int $newtime = ((currentTime -query) -72);
ty = getAttr -t $newtime ball.ty;