def get_points(session, tbl):
    """Get all points.

    :param session: SQLAlchemy Session
    :type session: sqlalchemy.orm.session.Session
    :param tbl: Table to get data from
    :type tbl: sqlalchemy.sql.schema.Table
    :return: SQLAlchemy Query returning tuples of value, timestamp, longitude,
             and latitude.
    :rtype: sqlalchemy.orm.query.Query
    """
    return session.query(
        tbl.c.value,
        tbl.c.timestamp,
        tbl.c.geom.ST_X(),
        tbl.c.geom.ST_Y())