simple example please, facts and query in one file

Patrick <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Hi Everyone

Sorry to ask this....

I am studying and making progress but I can't figure out the simplest thing.

I have been able to consult little database files and query but I don't 
know how to list facts and query against them in the same file.

Could someone post a little example?

Sorry to bother everyone with this stupidity.

-Patrick
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.