It is not clear if you want to pull data from another tab of the document you are working on or you want to pull data from another tab of the "url of my document" and don't want to type the whole thing again.

Pulling  info from the same document but different tab using query would be as easy as replacing `importrange("url of my document"; "INPUT!A1:F28")` with `TabYouWant!A1:F28`