<Table> <Tr> <Th_colspan="2"> "Baby, You're a Rich Man" </Th> </Tr> <Tr> <Td_colspan="2"> US picture sleeve (reverse) </Td> </Tr> <Tr> <Th_colspan="2"> Single by the Beatles </Th> </Tr> <Tr> <Th> A-side </Th> <Td> "All You Need Is Love" </Td> </Tr> <Tr> <Th> Released </Th> <Td> 7 July 1967 </Td> </Tr> <Tr> <Th> Format </Th> <Td> 7 - inch record </Td> </Tr> <Tr> <Th> Recorded </Th> <Td> 11 May 1967 Olympic Sound Studios, London </Td> </Tr> <Tr> <Th> Genre </Th> <Td> Psychedelic pop, psychedelic rock </Td> </Tr> <Tr> <Th> Length </Th> <Td> 3: 03 </Td> </Tr> <Tr> <Th> Label </Th> <Td> Parlophone, Capitol </Td> </Tr> <Tr> <Th> Songwriter (s) </Th> <Td> Lennon--McCartney </Td> </Tr> <Tr> <Th> Producer (s) </Th> <Td> George Martin </Td> </Tr> <Tr> <Td_colspan="2"> </Td> </Tr> <Tr> <Th_colspan="2"> The Beatles singles chronology </Th> </Tr> <Tr> <Td_colspan="2"> <Table> <Tr> <Td> "Strawberry Fields Forever" / "Penny Lane" (1967) Strawberry Fields Forever Penny Lane 1967 </Td> <Td> "All You Need Is Love" / "Baby, You're a Rich Man" (1967) All You Need Is Love Baby, You're a Rich Man1967 </Td> <Td> "Hello, Goodbye" (1967) Hello, Goodbye 1967 </Td> </Tr> </Table> </Td> </Tr> <Tr> <Td_colspan="2"> </Td> </Tr> </Table> <Tr> <Th_colspan="2"> "Baby, You're a Rich Man" </Th> </Tr>

Who wrote baby you're a rich man