if you are running your queries from psql prompt directly then \t is option to disable the column names and same row_number() OVER () for dispaly row number also
\t
row_number() OVER ()
example