name the tv show whose cast member is naveen andrews and is related to once upon a time ?
SELECT DISTINCT var_uri where brack_open var_uri dbo_starring dbr_Naveen_Andrews sep_dot var_uri dbo_related dbr_Once_Upon_a_Time_ attr_open TV_series attr_close sep_dot var_uri a dbo_TelevisionShow brack_close