update Query string for inspection report