rentruewang/inversql
InverSQL
rentruewang/inversql
InverSQL
Generates SQL queries from user-selected cells in a CSV using decision trees and boolean logic simplification.
Visit project- First shared
- Sep 8, 2026
- HN activity
- 60
Show HN@renchuwSep 8, 2026
Show HN: InverSQL: Build SQL interactively in inverse
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
Community