The gender of God may be viewed as either a literal or an allegorical aspect of a deity who, in classical western philosophy, transcends bodily form. Polytheistic religions commonly attribute to each of the gods a gender, allowing each to interact with any of the others, and perhaps with humans, sexually. In most monotheistic religions, God has no counterpart with which to relate sexually. Thus, in classical western philosophy the gender of this one-and-only deity is most likely to be an analogical statement of how humans and God address, and relate to, each other. Namely, God is seen as begetter of the world and revelation which corresponds to the active (as opposed to the receptive) role in sexual intercourse.
Try to answer this question if possible (otherwise reply "unanswerable"): How is sex by God handled in a monotheistic religion?
God has no counterpart with which to relate sexually