Move stats between sites based on dimension

Hey,

Based on this question about moving data I want to do something similar but I want to copy only part of data, based on what value is in dimension for site. Is there a way to query those logs based on dimension value?