PRQL is a modern language for transforming data — a simple, powerful, pipelined SQL replacement
PRQL is a modern language for transforming data — a simple, powerful, pipelined SQL replacement
Pipelined Relational Query Language, pronounced "Prequel".
PRQL is a modern language for transforming data — a simple, powerful, pipelined SQL replacement. Like SQL, it's readable, explicit and declarative. Unlike SQL, it forms a logical pipeline of transformations, and supports abstractions such as variables and functions. It can be used with any database that uses SQL, since it compiles to SQL.
PRQL can be as simple as:
from tracks
filter artist == "Bob Marley" # Each line transforms the previous result
aggregate { # `aggregate` reduces each column to a value
plays = sum plays,
longest = max length,
shortest = min length, # Trailing commas are allowed
}Here's a larger example of the language:
…For more on the language, more examples & comparisons with SQL, visit [prql-lang.org][prql website]. To experiment with PRQL in the browser, check out [PRQL Playground][prql playground].
PRQL is ready to use by the intrepid, either with our supported integrations, or within your own tools, using one of our supported language bindings.
PRQL still has some bugs and some missing features, and is probably only ready to be rolled out to non-technical teams for fairly simple queries.
Development has slowed as we decide how to work on a new resolver, which will let us squash many bugs and simplify our code a lot. It'll also let us scale the language without scaling the complexity of the compiler.
While we figure that out, we're also thinking about:
And:
window transform.We're increasingly open to contributions for bigger rewrites of the resolver given how bottlenecked we are on it. If you're interested in contributing, please reach out in an issue or on Discord.
To stay in touch with PRQL:
This repo is composed of:
It also contains our testing / CI infrastructure and development tools. Check out our [development docs][development] for more details.
Many thanks to those who've made our progress possible: [prql book]: https://prql-lang.org/book [prql website]: https://prql-lang.org [contributing]: https://prql-lang.org/book/project/contributing/ [development]: https://prql-lang.org/book/project/contributing/development.html [prql playground]: https://prql-lang.org/playground
review-runs-tracking: 2026-09
tend check: configuration drift on PRQL/prql
Non-ASCII text before an error panics prqlc or shifts the error label (byte vs char spans)
PRQL project structure
Add tests for syntax grammars
Dead code in PL IR: unused fold_func_param, write-only prev_columns, unreachable display_ids
Security problems with Rust crate `tiberius` (via connector_arrow) plus options for drop-in replacement
`text.contains` underspecified: Text or pattern?
Duplicate `module` definitions silently discard the earlier declaration
Join three tables on same column name