public static function query($terms)
    {
        return 'query='.urlencode(json_encode(array_map(function ($input, $field) {
            return [$field, '=', $input];
        }, $terms, array_keys($terms))));
    }