Show variant depending on the query