InverSQL: Build SQL interactively in inverse
Details
- External ID
- 49612826
- Source
- HN
- Company
- ā
- Product
- InverSQL: Build SQL interactively in inverse
- Website domain
- github.com
- Launched
- Sept. 8, 2026
- Cohort
- ā
- Upvotes
- 5
- Upvotes percentile
- 0.12998405103668262
- Tags
- ā
- Fetched at
- Sept. 12, 2026, 5:46 p.m.
- Updated at
- Sept. 12, 2026, 5:46 p.m.
Description
Since both ML [1] and SQL can be used to select cells from a table, can I convert one to the other?This allows creating SQL in a smart way (select cells -> build SQL, hence the name inverse SQL).Yes.Create a decision tree (an ML predictor) from the cells selected Formulate it as SAT Simplify it Convert to SQL.Demo on streamlit.Love to hear your thoughts and suggestions on this![1]: ML = machine learning, here Iām using decision trees
Enrichment
- Theme
- database infrastructure and developer tools
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- AI feature
- Project type
- Hobby / open-source project
- Normalized one-liner
- interactive sql builder
- Manually corrected
- False
Could you build this?
Partial While an interactive spreadsheet UI can be vibe-coded, synthesizing relational SQL queries from cell selections using decision trees and SAT solvers requires non-trivial algorithmic formulation.
What it would actually take: The system requires a table UI (React/Canvas) connected to a backend that maps highlighted cells to positive/negative examples, trains a decision tree classifier, encodes the decision boundaries into Boolean satisfiability (SAT) clauses via Z3 or MiniSat, and simplifies them into relational algebra / SQL WHERE clauses. The bottleneck is program synthesis and formal verification to guarantee that generated queries generalize accurately without over-fitting. Requires knowledge of automated theorem proving, SAT/SMT solvers, and database query optimization.
Discussion
No comments on this launch.
Competitors
Other products that read as similar to this one — 57 launches clear the similarity bar, closest 8 shown.
Attention rank: #49 of 58 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 306 days after the earliest competitor.
- Xsql · hn · 2025-12-16 · 11 upvotes · similarity 0.44
- I implemented a neural network in SQL · hn · 2026-07-13 · 121 upvotes · similarity 0.42
- SQLazy · ph · 2026-09-21 · 2 upvotes · similarity 0.41
- Xsql · hn · 2025-12-19 · 5 upvotes · similarity 0.41
- I'm not a PostgREST fan this is why I'm building an alternative · hn · 2026-09-09 · 5 upvotes · similarity 0.40
- DDL to Data · hn · 2026-01-06 · 55 upvotes · similarity 0.38
- uplpgsql · hn · 2026-07-16 · 10 upvotes · similarity 0.38
- Prela · hn · 2026-06-15 · 6 upvotes · similarity 0.38
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.