def parse_query_result(columns, rows):
    """
    Parse the query results into a list of dict 
    
    Arguments:
        - `columns` (`list[dict]`): Returned by the SIEM. Exemple:: 
        
            [{'name': 'Alert.LastTime'}, {'name': 'Rule.msg'}, {'name': 'Alert.DstIP'}, {'name': 'Alert.IPSIDAlertID'}]

        - `rows` (`list[dict]`):  Returned by the SIEM. Exemple::

            [
                {'values': ['09/22/2020 15:51:14', 'Postfix Disconnect from host', '::', '144116287604260864|547123']},
                {'values': ['09/22/2020 15:51:14', 'Postfix Lost connection from host', '::', '144116287604260864|547122']}
            ]

    Returns :
        `list[dict]`

    Exemple::

        [
            {
                "Alert.LastTime":"09/22/2020 15:51:14",
                "Rule.msg":"Postfix Disconnect from host",
                "Alert.DstIP":"::",
                "Alert.IPSIDAlertID":"144116287604260864|547123"
            },
            {
                ...
            },
        ]

    """
    events = list()
    for row in rows:
        event = dict()
        for i in range(len(columns)):
            event.update({columns[i]["name"]: row["values"][i]})

        events.append(event)

    return events