reports query and report structure