Buildings and research are one dependency graph. Pick a target and get the exact chain of upgrades between you and it, in resources and speedup days.
Fliers start at T4 — one Fliers goal pulls all four other branches up to T4 with it.