You'd need a server/service running on your SQL host which listens on a port to which you send the GET request which then collects the data from your DB an returns the data via the HTTP response.
If you want to do that in a secure fashion you'd want to do that via a webhook.
This thread may be a bit old and uses some outdated syntax, but it might provide some pointers