Queensland Consolidated Acts(1) A person who does, or attempts to do, any of the following commits a crime--
(a) sodomises a person under 18 years;
(b) permits a male person under 18 years to sodomise him or her;
(c) sodomises a person with an impairment of the mind;
(d) permits a person with an impairment of the mind to sodomise him or her.
Maximum penalty--14 years imprisonment.
(2) For an offence other than an attempt, the offender is liable to imprisonment for life if the offence is committed in respect of--
(a) a child under 12 years; or
(b) a child, or a person with an impairment of the mind, who is to the knowledge of the offender--
(i) his or her lineal descendant; or
(ii) under his or her guardianship or care.
(3) For an offence defined in subsection (1)(a) or (b) alleged to have been committed in respect of a child who is 12 years or more, it is a defence to prove that the accused person believed, on reasonable grounds, that the person in respect of whom the offence was committed was 18 years or more.
(4) It is a defence to a charge of an offence defined in subsection (1)(c) or (d) to prove--
(a) that the accused person believed on reasonable grounds that the person was not a person with an impairment of the mind; or
(b) that the act that was the offence did not, in the circumstances, constitute sexual exploitation of the person with an impairment of the mind.