getAllSampleIDs

It works!

If someone wants to make it work for numeric values feel free to do so!

i.e. if you want to get all sampleIDs from people who are of Age <=40