How do I add a filter in a query report from a child table

Hello all,
I am trying to add a filter (Item Code) in a query report from a child table (Sales Invoice Item) in the Sales Invoice doctype. How do I write this in the .js file, and the advance query for it.

I will greatly appreciate any contribution and support for this please.