Parse query_info to a hash