How to get sql statement from a supabase api call

suppose I have a supabase api call like
let { data: dataset, error } = await supabase
  .from('dataset')
  .select('name')

Is there any way I can get the sql statement generated by this call? Obviously for this example the corresponding sql is trivial, but for more elaborate stuff like deep;y nested joins it would be great to use the generated sql to create a view in postgres.
Was this page helpful?