SubQuery doesn't seem to work - TanStack