Three-dimensional extensions of the Alday-Gaiotto-Tachikawa relation