Prometheus is not a SQL database: it's a time series database and has its own query language, PromQL.
Each timeseries is uniquely identified by a metric name (which describes the type of thing you're measuring) and a set of labels (which taken together identify one particular instance of that thing). A common label is "instance" which normally identifies the host the metric came from. Here are a few simple PromQL queries:
node_filesystem_avail_bytes
node_filesystem_avail_bytes{instance="server1"}
node_filesystem_avail_bytes{instance="server1",mountpoint="/"}
The first query returns a vector with available space on all filesystems.
The second query returns a vector with available space on all filesystems on one particular host (which still may be multiple results)
The third instance constrains the query more specifically to a single filesystem.
There is lots of documentation online, both official and various blogs, which can tell you more.