How to get sql statement from a supabase api call - Supabase