SlideShare a Scribd company logo
1 of 2
Download to read offline
% Facts: genealogy of Jesus
father(abraham, isaac).
father(isaac, jacob).
father(jacob, judah).
father(judah, perez).
father(perez, hezron).
father(hezron, ram).
father(ram, amminadab).
father(amminadab, nahshon).
father(nahshon, salmon).
father(salmon, boaz).
father(boaz, obed).
father(obed, jesse).
father(jesse, david).
father(david, solomon).
father(solomon, rehoboam).
father(rehoboam, abijah).
father(abijah, asa).
father(asa, jehoshaphat).
father(jehoshaphat, joram).
father(joram, uzziah).
father(uzziah, jotham).
father(jotham, ahaz).
father(ahaz, hezekiah).
father(hezekiah, manasseh).
father(manasseh, amon).
father(amon, josiah).
father(josiah, jeconiah).
father(jeconiah, shealtiel).
father(shealtiel, zerubbabel).
father(zerubbabel, abihud).
father(abihud, eliakim).
father(eliakim, azor).
father(azor, zadok).
father(zadok, achim).
father(achim, eliud).
father(eliud, eleazar).
father(eleazar, matthan).
father(matthan, jacob).
father(jacob, joseph).
father(joseph, jesus).
% Rules: genealogical relations
mother(X, Y) :- father(Z, Y), wife(X, Z).
grandfather(X, Y) :- father(X, Z), father(Z, Y).
son(X, Y) :- father(Y, X).
sibling(X, Y) :- father(Z, X), father(Z, Y), X = Y.
male(X) :- father(X, _).
female(X) :- mother(X, _).
% Queries
?- father(X, jesus). % X = joseph
?- son(X, jesus). % X =
?- grandfather(X, jesus). % X = matthan
?- mother(X, jesus). % X = mary
?- sibling(X, Y). % lists all pairs of siblings
?- male(X). % lists all men
?- female(X). % lists all women
can someone take this prolog code and make the output look like: joe is the father of bill
instead of the X's and Y's?
or let me know if it even is possible , thanks!

More Related Content

More from aarowanatexs

The following information pertains to the month of August- As part of (3).pdf
The following information pertains to the month of August- As part of (3).pdfThe following information pertains to the month of August- As part of (3).pdf
The following information pertains to the month of August- As part of (3).pdfaarowanatexs
 
Show that E-Y--E-Y^-.pdf
Show that E-Y--E-Y^-.pdfShow that E-Y--E-Y^-.pdf
Show that E-Y--E-Y^-.pdfaarowanatexs
 
Question -#3- 10 points Teton County in Wyoming- Fairfield County in C.pdf
Question -#3- 10 points Teton County in Wyoming- Fairfield County in C.pdfQuestion -#3- 10 points Teton County in Wyoming- Fairfield County in C.pdf
Question -#3- 10 points Teton County in Wyoming- Fairfield County in C.pdfaarowanatexs
 
Q22- A researcher analyzes the effects of a particular disease that af.pdf
Q22- A researcher analyzes the effects of a particular disease that af.pdfQ22- A researcher analyzes the effects of a particular disease that af.pdf
Q22- A researcher analyzes the effects of a particular disease that af.pdfaarowanatexs
 
Progress Report- Making Headway Toward Your Educational Goal You made.pdf
Progress Report- Making Headway Toward Your Educational Goal You made.pdfProgress Report- Making Headway Toward Your Educational Goal You made.pdf
Progress Report- Making Headway Toward Your Educational Goal You made.pdfaarowanatexs
 
Part 1- 50 Points (Design 20-Code 20-Comments 10) Directions- Design a.pdf
Part 1- 50 Points (Design 20-Code 20-Comments 10) Directions- Design a.pdfPart 1- 50 Points (Design 20-Code 20-Comments 10) Directions- Design a.pdf
Part 1- 50 Points (Design 20-Code 20-Comments 10) Directions- Design a.pdfaarowanatexs
 
Correlation coefficients Using the -politics college N389- sav- data s.pdf
Correlation coefficients Using the -politics college N389- sav- data s.pdfCorrelation coefficients Using the -politics college N389- sav- data s.pdf
Correlation coefficients Using the -politics college N389- sav- data s.pdfaarowanatexs
 
P&G employs individuals representing 140 different nationalities- The.pdf
P&G employs individuals representing 140 different nationalities- The.pdfP&G employs individuals representing 140 different nationalities- The.pdf
P&G employs individuals representing 140 different nationalities- The.pdfaarowanatexs
 
