anmolkabra's picture
Add dataset v0.5 splits
d2a0598 verified
raw
history blame
25 kB
:- dynamic term_expansion/2.
:- multifile term_expansion/2.
great_grandfather(X, Y) :-
great_grandparent(X, Y),
male(Y).
great_grandchild(X, Y) :-
great_grandparent(Y, X).
great_grandparent(X, Y) :-
grandparent(X, Z),
parent(Z, Y).
:- dynamic library_directory/1.
:- multifile library_directory/1.
great_grandmother(X, Y) :-
great_grandparent(X, Y),
female(Y).
:- dynamic goal_expansion/4.
:- multifile goal_expansion/4.
:- dynamic hobby/2.
hobby("Alethia Kidd", "amateur astronomy").
hobby("Alexis Kingsley", "crystals").
hobby("Ana Colin", "stamp collecting").
hobby("Antionette Song", "trainspotting").
hobby("Byron Song", "animation").
hobby("Carlos Baptiste", "esports").
hobby("Damon Song", "magnet fishing").
hobby("Danilo Colin", "billiards").
hobby("Deirdre Bivins", "iceboat racing").
hobby("Eddie Song", "aerospace").
hobby("Elisabeth Kingsley", "learning").
hobby("Felton Kidd", "meteorology").
hobby("Freda Song", "learning").
hobby("Gene Song", "trapshooting").
hobby("Genesis Colin", "shoes").
hobby("Geneva Song", "meteorology").
hobby("Gilbert Summerlin", "birdwatching").
hobby("Hannah Bivins", "mahjong").
hobby("Hyun Song", "horseback riding").
hobby("Idell Kidd", "birdwatching").
hobby("Isidro Kidd", "air sports").
hobby("Jamal Song", "publishing").
hobby("Jeana Song", "fossicking").
hobby("Jesse Kiel", "dolls").
hobby("Jolene Song", "web design").
hobby("Lance Kiel", "tourism").
hobby("Lester Bivins", "lapel pins").
hobby("Lynda Colin", "slot car").
hobby("Madaline Song", "audiophile").
hobby("Matilda Summerlin", "model united nations").
hobby("Maynard Song", "insect collecting").
hobby("Mckinley Colin", "baking").
hobby("Meghann Kidd", "mineral collecting").
hobby("Melvin Kidd", "stone collecting").
hobby("Nathaniel Song", "dandyism").
hobby("Nikki Kidd", "mineral collecting").
hobby("Nina Song", "digital hoarding").
hobby("Noreen Kingsley", "reading").
hobby("Ramona Colin", "pinball").
hobby("Romelia Song", "dog sport").
hobby("Seymour Song", "research").
hobby("Shelly Reece", "butterfly watching").
hobby("Sol Song", "research").
hobby("Stephan Kidd", "stamp collecting").
hobby("Tawana Summerlin", "jogging").
hobby("Thomasine Kidd", "rowing").
hobby("Tod Song", "sport stacking").
hobby("Twila Baptiste", "audiophile").
hobby("Winfred Baptiste", "seashell collecting").
hobby("Wyatt Reece", "skateboarding").
hobby("Yvette Song", "lomography").
granddaughter(X, Y) :-
grandchild(X, Y),
female(Y).
grandson(X, Y) :-
grandchild(X, Y),
male(Y).
:- dynamic job/2.
job("Alethia Kidd", "academic librarian").
job("Alexis Kingsley", "clinical research associate").
job("Ana Colin", "museum curator").
job("Antionette Song", "technical sales engineer").
job("Byron Song", "advertising account planner").
job("Carlos Baptiste", "toxicologist").
job("Damon Song", "education administrator").
job("Danilo Colin", "colour technologist").
job("Deirdre Bivins", "regulatory affairs officer").
job("Eddie Song", "gaffer").
job("Elisabeth Kingsley", "producer").
job("Felton Kidd", "newspaper journalist").
job("Freda Song", "social researcher").
job("Gene Song", "learning disability nurse").
job("Genesis Colin", "interior and spatial designer").
job("Geneva Song", "pharmacologist").
job("Gilbert Summerlin", "investment banker").
job("Hannah Bivins", "biomedical engineer").
job("Hyun Song", "marketing executive").
job("Idell Kidd", "chartered legal executive").
job("Isidro Kidd", "public relations officer").
job("Jamal Song", "nutritional therapist").
job("Jeana Song", "psychotherapist").
job("Jesse Kiel", "production designer").
job("Jolene Song", "phytotherapist").
job("Lance Kiel", "training and development officer").
job("Lester Bivins", "electronics engineer").
job("Lynda Colin", "contracting civil engineer").
job("Madaline Song", "air traffic controller").
job("Matilda Summerlin", "airline pilot").
job("Maynard Song", "IT consultant").
job("Mckinley Colin", "geophysical data processor").
job("Meghann Kidd", "careers information officer").
job("Melvin Kidd", "applications developer").
job("Nathaniel Song", "architectural technologist").
job("Nikki Kidd", "horticultural therapist").
job("Nina Song", "theme park manager").
job("Noreen Kingsley", "animal nutritionist").
job("Ramona Colin", "education administrator").
job("Romelia Song", "community development worker").
job("Seymour Song", "ophthalmologist").
job("Shelly Reece", "lobbyist").
job("Sol Song", "telecommunications researcher").
job("Stephan Kidd", "social worker").
job("Tawana Summerlin", "exercise physiologist").
job("Thomasine Kidd", "senior tax professional").
job("Tod Song", "environmental consultant").
job("Twila Baptiste", "soil scientist").
job("Winfred Baptiste", "interpreter").
job("Wyatt Reece", "professor emeritus").
job("Yvette Song", "archivist").
great_uncle(X, Y) :-
grandparent(X, A),
brother(A, Y).
:- dynamic save_all_clauses_to_file/1.
save_all_clauses_to_file(A) :-
open(A, write, B),
set_output(B),
listing,
close(B).
:- dynamic term_expansion/4.
:- multifile term_expansion/4.
grandchild(X, Y) :-
grandparent(Y, X).
:- dynamic dob/2.
dob("Alethia Kidd", "0873-07-19").
dob("Alexis Kingsley", "1041-10-02").
dob("Ana Colin", "0935-04-16").
dob("Antionette Song", "0991-05-04").
dob("Byron Song", "0908-09-14").
dob("Carlos Baptiste", "1044-12-31").
dob("Damon Song", "1021-10-02").
dob("Danilo Colin", "0909-08-09").
dob("Deirdre Bivins", "1021-12-21").
dob("Eddie Song", "0935-01-05").
dob("Elisabeth Kingsley", "1073-05-19").
dob("Felton Kidd", "0874-01-26").
dob("Freda Song", "0961-03-14").
dob("Gene Song", "1016-07-28").
dob("Genesis Colin", "0935-10-02").
dob("Geneva Song", "1017-08-26").
dob("Gilbert Summerlin", "0875-11-11").
dob("Hannah Bivins", "0991-10-05").
dob("Hyun Song", "0908-01-20").
dob("Idell Kidd", "0882-10-19").
dob("Isidro Kidd", "0900-05-25").
dob("Jamal Song", "0961-07-23").
dob("Jeana Song", "0965-11-11").
dob("Jesse Kiel", "0878-11-05").
dob("Jolene Song", "1015-01-07").
dob("Lance Kiel", "0879-03-08").
dob("Lester Bivins", "0991-03-23").
dob("Lynda Colin", "0941-08-16").
dob("Madaline Song", "0959-12-18").
dob("Matilda Summerlin", "0874-08-12").
dob("Maynard Song", "1023-05-28").
dob("Mckinley Colin", "0936-10-18").
dob("Meghann Kidd", "0929-12-23").
dob("Melvin Kidd", "0905-06-22").
dob("Nathaniel Song", "0985-07-27").
dob("Nikki Kidd", "0903-01-28").
dob("Nina Song", "0936-08-07").
dob("Noreen Kingsley", "1042-12-18").
dob("Ramona Colin", "0909-09-08").
dob("Romelia Song", "1020-12-02").
dob("Seymour Song", "0964-05-16").
dob("Shelly Reece", "0985-04-02").
dob("Sol Song", "0993-10-31").
dob("Stephan Kidd", "0852-06-22").
dob("Tawana Summerlin", "0904-08-01").
dob("Thomasine Kidd", "0854-04-15").
dob("Tod Song", "0993-10-31").
dob("Twila Baptiste", "1018-11-12").
dob("Winfred Baptiste", "1014-09-07").
dob("Wyatt Reece", "0983-05-04").
dob("Yvette Song", "0962-11-01").
:- dynamic file_search_path/2.
:- multifile file_search_path/2.
file_search_path(library, Dir) :-
library_directory(Dir).
file_search_path(swi, A) :-
system:current_prolog_flag(home, A).
file_search_path(swi, A) :-
system:current_prolog_flag(shared_home, A).
file_search_path(library, app_config(lib)).
file_search_path(library, swi(library)).
file_search_path(library, swi(library/clp)).
file_search_path(library, A) :-
system:'$ext_library_directory'(A).
file_search_path(foreign, swi(A)) :-
system:
( current_prolog_flag(apple_universal_binary, true),
A='lib/fat-darwin'
).
file_search_path(path, A) :-
system:
( getenv('PATH', B),
current_prolog_flag(path_sep, C),
atomic_list_concat(D, C, B),
'$member'(A, D)
).
file_search_path(user_app_data, A) :-
system:'$xdg_prolog_directory'(data, A).
file_search_path(common_app_data, A) :-
system:'$xdg_prolog_directory'(common_data, A).
file_search_path(user_app_config, A) :-
system:'$xdg_prolog_directory'(config, A).
file_search_path(common_app_config, A) :-
system:'$xdg_prolog_directory'(common_config, A).
file_search_path(app_data, user_app_data('.')).
file_search_path(app_data, common_app_data('.')).
file_search_path(app_config, user_app_config('.')).
file_search_path(app_config, common_app_config('.')).
file_search_path(app_preferences, user_app_config('.')).
file_search_path(user_profile, app_preferences('.')).
file_search_path(app, swi(app)).
file_search_path(app, app_data(app)).
file_search_path(autoload, swi(library)).
file_search_path(autoload, pce(prolog/lib)).
file_search_path(autoload, app_config(lib)).
file_search_path(autoload, Dir) :-
'$autoload':'$ext_library_directory'(Dir).
file_search_path(pack, app_data(pack)).
file_search_path(library, PackLib) :-
'$pack':pack_dir(_Name, prolog, PackLib).
file_search_path(foreign, PackLib) :-
'$pack':pack_dir(_Name, foreign, PackLib).
file_search_path(app, AppDir) :-
'$pack':pack_dir(_Name, app, AppDir).
:- multifile prolog_list_goal/1.
:- dynamic type/2.
type("Alethia Kidd", person).
type("Alexis Kingsley", person).
type("Ana Colin", person).
type("Antionette Song", person).
type("Byron Song", person).
type("Carlos Baptiste", person).
type("Damon Song", person).
type("Danilo Colin", person).
type("Deirdre Bivins", person).
type("Eddie Song", person).
type("Elisabeth Kingsley", person).
type("Felton Kidd", person).
type("Freda Song", person).
type("Gene Song", person).
type("Genesis Colin", person).
type("Geneva Song", person).
type("Gilbert Summerlin", person).
type("Hannah Bivins", person).
type("Hyun Song", person).
type("Idell Kidd", person).
type("Isidro Kidd", person).
type("Jamal Song", person).
type("Jeana Song", person).
type("Jesse Kiel", person).
type("Jolene Song", person).
type("Lance Kiel", person).
type("Lester Bivins", person).
type("Lynda Colin", person).
type("Madaline Song", person).
type("Matilda Summerlin", person).
type("Maynard Song", person).
type("Mckinley Colin", person).
type("Meghann Kidd", person).
type("Melvin Kidd", person).
type("Nathaniel Song", person).
type("Nikki Kidd", person).
type("Nina Song", person).
type("Noreen Kingsley", person).
type("Ramona Colin", person).
type("Romelia Song", person).
type("Seymour Song", person).
type("Shelly Reece", person).
type("Sol Song", person).
type("Stephan Kidd", person).
type("Tawana Summerlin", person).
type("Thomasine Kidd", person).
type("Tod Song", person).
type("Twila Baptiste", person).
type("Winfred Baptiste", person).
type("Wyatt Reece", person).
type("Yvette Song", person).
grandfather(X, Y) :-
grandparent(X, Y),
male(Y).
:- dynamic expand_query/4.
:- multifile expand_query/4.
:- dynamic attribute/1.
attribute("academic librarian").
attribute("amateur astronomy").
attribute("clinical research associate").
attribute("crystals").
attribute("museum curator").
attribute("stamp collecting").
attribute("technical sales engineer").
attribute("trainspotting").
attribute("advertising account planner").
attribute("animation").
attribute("toxicologist").
attribute("esports").
attribute("education administrator").
attribute("magnet fishing").
attribute("colour technologist").
attribute("billiards").
attribute("regulatory affairs officer").
attribute("iceboat racing").
attribute("gaffer").
attribute("aerospace").
attribute("producer").
attribute("learning").
attribute("newspaper journalist").
attribute("meteorology").
attribute("social researcher").
attribute("learning").
attribute("learning disability nurse").
attribute("trapshooting").
attribute("interior and spatial designer").
attribute("shoes").
attribute("pharmacologist").
attribute("meteorology").
attribute("investment banker").
attribute("birdwatching").
attribute("biomedical engineer").
attribute("mahjong").
attribute("marketing executive").
attribute("horseback riding").
attribute("chartered legal executive").
attribute("birdwatching").
attribute("public relations officer").
attribute("air sports").
attribute("nutritional therapist").
attribute("publishing").
attribute("psychotherapist").
attribute("fossicking").
attribute("production designer").
attribute("dolls").
attribute("phytotherapist").
attribute("web design").
attribute("training and development officer").
attribute("tourism").
attribute("electronics engineer").
attribute("lapel pins").
attribute("contracting civil engineer").
attribute("slot car").
attribute("air traffic controller").
attribute("audiophile").
attribute("airline pilot").
attribute("model united nations").
attribute("IT consultant").
attribute("insect collecting").
attribute("geophysical data processor").
attribute("baking").
attribute("careers information officer").
attribute("mineral collecting").
attribute("applications developer").
attribute("stone collecting").
attribute("architectural technologist").
attribute("dandyism").
attribute("horticultural therapist").
attribute("mineral collecting").
attribute("theme park manager").
attribute("digital hoarding").
attribute("animal nutritionist").
attribute("reading").
attribute("education administrator").
attribute("pinball").
attribute("community development worker").
attribute("dog sport").
attribute("ophthalmologist").
attribute("research").
attribute("lobbyist").
attribute("butterfly watching").
attribute("telecommunications researcher").
attribute("research").
attribute("social worker").
attribute("stamp collecting").
attribute("exercise physiologist").
attribute("jogging").
attribute("senior tax professional").
attribute("rowing").
attribute("environmental consultant").
attribute("sport stacking").
attribute("soil scientist").
attribute("audiophile").
attribute("interpreter").
attribute("seashell collecting").
attribute("professor emeritus").
attribute("skateboarding").
attribute("archivist").
attribute("lomography").
great_aunt(X, Y) :-
grandparent(X, A),
sister(A, Y).
grandparent(X, Y) :-
parent(X, Z),
parent(Z, Y).
grandmother(X, Y) :-
grandparent(X, Y),
female(Y).
:- dynamic friend_/2.
friend_("Alethia Kidd", "Matilda Summerlin").
friend_("Alethia Kidd", "Melvin Kidd").
friend_("Alethia Kidd", "Sol Song").
friend_("Alexis Kingsley", "Ana Colin").
friend_("Alexis Kingsley", "Idell Kidd").
friend_("Alexis Kingsley", "Matilda Summerlin").
friend_("Alexis Kingsley", "Mckinley Colin").
friend_("Alexis Kingsley", "Meghann Kidd").
friend_("Alexis Kingsley", "Stephan Kidd").
friend_("Ana Colin", "Mckinley Colin").
friend_("Ana Colin", "Tod Song").
friend_("Ana Colin", "Yvette Song").
friend_("Antionette Song", "Felton Kidd").
friend_("Antionette Song", "Jeana Song").
friend_("Antionette Song", "Winfred Baptiste").
friend_("Byron Song", "Maynard Song").
friend_("Byron Song", "Melvin Kidd").
friend_("Byron Song", "Romelia Song").
friend_("Carlos Baptiste", "Madaline Song").
friend_("Carlos Baptiste", "Seymour Song").
friend_("Carlos Baptiste", "Shelly Reece").
friend_("Damon Song", "Deirdre Bivins").
friend_("Damon Song", "Isidro Kidd").
friend_("Damon Song", "Jolene Song").
friend_("Damon Song", "Matilda Summerlin").
friend_("Damon Song", "Tawana Summerlin").
friend_("Damon Song", "Twila Baptiste").
friend_("Danilo Colin", "Gene Song").
friend_("Danilo Colin", "Isidro Kidd").
friend_("Deirdre Bivins", "Felton Kidd").
friend_("Eddie Song", "Freda Song").
friend_("Eddie Song", "Gilbert Summerlin").
friend_("Eddie Song", "Hyun Song").
friend_("Eddie Song", "Maynard Song").
friend_("Elisabeth Kingsley", "Thomasine Kidd").
friend_("Felton Kidd", "Gilbert Summerlin").
friend_("Felton Kidd", "Lester Bivins").
friend_("Freda Song", "Genesis Colin").
friend_("Freda Song", "Gilbert Summerlin").
friend_("Freda Song", "Noreen Kingsley").
friend_("Gene Song", "Madaline Song").
friend_("Genesis Colin", "Maynard Song").
friend_("Genesis Colin", "Romelia Song").
friend_("Genesis Colin", "Tod Song").
friend_("Genesis Colin", "Yvette Song").
friend_("Geneva Song", "Meghann Kidd").
friend_("Geneva Song", "Tawana Summerlin").
friend_("Geneva Song", "Twila Baptiste").
friend_("Gilbert Summerlin", "Matilda Summerlin").
friend_("Gilbert Summerlin", "Nina Song").
friend_("Gilbert Summerlin", "Stephan Kidd").
friend_("Hannah Bivins", "Isidro Kidd").
friend_("Hannah Bivins", "Stephan Kidd").
friend_("Hyun Song", "Madaline Song").
friend_("Hyun Song", "Nikki Kidd").
friend_("Idell Kidd", "Jamal Song").
friend_("Idell Kidd", "Nina Song").
friend_("Idell Kidd", "Tawana Summerlin").
friend_("Jamal Song", "Lance Kiel").
friend_("Jeana Song", "Lance Kiel").
friend_("Jeana Song", "Stephan Kidd").
friend_("Jesse Kiel", "Lance Kiel").
friend_("Jesse Kiel", "Wyatt Reece").
friend_("Jolene Song", "Seymour Song").
friend_("Lance Kiel", "Maynard Song").
friend_("Lester Bivins", "Nina Song").
friend_("Lynda Colin", "Twila Baptiste").
friend_("Madaline Song", "Matilda Summerlin").
friend_("Madaline Song", "Twila Baptiste").
friend_("Matilda Summerlin", "Thomasine Kidd").
friend_("Matilda Summerlin", "Twila Baptiste").
friend_("Maynard Song", "Seymour Song").
friend_("Mckinley Colin", "Sol Song").
friend_("Melvin Kidd", "Noreen Kingsley").
friend_("Melvin Kidd", "Tawana Summerlin").
friend_("Noreen Kingsley", "Thomasine Kidd").
friend_("Ramona Colin", "Wyatt Reece").
friend_("Romelia Song", "Tod Song").
friend_("Twila Baptiste", "Wyatt Reece").
friend(X, Y) :-
friend_(X, Y).
friend(X, Y) :-
friend_(Y, X).
niece(X, Y) :-
sibling(X, A),
daughter(A, Y).
nephew(X, Y) :-
sibling(X, A),
son(A, Y).
brother_in_law(X, Y) :-
married(X, A),
brother(A, Y).
:- multifile message_property/2.
sister_in_law(X, Y) :-
married(X, A),
sister(A, Y).
wife(X, Y) :-
married(X, Y),
female(Y).
husband(X, Y) :-
married(X, Y),
male(Y).
daughter_in_law(X, Y) :-
child(X, A),
wife(A, Y).
son_in_law(X, Y) :-
child(X, A),
husband(A, Y).
son(X, Y) :-
child(X, Y),
male(Y).
female(X) :-
gender(X, "female").
daughter(X, Y) :-
child(X, Y),
female(Y).
father_in_law(X, Y) :-
married(X, A),
father(A, Y).
mother_in_law(X, Y) :-
married(X, A),
mother(A, Y).
father(X, Y) :-
parent(X, Y),
male(Y).
:- multifile prolog_predicate_name/2.
child(X, Y) :-
parent(Y, X).
male_first_cousin_once_removed(X, Y) :-
cousin(X, A),
son(A, Y),
X\=Y.
:- multifile prolog_clause_name/2.
:- dynamic expand_answer/2.
:- multifile expand_answer/2.
:- dynamic exception/3.
:- multifile exception/3.
female_first_cousin_once_removed(X, Y) :-
cousin(X, A),
daughter(A, Y),
X\=Y.
brother(X, Y) :-
sibling(X, Y),
male(Y).
mother(X, Y) :-
parent(X, Y),
female(Y).
male_second_cousin(X, Y) :-
parent(X, A),
parent(Y, B),
cousin(A, B),
male(Y),
X\=Y.
:- dynamic message_hook/3.
:- multifile message_hook/3.
female_second_cousin(X, Y) :-
parent(X, A),
parent(Y, B),
cousin(A, B),
female(Y),
X\=Y.
married(X, Y) :-
parent(Child, X),
parent(Child, Y),
X\=Y.
male(X) :-
gender(X, "male").
:- dynamic prolog_file_type/2.
:- multifile prolog_file_type/2.
prolog_file_type(pl, prolog).
prolog_file_type(prolog, prolog).
prolog_file_type(qlf, prolog).
prolog_file_type(qlf, qlf).
prolog_file_type(A, executable) :-
system:current_prolog_flag(shared_object_extension, A).
prolog_file_type(dylib, executable) :-
system:current_prolog_flag(apple, true).
sister(X, Y) :-
sibling(X, Y),
female(Y).
male_cousin(X, Y) :-
cousin(X, Y),
male(Y).
:- dynamic nonbinary/1.
nonbinary(X) :-
gender(X, "nonbinary").
female_cousin(X, Y) :-
cousin(X, Y),
female(Y).
sibling(X, Y) :-
parent(X, A),
parent(Y, A),
X\=Y.
:- dynamic portray/1.
:- multifile portray/1.
:- dynamic prolog_load_file/2.
:- multifile prolog_load_file/2.
:- dynamic goal_expansion/2.
:- multifile goal_expansion/2.
:- dynamic parent/2.
parent("Ana Colin", "Danilo Colin").
parent("Ana Colin", "Ramona Colin").
parent("Carlos Baptiste", "Twila Baptiste").
parent("Carlos Baptiste", "Winfred Baptiste").
parent("Damon Song", "Antionette Song").
parent("Damon Song", "Sol Song").
parent("Deirdre Bivins", "Hannah Bivins").
parent("Deirdre Bivins", "Lester Bivins").
parent("Eddie Song", "Byron Song").
parent("Eddie Song", "Hyun Song").
parent("Elisabeth Kingsley", "Alexis Kingsley").
parent("Elisabeth Kingsley", "Noreen Kingsley").
parent("Felton Kidd", "Stephan Kidd").
parent("Felton Kidd", "Thomasine Kidd").
parent("Gene Song", "Antionette Song").
parent("Gene Song", "Sol Song").
parent("Genesis Colin", "Melvin Kidd").
parent("Genesis Colin", "Nikki Kidd").
parent("Geneva Song", "Antionette Song").
parent("Geneva Song", "Sol Song").
parent("Hannah Bivins", "Jamal Song").
parent("Hannah Bivins", "Yvette Song").
parent("Idell Kidd", "Stephan Kidd").
parent("Idell Kidd", "Thomasine Kidd").
parent("Isidro Kidd", "Alethia Kidd").
parent("Isidro Kidd", "Felton Kidd").
parent("Jamal Song", "Eddie Song").
parent("Jamal Song", "Nina Song").
parent("Jeana Song", "Eddie Song").
parent("Jeana Song", "Nina Song").
parent("Jolene Song", "Shelly Reece").
parent("Jolene Song", "Wyatt Reece").
parent("Lynda Colin", "Danilo Colin").
parent("Lynda Colin", "Ramona Colin").
parent("Madaline Song", "Eddie Song").
parent("Madaline Song", "Nina Song").
parent("Maynard Song", "Antionette Song").
parent("Maynard Song", "Sol Song").
parent("Mckinley Colin", "Danilo Colin").
parent("Mckinley Colin", "Ramona Colin").
parent("Meghann Kidd", "Melvin Kidd").
parent("Meghann Kidd", "Nikki Kidd").
parent("Melvin Kidd", "Alethia Kidd").
parent("Melvin Kidd", "Felton Kidd").
parent("Nathaniel Song", "Freda Song").
parent("Nathaniel Song", "Seymour Song").
parent("Nikki Kidd", "Gilbert Summerlin").
parent("Nikki Kidd", "Matilda Summerlin").
parent("Noreen Kingsley", "Gene Song").
parent("Noreen Kingsley", "Jolene Song").
parent("Ramona Colin", "Jesse Kiel").
parent("Ramona Colin", "Lance Kiel").
parent("Romelia Song", "Antionette Song").
parent("Romelia Song", "Sol Song").
parent("Seymour Song", "Eddie Song").
parent("Seymour Song", "Nina Song").
parent("Sol Song", "Jamal Song").
parent("Sol Song", "Yvette Song").
parent("Tawana Summerlin", "Gilbert Summerlin").
parent("Tawana Summerlin", "Matilda Summerlin").
parent("Tod Song", "Jamal Song").
parent("Tod Song", "Yvette Song").
parent("Twila Baptiste", "Hannah Bivins").
parent("Twila Baptiste", "Lester Bivins").
parent("Yvette Song", "Genesis Colin").
parent("Yvette Song", "Mckinley Colin").
cousin(X, Y) :-
parent(X, A),
parent(Y, B),
sibling(A, B),
X\=Y.
uncle(X, Y) :-
parent(X, A),
brother(A, Y).
:- dynamic resource/3.
:- multifile resource/3.
:- thread_local thread_message_hook/3.
:- dynamic thread_message_hook/3.
:- volatile thread_message_hook/3.
aunt(X, Y) :-
parent(X, A),
sister(A, Y).
second_uncle(X, Y) :-
great_grandparent(X, A),
brother(A, Y).
:- dynamic gender/2.
gender("Alethia Kidd", "female").
gender("Alexis Kingsley", "male").
gender("Ana Colin", "female").
gender("Antionette Song", "female").
gender("Byron Song", "male").
gender("Carlos Baptiste", "male").
gender("Damon Song", "male").
gender("Danilo Colin", "male").
gender("Deirdre Bivins", "female").
gender("Eddie Song", "male").
gender("Elisabeth Kingsley", "female").
gender("Felton Kidd", "male").
gender("Freda Song", "female").
gender("Gene Song", "male").
gender("Genesis Colin", "female").
gender("Geneva Song", "female").
gender("Gilbert Summerlin", "male").
gender("Hannah Bivins", "female").
gender("Hyun Song", "female").
gender("Idell Kidd", "female").
gender("Isidro Kidd", "male").
gender("Jamal Song", "male").
gender("Jeana Song", "female").
gender("Jesse Kiel", "female").
gender("Jolene Song", "female").
gender("Lance Kiel", "male").
gender("Lester Bivins", "male").
gender("Lynda Colin", "female").
gender("Madaline Song", "female").
gender("Matilda Summerlin", "female").
gender("Maynard Song", "male").
gender("Mckinley Colin", "male").
gender("Meghann Kidd", "female").
gender("Melvin Kidd", "male").
gender("Nathaniel Song", "male").
gender("Nikki Kidd", "female").
gender("Nina Song", "female").
gender("Noreen Kingsley", "female").
gender("Ramona Colin", "female").
gender("Romelia Song", "female").
gender("Seymour Song", "male").
gender("Shelly Reece", "female").
gender("Sol Song", "male").
gender("Stephan Kidd", "male").
gender("Tawana Summerlin", "female").
gender("Thomasine Kidd", "female").
gender("Tod Song", "male").
gender("Twila Baptiste", "female").
gender("Winfred Baptiste", "male").
gender("Wyatt Reece", "male").
gender("Yvette Song", "female").
second_aunt(X, Y) :-
great_grandparent(X, A),
sister(A, Y).
great_grandson(X, Y) :-
great_grandchild(X, Y),
male(Y).
:- dynamic pyrun/2.
pyrun(A, B) :-
read_term_from_atom(A, C, [variable_names(B)]),
call(C).
great_granddaughter(X, Y) :-
great_grandchild(X, Y),
female(Y).
:- dynamic resource/2.
:- multifile resource/2.