def METHOD_NAME(start_date, end_date):
    return (BlockedRoom.query
            .filter(BlockedRoom.state == BlockedRoomState.accepted,
                    Blocking.start_date <= end_date,
                    Blocking.end_date >= start_date)
            .join(BlockedRoom.blocking)
            .join(BlockedRoom.room)
            .options(contains_eager('blocking'), contains_eager('room'))
            .all())