# Example Scripts These scripts can be executed with: ```bash make script SCRIPT=examples/scripts/ancestor.ech cargo run -- script examples/scripts/ancestor.ech ``` Available examples: - `ancestor.ech`: transitive closure over `Parent/2` - `employee_departments.ech`: existential rule that creates labeled nulls - `negation.ech`: stratified negation-as-failure with `NOT` in rule bodies - `same_team.ech`: conjunctive query with a self-join - `skolem_chase.ech`: Skolem chase with deterministic labeled nulls - `sql_aggregate.ech`: `GROUP BY` with `COUNT`, `SUM`, `MIN`, `MAX`, and `AVG` - `sql_basic.ech`: named-column filtering in the SQL frontend - `sql_filter_ops.ech`: inequality, `OR`, `LIMIT`, and integer literals - `sql_join.ech`: multi-table SQL join over predicate-backed tables - `sql_self_join.ech`: self-join with SQL table aliases - `sql_order_by.ech`: ordered SQL output with `ORDER BY`