Creating nodes from a distinct query

Try this:

with collect (distinct b.Label) as Templates
FOREACH (plates in Templates |
	merge (a:LibNode {Label:plates})
)