Typescript of queries and modifications to be made