-- Database schema
| city : id [ INTEGER ] primary_key , city_name [ TEXT ] | games : id [ INTEGER ] primary_key , games_year [ INTEGER ] , games_name [ TEXT ] , season [ TEXT ] | games_city : games_id [ INTEGER ] games_city.games_id = games.id , city_id [ INTEGER ] games_city.city_id = city.id | medal : id [ INTEGER ] primary_key , medal_name [ TEXT ] | noc_region : id [ INTEGER ] primary_key , noc [ TEXT ] , region_name [ TEXT ] | person : id [ INTEGER ] primary_key , full_name [ TEXT ] , gender [ TEXT ] , height [ INTEGER ] , weight [ INTEGER ] | games_competitor : id [ INTEGER ] primary_key , games_id [ INTEGER ] games_competitor.games_id = games.id , person_id [ INTEGER ] games_competitor.person_id = person.id , age [ INTEGER ] | person_region : person_id [ INTEGER ] person_region.person_id = person.id , region_id [ INTEGER ] person_region.region_id = noc_region.id | sport : id [ INTEGER ] primary_key , sport_name [ TEXT ] | event : id [ INTEGER ] primary_key , sport_id [ INTEGER ] event.sport_id = sport.id , event_name [ TEXT ] | competitor_event : event_id [ INTEGER ] competitor_event.event_id = event.id , competitor_id [ INTEGER ] competitor_event.competitor_id = games_competitor.id , medal_id [ INTEGER ] competitor_event.medal_id = medal.id |
-- -- Compute the average height of competitors whose age ranges from 22 to 28.

SELECT AVG(T1.height) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id WHERE T2.age BETWEEN 22 AND 28;