Creating mergeDataQuery Groovy