You asked

How does the sony a7 iv compare with the a1 for distant wildlife with a 400 800mm lens?

Here is what the site says about that.

From Sony a7 IV: Sony a7 IV: A mirrorless camera by Sony with a 33-megapixel full frame sensor, announced in 2021. The all-rounder: good at stills and at video. Specs - Maker: Sony - Mount: Sony E - Sensor: Full frame, 36 x 24mm, crop factor 1.0 - Resolution: 33 megapixels - Stabilisation: in the body - Announced: 2021 - Type: mirrorless camera Price in France - New: 2089 € (Digit-Photo) - Used: 1489–1679 € (MPB) Checked ...

From Sony FE 400-800mm f/6.3-8 G OSS: Sony FE 400-800mm f/6.3-8 G OSS: A zoom lens by Sony for Full frame cameras, 400-800mm f/6.3-8. Sony's longest zoom, for birds and distant wildlife.

Quoted from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.