Sollicitatievraag bij Digis (Ukraine)

How would you optimize PostgreSQL queries for better performance?