Subsidiaries

I was wondering if say there were three mythical Airlinesim airlines (X Air, Air Y, and Z Airways) If X Air was based in Germany, and Air Y was a subsidiary of X Air and was based in Singapore, and then Z Airways was a subsidiary of Air Y and was based in South Korea, would Z Airways’ legal home country be in Singapore or Germany?

Germany

Its the first enterprise created

Thanks!