Change queries to use has_many: :through property
change query on client using belongs_to property
Add join section in report
Add aggregate queries subsection