3

Does anyone know how to achieve the following in Twig with Craft 3:

My sections locations and trainings.

I want to find all the entries from locations which has a relation to trainings and a datetime field value from trainings has to be after now.