Rewrited discussionsubtopicrelation repository queries.