# Show HN: RelativeDB – OSS query engine for relational foundation models

> Source: <https://github.com/RelativeDB/RelQL>
> Published: 2026-07-27 00:32:52+00:00

Structured data could be the next big frontier for foundation models.

RelativeDB is an open source query engine built around the Relational Transformer architecture, developed by Stanford’s Tabular and Relational (STAR) Project. These models can adapt to new databases and prediction tasks using relatively little labeled context.

With some of my experiments, the results have been remarkable. On some tasks, RelativeDB can outperform XGBoost with only a small amount of relational context and no manual feature engineering.

So RelativeDB turns relational foundation models into something you can query (like this customer churn query):

``` PREDICT NOT EXISTS(orders.*) OVER (90 DAYS FOLLOWING) FROM customers ```

The engine finds the relevant context across the related tables and returns a prediction. The goal is to make questions like churn, demand forecasting, fraud detection, and recommendations feel more like database queries than bespoke ML projects.

Longer term, I think the optimizer should be able to choose between relational foundation models, fine-tuned models, and conventional approaches such as XGBoost depending on the query (how much graph-like context is needed vs just tabular features). Bridging ML to LLMs in a sane way.

I think there are markets for quantitive finance and utilizing emerging context graphs.

The project is early, and I would especially appreciate feedback on the query language and execution model.

RelativeDB: [https://github.com/RelativeDB/RelQL](https://github.com/RelativeDB/RelQL)
Stanford RT-J: [https://star-project.stanford.edu/rt-j/](https://star-project.stanford.edu/rt-j/)

Comments URL: [https://news.ycombinator.com/item?id=49063842](https://news.ycombinator.com/item?id=49063842)

Points: 2

# Comments: 0
