SELECT d.idDocument FROM Document d,MotCle m,Refere r
    WHERE m.mot LIKE 'maths'
    AND m.idMotCle=r.idmot_c2
    AND r.idDocument_c3=d.idDocument
