SELECT ROW_NUMBER() OVER (ORDER BY s."Name") AS "Num" , s."Id", s."Name" FROM public."A" AS s WHERE s."Id"> 2