The first line contains of a positive integer $T(1\leq T\leq 500)$, representing $T$ test cases.
in each test case, the first line contains three positive integers $n,m,q(1\leq n,m,q\leq 10^5)$,representing the number of nodes, power stations and plans.
Each of the following $n-1$ lines contains two positive integers $u_i,v_i$, representing a road between $u_i$ and $v_i$. It guarantees the input map is a tree.
Each of the following $q$ lines contains three positive integers $x_i,y_i,p_i(1\leq x_i,y_i\leq n,1\leq p_i\leq 10^9)$. It describes the $i$-th plan.
Each of the following $m$ lines contains two positive integers $c_i,d_i(1\leq c_i\leq n,1\leq d_i\leq 10^9)$. It describes the $i$-th power-stations.
There are at most $500$ test cases and at most $12$ test cases with $n+m+q>5000$