I have 2 tables in my db: subscriptions and companies. the following query is supposed to be run:
subscriptions
companies
WITH ranked_rows AS (SELECT s.*, ROW_N