Human sperm swim vigorously- Use the simulation to compare the size of.pdf
Human sperm swim vigorously- Use the simulation to compare the size of.pdfHuman sperm swim vigorously- Use the simulation to compare the size of.pdf
Human sperm swim vigorously- Use the simulation to compare the size of.pdfaarowanatexs
 
How many slogans would you like- 4 Hulk- Smashing the future with inte.pdf
How many slogans would you like- 4 Hulk- Smashing the future with inte.pdfHow many slogans would you like- 4 Hulk- Smashing the future with inte.pdf
How many slogans would you like- 4 Hulk- Smashing the future with inte.pdfaarowanatexs
 
ANSWER ALL QUESTIONS GROUP NO- STUDENT ID STUDENT FUPLL NAME QUESTUON.pdf
ANSWER ALL QUESTIONS GROUP NO- STUDENT ID STUDENT FUPLL NAME QUESTUON.pdfANSWER ALL QUESTIONS GROUP NO- STUDENT ID STUDENT FUPLL NAME QUESTUON.pdf
ANSWER ALL QUESTIONS GROUP NO- STUDENT ID STUDENT FUPLL NAME QUESTUON.pdfaarowanatexs
 
Describe virtual private networks and discuss the technology that enab.pdf
Describe virtual private networks and discuss the technology that enab.pdfDescribe virtual private networks and discuss the technology that enab.pdf
Describe virtual private networks and discuss the technology that enab.pdfaarowanatexs
 
Dt - tt Dt-1 PBt + SFt +t musing the change in the debt ratio from 20.pdf
Dt - tt Dt-1  PBt + SFt +t musing the change in the debt ratio from 20.pdfDt - tt Dt-1  PBt + SFt +t musing the change in the debt ratio from 20.pdf
Dt - tt Dt-1 PBt + SFt +t musing the change in the debt ratio from 20.pdfaarowanatexs
 
3- Rubisco is the most abundant protein on earth and is responsible fo.pdf
3- Rubisco is the most abundant protein on earth and is responsible fo.pdf3- Rubisco is the most abundant protein on earth and is responsible fo.pdf
3- Rubisco is the most abundant protein on earth and is responsible fo.pdfaarowanatexs
 

More from aarowanatexs (14)

The following information pertains to the month of August- As part of (3).pdf
The following information pertains to the month of August- As part of (3).pdfThe following information pertains to the month of August- As part of (3).pdf
The following information pertains to the month of August- As part of (3).pdf
 
Show that E-Y--E-Y^-.pdf
Show that E-Y--E-Y^-.pdfShow that E-Y--E-Y^-.pdf
Show that E-Y--E-Y^-.pdf
 
Question -#3- 10 points Teton County in Wyoming- Fairfield County in C.pdf
Question -#3- 10 points Teton County in Wyoming- Fairfield County in C.pdfQuestion -#3- 10 points Teton County in Wyoming- Fairfield County in C.pdf
Question -#3- 10 points Teton County in Wyoming- Fairfield County in C.pdf
 
Q22- A researcher analyzes the effects of a particular disease that af.pdf
Q22- A researcher analyzes the effects of a particular disease that af.pdfQ22- A researcher analyzes the effects of a particular disease that af.pdf
Q22- A researcher analyzes the effects of a particular disease that af.pdf
 
Progress Report- Making Headway Toward Your Educational Goal You made.pdf
Progress Report- Making Headway Toward Your Educational Goal You made.pdfProgress Report- Making Headway Toward Your Educational Goal You made.pdf
Progress Report- Making Headway Toward Your Educational Goal You made.pdf
 
Part 1- 50 Points (Design 20-Code 20-Comments 10) Directions- Design a.pdf
Part 1- 50 Points (Design 20-Code 20-Comments 10) Directions- Design a.pdfPart 1- 50 Points (Design 20-Code 20-Comments 10) Directions- Design a.pdf
Part 1- 50 Points (Design 20-Code 20-Comments 10) Directions- Design a.pdf
 
Correlation coefficients Using the -politics college N389- sav- data s.pdf
Correlation coefficients Using the -politics college N389- sav- data s.pdfCorrelation coefficients Using the -politics college N389- sav- data s.pdf
Correlation coefficients Using the -politics college N389- sav- data s.pdf
 
P&G employs individuals representing 140 different nationalities- The.pdf
P&G employs individuals representing 140 different nationalities- The.pdfP&G employs individuals representing 140 different nationalities- The.pdf
P&G employs individuals representing 140 different nationalities- The.pdf
 
