This is probably elementary for some, but I struggled with these so I thought I would share (they mostly contain multiple negations):
How to say:
list from #recipe and #dessert but not #icecream and not #sorbet:
```dataview
list from #recipe and #dessert and -#icecream and -#sorbet
```
list from #recipe but not these two pages: “Main” and “Tag Index”
```dataview
list from #recipe
where file.name !="Main" and file.name !="Tag Index"
```
list from #dessert but no pages that contain either Ice Cream or Sorbet in the title:
```dataview
list from #dessert
where !contains(file.name, "Ice Cream") and !contains(file.name, "Sorbet")
```