My favorite SQL implementation of cursor-based keyset pagination can be found on this Hasura issue: https://github.com/hasura/graphql-engine/issues/141, specifically this comment: https://github.com/hasura/graphql-engine/issues/141#issuecom.... Something so elegant about this SQL. I enjoy it a lot.
Also really enjoy this answer about how to implement keyset pagination on multiple columns:
https://stackoverflow.com/questions/38017054/mysql-cursor-ba...