<Table> <Tr> <Th_colspan="2"> "If I Were a Boy" </Th> </Tr> <Tr> <Td_colspan="2"> </Td> </Tr> <Tr> <Th_colspan="2"> Single by Beyoncé </Th> </Tr> <Tr> <Th_colspan="2"> from the album I Am...Sasha Fierce </Th> </Tr> <Tr> <Th> A-side </Th> <Td> "Single Ladies (Put a Ring on It)" </Td> </Tr> <Tr> <Th> Released </Th> <Td> October 8, 2008 (2008 - 10 - 08) </Td> </Tr> <Tr> <Th> Format </Th> <Td> <Ul> <Li> CD </Li> <Li> digital download </Li> </Ul> </Td> </Tr> <Tr> <Th> Recorded </Th> <Td> 2008; Roc the Mic Studios, Strawberrybee Productions, GAD Studios </Td> </Tr> <Tr> <Th> Genre </Th> <Td> Pop </Td> </Tr> <Tr> <Th> Length </Th> <Td> 4: 09 </Td> </Tr> <Tr> <Th> Label </Th> <Td> Columbia </Td> </Tr> <Tr> <Th> Songwriter (s) </Th> <Td> <Ul> <Li> BC Jean </Li> <Li> Toby Gad </Li> </Ul> </Td> </Tr> <Tr> <Th> Producer (s) </Th> <Td> <Ul> <Li> Toby Gad </Li> <Li> Beyoncé Knowles </Li> </Ul> </Td> </Tr> <Tr> <Th_colspan="2"> Beyoncé singles chronology </Th> </Tr> <Tr> <Td_colspan="2"> <Table> <Tr> <Td> "Love in This Club Part II" (2008) </Td> <Td> "If I Were a Boy" (2008) </Td> <Td> "Single Ladies (Put a Ring on It)" (2008) </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td_colspan="2"> <Table> <Tr> <Td> "Love in This Club Part II" (2008) </Td> <Td> "If I Were a Boy" (2008) </Td> <Td> "Single Ladies (Put a Ring on It)" (2008) </Td> </Tr> </Table> </Td> </Tr> </Table> <Tr> <Th_colspan="2"> "If I Were a Boy" </Th> </Tr>

Who wrote beyonce song if i were a boy