I\'m trying to "translate" one of my sql queries into ef core. I have already got it for the base query, but I\'m now struggling with the marked line: