The record is Mikhail Tal's: with a teammate, games won together; against an opponent, games Mikhail Tal won.