RATING query + changed relation TRequest->TAgency

TRequest is connected to TAgency, instead of TUser