Unpack query into get_list