That’s a question that popped earlier this month :)
reg Expenses:Food -l "any(account =~ /Liabilities:Credit Card/)"
Note that it catches *any* other side, in case where your transaction
has more than two lines it works too.
(Mon, Jan 25, 2021 at 03:03:28PM -0800) Alan :
--
Ismael