select thing from tableA; select thing from tableA limit 1000 offset 1000; select count( thing ) from tableA; select thing from tableB;