what is the job of the thomas megahy which is also the office of the pat the cope gallagher
SELECT DISTINCT var_uri where brack_open dbr_Thomas_Megahy dbo_occupation var_uri sep_dot dbr_Pat_%22the_Cope%22_Gallagher dbp_office var_uri brack_close