How to create a feed with only parent products?

Sometimes, we need a feed with only parent products. In that case, you need to use the following advanced commands:

rule noVariations(*)
mapAttribute price to g:price

This will remove the variation and include only parent products in a feed.