Add major and minor version into query