thanks for the quick reply.
the reason is some of the results are calculated based on the selection results in the previous query. say for example, in the previous query, I selected the age of people, and now I want to categorize them so that if age >60 => senior, age < 20 => children, and otherwise adults and so on. the queries have to be separated for the sake of clarity.
could you help me with that? thanks!