You asked

Which lens would I need for a panasonic g9 to shoot a child s indoor gymnastics?

The guide can't name a specific lens for the Panasonic Lumix G9, because its entry doesn't list which lenses fit it. Here's what to look for instead.

Indoor gymnastics means dim light and fast, unpredictable movement, so the lens matters more than stabilisation. The G9's stabilisation steadies the camera, not the gymnast. What you need is a lens with a wide maximum aperture, such as f/2.8 or faster, which lets in enough light to keep shutter speeds high enough to freeze a flip or a landing. The G9's Micro Four Thirds sensor is smaller than full frame and gathers less light, so a fast lens matters even more here. The low light and motion section explains why a bigger sensor helps with moving subjects indoors.

Focal length matters too. Gyms are big, and a telephoto zoom lets you fill the frame from the stands without getting in the way. Look for a fast zoom that reaches well past 70mm, if you can find one that fits the G9.

The G9 is a good body for this job, because it shoots fast bursts. The original G9 is now cheap used, while the G9 II is newer with a 25.2-megapixel sensor. An old manual lens adapted through the G9's adapter option is a cheap way to experiment, but manual focus will struggle with a child who keeps moving.

Written by Claude 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}.