As a little more complicated and general question, we could ask you in natural language:What does Bill like?In Prolog syntax, we ask Prolog:likes(bill, What).Prolog will return:What=cindyWhat=dogs2 Solutions
كمسألة قليلاً أكثر تعقيداً والعامة، يمكن أن نطلب منكم في اللغة الطبيعية: ماذا بيل مثل؟ نحن نطلب في بناء جملة Prolog Prolog: likes(bill, What). وسيعود Prolog: ما = سيندي الكلاب = ما هي الحلول 2