Back to browse
GitHub Repository

Create SQL that match your selection (with explainable AI), not the other way around

15 starsPython

Create SQL from taking apart decision trees

by renchuw·Jun 4, 2026·2 points·0 comments

AI Analysis

●●SolidBig BrainWizardry

Generates SQL by fitting decision trees to your CSV selections—clever inversion.

Strengths
  • Novel approach using scikit-learn decision trees to reverse-engineer SQL logic
  • Sympy logic simplification produces readable, optimized WHERE clauses
Weaknesses
  • Text-to-SQL is crowded category with established AI solutions
  • Overfitting approach may not generalize well to complex queries
Target Audience

Data analysts who want SQL generated from example selections

Similar To

Text-to-SQL tools · Vanna AI · SQL AI assistants

Post Description

I recently created a tool that creates SQL matching your cell selection, by breaking down decision trees and optimize the decision paths.

Love to hear your thoughts!

Similar Projects