Consider CROSSJOIN(S1, S2). This can be expanded as follows:
SELECT S1.*\Rank, S2.*\Rank, Newrank AS Rank
FROM (SELECT S1.*\Rank, S2.*\Rank FROM S1, S2)
RANK ROWS AS NewRank RANKORDER BY Rank1, Rank2
The notation “S1.*\Rank” means “All columns of S1, minus the Rank column.”