# Slice Queries

### Slice Query - Examples

#### “Show me all images in my Rain or Lightning slices, but not in my Night slice”

[block:code]
{
  "codes": [
    {
      "code": "(slice = \"Rain\" OR slice = \"Lightning\") AND slice != \"Night\"",
      "language": "text"
    }
  ]
}
[/block]

### Slice Query - Details

This feature lets you query by slice name. It can also be used to merge two slices together, for example by querying `slice = A OR slice = B` and then creating a slice from all results.

[block:parameters]
{
  "data": {
    "0-0": "`slice`",
    "0-1": "The name of the slice"
  },
  "cols": 2,
  "rows": 1
}
[/block]