in which of the parties that have governed over frederick , does shirley temple belong too ?
SELECT DISTINCT var_uri where brack_open dbr_Shirley_Temple dbo_party var_uri sep_dot dbr_Frederick,_Maryland dbo_leaderName var_uri brack_close