match queries with dashes to values with dashes