Use query_resources to determine the restype titles