SQL is not a “DSL”.
It’s a “Declarative Programming” language and arguably the most popular one.
It’s a “Declarative Programming” language and arguably the most popular one.
For example, your Wikipedia page defines regexes as also a declarative language, and yet it is also the quintessential DSL.
And in terms of it's domain... SQL has a very a restricted domain it was meant for, and is generally used for. You could argue its domain has expanded slightly with things like LINQ, but it's clearly wrong to describe it as an alternative to say python, or c#, as a language, in purpose or usage.
With a DPL, you describe what output you want without describing how to produce the output.
With a DSL, you have to describe how to produce the output.