Basic implementation for converting sql queries is completed