Best way to query "sub-queries" - TanStack