Nested Variable with Flux Query

Hi everyone, i just created a variable which lets me chose my entrys inside my measurement column with:

import "influxdata/influxdb/schema"
schema.measurements(bucket: "ExampleBucket")

The name of this variable is “Projects”. I now want to select entrys from one key that are inside of this “Projects” variable. How can i achieve that. The syntax with SQL would be something like that:

select distinct Entry from KeyXY from ExampleBucket where Project = $Projects;