artificial intelligent, prolog, ai, gprolog : no smoke without fire.

identify conclusion and condition from above statement for make prolog program.
in the answer, the conclusion is fire and condition is smoke.
 
but I don't how?

another possible answer, the conclusion is smoke and condition is fire.
please explain answer and which is possible from this two and how.