BlackBerry beats earnings and revenue expectations in third quarter as shares swing after hours — alphai