How to filter main query using subqueries via JS Client? - Supabase