ok...but I don't know that how many options that user will select at runtime...may be he can select 5 options out of 10, 10 out of 10 or any other number...

My question is how to run query when I am not sure about the number of options the user had selected.