Human sperm swim vigorously- Use the simulation to compare the size of.pdf
Human sperm swim vigorously- Use the simulation to compare the size of.pdfHuman sperm swim vigorously- Use the simulation to compare the size of.pdf
Human sperm swim vigorously- Use the simulation to compare the size of.pdf
 
How many slogans would you like- 4 Hulk- Smashing the future with inte.pdf
How many slogans would you like- 4 Hulk- Smashing the future with inte.pdfHow many slogans would you like- 4 Hulk- Smashing the future with inte.pdf
How many slogans would you like- 4 Hulk- Smashing the future with inte.pdf
 
ANSWER ALL QUESTIONS GROUP NO- STUDENT ID STUDENT FUPLL NAME QUESTUON.pdf
ANSWER ALL QUESTIONS GROUP NO- STUDENT ID STUDENT FUPLL NAME QUESTUON.pdfANSWER ALL QUESTIONS GROUP NO- STUDENT ID STUDENT FUPLL NAME QUESTUON.pdf
ANSWER ALL QUESTIONS GROUP NO- STUDENT ID STUDENT FUPLL NAME QUESTUON.pdf
 
Describe virtual private networks and discuss the technology that enab.pdf
Describe virtual private networks and discuss the technology that enab.pdfDescribe virtual private networks and discuss the technology that enab.pdf
Describe virtual private networks and discuss the technology that enab.pdf
 
Dt - tt Dt-1 PBt + SFt +t musing the change in the debt ratio from 20.pdf
Dt - tt Dt-1  PBt + SFt +t musing the change in the debt ratio from 20.pdfDt - tt Dt-1  PBt + SFt +t musing the change in the debt ratio from 20.pdf
Dt - tt Dt-1 PBt + SFt +t musing the change in the debt ratio from 20.pdf
 
3- Rubisco is the most abundant protein on earth and is responsible fo.pdf
3- Rubisco is the most abundant protein on earth and is responsible fo.pdf3- Rubisco is the most abundant protein on earth and is responsible fo.pdf
3- Rubisco is the most abundant protein on earth and is responsible fo.pdf
 

Recently uploaded

Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Celine George
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptxPoojaSen20
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptxmanishaJyala2
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya - UEM Kolkata Quiz Club
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Celine George
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryEugene Lysak
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticspragatimahajan3
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45MysoreMuleSoftMeetup
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17Celine George
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxneillewis46
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Mark Carrigan
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...Nguyen Thanh Tu Collection
 
How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryCeline George
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽中 央社
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfmstarkes24
 

Recently uploaded (20)

Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
How to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 InventoryHow to Manage Closest Location in Odoo 17 Inventory
How to Manage Closest Location in Odoo 17 Inventory
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 

- Facts- genealogy of Jesus father(abraham- isaac)- father(isaac- jaco.pdf

  • 1. % Facts: genealogy of Jesus father(abraham, isaac). father(isaac, jacob). father(jacob, judah). father(judah, perez). father(perez, hezron). father(hezron, ram). father(ram, amminadab). father(amminadab, nahshon). father(nahshon, salmon). father(salmon, boaz). father(boaz, obed). father(obed, jesse). father(jesse, david). father(david, solomon). father(solomon, rehoboam). father(rehoboam, abijah). father(abijah, asa). father(asa, jehoshaphat). father(jehoshaphat, joram). father(joram, uzziah). father(uzziah, jotham). father(jotham, ahaz). father(ahaz, hezekiah). father(hezekiah, manasseh). father(manasseh, amon). father(amon, josiah). father(josiah, jeconiah). father(jeconiah, shealtiel). father(shealtiel, zerubbabel). father(zerubbabel, abihud). father(abihud, eliakim). father(eliakim, azor). father(azor, zadok). father(zadok, achim). father(achim, eliud). father(eliud, eleazar). father(eleazar, matthan). father(matthan, jacob). father(jacob, joseph). father(joseph, jesus). % Rules: genealogical relations
  • 2. mother(X, Y) :- father(Z, Y), wife(X, Z). grandfather(X, Y) :- father(X, Z), father(Z, Y). son(X, Y) :- father(Y, X). sibling(X, Y) :- father(Z, X), father(Z, Y), X = Y. male(X) :- father(X, _). female(X) :- mother(X, _). % Queries ?- father(X, jesus). % X = joseph ?- son(X, jesus). % X = ?- grandfather(X, jesus). % X = matthan ?- mother(X, jesus). % X = mary ?- sibling(X, Y). % lists all pairs of siblings ?- male(X). % lists all men ?- female(X). % lists all women can someone take this prolog code and make the output look like: joe is the father of bill instead of the X's and Y's? or let me know if it even is possible , thanks!