Translate the following sentences into a Prolog program smart.pro:
Messi teaches Prolog language.
Prolog is a programming subject.
Nabil teaches Algebra.
Algebra is a Mathematics subject.
Everyone who teaches a programming subject is smart.
Consult the above program and query Prolog: "Who are smart"? Print screen and submit the output.
Please fix the following input errors: