Add query definition reader