Firstly, in regards to the licences, from the bottom of every page on the site at the bottom right:
user contributions licensed under CC BY-SA.
Content in Wiki/Excerpts are user contributions and so are licenced under the CC BY-SA licences. I will admit, however, that the tag's info page themselves (such as sql's) don't appear to display the licence terms the content is under (which has been under status-review since May 2020, thanks Andrew T.), but the above quote does explicitly cover the content (due to them being user contributions).
This can actually be verified in the Data Explorer, where you are incorrectly under the assumption that the Wiki and Excerpt data isn't stored; it is in Posts
table with Tag Wiki and Tag Excerpts having a PostTypeID
of 5
and 4
respectively.
The Posts
table also contains the licence the content is under in the ContentLicense
column. As things have changed over the years, then if you do want to take all the information you will need to ensure that you adhere to the appropriate licence for that wiki/excerpt. Note, as well, that a tag's wiki and excerpt can be under different versions of CC BY-SA. Using sql as an example again, note that the Wiki is licenced under CC BY-SA 4.0 but the Excerpt is under CC BY-SA 3.0.
The query you could use to get the information is as follows:
SELECT T.TagName,
T.[Count],
W.Body AS Wiki,
W.ContentLicense AS WikiLicence,
E.Body AS Excerpt,
E.ContentLicense AS ExcerptLicence
FROM dbo.Tags T
LEFT JOIN dbo.Posts W ON T.WikiPostId = W.Id
AND W.PostTypeId = 5
LEFT JOIN dbo.Posts E ON T.ExcerptPostId = E.Id
AND E.PostTypeId = 4
--Where [Count]>10
ORDER BY Count DESC;
Which I've also put into Data Explorer.