# EM Impact CQL searching

### Overview <a href="#overview" id="overview"></a>

{% content-ref url="../../../../concepts-and-fundamentals/on-a-computer/searching-filtering-and-querying-registers" %}
[searching-filtering-and-querying-registers](https://docs.cw.crisisworks.com/concepts-and-fundamentals/on-a-computer/searching-filtering-and-querying-registers)
{% endcontent-ref %}

CQL (Crisisworks Query Language) can be used to perform advanced searches. They allow you to use structured queries to search for content.

This page contains specific CQL examples for **EM Impact** reporting requirements. These can be copied and pasted into the search to find assessments that align with the EMV reporting parameters.

{% hint style="warning" %}
You MUST be in the correct Recovery module register for these searches to work
{% endhint %}

## Query examples <a href="#emv-1-facilities-damaged" id="emv-1-facilities-damaged"></a>

<figure><img src="https://3923904090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNy7IznbrPLUq6GJDDQDk%2Fuploads%2FNcsErnOtTxu3mvmjV3f8%2FScreenshot%202026-02-27%20at%209.57.30%E2%80%AFam.png?alt=media&#x26;token=500cb8a7-254d-4d18-92c6-74a33a2eb8da" alt=""><figcaption></figcaption></figure>

### Persons queries

<details>

<summary>EMIA-1 Aboriginal/ Torres Strait Islander Impacted</summary>

In **Recovery > Persons:**&#x20;

```sparql
is:active atsi:Yes
```

</details>

<details>

<summary>EMIA-2 Aboriginal/ Torres Strait Islander Req’d Support</summary>

In **Recovery > Persons:**

```sparql
is:active atsi:Yes AtsiCulturalSupport:[Yes,Potentially]
```

</details>

### Commercial queries

<details>

<summary>EMIA-13 Buildings Damaged Value* (excl. agriculture)</summary>

In **Recovery > Private Assets:**

```sparql
is:active 
BuildingType:[vehicle/boat,dwelling/caravan,dwelling/flat,dwelling/holiday-rental,facility/other,structure/other,structure/shed,facility/shop] 
BuildingDamage:[2,3,5,1] 
Value:any 
RelatedCase:(is:active PropertyUseCommercial:Yes)
```

<sup><sub>\*To calculate the total damaged value, export the resulting records to a report. Ensure the 'Approximate damage value' field is included in the export. The total value can then be calculated by summing this field in the downloaded file.<sub></sup>

</details>

<details>

<summary>EMIA-14 Buildings Destroyed Loss (excl. agriculture)</summary>

In **Recovery > Cases:**

```sparql
is:active 
PropertyUseCommercial:Yes 
PrivateAssets:(is:active BuildingType:[vehicle/boat,dwelling/caravan,dwelling/flat,
dwelling/holiday-rental,facility/other,structure/other,structure/shed,facility/shop] 
BuildingDamage:4) 
```

</details>

<details>

<summary>EMIA-15 Financial Loss value* (non-building)</summary>

In **Recovery > Private Assets:**

```sparql
is:active 
Buildingtype:"Business Economic Impact" 
BuildingDamage:[4,1,3,2,5] 
Value:any 
RelatedCase:(is:active PropertyUseCommercial:Yes)
```

&#x20;<sup><sub>\*To calculate the total destroyed value, export the resulting records to a report. Ensure the 'Approximate damage value' field is included in the export. The total value can then be calculated by summing this field in the downloaded file.<sub></sup>

</details>

<details>

<summary>EMIA-16 Buildings Damaged (excl. agriculture)</summary>

In **Recovery > Cases:**

```sparql
is:active 
PropertyUseCommercial:Yes 
PrivateAssets:(is:active 
Buildingtype:[vehicle/boat,dwelling/caravan,dwelling/flat,dwelling/holiday-rental,facility/other,
structure/other,structure/shed,facility/shop] 
BuildingDamage:[2,3,5,1])
```

</details>

<details>

<summary>EMIA-17 Buildings Destroyed Loss Value* (excl. agriculture)</summary>

In **Recovery > Private Assets:**

```sparql
is:active 
BuildingType:[vehicle/boat,dwelling/caravan,dwelling/flat,dwelling/holiday-rental,facility/other,structure/other,structure/shed,facility/shop] 
BuildingDamage:4 
Value:any 
RelatedCase:(is:active PropertyUseCommercial:Yes)
```

&#x20;<sup><sub>\*To calculate the total destroyed value, export the resulting records to a report. Ensure the 'Approximate damage value' field is included in the export. The total value can then be calculated by summing this field in the downloaded file.<sub></sup>

</details>

### Infrastructure queries

<details>

<summary>EMIA-20 Local Community Facilities Damaged</summary>

In **Recovery>** **Infrastructure:**

```sparql
is:active 
InfrastructureType:[property,facility] 
DamageLevel:[2,3,5,1]
```

</details>

<details>

<summary>EMIA-21 Local Community Facilities Damaged (Loss Value*)</summary>

In **Recovery>** **Infrastructure:**

```sparql
is:active 
InfrastructureType:[property,facility] 
DamageLevel:[2,3,5,1] 
CostEstimate:any
```

<sup><sub>\*To calculate the total destroyed value, export the resulting records to a report. Ensure the 'Approximate damage value' field is included in the export. The total value can then be calculated by summing this field in the downloaded file.<sub></sup>

</details>

<details>

<summary>EMIA-22 Local Community Facilities Destroyed</summary>

In **Recovery>** **Infrastructure:**

```sparql
is:active 
InfrastructureType:[property,facility] 
DamageLevel:4
```

</details>

<details>

<summary>EMIA-23 Local Community Facilities Destroyed (Loss value*)</summary>

In **Recovery>** **Infrastructure:**

```sparql
is:active 
InfrastructureType:[property,facility] 
DamageLevel:4 
CostEstimate:any
```

<sup><sub>\*To calculate the total destroyed value, export the resulting records to a report. Ensure the 'Approximate damage value' field is included in the export. The total value can then be calculated by summing this field in the downloaded file.<sub></sup>

</details>

<details>

<summary>EMIA-34 Municipal Bridges Damaged</summary>

In **Recovery>** **Infrastructure:**

```sparql
is:active 
InfrastructureType:bridge 
DamageLevel:[2,3,5,1]
```

</details>

<details>

<summary>EMIA-35 Municipal Bridges Destroyed</summary>

In **Recovery>** **Infrastructure:**

```sparql
is:active 
InfrastructureType:bridge 
DamageLevel:4
```

</details>

<details>

<summary>EMIA-36 Municipal Culverts &#x26; Drainage Struct. Damaged</summary>

In **Recovery>** **Infrastructure:**

```sparql
is:active 
InfrastructureType:[stormwater-pipe,stormwater-pit,culvert] 
DamageLevel:[1,3,2,5] 
```

</details>

<details>

<summary>EMIA-37 Municipal Culverts &#x26; Drainage Struct. Destroyed</summary>

In **Recovery>** **Infrastructure:**

```sparql
is:active 
InfrastructureType:[stormwater-pipe,stormwater-pit,culvert] 
DamageLevel:4
```

</details>

<details>

<summary>EMIA-38 Municipal Roads Damaged</summary>

In **Recovery>** **Infrastructure:**

```sparql
is:active 
InfrastructureType:road 
DamageLevel:[1,3,2,5]
```

</details>

<details>

<summary>EMIA-39 Municipal Roads Destroyed</summary>

In **Recovery>** **Infrastructure:**

```sparql
is:active 
InfrastructureType:road 
DamageLevel:4
```

</details>

<details>

<summary>EMIA-40 Municipal Trails/Walkways Damaged</summary>

In **Recovery>** **Infrastructure:**

```sparql
is:active 
InfrastructureType:trails-walkway 
DamageLevel:[1,3,2,5]
```

</details>

<details>

<summary>EMIA-41 Municipal Trails/Walkways Destroyed</summary>

In **Recovery>** **Infrastructure:**

```sparql
is:active 
InfrastructureType:trails-walkway 
DamageLevel:4
```

</details>

<details>

<summary>EMIA-42 Municipal Roads Damaged (distance)</summary>

See EMIA-38

</details>

<details>

<summary>EMIA-43 Municipal Roads Destroyed (distance)</summary>

See EMIA-39

</details>

<details>

<summary>EMIA-44 Municipal Trails/Walkways Damaged (distance)</summary>

See EMIA-40

</details>

<details>

<summary>EMIA-45 Municipal Trails/Walkways Destroyed (distance)</summary>

See EMIA-41

</details>

### Residential queries

<details>

<summary>EMIA-77 Primary Private Residences (Damaged, habitable)</summary>

In **Recovery > Private Assets:**

```sparql
is:active 
BuildingDamage:[1,3,5] 
PrimaryPlaceOfResidence:Yes 
RelatedCase:(is:active)
```

</details>

<details>

<summary>EMIA-78 Primary Private Residences (Damaged, uninhabitable)</summary>

In **Recovery > Private Assets:**

```sparql
is:active 
BuildingDamage:[2,3,5] 
PrimaryPlaceOfResidence:Yes 
RelatedCase:(is:active)
```

</details>

<details>

<summary>EMIA-79 Primary Private Residences (Destroyed)</summary>

In **Recovery > Private Assets:**

```sparql
is:active 
BuildingDamage:4 
PrimaryPlaceOfResidence:Yes 
RelatedCase:(is:active)
```

</details>

<details>

<summary>EMIA-80 Non-Primary Private Residences (Damaged, habitable)</summary>

In **Recovery > Private Assets:**

```sparql
is:active 
PrimaryPlaceOfResidence:No 
BuildingCategory:dwelling 
BuildingDamage:[1,3,5] 
RelatedCase:(is:active)
```

</details>

<details>

<summary>EMIA-81 Non-Primary Private Residences (Destroyed)</summary>

In **Recovery > Private Assets:**

```sparql
is:active 
PrimaryPlaceOfResidence:No 
BuildingCategory:dwelling 
BuildingDamage:4 
RelatedCase:(is:active)
```

</details>

<details>

<summary>EMIA-82 Non-Prim Private Residences (Damaged, uninhabitable)</summary>

In **Recovery > Private Assets:**

```sparql
is:active 
PrimaryPlaceOfResidence:No 
BuildingCategory:dwelling 
BuildingDamage:[2,3,5] 
RelatedCase:(is:active)
```

</details>
