SQL query with possible duplicate records

You must execute the code again to save those values in the database.
idnameattrstemplate_idlocation_idx
3Age{"age":33}21
4Name{"name":"jon"}21