Q&A for science fiction and fantasy enthusiasts
SELECT DISTINCT u.Id, u.DisplayName, p.OwnerUserId, c.UserId FROM Users AS u INNER JOIN Posts AS p ON u.Id = p.OwnerUserId INNER JOIN Comments AS c ON u.Id = c.UserId;