gridField with 2 joined entities query

Hi All,

I have to entities and I would like to create a gridField with their data

What is the best way to create a query with this join and then show the grid field  ?

 

Thanks

Elia  

  Discussion posts and replies are publicly visible