add query to diff