# `relation` statement

The statement `relation <LABEL>` is used to identify the `<LABEL>` as a type of kind `relation`.

## [](#_defining_relations)Defining relations

The `relation` keyword can be used to define a type of kind `relation`.

```typeql
#!test[schema, fail_at=commit]
define relation parentship;
```

## [](#_matching_relations)Matching relations

The `relation` keyword can be used to match all types of kind `relation`.

```typeql
#!test[schema]
match relation $r;
```

[entity](../entity/index.md) [attribute](../attribute/index.md)

[Edit on GitHub](https://github.com/typedb/typedb-docs/edit/3.x-development/typeql-reference/modules/ROOT/pages/statements/relation.adoc) Edit this page on GitHub.