Finished the flow of query execution. Added a test file, but it is not yet working.