SELECT * FROM "q" ORDER BY a ASC, b DESC;