In Prolog,
Write the following statement as prolog clauses (one fact andone rule):
“weather is hot. if weather is hot, everyone like it.”
So, all following queries will return true:
likes (me, weather).
likes (jane, weather).
likes (john, weather).
% etc.
Answer