The FIA query code and required tables

At the moment all the values are included in to the code, later it will be amended to be input values.