class_docstr: Transforms the input sentence by adding a subordinate clause from WikiData.
  
  Example::
      original: "And it left mixed signals for London."
      transformed: "And it left mixed signals for London, which is a capital
          and largest city of the United Kingdom."
class_docstr_tok: ["Transforms","the","input","sentence","by","adding","a","subordinate","clause","from","WikiData",".","Example",":",":","original",":","``","And","it","left","mixed","signals","for","London",".","''","transformed",":","``","And","it","left","mixed","signals","for","London",",","which","is","a","capital","and","largest","city","of","the","United","Kingdom",".","''"]
docstr: Generate a subordinate clause for the given query.
  
  :param str query: A list of words in the entity,
      which is joined by '%20'.
  :return: The subordinate clause generated.
docstr_tok: ["Generate","a","subordinate","clause","for","the","given","query",".",":","param","str","query",":","A","list","of","words","in","the","entity",",","which","is","joined","by","'","%","20","'",".",":","return",":","The","subordinate","clause","generated","."]
code: def get_clause(self, query):
      r"""
      Generate a subordinate clause for the given query.
  
      :param str query: A list of words in the entity,
          which is joined by '%20'.
      :return: The subordinate clause generated.
  
      """
      searched_list = self.search_list(query)
      for entity_info in searched_list:
          clause_add = self.clause_generate(entity_info["id"])
          if clause_add:
              return clause_add
  
file_path: textflint/textflint/generation/transformation/DP/add_sub_tree.py
imports: import json
  import random
  import urllib.request
  from wikidata.client import Client
  from wikidata.entity import Entity, EntityId
  from ..transformation import Transformation
  from ....common.utils.error import FlintError
  from ....common.settings import WIKIDATA_STATEMENTS, CLAUSE_HEAD, WIKIDATA_INSTANCE
label_desc: Use image node_id 5 for calling the AddSubTree obj's underlying member method code with example usage: obj.get_clause(query) and returns: clause_add