reports: br47 report - added comments to queries

Changed the code structure so it will be more readable
and added commets.

Change-Id: I4ce5b40141765d1e25637741b6c5a02b12b208b7
Signed-off-by: Shirly Radco <sradco@redhat.com>