Create getQueryType and make skeleton for different query type functions