Preliminary implementation of binding Variants to queries