anmolkabra's picture
Add dataset v0.5 splits
d2a0598 verified
raw
history blame
16 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("Aida Wang", "meditation").
hobby("Alison Smock", "meteorology").
hobby("Alvaro Smock", "biology").
hobby("Barabara Beltran", "meteorology").
hobby("Brian Beltran", "dolls").
hobby("Daisy Beltran", "photography").
hobby("Dino Beltran", "shogi").
hobby("Dominique Smock", "dominoes").
hobby("Eli Smock", "tether car").
hobby("Gene Smock", "architecture").
hobby("Isiah Lutz", "geocaching").
hobby("Johnetta Wang", "trainspotting").
hobby("Lannie Smock", "bus spotting").
hobby("Leeann Hackworth", "research").
hobby("Leisa Lutz", "geography").
hobby("Leslee Toombs", "microbiology").
hobby("Lesley Lutz", "canoeing").
hobby("Orlando Beltran", "learning").
hobby("Ricardo Hackworth", "dairy farming").
hobby("Ryan Wang", "fossil hunting").
hobby("Shelli Beltran", "sociology").
hobby("Stacia Toombs", "finance").
hobby("Vicki Hackworth", "meditation").
hobby("Virgil Hackworth", "wikipedia editing").
hobby("Wilbert Toombs", "radio-controlled car racing").
hobby("Williams Smock", "social studies").
granddaughter(X, Y) :-
grandchild(X, Y),
female(Y).
grandson(X, Y) :-
grandchild(X, Y),
male(Y).
:- dynamic job/2.
job("Aida Wang", "personal assistant").
job("Alison Smock", "health promotion specialist").
job("Alvaro Smock", "osteopath").
job("Barabara Beltran", "broadcast engineer").
job("Brian Beltran", "oncologist").
job("Daisy Beltran", "warehouse manager").
job("Dino Beltran", "associate professor").
job("Dominique Smock", "sports therapist").
job("Eli Smock", "retail manager").
job("Gene Smock", "immunologist").
job("Isiah Lutz", "education administrator").
job("Johnetta Wang", "early years teacher").
job("Lannie Smock", "biomedical scientist").
job("Leeann Hackworth", "music tutor").
job("Leisa Lutz", "clinical cytogeneticist").
job("Leslee Toombs", "ecologist").
job("Lesley Lutz", "barrister's clerk").
job("Orlando Beltran", "petroleum engineer").
job("Ricardo Hackworth", "clinical research associate").
job("Ryan Wang", "chief of staff").
job("Shelli Beltran", "occupational therapist").
job("Stacia Toombs", "actuary").
job("Vicki Hackworth", "police officer").
job("Virgil Hackworth", "sound technician").
job("Wilbert Toombs", "theatre manager").
job("Williams Smock", "clinical biochemist").
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("Aida Wang", "0985-05-30").
dob("Alison Smock", "0929-10-28").
dob("Alvaro Smock", "0867-07-12").
dob("Barabara Beltran", "0989-06-11").
dob("Brian Beltran", "0927-07-27").
dob("Daisy Beltran", "0931-09-21").
dob("Dino Beltran", "0958-08-09").
dob("Dominique Smock", "0897-09-08").
dob("Eli Smock", "0901-01-18").
dob("Gene Smock", "0898-08-16").
dob("Isiah Lutz", "1014-10-18").
dob("Johnetta Wang", "1014-07-04").
dob("Lannie Smock", "0867-08-24").
dob("Leeann Hackworth", "1011-10-25").
dob("Leisa Lutz", "1015-11-21").
dob("Leslee Toombs", "0983-02-26").
dob("Lesley Lutz", "1040-01-31").
dob("Orlando Beltran", "0953-10-23").
dob("Ricardo Hackworth", "0983-02-24").
dob("Ryan Wang", "0982-03-17").
dob("Shelli Beltran", "0958-03-08").
dob("Stacia Toombs", "0959-03-22").
dob("Vicki Hackworth", "0985-05-30").
dob("Virgil Hackworth", "1009-06-23").
dob("Wilbert Toombs", "0956-07-26").
dob("Williams Smock", "0926-04-04").
:- 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("Aida Wang", person).
type("Alison Smock", person).
type("Alvaro Smock", person).
type("Barabara Beltran", person).
type("Brian Beltran", person).
type("Daisy Beltran", person).
type("Dino Beltran", person).
type("Dominique Smock", person).
type("Eli Smock", person).
type("Gene Smock", person).
type("Isiah Lutz", person).
type("Johnetta Wang", person).
type("Lannie Smock", person).
type("Leeann Hackworth", person).
type("Leisa Lutz", person).
type("Leslee Toombs", person).
type("Lesley Lutz", person).
type("Orlando Beltran", person).
type("Ricardo Hackworth", person).
type("Ryan Wang", person).
type("Shelli Beltran", person).
type("Stacia Toombs", person).
type("Vicki Hackworth", person).
type("Virgil Hackworth", person).
type("Wilbert Toombs", person).
type("Williams Smock", person).
grandfather(X, Y) :-
grandparent(X, Y),
male(Y).
:- dynamic expand_query/4.
:- multifile expand_query/4.
:- dynamic attribute/1.
attribute("personal assistant").
attribute("meditation").
attribute("health promotion specialist").
attribute("meteorology").
attribute("osteopath").
attribute("biology").
attribute("broadcast engineer").
attribute("meteorology").
attribute("oncologist").
attribute("dolls").
attribute("warehouse manager").
attribute("photography").
attribute("associate professor").
attribute("shogi").
attribute("sports therapist").
attribute("dominoes").
attribute("retail manager").
attribute("tether car").
attribute("immunologist").
attribute("architecture").
attribute("education administrator").
attribute("geocaching").
attribute("early years teacher").
attribute("trainspotting").
attribute("biomedical scientist").
attribute("bus spotting").
attribute("music tutor").
attribute("research").
attribute("clinical cytogeneticist").
attribute("geography").
attribute("ecologist").
attribute("microbiology").
attribute("barrister's clerk").
attribute("canoeing").
attribute("petroleum engineer").
attribute("learning").
attribute("clinical research associate").
attribute("dairy farming").
attribute("chief of staff").
attribute("fossil hunting").
attribute("occupational therapist").
attribute("sociology").
attribute("actuary").
attribute("finance").
attribute("police officer").
attribute("meditation").
attribute("sound technician").
attribute("wikipedia editing").
attribute("theatre manager").
attribute("radio-controlled car racing").
attribute("clinical biochemist").
attribute("social studies").
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_("Aida Wang", "Alvaro Smock").
friend_("Aida Wang", "Lannie Smock").
friend_("Aida Wang", "Leslee Toombs").
friend_("Aida Wang", "Ryan Wang").
friend_("Alison Smock", "Eli Smock").
friend_("Alison Smock", "Lannie Smock").
friend_("Alison Smock", "Virgil Hackworth").
friend_("Alvaro Smock", "Dino Beltran").
friend_("Alvaro Smock", "Gene Smock").
friend_("Brian Beltran", "Eli Smock").
friend_("Brian Beltran", "Leeann Hackworth").
friend_("Brian Beltran", "Shelli Beltran").
friend_("Brian Beltran", "Stacia Toombs").
friend_("Brian Beltran", "Vicki Hackworth").
friend_("Dominique Smock", "Gene Smock").
friend_("Dominique Smock", "Isiah Lutz").
friend_("Dominique Smock", "Orlando Beltran").
friend_("Dominique Smock", "Vicki Hackworth").
friend_("Eli Smock", "Leisa Lutz").
friend_("Eli Smock", "Shelli Beltran").
friend_("Eli Smock", "Vicki Hackworth").
friend_("Eli Smock", "Virgil Hackworth").
friend_("Gene Smock", "Leeann Hackworth").
friend_("Gene Smock", "Leisa Lutz").
friend_("Gene Smock", "Ricardo Hackworth").
friend_("Isiah Lutz", "Johnetta Wang").
friend_("Isiah Lutz", "Ricardo Hackworth").
friend_("Isiah Lutz", "Shelli Beltran").
friend_("Isiah Lutz", "Stacia Toombs").
friend_("Johnetta Wang", "Leslee Toombs").
friend_("Johnetta Wang", "Ricardo Hackworth").
friend_("Lannie Smock", "Williams Smock").
friend_("Leeann Hackworth", "Stacia Toombs").
friend_("Leisa Lutz", "Leslee Toombs").
friend_("Leslee Toombs", "Shelli Beltran").
friend_("Lesley Lutz", "Shelli Beltran").
friend_("Lesley Lutz", "Stacia Toombs").
friend_("Orlando Beltran", "Virgil Hackworth").
friend_("Ryan Wang", "Shelli Beltran").
friend_("Ryan Wang", "Stacia Toombs").
friend_("Ryan Wang", "Virgil Hackworth").
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("Aida Wang", "Dino Beltran").
parent("Aida Wang", "Shelli Beltran").
parent("Barabara Beltran", "Dino Beltran").
parent("Barabara Beltran", "Shelli Beltran").
parent("Dino Beltran", "Brian Beltran").
parent("Dino Beltran", "Daisy Beltran").
parent("Eli Smock", "Alvaro Smock").
parent("Eli Smock", "Lannie Smock").
parent("Gene Smock", "Alvaro Smock").
parent("Gene Smock", "Lannie Smock").
parent("Johnetta Wang", "Aida Wang").
parent("Johnetta Wang", "Ryan Wang").
parent("Leeann Hackworth", "Ricardo Hackworth").
parent("Leeann Hackworth", "Vicki Hackworth").
parent("Leisa Lutz", "Ricardo Hackworth").
parent("Leisa Lutz", "Vicki Hackworth").
parent("Leslee Toombs", "Stacia Toombs").
parent("Leslee Toombs", "Wilbert Toombs").
parent("Lesley Lutz", "Isiah Lutz").
parent("Lesley Lutz", "Leisa Lutz").
parent("Orlando Beltran", "Brian Beltran").
parent("Orlando Beltran", "Daisy Beltran").
parent("Shelli Beltran", "Alison Smock").
parent("Shelli Beltran", "Williams Smock").
parent("Stacia Toombs", "Alison Smock").
parent("Stacia Toombs", "Williams Smock").
parent("Vicki Hackworth", "Dino Beltran").
parent("Vicki Hackworth", "Shelli Beltran").
parent("Virgil Hackworth", "Ricardo Hackworth").
parent("Virgil Hackworth", "Vicki Hackworth").
parent("Williams Smock", "Dominique Smock").
parent("Williams Smock", "Gene Smock").
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("Aida Wang", "female").
gender("Alison Smock", "female").
gender("Alvaro Smock", "male").
gender("Barabara Beltran", "female").
gender("Brian Beltran", "male").
gender("Daisy Beltran", "female").
gender("Dino Beltran", "male").
gender("Dominique Smock", "female").
gender("Eli Smock", "male").
gender("Gene Smock", "male").
gender("Isiah Lutz", "male").
gender("Johnetta Wang", "female").
gender("Lannie Smock", "female").
gender("Leeann Hackworth", "female").
gender("Leisa Lutz", "female").
gender("Leslee Toombs", "female").
gender("Lesley Lutz", "male").
gender("Orlando Beltran", "male").
gender("Ricardo Hackworth", "male").
gender("Ryan Wang", "male").
gender("Shelli Beltran", "female").
gender("Stacia Toombs", "female").
gender("Vicki Hackworth", "female").
gender("Virgil Hackworth", "male").
gender("Wilbert Toombs", "male").
gender("Williams Smock", "male").
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.