You cannot "join" classes / tables when prompted. instead, combine the result sets -> start with the edge class for Product using Comment s, then use let and unionall() to add Comment ed Product to expand() ing:
select expand($c) let $a = (select in.name as name, out.name as User, comment, createDate, modifiedDate from Comment), $b = (select from Product where in_Comment is null), $c = unionall($a, $b)
note that in the result set you will have the @CLASS field, which is supplied with null from the first query (i.e., from the $a result set) and Product from the second query ( $b result set)
source share