sgpe: Support pagination