Original version of, "If I Were A Boy", is written by BC Jean (Britney Carlson), 21 yo from S.Diego, singer/writer. BC Jean released the song with Toby Gad (German producer)in August, California. In meanwhile T.Gab "gave" away the song to Beyonce, who clime to be hers on the latest album.
The song is not written by Beyonce neither Toby Gad. Beyonce didn't had a BC Jean permission to released the song nor cover with the music video. However, B. got caught up into legal rights mess and had to go through all the aspects to gain these "rights", eventually buy a song from BC Jean and making a little changes.
Seems like T.Gab played them both...lol