Require csv file
refactor the code for readability
Merge pull request #10 from bikashp/refactor_complex_query

Refactor complex query