Graph or SQL, and when? Conclusion of Phase 1
OrgOS is a prototype of a system a company would build for itself. It tests one design question, a SQL store against a graph store for an AI agent over work data, scored by a frozen eval that checks citations. This page does not claim that a company wants it, and like the conclusion below, it names no winner.
1. What the frozen rule said
The rule, fixed before the full runs, tested each question type for a real gap between the stores. All three tests read "did not detect a gap":
| Type | Questions | Untied | Graph ahead | SQL ahead | p |
|---|---|---|---|---|---|
| aggregate | 7 | 1 | 1 | 0 | 1 |
| path_connection | 7 | 4 | 2 | 2 | 7/8 |
| mixed | 6 | 0 | 0 | 0 | 1 |
For none of the three question types could the test tell whether graph or SQL did better. It doesn't show they're the same either. Too few questions disagreed for the test to reach a conclusion.
| Type | Questions | Untied | Graph ahead | SQL ahead | p | Smallest p the test could give |
|---|---|---|---|---|---|---|
| aggregate | 7 | 1 | 1 | 0 | 1 | 1 |
| path_connection | 7 | 4 | 2 | 2 | 7/8 | 1/8 |
| mixed | 6 | 0 | 0 | 0 | 1 | 1 |
For none of the three question types could the test tell whether graph or SQL did better. It doesn't show they're the same either.
2. What I expected, and what happened
Runs correct with the reading note (runs with the right answer without it):
- aggregate: SQL 18/21 (18/21), graph 20/21 (18/21)
- path_connection: SQL 16/21 (11/21), graph 14/21 (10/21)
- mixed: SQL 18/18 (18/18), graph 18/18 (16/18)
Aggregates: I expected the stores to be fairly close, with SQL slightly ahead. The graph came out ahead by 1 question.
Paths: I expected the graph to be much better than SQL. SQL came out ahead, mostly because of one question (Q09).
Mixed: I expected a split. Both stores got 18 of 18.
In both stores, most failures were citation failures: the answer was right but the evidence wasn't (SQL 7 of 8 failed runs, graph 5 of 8).
| Type | Store | Correct with the note | Right answers without the note | Runs with a retry | Attempts timed out | Attempts at the row cap | Limit hit: requests | Limit hit: tokens | Limit hit: tool calls |
|---|---|---|---|---|---|---|---|---|---|
| aggregate | SQL | 18/21 | 18/21 | 3 | 0 | 0 | 0 | 0 | 0 |
| aggregate | Graph | 20/21 | 18/21 | 5 | 0 | 0 | 0 | 0 | 0 |
| path_connection | SQL | 16/21 | 11/21 | 10 | 0 | 0 | 0 | 0 | 0 |
| path_connection | Graph | 14/21 | 10/21 | 8 | 3 | 0 | 0 | 0 | 0 |
| mixed | SQL | 18/18 | 18/18 | 7 | 0 | 0 | 0 | 0 | 0 |
| mixed | Graph | 18/18 | 16/18 | 1 | 0 | 0 | 0 | 0 | 0 |
For none of the three question types could the test tell whether graph or SQL did better. It doesn't show they're the same either.
| Type | Store | With the note | Without the note | With the note, without Q03 and Q16 | Without the note, without Q03 and Q16 |
|---|---|---|---|---|---|
| aggregate | SQL | 21/21 | 18/21 | 18/18 | 15/18 |
| aggregate | Graph | 21/21 | 18/21 | 18/18 | 15/18 |
| path_connection | SQL | 20/21 | 11/21 | 20/21 | 11/21 |
| path_connection | Graph | 18/21 | 10/21 | 18/21 | 10/21 |
| mixed | SQL | 18/18 | 18/18 | 15/15 | 15/15 |
| mixed | Graph | 18/18 | 16/18 | 15/15 | 13/15 |
For none of the three question types could the test tell whether graph or SQL did better. It doesn't show they're the same either.
3. The questions where the stores differed
Graph minus SQL, correct runs out of 3: Q04 +2, Q08 +1, Q09 −3, Q13 +1, Q14 −1. All other questions tied.
On Q09, SQL is 3/3 against the graph's 0/3 with the note's either direction rule; without it, both are 0/3. Each graph run hit several errors and a query timeout before giving a wrong answer. The gold query for Q09 ran successfully.
| Question | Type | Graph minus SQL |
|---|---|---|
| Q01 | aggregate | 0 |
| Q02 | aggregate | 0 |
| Q03 | aggregate | 0 |
| Q04 | aggregate | +2 |
| Q05 | aggregate | 0 |
| Q06 | aggregate | 0 |
| Q07 | aggregate | 0 |
| Q08 | path_connection | +1 |
| Q09 | path_connection | −3 |
| Q10 | path_connection | 0 |
| Q11 | path_connection | 0 |
| Q12 | path_connection | 0 |
| Q13 | path_connection | +1 |
| Q14 | path_connection | −1 |
| Q15 | mixed | 0 |
| Q16 | mixed | 0 |
| Q17 | mixed | 0 |
| Q18 | mixed | 0 |
| Q19 | mixed | 0 |
| Q20 | mixed | 0 |
For none of the three question types could the test tell whether graph or SQL did better. It doesn't show they're the same either.
4. What the plain runs add
Without the reading note, right answers fell from 59 to 47 of 60 (SQL) and from 57 to 44 of 60 (graph), mostly on path questions (SQL 20 to 11, graph 18 to 10, of 21).
That tells me the stores are much more accurate with a note. Whether this can be a viable product without the note is a separate question.
| Scope | Store | With the note | Without the note |
|---|---|---|---|
| All questions | SQL | 59/60 | 47/60 |
| All questions | Graph | 57/60 | 44/60 |
| path_connection | SQL | 20/21 | 11/21 |
| path_connection | Graph | 18/21 | 10/21 |
For none of the three question types could the test tell whether graph or SQL did better. It doesn't show they're the same either.
G2-6 every scored run got the reading note, and plain runs are a lower bound that still carried shape, unit and hop limit (spec 0013 Follow-up). spec 0013 Follow-up
The findings report marks this drop as untested: no test was run on it.
5. How far this reaches
Limitations that matter most:
- The graph was built from tables designed in SQL, so it may be shaped like a database rather than a natural graph, which could put the graph at a disadvantage.
- Every scored run got the reading note. Real users don't write one, which is why I did the plain runs. Those still told the agent the answer's shape, unit and hop limit, which the scoring needed. A real person would give even less.
- The model ran on default settings with low thinking effort. More effort might change the results.
What a real deployment would need:
- This project loaded the data once; a real one would need constant updates.
- The same person appears under different names and emails in each system.
- Data sensitivity: a company could use its own model. Nothing in the project requires Claude, though the numbers would need re-measuring on that model.
- Not everyone may see every ticket, and the agent would have to respect that.
- Real company data isn't only in Jira: there's chat, docs, code and HR systems.
The findings report's full list of limitations, word for word with their sources, is in results/findings/report.json in the public code repository.
6. Graph or SQL, and when?
This conclusion is about this project only. The counts were close, and where one store led, it was by a single question. In the counts, the note made a bigger difference than the store did. Because too few questions disagreed, the test between the stores is inconclusive and could not pick a winner.
The design specs behind this work are private. When a limitation names a spec or a note, that document is not published here.