return value from query result list