take post var as input for query analysis