I think it's safe to just look for a `PubKey` here, and not check for a `SubKey` too (the original query does this with a `UNION`), but I'm not sure why the original query needed to so I'd like a second opinion.