Query server

Then as per above use

    if query_type in ['sample', 'mixed']: