convert XML SQL to annotation