def match_in_dat(query, target):
    """
    Check if given query is matched in target object data.

    :param query: query to match.
    :param target: object to match query.
    :return: bool (True if matched, else False)
    """
    intersection = set(query.items()).intersection(set(target.items()))
    intersection = dict(intersection)
    return intersection == query