Query with @filter on a list/non-scalar objects at root level

@binhle can you edit these and format the code wrapping them in code blocks beginning with three backticks and ending the same. It will really help readability.Preformatted.