A SQL and R Synthesizer Using Query Reverse Engineering
Given a set of input-output examples (tables), SQUARES returns the desired query in R and in SQL. SQUARES is built on top of Trinity. Therefore, the same packages are required.
How to use:
using Jupyter Notebook:
jupyter notebook
using Google Colab:
using python3 directly:
python3 squaresEnumerator.py [tree|lines] [flags -h, ...] input.in
-d : debug info
Default: lines enumerator and without symmetry breaking
— Input Files (.in): Some examples can be found in tests-examples folder
— Files required to integrate SQUARES in Trinity:
Instalation: You can either use (1) anaconda or (2) python and R packages.
(1)
chmod +x config.sh
bash config.sh
conda activate squares
chmod +x config_squares.sh
bash config_squares.sh
every time before using SQUARES run:
```
conda activate squares
```
or
(2)
— Python packages (install using pip or conda):
— R packages (install using conda or R console):
References