I think the optmization PR might fix your issue since you have nested query. Can you try the query on latest 20.07 or master branch?
I think the optmization PR might fix your issue since you have nested query. Can you try the query on latest 20.07 or master branch?