def adj_or_adj(q, a):
    """
    Manipulation rule for 'is the noun adj or adj' QA pairs:
        is the smartphone new or old? new.
        -> the smartphone is new. / the smartphone is not new.
    """
    aux, det, noun, adj1, conj, adj2 = q.split()
    common = set([adj1, adj2]).intersection(set(a.split()))
    if conj == 'or':
        if common:
            adj = list(common)[0]
            entailment = f'{det} {noun} {aux} {adj}.'
            contradiction = f'{det} {noun} {aux} not {adj}.'
            return (entailment, contradiction), None
        return []
    return []