After all sub-widget are generated, fill in the query as title.