How to write complex query with fragments - Ash Framework