Filtering by multiple conditions

Hi. I need to learn how to apply multiple conditions to a query filter as illustrated below. What is the correct syntax to achieve this as the compiler suggests there is an issue but the test call seemed to work. Thanks.

  Discussion posts and replies are publicly visible