Skip to content

Latest commit

 

History

History
 
 

README.md

SQL Query Generator

Overview

This project is an SQL Query Generator that automates the creation of SQL queries in two main steps:

  1. SQL Specification Generation
  2. Query Generation from Specification

It is modular, with dedicated components for each part of an SQL query (e.g., GROUP BY, HAVING, WHERE, JOIN, LIMIT, ORDER BY, etc.).
For more details, see Query_generator.pdf.

Project Structure

Folders

Files

Sample Output Files

Usage

The project enables generation of SQL queries based on customizable specifications.
Each SQL clause is handled by a dedicated module, making the system extensible and easy to modify.

Getting Started

  1. Configure the Project

    • Edit config_file.json to set your desired parameters and options.
    • If you want to support set operations like UNION, UNION ALL, INTERSECT, EXCEPT, and MINUS, use config_file2.json as your configuration file.
  2. Install Dependencies and Run

    pip install .
    pip install -r requirements.txt
    cd query_generation
    python3 query_generator_from_specifications.py

Output

Generated queries and specifications are stored in the output folder.