File size: 81,114 Bytes
d2a0598
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345

:- 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("Alec Sinclair", "meteorology").
hobby("Alfredo Wang", "biology").
hobby("Alison Smock", "meteorology").
hobby("Alvaro Smock", "dolls").
hobby("Alycia Coe", "photography").
hobby("Barabara Beltran", "shogi").
hobby("Brian Beltran", "dominoes").
hobby("Carrol Woodson", "tether car").
hobby("Christina Coe", "architecture").
hobby("Christoper Coe", "geocaching").
hobby("Cortney Parmer", "trainspotting").
hobby("Cythia Smock", "bus spotting").
hobby("Daisy Beltran", "research").
hobby("Dino Beltran", "geography").
hobby("Dominique Smock", "microbiology").
hobby("Dwight Hackworth", "canoeing").
hobby("Earle Coe", "learning").
hobby("Eli Smock", "dairy farming").
hobby("Gayla Woodson", "fossil hunting").
hobby("Gene Smock", "sociology").
hobby("Isiah Lutz", "finance").
hobby("Jamison Baptiste", "meditation").
hobby("Kristen Toombs", "wikipedia editing").
hobby("Lannie Smock", "radio-controlled car racing").
hobby("Leeann Sinclair", "social studies").
hobby("Leisa Lutz", "judo").
hobby("Lesley Lutz", "flying disc").
hobby("Lissa Coe", "cricket").
hobby("Lonny Parmer", "weightlifting").
hobby("Maria Baptiste", "meditation").
hobby("Michelle Hackworth", "ballroom dancing").
hobby("Noelia Lutz", "microscopy").
hobby("Orlando Beltran", "reading").
hobby("Reggie Coe", "laser tag").
hobby("Ricardo Hackworth", "hiking/backpacking").
hobby("Ryan Wang", "audiophile").
hobby("Shannon Beltran", "tennis polo").
hobby("Shelli Beltran", "photography").
hobby("Stacia Toombs", "backgammon").
hobby("Tanner Beltran", "microscopy").
hobby("Tosha Beltran", "herping").
hobby("Tyson Woodson", "philately").
hobby("Ulysses Parmer", "birdwatching").
hobby("Vicki Hackworth", "shogi").
hobby("Vincent Lutz", "magnet fishing").
hobby("Virgil Hackworth", "table tennis").
hobby("Von Sinclair", "scuba diving").
hobby("Wilbert Toombs", "biology").
hobby("Williams Smock", "sea glass collecting").
hobby("Wm Parmer", "research").
hobby("Angela Culver", "gongoozling").
hobby("Anibal Stansberry", "benchmarking").
hobby("Barbara Philpott", "sea glass collecting").
hobby("Bev Gilmore", "bowling").
hobby("Brigette Gilmore", "audiophile").
hobby("Celia Macmillan", "tea bag collecting").
hobby("Conrad Stansberry", "model aircraft").
hobby("Cordelia Wiggs", "herping").
hobby("David Wiggs", "figure skating").
hobby("Debra Stansberry", "fossil hunting").
hobby("Desiree Stansberry", "airsoft").
hobby("Diane Culver", "whale watching").
hobby("Dionne Stansberry", "pinball").
hobby("Eliza Wiggs", "research").
hobby("Emanuel Stansberry", "flying model planes").
hobby("Frankie Hagerty", "ant farming").
hobby("Gail Culver", "volleyball").
hobby("Garry Gilmore", "gongoozling").
hobby("Gillian Wiggs", "vehicle restoration").
hobby("Glenda Culver", "car riding").
hobby("Hayden Stansberry", "mycology").
hobby("Howard Wiggs", "table football").
hobby("Hyun Hagerty", "photography").
hobby("Iva Stansberry", "metal detecting").
hobby("Jordan Culver", "archery").
hobby("Jules Culver", "reading").
hobby("Justine Hagerty", "shortwave listening").
hobby("Kelvin Culver", "snowmobiling").
hobby("Kori Wiggs", "research").
hobby("Laverna Stansberry", "religious studies").
hobby("Lester Stansberry", "cooking").
hobby("Lincoln Velasco", "kart racing").
hobby("Lionel Culver", "darts").
hobby("Loren Culver", "herping").
hobby("Markus Hagerty", "backgammon").
hobby("Maurine Velasco", "herping").
hobby("Mickey Philpott", "ant farming").
hobby("Millard Stansberry", "ephemera collecting").
hobby("Nikki Stansberry", "bus spotting").
hobby("Oren Stansberry", "research").
hobby("Quintin Hagerty", "croquet").
hobby("Renate Stansberry", "leaves").
hobby("Sona Stansberry", "antiquities").
hobby("Tad Macmillan", "field hockey").
hobby("Tamara Macmillan", "leaves").
hobby("Terence Culver", "auto audiophilia").
hobby("Tonya Culver", "magic").
hobby("Victor Stansberry", "people-watching").
hobby("Wilmer Hagerty", "social studies").
hobby("Yolanda Philpott", "mineral collecting").
hobby("Adelaida Ricketts", "fusilately").
hobby("Benny Abrams", "surfing").
hobby("Bobby Ricketts", "magic").
hobby("Bridget Solorio", "story writing").
hobby("Brooks Ricketts", "curling").
hobby("Cicely Abrams", "museum visiting").
hobby("Cordelia Zepeda", "benchmarking").
hobby("Cory Ricketts", "meteorology").
hobby("Dee Ricketts", "entrepreneurship").
hobby("Deidra Ricketts", "deltiology").
hobby("Dennis Ricketts", "badminton").
hobby("Edmund Abrams", "flag football").
hobby("Erin Ricketts", "shooting").
hobby("Flora Ricketts", "rock tumbling").
hobby("Hoa Leija", "beekeeping").
hobby("Jennifer Ricketts", "ephemera collecting").
hobby("Kory Ricketts", "medical science").
hobby("Kristie Abrams", "microscopy").
hobby("Kristopher Ricketts", "leaves").
hobby("Lauren Brumbaugh", "philately").
hobby("Lora Ricketts", "research").
hobby("Lyman Leija", "horseshoes").
hobby("Madelyn Ricketts", "insect collecting").
hobby("Maranda Ricketts", "fencing").
hobby("Marlene Isaacs", "insect collecting").
hobby("Melina Deming", "book collecting").
hobby("Micheal Leija", "business").
hobby("Milton Brumbaugh", "fishkeeping").
hobby("Mona Leija", "dolls").
hobby("Nick Solorio", "fitness").
hobby("Orval Ricketts", "paintball").
hobby("Paula Ricketts", "vintage clothing").
hobby("Randi Leija", "shuffleboard").
hobby("Raymond Leija", "sports memorabilia").
hobby("Reed Abrams", "kart racing").
hobby("Reggie Brumbaugh", "trapshooting").
hobby("Renea Ricketts", "table tennis").
hobby("Rhonda Ricketts", "rock climbing").
hobby("Rocky Ricketts", "gymnastics").
hobby("Rolanda Isaacs", "auto audiophilia").
hobby("Rosalee Brumbaugh", "myrmecology").
hobby("Samuel Ricketts", "flower collecting and pressing").
hobby("Shane Leija", "baton twirling").
hobby("Spencer Ricketts", "metal detecting").
hobby("Terrell Isaacs", "radio-controlled model playing").
hobby("Tiffanie Leija", "fossicking").
hobby("Tommy Zepeda", "shopping").
hobby("Toney Ricketts", "satellite watching").
hobby("Ulysses Deming", "carrier pigeons").
hobby("Winnifred Ricketts", "publishing").
hobby("Adella Schwarz", "learning").
hobby("Alberto Schwarz", "fishing").
hobby("Antony Kinder", "mini golf").
hobby("Aura Schwarz", "beekeeping").
hobby("Bernice Kinder", "sailing").
hobby("Carmelita Schwarz", "cycling").
hobby("Carter Bolen", "hobby horsing").
hobby("Clark Kinder", "dog walking").
hobby("Dawne Grover", "life science").
hobby("Delbert Menchaca", "leaves").
hobby("Dillon Schwarz", "volleyball").
hobby("Dylan Schwarz", "railway studies").
hobby("Elbert Canada", "butterfly watching").
hobby("Elyse Canada", "magnet fishing").
hobby("Emilie Schwarz", "insect collecting").
hobby("Eugene Schwarz", "films").
hobby("Eugenio Schwarz", "race walking").
hobby("Federico Schwarz", "dairy farming").
hobby("Francis Grover", "wikipedia editing").
hobby("Gustavo Grover", "kart racing").
hobby("Hank Schwarz", "people-watching").
hobby("Herbert Bolen", "whale watching").
hobby("Hope Schwarz", "shooting sports").
hobby("Irish Schwarz", "debate").
hobby("Jeanette Byrd", "table tennis").
hobby("Jeremiah Schwarz", "archaeology").
hobby("Joanna Schwarz", "lotology").
hobby("Judith Schwarz", "stone collecting").
hobby("Kent Schwarz", "birdwatching").
hobby("Kimberely Menchaca", "rock balancing").
hobby("Lorina Kinder", "karting").
hobby("Magdalena Schwarz", "disc golf").
hobby("Nada Schwarz", "shortwave listening").
hobby("Odette Schwarz", "audiophile").
hobby("Omar Schwarz", "bus spotting").
hobby("Pamula Schwarz", "shortwave listening").
hobby("Paula Bass", "fishkeeping").
hobby("Phylis Bolen", "tea bag collecting").
hobby("Randi Bass", "phillumeny").
hobby("Randi Schwarz", "stamp collecting").
hobby("Randolph Schwarz", "volleyball").
hobby("Riley Grover", "learning").
hobby("Rodolfo Byrd", "shooting").
hobby("Ross Bolen", "audiophile").
hobby("Shawnta Schwarz", "knife collecting").
hobby("Sona Kinder", "learning").
hobby("Sueann Bolen", "letterboxing").
hobby("Tania Schwarz", "beekeeping").
hobby("Tomas Bass", "bridge").
hobby("Zelda Schwarz", "perfume").

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("Alec Sinclair", "health promotion specialist").
job("Alfredo Wang", "osteopath").
job("Alison Smock", "broadcast engineer").
job("Alvaro Smock", "oncologist").
job("Alycia Coe", "warehouse manager").
job("Barabara Beltran", "associate professor").
job("Brian Beltran", "sports therapist").
job("Carrol Woodson", "retail manager").
job("Christina Coe", "immunologist").
job("Christoper Coe", "education administrator").
job("Cortney Parmer", "early years teacher").
job("Cythia Smock", "biomedical scientist").
job("Daisy Beltran", "music tutor").
job("Dino Beltran", "clinical cytogeneticist").
job("Dominique Smock", "ecologist").
job("Dwight Hackworth", "barrister's clerk").
job("Earle Coe", "petroleum engineer").
job("Eli Smock", "clinical research associate").
job("Gayla Woodson", "chief of staff").
job("Gene Smock", "occupational therapist").
job("Isiah Lutz", "actuary").
job("Jamison Baptiste", "police officer").
job("Kristen Toombs", "sound technician").
job("Lannie Smock", "theatre manager").
job("Leeann Sinclair", "clinical biochemist").
job("Leisa Lutz", "public relations officer").
job("Lesley Lutz", "music therapist").
job("Lissa Coe", "librarian").
job("Lonny Parmer", "building surveyor").
job("Maria Baptiste", "fitness centre manager").
job("Michelle Hackworth", "oceanographer").
job("Noelia Lutz", "historic buildings inspector").
job("Orlando Beltran", "chief marketing officer").
job("Reggie Coe", "waste management officer").
job("Ricardo Hackworth", "medical sales representative").
job("Ryan Wang", "community pharmacist").
job("Shannon Beltran", "pension scheme manager").
job("Shelli Beltran", "armed forces logistics officer").
job("Stacia Toombs", "environmental education officer").
job("Tanner Beltran", "medical illustrator").
job("Tosha Beltran", "museum conservator").
job("Tyson Woodson", "optometrist").
job("Ulysses Parmer", "further education lecturer").
job("Vicki Hackworth", "dancer").
job("Vincent Lutz", "water engineer").
job("Virgil Hackworth", "intelligence analyst").
job("Von Sinclair", "fashion designer").
job("Wilbert Toombs", "doctor").
job("Williams Smock", "chartered accountant").
job("Wm Parmer", "speech and language therapist").
job("Angela Culver", "clinical embryologist").
job("Anibal Stansberry", "community development worker").
job("Barbara Philpott", "games developer").
job("Bev Gilmore", "accommodation manager").
job("Brigette Gilmore", "conservation officer").
job("Celia Macmillan", "forensic scientist").
job("Conrad Stansberry", "pharmacologist").
job("Cordelia Wiggs", "dance movement psychotherapist").
job("David Wiggs", "paediatric nurse").
job("Debra Stansberry", "research officer").
job("Desiree Stansberry", "production designer").
job("Diane Culver", "community development worker").
job("Dionne Stansberry", "clinical molecular geneticist").
job("Eliza Wiggs", "set designer").
job("Emanuel Stansberry", "town planner").
job("Frankie Hagerty", "print production planner").
job("Gail Culver", "equality and diversity officer").
job("Garry Gilmore", "chartered loss adjuster").
job("Gillian Wiggs", "sales promotion account executive").
job("Glenda Culver", "banker").
job("Hayden Stansberry", "systems developer").
job("Howard Wiggs", "chief financial officer").
job("Hyun Hagerty", "regulatory affairs officer").
job("Iva Stansberry", "architect").
job("Jordan Culver", "health and safety inspector").
job("Jules Culver", "medical secretary").
job("Justine Hagerty", "careers adviser").
job("Kelvin Culver", "civil service administrator").
job("Kori Wiggs", "optometrist").
job("Laverna Stansberry", "print production planner").
job("Lester Stansberry", "arboriculturist").
job("Lincoln Velasco", "adult nurse").
job("Lionel Culver", "commercial horticulturist").
job("Loren Culver", "conference centre manager").
job("Markus Hagerty", "journalist").
job("Maurine Velasco", "wellsite geologist").
job("Mickey Philpott", "community education officer").
job("Millard Stansberry", "investment analyst").
job("Nikki Stansberry", "trading standards officer").
job("Oren Stansberry", "colour technologist").
job("Quintin Hagerty", "immigration officer").
job("Renate Stansberry", "human resources officer").
job("Sona Stansberry", "agricultural consultant").
job("Tad Macmillan", "fashion designer").
job("Tamara Macmillan", "actuary").
job("Terence Culver", "industrial designer").
job("Tonya Culver", "maintenance engineer").
job("Victor Stansberry", "data scientist").
job("Wilmer Hagerty", "health physicist").
job("Yolanda Philpott", "hospital doctor").
job("Adelaida Ricketts", "radiographer").
job("Benny Abrams", "midwife").
job("Bobby Ricketts", "music therapist").
job("Bridget Solorio", "medical secretary").
job("Brooks Ricketts", "hospital pharmacist").
job("Cicely Abrams", "chemist").
job("Cordelia Zepeda", "editor").
job("Cory Ricketts", "technical brewer").
job("Dee Ricketts", "hospital pharmacist").
job("Deidra Ricketts", "learning disability nurse").
job("Dennis Ricketts", "financial manager").
job("Edmund Abrams", "chief executive officer").
job("Erin Ricketts", "programme researcher").
job("Flora Ricketts", "printmaker").
job("Hoa Leija", "sports coach").
job("Jennifer Ricketts", "trading standards officer").
job("Kory Ricketts", "physiological scientist").
job("Kristie Abrams", "immunologist").
job("Kristopher Ricketts", "advice worker").
job("Lauren Brumbaugh", "ambulance person").
job("Lora Ricketts", "tourism officer").
job("Lyman Leija", "solicitor").
job("Madelyn Ricketts", "insurance account manager").
job("Maranda Ricketts", "police officer").
job("Marlene Isaacs", "quantity surveyor").
job("Melina Deming", "building services engineer").
job("Micheal Leija", "futures trader").
job("Milton Brumbaugh", "prison officer").
job("Mona Leija", "web designer").
job("Nick Solorio", "therapeutic radiographer").
job("Orval Ricketts", "planning and development surveyor").
job("Paula Ricketts", "neurosurgeon").
job("Randi Leija", "sports administrator").
job("Raymond Leija", "quarry manager").
job("Reed Abrams", "homeopath").
job("Reggie Brumbaugh", "psychiatrist").
job("Renea Ricketts", "wellsite geologist").
job("Rhonda Ricketts", "historic buildings inspector").
job("Rocky Ricketts", "rural practice surveyor").
job("Rolanda Isaacs", "meteorologist").
job("Rosalee Brumbaugh", "farm manager").
job("Samuel Ricketts", "minerals surveyor").
job("Shane Leija", "textile designer").
job("Spencer Ricketts", "teaching laboratory technician").
job("Terrell Isaacs", "meteorologist").
job("Tiffanie Leija", "insurance broker").
job("Tommy Zepeda", "early years teacher").
job("Toney Ricketts", "curator").
job("Ulysses Deming", "furniture designer").
job("Winnifred Ricketts", "risk analyst").
job("Adella Schwarz", "museum exhibitions officer").
job("Alberto Schwarz", "pilot").
job("Antony Kinder", "human resources officer").
job("Aura Schwarz", "public relations officer").
job("Bernice Kinder", "solicitor").
job("Carmelita Schwarz", "broadcast engineer").
job("Carter Bolen", "chiropractor").
job("Clark Kinder", "statistician").
job("Dawne Grover", "musician").
job("Delbert Menchaca", "economist").
job("Dillon Schwarz", "company secretary").
job("Dylan Schwarz", "editorial assistant").
job("Elbert Canada", "transport planner").
job("Elyse Canada", "customer service manager").
job("Emilie Schwarz", "camera operator").
job("Eugene Schwarz", "psychotherapist").
job("Eugenio Schwarz", "scientific laboratory technician").
job("Federico Schwarz", "travel agency manager").
job("Francis Grover", "geologist").
job("Gustavo Grover", "soil scientist").
job("Hank Schwarz", "optometrist").
job("Herbert Bolen", "banker").
job("Hope Schwarz", "media buyer").
job("Irish Schwarz", "careers adviser").
job("Jeanette Byrd", "garment technologist").
job("Jeremiah Schwarz", "advertising art director").
job("Joanna Schwarz", "market researcher").
job("Judith Schwarz", "IT consultant").
job("Kent Schwarz", "probation officer").
job("Kimberely Menchaca", "marketing executive").
job("Lorina Kinder", "investment banker").
job("Magdalena Schwarz", "product development scientist").
job("Nada Schwarz", "museum curator").
job("Odette Schwarz", "sales professional").
job("Omar Schwarz", "charity officer").
job("Pamula Schwarz", "charity fundraiser").
job("Paula Bass", "insurance account manager").
job("Phylis Bolen", "chartered certified accountant").
job("Randi Bass", "environmental education officer").
job("Randi Schwarz", "chemist").
job("Randolph Schwarz", "research officer").
job("Riley Grover", "dispensing optician").
job("Rodolfo Byrd", "operations geologist").
job("Ross Bolen", "chartered loss adjuster").
job("Shawnta Schwarz", "bookseller").
job("Sona Kinder", "arts administrator").
job("Sueann Bolen", "mining engineer").
job("Tania Schwarz", "museum exhibitions officer").
job("Tomas Bass", "forensic scientist").
job("Zelda Schwarz", "chief technology officer").

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("Alec Sinclair", "1006-07-10").
dob("Alfredo Wang", "1012-02-04").
dob("Alison Smock", "0929-10-28").
dob("Alvaro Smock", "0867-07-12").
dob("Alycia Coe", "0959-01-13").
dob("Barabara Beltran", "0989-06-11").
dob("Brian Beltran", "0927-07-27").
dob("Carrol Woodson", "1033-07-02").
dob("Christina Coe", "0983-02-26").
dob("Christoper Coe", "0957-01-08").
dob("Cortney Parmer", "1014-07-04").
dob("Cythia Smock", "0956-05-12").
dob("Daisy Beltran", "0931-09-21").
dob("Dino Beltran", "0958-08-09").
dob("Dominique Smock", "0897-09-08").
dob("Dwight Hackworth", "1016-12-30").
dob("Earle Coe", "0984-05-03").
dob("Eli Smock", "0901-01-18").
dob("Gayla Woodson", "1035-10-24").
dob("Gene Smock", "0898-08-16").
dob("Isiah Lutz", "1014-10-18").
dob("Jamison Baptiste", "0929-02-07").
dob("Kristen Toombs", "0986-06-27").
dob("Lannie Smock", "0867-08-24").
dob("Leeann Sinclair", "1011-10-25").
dob("Leisa Lutz", "1015-11-21").
dob("Lesley Lutz", "1040-01-31").
dob("Lissa Coe", "1010-08-08").
dob("Lonny Parmer", "1042-08-03").
dob("Maria Baptiste", "0929-10-22").
dob("Michelle Hackworth", "1007-05-01").
dob("Noelia Lutz", "1042-01-27").
dob("Orlando Beltran", "0953-10-23").
dob("Reggie Coe", "1009-07-17").
dob("Ricardo Hackworth", "0983-02-24").
dob("Ryan Wang", "0982-03-17").
dob("Shannon Beltran", "0981-04-26").
dob("Shelli Beltran", "0958-03-08").
dob("Stacia Toombs", "0959-03-22").
dob("Tanner Beltran", "0956-11-17").
dob("Tosha Beltran", "0955-03-27").
dob("Tyson Woodson", "1068-10-22").
dob("Ulysses Parmer", "1015-03-18").
dob("Vicki Hackworth", "0985-05-30").
dob("Vincent Lutz", "1063-07-01").
dob("Virgil Hackworth", "1009-06-23").
dob("Von Sinclair", "1039-02-26").
dob("Wilbert Toombs", "0956-07-26").
dob("Williams Smock", "0926-04-04").
dob("Wm Parmer", "1040-07-04").
dob("Angela Culver", "0898-11-29").
dob("Anibal Stansberry", "0973-09-08").
dob("Barbara Philpott", "0915-10-13").
dob("Bev Gilmore", "0951-06-19").
dob("Brigette Gilmore", "0923-05-12").
dob("Celia Macmillan", "1026-12-07").
dob("Conrad Stansberry", "1003-10-24").
dob("Cordelia Wiggs", "0976-12-23").
dob("David Wiggs", "0979-09-27").
dob("Debra Stansberry", "1008-03-18").
dob("Desiree Stansberry", "1002-10-18").
dob("Diane Culver", "0869-11-24").
dob("Dionne Stansberry", "1037-04-26").
dob("Eliza Wiggs", "1040-01-19").
dob("Emanuel Stansberry", "1034-05-31").
dob("Frankie Hagerty", "0946-05-01").
dob("Gail Culver", "0887-02-26").
dob("Garry Gilmore", "0920-10-17").
dob("Gillian Wiggs", "1010-02-07").
dob("Glenda Culver", "0859-05-23").
dob("Hayden Stansberry", "1005-03-30").
dob("Howard Wiggs", "1010-06-15").
dob("Hyun Hagerty", "0946-07-18").
dob("Iva Stansberry", "0947-12-16").
dob("Jordan Culver", "0863-05-18").
dob("Jules Culver", "0865-04-01").
dob("Justine Hagerty", "0922-04-26").
dob("Kelvin Culver", "0893-08-01").
dob("Kori Wiggs", "1043-07-28").
dob("Laverna Stansberry", "1009-10-20").
dob("Lester Stansberry", "1030-10-24").
dob("Lincoln Velasco", "0861-10-10").
dob("Lionel Culver", "0888-06-17").
dob("Loren Culver", "0837-04-13").
dob("Markus Hagerty", "0922-01-07").
dob("Maurine Velasco", "0861-04-11").
dob("Mickey Philpott", "0916-05-13").
dob("Millard Stansberry", "1002-04-17").
dob("Nikki Stansberry", "1030-04-05").
dob("Oren Stansberry", "0948-09-28").
dob("Quintin Hagerty", "0981-01-08").
dob("Renate Stansberry", "0977-11-30").
dob("Sona Stansberry", "1005-11-15").
dob("Tad Macmillan", "1024-03-25").
dob("Tamara Macmillan", "1055-08-19").
dob("Terence Culver", "0889-08-09").
dob("Tonya Culver", "0837-02-09").
dob("Victor Stansberry", "0980-11-17").
dob("Wilmer Hagerty", "0948-05-29").
dob("Yolanda Philpott", "0940-02-02").
dob("Adelaida Ricketts", "0922-12-18").
dob("Benny Abrams", "0896-12-12").
dob("Bobby Ricketts", "0947-04-09").
dob("Bridget Solorio", "0986-07-21").
dob("Brooks Ricketts", "0898-02-26").
dob("Cicely Abrams", "0870-01-06").
dob("Cordelia Zepeda", "0916-07-26").
dob("Cory Ricketts", "0878-04-27").
dob("Dee Ricketts", "0972-08-01").
dob("Deidra Ricketts", "0946-02-25").
dob("Dennis Ricketts", "0923-07-06").
dob("Edmund Abrams", "0845-10-24").
dob("Erin Ricketts", "0900-05-21").
dob("Flora Ricketts", "0879-05-07").
dob("Hoa Leija", "0902-04-25").
dob("Jennifer Ricketts", "0975-05-24").
dob("Kory Ricketts", "0950-01-14").
dob("Kristie Abrams", "0843-03-20").
dob("Kristopher Ricketts", "0850-09-22").
dob("Lauren Brumbaugh", "1041-06-15").
dob("Lora Ricketts", "0952-09-06").
dob("Lyman Leija", "0901-03-05").
dob("Madelyn Ricketts", "0850-06-15").
dob("Maranda Ricketts", "0988-06-04").
dob("Marlene Isaacs", "0954-08-24").
dob("Melina Deming", "0929-07-13").
dob("Micheal Leija", "0922-10-24").
dob("Milton Brumbaugh", "1045-08-29").
dob("Mona Leija", "0928-05-15").
dob("Nick Solorio", "0984-11-19").
dob("Orval Ricketts", "0906-08-02").
dob("Paula Ricketts", "0925-09-21").
dob("Randi Leija", "0900-05-14").
dob("Raymond Leija", "0926-06-19").
dob("Reed Abrams", "0870-11-15").
dob("Reggie Brumbaugh", "1014-09-14").
dob("Renea Ricketts", "0904-01-13").
dob("Rhonda Ricketts", "0958-11-25").
dob("Rocky Ricketts", "0923-06-06").
dob("Rolanda Isaacs", "0927-12-01").
dob("Rosalee Brumbaugh", "1016-02-10").
dob("Samuel Ricketts", "0952-08-04").
dob("Shane Leija", "0873-05-27").
dob("Spencer Ricketts", "0959-10-28").
dob("Terrell Isaacs", "0926-10-24").
dob("Tiffanie Leija", "0875-11-15").
dob("Tommy Zepeda", "0915-11-25").
dob("Toney Ricketts", "0949-05-16").
dob("Ulysses Deming", "0930-07-19").
dob("Winnifred Ricketts", "0954-04-23").
dob("Adella Schwarz", "1034-01-20").
dob("Alberto Schwarz", "1010-07-13").
dob("Antony Kinder", "1032-03-16").
dob("Aura Schwarz", "0953-08-08").
dob("Bernice Kinder", "1003-04-28").
dob("Carmelita Schwarz", "0984-01-08").
dob("Carter Bolen", "1014-01-31").
dob("Clark Kinder", "1000-02-09").
dob("Dawne Grover", "1031-02-26").
dob("Delbert Menchaca", "0953-05-15").
dob("Dillon Schwarz", "0979-09-16").
dob("Dylan Schwarz", "0899-09-16").
dob("Elbert Canada", "0893-11-15").
dob("Elyse Canada", "0889-07-11").
dob("Emilie Schwarz", "1008-11-19").
dob("Eugene Schwarz", "1004-10-08").
dob("Eugenio Schwarz", "0954-12-07").
dob("Federico Schwarz", "1032-10-11").
dob("Francis Grover", "1056-09-26").
dob("Gustavo Grover", "1026-05-24").
dob("Hank Schwarz", "1035-06-29").
dob("Herbert Bolen", "1007-04-10").
dob("Hope Schwarz", "1036-04-11").
dob("Irish Schwarz", "1007-10-06").
dob("Jeanette Byrd", "0976-08-12").
dob("Jeremiah Schwarz", "1007-09-13").
dob("Joanna Schwarz", "1060-04-19").
dob("Judith Schwarz", "0974-06-18").
dob("Kent Schwarz", "0978-10-20").
dob("Kimberely Menchaca", "0954-09-19").
dob("Lorina Kinder", "1062-06-10").
dob("Magdalena Schwarz", "1002-06-23").
dob("Nada Schwarz", "1009-06-26").
dob("Odette Schwarz", "0954-03-05").
dob("Omar Schwarz", "0926-12-20").
dob("Pamula Schwarz", "0979-02-20").
dob("Paula Bass", "1076-04-16").
dob("Phylis Bolen", "1014-07-25").
dob("Randi Bass", "1044-03-08").
dob("Randi Schwarz", "0999-10-04").
dob("Randolph Schwarz", "1038-10-02").
dob("Riley Grover", "1063-02-01").
dob("Rodolfo Byrd", "0977-05-16").
dob("Ross Bolen", "0983-07-06").
dob("Shawnta Schwarz", "0897-10-28").
dob("Sona Kinder", "1030-01-10").
dob("Sueann Bolen", "0982-10-22").
dob("Tania Schwarz", "0923-08-11").
dob("Tomas Bass", "1046-08-17").
dob("Zelda Schwarz", "0982-10-22").

:- 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("Alec Sinclair", person).
type("Alfredo Wang", person).
type("Alison Smock", person).
type("Alvaro Smock", person).
type("Alycia Coe", person).
type("Barabara Beltran", person).
type("Brian Beltran", person).
type("Carrol Woodson", person).
type("Christina Coe", person).
type("Christoper Coe", person).
type("Cortney Parmer", person).
type("Cythia Smock", person).
type("Daisy Beltran", person).
type("Dino Beltran", person).
type("Dominique Smock", person).
type("Dwight Hackworth", person).
type("Earle Coe", person).
type("Eli Smock", person).
type("Gayla Woodson", person).
type("Gene Smock", person).
type("Isiah Lutz", person).
type("Jamison Baptiste", person).
type("Kristen Toombs", person).
type("Lannie Smock", person).
type("Leeann Sinclair", person).
type("Leisa Lutz", person).
type("Lesley Lutz", person).
type("Lissa Coe", person).
type("Lonny Parmer", person).
type("Maria Baptiste", person).
type("Michelle Hackworth", person).
type("Noelia Lutz", person).
type("Orlando Beltran", person).
type("Reggie Coe", person).
type("Ricardo Hackworth", person).
type("Ryan Wang", person).
type("Shannon Beltran", person).
type("Shelli Beltran", person).
type("Stacia Toombs", person).
type("Tanner Beltran", person).
type("Tosha Beltran", person).
type("Tyson Woodson", person).
type("Ulysses Parmer", person).
type("Vicki Hackworth", person).
type("Vincent Lutz", person).
type("Virgil Hackworth", person).
type("Von Sinclair", person).
type("Wilbert Toombs", person).
type("Williams Smock", person).
type("Wm Parmer", person).
type("Angela Culver", person).
type("Anibal Stansberry", person).
type("Barbara Philpott", person).
type("Bev Gilmore", person).
type("Brigette Gilmore", person).
type("Celia Macmillan", person).
type("Conrad Stansberry", person).
type("Cordelia Wiggs", person).
type("David Wiggs", person).
type("Debra Stansberry", person).
type("Desiree Stansberry", person).
type("Diane Culver", person).
type("Dionne Stansberry", person).
type("Eliza Wiggs", person).
type("Emanuel Stansberry", person).
type("Frankie Hagerty", person).
type("Gail Culver", person).
type("Garry Gilmore", person).
type("Gillian Wiggs", person).
type("Glenda Culver", person).
type("Hayden Stansberry", person).
type("Howard Wiggs", person).
type("Hyun Hagerty", person).
type("Iva Stansberry", person).
type("Jordan Culver", person).
type("Jules Culver", person).
type("Justine Hagerty", person).
type("Kelvin Culver", person).
type("Kori Wiggs", person).
type("Laverna Stansberry", person).
type("Lester Stansberry", person).
type("Lincoln Velasco", person).
type("Lionel Culver", person).
type("Loren Culver", person).
type("Markus Hagerty", person).
type("Maurine Velasco", person).
type("Mickey Philpott", person).
type("Millard Stansberry", person).
type("Nikki Stansberry", person).
type("Oren Stansberry", person).
type("Quintin Hagerty", person).
type("Renate Stansberry", person).
type("Sona Stansberry", person).
type("Tad Macmillan", person).
type("Tamara Macmillan", person).
type("Terence Culver", person).
type("Tonya Culver", person).
type("Victor Stansberry", person).
type("Wilmer Hagerty", person).
type("Yolanda Philpott", person).
type("Adelaida Ricketts", person).
type("Benny Abrams", person).
type("Bobby Ricketts", person).
type("Bridget Solorio", person).
type("Brooks Ricketts", person).
type("Cicely Abrams", person).
type("Cordelia Zepeda", person).
type("Cory Ricketts", person).
type("Dee Ricketts", person).
type("Deidra Ricketts", person).
type("Dennis Ricketts", person).
type("Edmund Abrams", person).
type("Erin Ricketts", person).
type("Flora Ricketts", person).
type("Hoa Leija", person).
type("Jennifer Ricketts", person).
type("Kory Ricketts", person).
type("Kristie Abrams", person).
type("Kristopher Ricketts", person).
type("Lauren Brumbaugh", person).
type("Lora Ricketts", person).
type("Lyman Leija", person).
type("Madelyn Ricketts", person).
type("Maranda Ricketts", person).
type("Marlene Isaacs", person).
type("Melina Deming", person).
type("Micheal Leija", person).
type("Milton Brumbaugh", person).
type("Mona Leija", person).
type("Nick Solorio", person).
type("Orval Ricketts", person).
type("Paula Ricketts", person).
type("Randi Leija", person).
type("Raymond Leija", person).
type("Reed Abrams", person).
type("Reggie Brumbaugh", person).
type("Renea Ricketts", person).
type("Rhonda Ricketts", person).
type("Rocky Ricketts", person).
type("Rolanda Isaacs", person).
type("Rosalee Brumbaugh", person).
type("Samuel Ricketts", person).
type("Shane Leija", person).
type("Spencer Ricketts", person).
type("Terrell Isaacs", person).
type("Tiffanie Leija", person).
type("Tommy Zepeda", person).
type("Toney Ricketts", person).
type("Ulysses Deming", person).
type("Winnifred Ricketts", person).
type("Adella Schwarz", person).
type("Alberto Schwarz", person).
type("Antony Kinder", person).
type("Aura Schwarz", person).
type("Bernice Kinder", person).
type("Carmelita Schwarz", person).
type("Carter Bolen", person).
type("Clark Kinder", person).
type("Dawne Grover", person).
type("Delbert Menchaca", person).
type("Dillon Schwarz", person).
type("Dylan Schwarz", person).
type("Elbert Canada", person).
type("Elyse Canada", person).
type("Emilie Schwarz", person).
type("Eugene Schwarz", person).
type("Eugenio Schwarz", person).
type("Federico Schwarz", person).
type("Francis Grover", person).
type("Gustavo Grover", person).
type("Hank Schwarz", person).
type("Herbert Bolen", person).
type("Hope Schwarz", person).
type("Irish Schwarz", person).
type("Jeanette Byrd", person).
type("Jeremiah Schwarz", person).
type("Joanna Schwarz", person).
type("Judith Schwarz", person).
type("Kent Schwarz", person).
type("Kimberely Menchaca", person).
type("Lorina Kinder", person).
type("Magdalena Schwarz", person).
type("Nada Schwarz", person).
type("Odette Schwarz", person).
type("Omar Schwarz", person).
type("Pamula Schwarz", person).
type("Paula Bass", person).
type("Phylis Bolen", person).
type("Randi Bass", person).
type("Randi Schwarz", person).
type("Randolph Schwarz", person).
type("Riley Grover", person).
type("Rodolfo Byrd", person).
type("Ross Bolen", person).
type("Shawnta Schwarz", person).
type("Sona Kinder", person).
type("Sueann Bolen", person).
type("Tania Schwarz", person).
type("Tomas Bass", person).
type("Zelda Schwarz", 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").
attribute("public relations officer").
attribute("judo").
attribute("music therapist").
attribute("flying disc").
attribute("librarian").
attribute("cricket").
attribute("building surveyor").
attribute("weightlifting").
attribute("fitness centre manager").
attribute("meditation").
attribute("oceanographer").
attribute("ballroom dancing").
attribute("historic buildings inspector").
attribute("microscopy").
attribute("chief marketing officer").
attribute("reading").
attribute("waste management officer").
attribute("laser tag").
attribute("medical sales representative").
attribute("hiking/backpacking").
attribute("community pharmacist").
attribute("audiophile").
attribute("pension scheme manager").
attribute("tennis polo").
attribute("armed forces logistics officer").
attribute("photography").
attribute("environmental education officer").
attribute("backgammon").
attribute("medical illustrator").
attribute("microscopy").
attribute("museum conservator").
attribute("herping").
attribute("optometrist").
attribute("philately").
attribute("further education lecturer").
attribute("birdwatching").
attribute("dancer").
attribute("shogi").
attribute("water engineer").
attribute("magnet fishing").
attribute("intelligence analyst").
attribute("table tennis").
attribute("fashion designer").
attribute("scuba diving").
attribute("doctor").
attribute("biology").
attribute("chartered accountant").
attribute("sea glass collecting").
attribute("speech and language therapist").
attribute("research").
attribute("clinical embryologist").
attribute("gongoozling").
attribute("community development worker").
attribute("benchmarking").
attribute("games developer").
attribute("sea glass collecting").
attribute("accommodation manager").
attribute("bowling").
attribute("conservation officer").
attribute("audiophile").
attribute("forensic scientist").
attribute("tea bag collecting").
attribute("pharmacologist").
attribute("model aircraft").
attribute("dance movement psychotherapist").
attribute("herping").
attribute("paediatric nurse").
attribute("figure skating").
attribute("research officer").
attribute("fossil hunting").
attribute("production designer").
attribute("airsoft").
attribute("community development worker").
attribute("whale watching").
attribute("clinical molecular geneticist").
attribute("pinball").
attribute("set designer").
attribute("research").
attribute("town planner").
attribute("flying model planes").
attribute("print production planner").
attribute("ant farming").
attribute("equality and diversity officer").
attribute("volleyball").
attribute("chartered loss adjuster").
attribute("gongoozling").
attribute("sales promotion account executive").
attribute("vehicle restoration").
attribute("banker").
attribute("car riding").
attribute("systems developer").
attribute("mycology").
attribute("chief financial officer").
attribute("table football").
attribute("regulatory affairs officer").
attribute("photography").
attribute("architect").
attribute("metal detecting").
attribute("health and safety inspector").
attribute("archery").
attribute("medical secretary").
attribute("reading").
attribute("careers adviser").
attribute("shortwave listening").
attribute("civil service administrator").
attribute("snowmobiling").
attribute("optometrist").
attribute("research").
attribute("print production planner").
attribute("religious studies").
attribute("arboriculturist").
attribute("cooking").
attribute("adult nurse").
attribute("kart racing").
attribute("commercial horticulturist").
attribute("darts").
attribute("conference centre manager").
attribute("herping").
attribute("journalist").
attribute("backgammon").
attribute("wellsite geologist").
attribute("herping").
attribute("community education officer").
attribute("ant farming").
attribute("investment analyst").
attribute("ephemera collecting").
attribute("trading standards officer").
attribute("bus spotting").
attribute("colour technologist").
attribute("research").
attribute("immigration officer").
attribute("croquet").
attribute("human resources officer").
attribute("leaves").
attribute("agricultural consultant").
attribute("antiquities").
attribute("fashion designer").
attribute("field hockey").
attribute("actuary").
attribute("leaves").
attribute("industrial designer").
attribute("auto audiophilia").
attribute("maintenance engineer").
attribute("magic").
attribute("data scientist").
attribute("people-watching").
attribute("health physicist").
attribute("social studies").
attribute("hospital doctor").
attribute("mineral collecting").
attribute("radiographer").
attribute("fusilately").
attribute("midwife").
attribute("surfing").
attribute("music therapist").
attribute("magic").
attribute("medical secretary").
attribute("story writing").
attribute("hospital pharmacist").
attribute("curling").
attribute("chemist").
attribute("museum visiting").
attribute("editor").
attribute("benchmarking").
attribute("technical brewer").
attribute("meteorology").
attribute("hospital pharmacist").
attribute("entrepreneurship").
attribute("learning disability nurse").
attribute("deltiology").
attribute("financial manager").
attribute("badminton").
attribute("chief executive officer").
attribute("flag football").
attribute("programme researcher").
attribute("shooting").
attribute("printmaker").
attribute("rock tumbling").
attribute("sports coach").
attribute("beekeeping").
attribute("trading standards officer").
attribute("ephemera collecting").
attribute("physiological scientist").
attribute("medical science").
attribute("immunologist").
attribute("microscopy").
attribute("advice worker").
attribute("leaves").
attribute("ambulance person").
attribute("philately").
attribute("tourism officer").
attribute("research").
attribute("solicitor").
attribute("horseshoes").
attribute("insurance account manager").
attribute("insect collecting").
attribute("police officer").
attribute("fencing").
attribute("quantity surveyor").
attribute("insect collecting").
attribute("building services engineer").
attribute("book collecting").
attribute("futures trader").
attribute("business").
attribute("prison officer").
attribute("fishkeeping").
attribute("web designer").
attribute("dolls").
attribute("therapeutic radiographer").
attribute("fitness").
attribute("planning and development surveyor").
attribute("paintball").
attribute("neurosurgeon").
attribute("vintage clothing").
attribute("sports administrator").
attribute("shuffleboard").
attribute("quarry manager").
attribute("sports memorabilia").
attribute("homeopath").
attribute("kart racing").
attribute("psychiatrist").
attribute("trapshooting").
attribute("wellsite geologist").
attribute("table tennis").
attribute("historic buildings inspector").
attribute("rock climbing").
attribute("rural practice surveyor").
attribute("gymnastics").
attribute("meteorologist").
attribute("auto audiophilia").
attribute("farm manager").
attribute("myrmecology").
attribute("minerals surveyor").
attribute("flower collecting and pressing").
attribute("textile designer").
attribute("baton twirling").
attribute("teaching laboratory technician").
attribute("metal detecting").
attribute("meteorologist").
attribute("radio-controlled model playing").
attribute("insurance broker").
attribute("fossicking").
attribute("early years teacher").
attribute("shopping").
attribute("curator").
attribute("satellite watching").
attribute("furniture designer").
attribute("carrier pigeons").
attribute("risk analyst").
attribute("publishing").
attribute("museum exhibitions officer").
attribute("learning").
attribute("pilot").
attribute("fishing").
attribute("human resources officer").
attribute("mini golf").
attribute("public relations officer").
attribute("beekeeping").
attribute("solicitor").
attribute("sailing").
attribute("broadcast engineer").
attribute("cycling").
attribute("chiropractor").
attribute("hobby horsing").
attribute("statistician").
attribute("dog walking").
attribute("musician").
attribute("life science").
attribute("economist").
attribute("leaves").
attribute("company secretary").
attribute("volleyball").
attribute("editorial assistant").
attribute("railway studies").
attribute("transport planner").
attribute("butterfly watching").
attribute("customer service manager").
attribute("magnet fishing").
attribute("camera operator").
attribute("insect collecting").
attribute("psychotherapist").
attribute("films").
attribute("scientific laboratory technician").
attribute("race walking").
attribute("travel agency manager").
attribute("dairy farming").
attribute("geologist").
attribute("wikipedia editing").
attribute("soil scientist").
attribute("kart racing").
attribute("optometrist").
attribute("people-watching").
attribute("banker").
attribute("whale watching").
attribute("media buyer").
attribute("shooting sports").
attribute("careers adviser").
attribute("debate").
attribute("garment technologist").
attribute("table tennis").
attribute("advertising art director").
attribute("archaeology").
attribute("market researcher").
attribute("lotology").
attribute("IT consultant").
attribute("stone collecting").
attribute("probation officer").
attribute("birdwatching").
attribute("marketing executive").
attribute("rock balancing").
attribute("investment banker").
attribute("karting").
attribute("product development scientist").
attribute("disc golf").
attribute("museum curator").
attribute("shortwave listening").
attribute("sales professional").
attribute("audiophile").
attribute("charity officer").
attribute("bus spotting").
attribute("charity fundraiser").
attribute("shortwave listening").
attribute("insurance account manager").
attribute("fishkeeping").
attribute("chartered certified accountant").
attribute("tea bag collecting").
attribute("environmental education officer").
attribute("phillumeny").
attribute("chemist").
attribute("stamp collecting").
attribute("research officer").
attribute("volleyball").
attribute("dispensing optician").
attribute("learning").
attribute("operations geologist").
attribute("shooting").
attribute("chartered loss adjuster").
attribute("audiophile").
attribute("bookseller").
attribute("knife collecting").
attribute("arts administrator").
attribute("learning").
attribute("mining engineer").
attribute("letterboxing").
attribute("museum exhibitions officer").
attribute("beekeeping").
attribute("forensic scientist").
attribute("bridge").
attribute("chief technology officer").
attribute("perfume").

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", "Jamison Baptiste").
friend_("Aida Wang", "Ulysses Parmer").
friend_("Aida Wang", "Angela Culver").
friend_("Aida Wang", "Paula Ricketts").
friend_("Aida Wang", "Rhonda Ricketts").
friend_("Aida Wang", "Hope Schwarz").
friend_("Alec Sinclair", "Anibal Stansberry").
friend_("Alec Sinclair", "Lester Stansberry").
friend_("Alec Sinclair", "Milton Brumbaugh").
friend_("Alec Sinclair", "Riley Grover").
friend_("Alfredo Wang", "Lonny Parmer").
friend_("Alfredo Wang", "Emanuel Stansberry").
friend_("Alfredo Wang", "Justine Hagerty").
friend_("Alfredo Wang", "Kori Wiggs").
friend_("Alfredo Wang", "Cory Ricketts").
friend_("Alfredo Wang", "Phylis Bolen").
friend_("Alfredo Wang", "Riley Grover").
friend_("Alison Smock", "Alvaro Smock").
friend_("Alison Smock", "Milton Brumbaugh").
friend_("Alison Smock", "Rosalee Brumbaugh").
friend_("Alvaro Smock", "Conrad Stansberry").
friend_("Alvaro Smock", "Mickey Philpott").
friend_("Alvaro Smock", "Milton Brumbaugh").
friend_("Alycia Coe", "Cordelia Wiggs").
friend_("Barabara Beltran", "Celia Macmillan").
friend_("Barabara Beltran", "Conrad Stansberry").
friend_("Barabara Beltran", "Kristie Abrams").
friend_("Barabara Beltran", "Lyman Leija").
friend_("Brian Beltran", "Jennifer Ricketts").
friend_("Brian Beltran", "Kristopher Ricketts").
friend_("Brian Beltran", "Randi Bass").
friend_("Carrol Woodson", "Renea Ricketts").
friend_("Christoper Coe", "Cordelia Zepeda").
friend_("Cortney Parmer", "David Wiggs").
friend_("Cortney Parmer", "Ulysses Deming").
friend_("Cortney Parmer", "Shawnta Schwarz").
friend_("Cythia Smock", "Leisa Lutz").
friend_("Cythia Smock", "Ryan Wang").
friend_("Cythia Smock", "Nikki Stansberry").
friend_("Cythia Smock", "Wilmer Hagerty").
friend_("Cythia Smock", "Paula Bass").
friend_("Cythia Smock", "Ross Bolen").
friend_("Dino Beltran", "Shannon Beltran").
friend_("Dominique Smock", "Dwight Hackworth").
friend_("Dominique Smock", "Odette Schwarz").
friend_("Dwight Hackworth", "Noelia Lutz").
friend_("Dwight Hackworth", "Victor Stansberry").
friend_("Dwight Hackworth", "Odette Schwarz").
friend_("Earle Coe", "Rhonda Ricketts").
friend_("Earle Coe", "Carter Bolen").
friend_("Eli Smock", "Ulysses Parmer").
friend_("Eli Smock", "Brooks Ricketts").
friend_("Eli Smock", "Clark Kinder").
friend_("Eli Smock", "Elbert Canada").
friend_("Gayla Woodson", "Howard Wiggs").
friend_("Gayla Woodson", "Millard Stansberry").
friend_("Gayla Woodson", "Orval Ricketts").
friend_("Gene Smock", "Jamison Baptiste").
friend_("Gene Smock", "Rosalee Brumbaugh").
friend_("Isiah Lutz", "Lannie Smock").
friend_("Isiah Lutz", "Shane Leija").
friend_("Isiah Lutz", "Carmelita Schwarz").
friend_("Isiah Lutz", "Francis Grover").
friend_("Jamison Baptiste", "Laverna Stansberry").
friend_("Jamison Baptiste", "Randolph Schwarz").
friend_("Kristen Toombs", "Noelia Lutz").
friend_("Kristen Toombs", "Celia Macmillan").
friend_("Kristen Toombs", "Conrad Stansberry").
friend_("Kristen Toombs", "Loren Culver").
friend_("Kristen Toombs", "Cory Ricketts").
friend_("Lannie Smock", "Winnifred Ricketts").
friend_("Lannie Smock", "Irish Schwarz").
friend_("Leeann Sinclair", "Noelia Lutz").
friend_("Leeann Sinclair", "Kent Schwarz").
friend_("Lesley Lutz", "Quintin Hagerty").
friend_("Lesley Lutz", "Winnifred Ricketts").
friend_("Lesley Lutz", "Jeremiah Schwarz").
friend_("Lissa Coe", "Debra Stansberry").
friend_("Lissa Coe", "Sona Stansberry").
friend_("Lissa Coe", "Bobby Ricketts").
friend_("Lissa Coe", "Raymond Leija").
friend_("Lonny Parmer", "Brigette Gilmore").
friend_("Lonny Parmer", "David Wiggs").
friend_("Lonny Parmer", "Eugenio Schwarz").
friend_("Maria Baptiste", "Oren Stansberry").
friend_("Maria Baptiste", "Melina Deming").
friend_("Michelle Hackworth", "Nick Solorio").
friend_("Michelle Hackworth", "Ulysses Deming").
friend_("Noelia Lutz", "Toney Ricketts").
friend_("Noelia Lutz", "Ulysses Deming").
friend_("Orlando Beltran", "Hyun Hagerty").
friend_("Orlando Beltran", "Paula Ricketts").
friend_("Reggie Coe", "Von Sinclair").
friend_("Ricardo Hackworth", "Stacia Toombs").
friend_("Ryan Wang", "Stacia Toombs").
friend_("Shannon Beltran", "Tanner Beltran").
friend_("Shannon Beltran", "Renate Stansberry").
friend_("Shannon Beltran", "Jeremiah Schwarz").
friend_("Shannon Beltran", "Kimberely Menchaca").
friend_("Shannon Beltran", "Ross Bolen").
friend_("Stacia Toombs", "Justine Hagerty").
friend_("Stacia Toombs", "Francis Grover").
friend_("Tanner Beltran", "Mickey Philpott").
friend_("Tanner Beltran", "Tomas Bass").
friend_("Tosha Beltran", "Samuel Ricketts").
friend_("Tyson Woodson", "Marlene Isaacs").
friend_("Tyson Woodson", "Ross Bolen").
friend_("Ulysses Parmer", "Iva Stansberry").
friend_("Vicki Hackworth", "Lauren Brumbaugh").
friend_("Vicki Hackworth", "Nick Solorio").
friend_("Vicki Hackworth", "Raymond Leija").
friend_("Vincent Lutz", "Wm Parmer").
friend_("Vincent Lutz", "Zelda Schwarz").
friend_("Virgil Hackworth", "David Wiggs").
friend_("Virgil Hackworth", "Dionne Stansberry").
friend_("Virgil Hackworth", "Markus Hagerty").
friend_("Virgil Hackworth", "Elbert Canada").
friend_("Virgil Hackworth", "Randolph Schwarz").
friend_("Von Sinclair", "Micheal Leija").
friend_("Von Sinclair", "Bernice Kinder").
friend_("Wilbert Toombs", "Wm Parmer").
friend_("Williams Smock", "Markus Hagerty").
friend_("Williams Smock", "Lorina Kinder").
friend_("Williams Smock", "Paula Bass").
friend_("Williams Smock", "Sona Kinder").
friend_("Wm Parmer", "Victor Stansberry").
friend_("Wm Parmer", "Melina Deming").
friend_("Wm Parmer", "Reggie Brumbaugh").
friend_("Angela Culver", "Cordelia Wiggs").
friend_("Angela Culver", "Debra Stansberry").
friend_("Anibal Stansberry", "Eliza Wiggs").
friend_("Anibal Stansberry", "Kristopher Ricketts").
friend_("Anibal Stansberry", "Randi Schwarz").
friend_("Barbara Philpott", "Debra Stansberry").
friend_("Barbara Philpott", "Diane Culver").
friend_("Barbara Philpott", "Mickey Philpott").
friend_("Barbara Philpott", "Tonya Culver").
friend_("Barbara Philpott", "Lora Ricketts").
friend_("Barbara Philpott", "Carmelita Schwarz").
friend_("Bev Gilmore", "Hayden Stansberry").
friend_("Bev Gilmore", "Kimberely Menchaca").
friend_("Brigette Gilmore", "Carter Bolen").
friend_("Celia Macmillan", "Bridget Solorio").
friend_("Celia Macmillan", "Jeanette Byrd").
friend_("Cordelia Wiggs", "Alberto Schwarz").
friend_("Cordelia Wiggs", "Paula Bass").
friend_("David Wiggs", "Maranda Ricketts").
friend_("Debra Stansberry", "Orval Ricketts").
friend_("Debra Stansberry", "Kimberely Menchaca").
friend_("Diane Culver", "Gillian Wiggs").
friend_("Diane Culver", "Dennis Ricketts").
friend_("Diane Culver", "Jennifer Ricketts").
friend_("Diane Culver", "Reggie Brumbaugh").
friend_("Diane Culver", "Elbert Canada").
friend_("Dionne Stansberry", "Hayden Stansberry").
friend_("Dionne Stansberry", "Lincoln Velasco").
friend_("Dionne Stansberry", "Victor Stansberry").
friend_("Dionne Stansberry", "Kristie Abrams").
friend_("Eliza Wiggs", "Mona Leija").
friend_("Emanuel Stansberry", "Lyman Leija").
friend_("Emanuel Stansberry", "Clark Kinder").
friend_("Emanuel Stansberry", "Delbert Menchaca").
friend_("Emanuel Stansberry", "Zelda Schwarz").
friend_("Frankie Hagerty", "Tad Macmillan").
friend_("Frankie Hagerty", "Edmund Abrams").
friend_("Frankie Hagerty", "Nick Solorio").
friend_("Frankie Hagerty", "Joanna Schwarz").
friend_("Frankie Hagerty", "Omar Schwarz").
friend_("Frankie Hagerty", "Randolph Schwarz").
friend_("Gail Culver", "Samuel Ricketts").
friend_("Gail Culver", "Delbert Menchaca").
friend_("Garry Gilmore", "Markus Hagerty").
friend_("Garry Gilmore", "Cordelia Zepeda").
friend_("Gillian Wiggs", "Oren Stansberry").
friend_("Gillian Wiggs", "Deidra Ricketts").
friend_("Gillian Wiggs", "Omar Schwarz").
friend_("Glenda Culver", "Loren Culver").
friend_("Glenda Culver", "Deidra Ricketts").
friend_("Glenda Culver", "Paula Ricketts").
friend_("Glenda Culver", "Carter Bolen").
friend_("Hayden Stansberry", "Dawne Grover").
friend_("Hayden Stansberry", "Paula Bass").
friend_("Hyun Hagerty", "Sona Stansberry").
friend_("Hyun Hagerty", "Hoa Leija").
friend_("Iva Stansberry", "Bridget Solorio").
friend_("Iva Stansberry", "Eugenio Schwarz").
friend_("Jordan Culver", "Sona Stansberry").
friend_("Jordan Culver", "Madelyn Ricketts").
friend_("Jules Culver", "Kori Wiggs").
friend_("Jules Culver", "Cory Ricketts").
friend_("Jules Culver", "Flora Ricketts").
friend_("Justine Hagerty", "Hank Schwarz").
friend_("Kelvin Culver", "Sona Stansberry").
friend_("Kelvin Culver", "Benny Abrams").
friend_("Kelvin Culver", "Kristie Abrams").
friend_("Kelvin Culver", "Carter Bolen").
friend_("Kelvin Culver", "Dylan Schwarz").
friend_("Laverna Stansberry", "Rodolfo Byrd").
friend_("Lester Stansberry", "Adelaida Ricketts").
friend_("Lester Stansberry", "Kimberely Menchaca").
friend_("Lester Stansberry", "Nada Schwarz").
friend_("Lincoln Velasco", "Kristopher Ricketts").
friend_("Lincoln Velasco", "Carmelita Schwarz").
friend_("Lincoln Velasco", "Delbert Menchaca").
friend_("Loren Culver", "Paula Ricketts").
friend_("Loren Culver", "Renea Ricketts").
friend_("Markus Hagerty", "Reed Abrams").
friend_("Maurine Velasco", "Renate Stansberry").
friend_("Maurine Velasco", "Orval Ricketts").
friend_("Maurine Velasco", "Sueann Bolen").
friend_("Mickey Philpott", "Nikki Stansberry").
friend_("Mickey Philpott", "Reed Abrams").
friend_("Millard Stansberry", "Omar Schwarz").
friend_("Nikki Stansberry", "Reed Abrams").
friend_("Oren Stansberry", "Rosalee Brumbaugh").
friend_("Oren Stansberry", "Herbert Bolen").
friend_("Oren Stansberry", "Odette Schwarz").
friend_("Oren Stansberry", "Paula Bass").
friend_("Quintin Hagerty", "Jeremiah Schwarz").
friend_("Renate Stansberry", "Paula Ricketts").
friend_("Renate Stansberry", "Clark Kinder").
friend_("Sona Stansberry", "Mona Leija").
friend_("Sona Stansberry", "Tomas Bass").
friend_("Tad Macmillan", "Lora Ricketts").
friend_("Tad Macmillan", "Rolanda Isaacs").
friend_("Tad Macmillan", "Sueann Bolen").
friend_("Tamara Macmillan", "Elyse Canada").
friend_("Terence Culver", "Lora Ricketts").
friend_("Tonya Culver", "Magdalena Schwarz").
friend_("Tonya Culver", "Odette Schwarz").
friend_("Victor Stansberry", "Milton Brumbaugh").
friend_("Victor Stansberry", "Mona Leija").
friend_("Victor Stansberry", "Carmelita Schwarz").
friend_("Wilmer Hagerty", "Erin Ricketts").
friend_("Wilmer Hagerty", "Jennifer Ricketts").
friend_("Wilmer Hagerty", "Jeremiah Schwarz").
friend_("Yolanda Philpott", "Reed Abrams").
friend_("Benny Abrams", "Terrell Isaacs").
friend_("Benny Abrams", "Jeremiah Schwarz").
friend_("Bobby Ricketts", "Jennifer Ricketts").
friend_("Bridget Solorio", "Rodolfo Byrd").
friend_("Brooks Ricketts", "Lorina Kinder").
friend_("Cicely Abrams", "Raymond Leija").
friend_("Cicely Abrams", "Odette Schwarz").
friend_("Cordelia Zepeda", "Spencer Ricketts").
friend_("Cory Ricketts", "Jeremiah Schwarz").
friend_("Dee Ricketts", "Lauren Brumbaugh").
friend_("Dee Ricketts", "Delbert Menchaca").
friend_("Deidra Ricketts", "Mona Leija").
friend_("Deidra Ricketts", "Emilie Schwarz").
friend_("Deidra Ricketts", "Randolph Schwarz").
friend_("Dennis Ricketts", "Kristopher Ricketts").
friend_("Dennis Ricketts", "Antony Kinder").
friend_("Dennis Ricketts", "Judith Schwarz").
friend_("Dennis Ricketts", "Sueann Bolen").
friend_("Erin Ricketts", "Randi Leija").
friend_("Erin Ricketts", "Tiffanie Leija").
friend_("Flora Ricketts", "Lora Ricketts").
friend_("Hoa Leija", "Alberto Schwarz").
friend_("Kory Ricketts", "Eugene Schwarz").
friend_("Kory Ricketts", "Zelda Schwarz").
friend_("Kristie Abrams", "Milton Brumbaugh").
friend_("Kristie Abrams", "Randolph Schwarz").
friend_("Lora Ricketts", "Herbert Bolen").
friend_("Lyman Leija", "Micheal Leija").
friend_("Madelyn Ricketts", "Toney Ricketts").
friend_("Maranda Ricketts", "Rosalee Brumbaugh").
friend_("Marlene Isaacs", "Francis Grover").
friend_("Melina Deming", "Milton Brumbaugh").
friend_("Melina Deming", "Rocky Ricketts").
friend_("Micheal Leija", "Terrell Isaacs").
friend_("Micheal Leija", "Kent Schwarz").
friend_("Milton Brumbaugh", "Alberto Schwarz").
friend_("Milton Brumbaugh", "Bernice Kinder").
friend_("Mona Leija", "Orval Ricketts").
friend_("Orval Ricketts", "Francis Grover").
friend_("Raymond Leija", "Samuel Ricketts").
friend_("Reed Abrams", "Hope Schwarz").
friend_("Reggie Brumbaugh", "Gustavo Grover").
friend_("Renea Ricketts", "Elbert Canada").
friend_("Rhonda Ricketts", "Tiffanie Leija").
friend_("Rhonda Ricketts", "Hank Schwarz").
friend_("Rhonda Ricketts", "Magdalena Schwarz").
friend_("Rocky Ricketts", "Samuel Ricketts").
friend_("Rocky Ricketts", "Emilie Schwarz").
friend_("Rocky Ricketts", "Judith Schwarz").
friend_("Rosalee Brumbaugh", "Winnifred Ricketts").
friend_("Samuel Ricketts", "Zelda Schwarz").
friend_("Spencer Ricketts", "Francis Grover").
friend_("Ulysses Deming", "Herbert Bolen").
friend_("Adella Schwarz", "Carter Bolen").
friend_("Alberto Schwarz", "Gustavo Grover").
friend_("Dawne Grover", "Kent Schwarz").
friend_("Delbert Menchaca", "Magdalena Schwarz").
friend_("Dillon Schwarz", "Zelda Schwarz").
friend_("Elbert Canada", "Phylis Bolen").
friend_("Emilie Schwarz", "Rodolfo Byrd").
friend_("Eugenio Schwarz", "Zelda Schwarz").
friend_("Gustavo Grover", "Joanna Schwarz").
friend_("Hank Schwarz", "Tomas Bass").
friend_("Jeanette Byrd", "Sueann Bolen").
friend_("Lorina Kinder", "Paula Bass").
friend_("Randi Bass", "Randolph Schwarz").
friend_("Randi Bass", "Zelda Schwarz").

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("Alfredo Wang", "Aida Wang").
parent("Alfredo Wang", "Ryan Wang").
parent("Barabara Beltran", "Dino Beltran").
parent("Barabara Beltran", "Shelli Beltran").
parent("Christina Coe", "Stacia Toombs").
parent("Christina Coe", "Wilbert Toombs").
parent("Cortney Parmer", "Aida Wang").
parent("Cortney Parmer", "Ryan Wang").
parent("Cythia Smock", "Alison Smock").
parent("Cythia Smock", "Williams Smock").
parent("Dino Beltran", "Brian Beltran").
parent("Dino Beltran", "Daisy Beltran").
parent("Dwight Hackworth", "Ricardo Hackworth").
parent("Dwight Hackworth", "Vicki Hackworth").
parent("Earle Coe", "Alycia Coe").
parent("Earle Coe", "Christoper Coe").
parent("Eli Smock", "Alvaro Smock").
parent("Eli Smock", "Lannie Smock").
parent("Gayla Woodson", "Lissa Coe").
parent("Gayla Woodson", "Reggie Coe").
parent("Gene Smock", "Alvaro Smock").
parent("Gene Smock", "Lannie Smock").
parent("Kristen Toombs", "Stacia Toombs").
parent("Kristen Toombs", "Wilbert Toombs").
parent("Leeann Sinclair", "Ricardo Hackworth").
parent("Leeann Sinclair", "Vicki Hackworth").
parent("Leisa Lutz", "Ricardo Hackworth").
parent("Leisa Lutz", "Vicki Hackworth").
parent("Lesley Lutz", "Isiah Lutz").
parent("Lesley Lutz", "Leisa Lutz").
parent("Lonny Parmer", "Cortney Parmer").
parent("Lonny Parmer", "Ulysses Parmer").
parent("Michelle Hackworth", "Ricardo Hackworth").
parent("Michelle Hackworth", "Vicki Hackworth").
parent("Orlando Beltran", "Brian Beltran").
parent("Orlando Beltran", "Daisy Beltran").
parent("Reggie Coe", "Christina Coe").
parent("Reggie Coe", "Earle Coe").
parent("Shannon Beltran", "Orlando Beltran").
parent("Shannon Beltran", "Tosha Beltran").
parent("Shelli Beltran", "Alison Smock").
parent("Shelli Beltran", "Williams Smock").
parent("Stacia Toombs", "Alison Smock").
parent("Stacia Toombs", "Williams Smock").
parent("Tanner Beltran", "Brian Beltran").
parent("Tanner Beltran", "Daisy Beltran").
parent("Tosha Beltran", "Jamison Baptiste").
parent("Tosha Beltran", "Maria Baptiste").
parent("Tyson Woodson", "Carrol Woodson").
parent("Tyson Woodson", "Gayla Woodson").
parent("Vicki Hackworth", "Dino Beltran").
parent("Vicki Hackworth", "Shelli Beltran").
parent("Vincent Lutz", "Lesley Lutz").
parent("Vincent Lutz", "Noelia Lutz").
parent("Virgil Hackworth", "Ricardo Hackworth").
parent("Virgil Hackworth", "Vicki Hackworth").
parent("Von Sinclair", "Alec Sinclair").
parent("Von Sinclair", "Leeann Sinclair").
parent("Williams Smock", "Dominique Smock").
parent("Williams Smock", "Gene Smock").
parent("Wm Parmer", "Cortney Parmer").
parent("Wm Parmer", "Ulysses Parmer").
parent("Angela Culver", "Diane Culver").
parent("Angela Culver", "Jules Culver").
parent("Anibal Stansberry", "Iva Stansberry").
parent("Anibal Stansberry", "Oren Stansberry").
parent("Bev Gilmore", "Brigette Gilmore").
parent("Bev Gilmore", "Garry Gilmore").
parent("Brigette Gilmore", "Gail Culver").
parent("Brigette Gilmore", "Terence Culver").
parent("Celia Macmillan", "Desiree Stansberry").
parent("Celia Macmillan", "Millard Stansberry").
parent("Conrad Stansberry", "Anibal Stansberry").
parent("Conrad Stansberry", "Renate Stansberry").
parent("Dionne Stansberry", "Debra Stansberry").
parent("Dionne Stansberry", "Hayden Stansberry").
parent("Eliza Wiggs", "Gillian Wiggs").
parent("Eliza Wiggs", "Howard Wiggs").
parent("Emanuel Stansberry", "Debra Stansberry").
parent("Emanuel Stansberry", "Hayden Stansberry").
parent("Frankie Hagerty", "Justine Hagerty").
parent("Frankie Hagerty", "Markus Hagerty").
parent("Gail Culver", "Lincoln Velasco").
parent("Gail Culver", "Maurine Velasco").
parent("Gillian Wiggs", "Anibal Stansberry").
parent("Gillian Wiggs", "Renate Stansberry").
parent("Hayden Stansberry", "Anibal Stansberry").
parent("Hayden Stansberry", "Renate Stansberry").
parent("Howard Wiggs", "Cordelia Wiggs").
parent("Howard Wiggs", "David Wiggs").
parent("Hyun Hagerty", "Brigette Gilmore").
parent("Hyun Hagerty", "Garry Gilmore").
parent("Iva Stansberry", "Barbara Philpott").
parent("Iva Stansberry", "Mickey Philpott").
parent("Jordan Culver", "Loren Culver").
parent("Jordan Culver", "Tonya Culver").
parent("Jules Culver", "Loren Culver").
parent("Jules Culver", "Tonya Culver").
parent("Kelvin Culver", "Diane Culver").
parent("Kelvin Culver", "Jules Culver").
parent("Kori Wiggs", "Gillian Wiggs").
parent("Kori Wiggs", "Howard Wiggs").
parent("Laverna Stansberry", "Anibal Stansberry").
parent("Laverna Stansberry", "Renate Stansberry").
parent("Lester Stansberry", "Conrad Stansberry").
parent("Lester Stansberry", "Sona Stansberry").
parent("Lionel Culver", "Glenda Culver").
parent("Lionel Culver", "Jordan Culver").
parent("Millard Stansberry", "Anibal Stansberry").
parent("Millard Stansberry", "Renate Stansberry").
parent("Nikki Stansberry", "Desiree Stansberry").
parent("Nikki Stansberry", "Millard Stansberry").
parent("Quintin Hagerty", "Frankie Hagerty").
parent("Quintin Hagerty", "Hyun Hagerty").
parent("Renate Stansberry", "Frankie Hagerty").
parent("Renate Stansberry", "Hyun Hagerty").
parent("Tamara Macmillan", "Celia Macmillan").
parent("Tamara Macmillan", "Tad Macmillan").
parent("Terence Culver", "Glenda Culver").
parent("Terence Culver", "Jordan Culver").
parent("Victor Stansberry", "Iva Stansberry").
parent("Victor Stansberry", "Oren Stansberry").
parent("Wilmer Hagerty", "Justine Hagerty").
parent("Wilmer Hagerty", "Markus Hagerty").
parent("Yolanda Philpott", "Barbara Philpott").
parent("Yolanda Philpott", "Mickey Philpott").
parent("Benny Abrams", "Cicely Abrams").
parent("Benny Abrams", "Reed Abrams").
parent("Bobby Ricketts", "Paula Ricketts").
parent("Bobby Ricketts", "Rocky Ricketts").
parent("Bridget Solorio", "Rhonda Ricketts").
parent("Bridget Solorio", "Spencer Ricketts").
parent("Brooks Ricketts", "Cory Ricketts").
parent("Brooks Ricketts", "Flora Ricketts").
parent("Cory Ricketts", "Kristopher Ricketts").
parent("Cory Ricketts", "Madelyn Ricketts").
parent("Dee Ricketts", "Deidra Ricketts").
parent("Dee Ricketts", "Toney Ricketts").
parent("Deidra Ricketts", "Cordelia Zepeda").
parent("Deidra Ricketts", "Tommy Zepeda").
parent("Dennis Ricketts", "Brooks Ricketts").
parent("Dennis Ricketts", "Erin Ricketts").
parent("Erin Ricketts", "Cicely Abrams").
parent("Erin Ricketts", "Reed Abrams").
parent("Hoa Leija", "Shane Leija").
parent("Hoa Leija", "Tiffanie Leija").
parent("Jennifer Ricketts", "Deidra Ricketts").
parent("Jennifer Ricketts", "Toney Ricketts").
parent("Kory Ricketts", "Adelaida Ricketts").
parent("Kory Ricketts", "Dennis Ricketts").
parent("Lauren Brumbaugh", "Reggie Brumbaugh").
parent("Lauren Brumbaugh", "Rosalee Brumbaugh").
parent("Lora Ricketts", "Adelaida Ricketts").
parent("Lora Ricketts", "Dennis Ricketts").
parent("Lyman Leija", "Shane Leija").
parent("Lyman Leija", "Tiffanie Leija").
parent("Maranda Ricketts", "Rhonda Ricketts").
parent("Maranda Ricketts", "Spencer Ricketts").
parent("Marlene Isaacs", "Rolanda Isaacs").
parent("Marlene Isaacs", "Terrell Isaacs").
parent("Micheal Leija", "Lyman Leija").
parent("Micheal Leija", "Randi Leija").
parent("Milton Brumbaugh", "Reggie Brumbaugh").
parent("Milton Brumbaugh", "Rosalee Brumbaugh").
parent("Mona Leija", "Lyman Leija").
parent("Mona Leija", "Randi Leija").
parent("Orval Ricketts", "Cory Ricketts").
parent("Orval Ricketts", "Flora Ricketts").
parent("Paula Ricketts", "Lyman Leija").
parent("Paula Ricketts", "Randi Leija").
parent("Raymond Leija", "Lyman Leija").
parent("Raymond Leija", "Randi Leija").
parent("Reed Abrams", "Edmund Abrams").
parent("Reed Abrams", "Kristie Abrams").
parent("Renea Ricketts", "Cory Ricketts").
parent("Renea Ricketts", "Flora Ricketts").
parent("Rhonda Ricketts", "Melina Deming").
parent("Rhonda Ricketts", "Ulysses Deming").
parent("Rocky Ricketts", "Brooks Ricketts").
parent("Rocky Ricketts", "Erin Ricketts").
parent("Rolanda Isaacs", "Brooks Ricketts").
parent("Rolanda Isaacs", "Erin Ricketts").
parent("Rosalee Brumbaugh", "Bridget Solorio").
parent("Rosalee Brumbaugh", "Nick Solorio").
parent("Samuel Ricketts", "Paula Ricketts").
parent("Samuel Ricketts", "Rocky Ricketts").
parent("Spencer Ricketts", "Paula Ricketts").
parent("Spencer Ricketts", "Rocky Ricketts").
parent("Toney Ricketts", "Paula Ricketts").
parent("Toney Ricketts", "Rocky Ricketts").
parent("Winnifred Ricketts", "Paula Ricketts").
parent("Winnifred Ricketts", "Rocky Ricketts").
parent("Adella Schwarz", "Irish Schwarz").
parent("Adella Schwarz", "Jeremiah Schwarz").
parent("Alberto Schwarz", "Dillon Schwarz").
parent("Alberto Schwarz", "Pamula Schwarz").
parent("Antony Kinder", "Bernice Kinder").
parent("Antony Kinder", "Clark Kinder").
parent("Aura Schwarz", "Omar Schwarz").
parent("Aura Schwarz", "Tania Schwarz").
parent("Bernice Kinder", "Judith Schwarz").
parent("Bernice Kinder", "Kent Schwarz").
parent("Carmelita Schwarz", "Eugenio Schwarz").
parent("Carmelita Schwarz", "Odette Schwarz").
parent("Carter Bolen", "Ross Bolen").
parent("Carter Bolen", "Sueann Bolen").
parent("Dawne Grover", "Bernice Kinder").
parent("Dawne Grover", "Clark Kinder").
parent("Dillon Schwarz", "Eugenio Schwarz").
parent("Dillon Schwarz", "Odette Schwarz").
parent("Emilie Schwarz", "Dillon Schwarz").
parent("Emilie Schwarz", "Pamula Schwarz").
parent("Eugene Schwarz", "Dillon Schwarz").
parent("Eugene Schwarz", "Pamula Schwarz").
parent("Eugenio Schwarz", "Omar Schwarz").
parent("Eugenio Schwarz", "Tania Schwarz").
parent("Federico Schwarz", "Alberto Schwarz").
parent("Federico Schwarz", "Nada Schwarz").
parent("Francis Grover", "Dawne Grover").
parent("Francis Grover", "Gustavo Grover").
parent("Hank Schwarz", "Irish Schwarz").
parent("Hank Schwarz", "Jeremiah Schwarz").
parent("Herbert Bolen", "Ross Bolen").
parent("Herbert Bolen", "Sueann Bolen").
parent("Irish Schwarz", "Jeanette Byrd").
parent("Irish Schwarz", "Rodolfo Byrd").
parent("Jeremiah Schwarz", "Dillon Schwarz").
parent("Jeremiah Schwarz", "Pamula Schwarz").
parent("Joanna Schwarz", "Hank Schwarz").
parent("Joanna Schwarz", "Hope Schwarz").
parent("Kent Schwarz", "Eugenio Schwarz").
parent("Kent Schwarz", "Odette Schwarz").
parent("Lorina Kinder", "Antony Kinder").
parent("Lorina Kinder", "Sona Kinder").
parent("Magdalena Schwarz", "Dillon Schwarz").
parent("Magdalena Schwarz", "Pamula Schwarz").
parent("Omar Schwarz", "Dylan Schwarz").
parent("Omar Schwarz", "Shawnta Schwarz").
parent("Pamula Schwarz", "Delbert Menchaca").
parent("Pamula Schwarz", "Kimberely Menchaca").
parent("Paula Bass", "Randi Bass").
parent("Paula Bass", "Tomas Bass").
parent("Randi Bass", "Carter Bolen").
parent("Randi Bass", "Phylis Bolen").
parent("Randi Schwarz", "Judith Schwarz").
parent("Randi Schwarz", "Kent Schwarz").
parent("Randolph Schwarz", "Irish Schwarz").
parent("Randolph Schwarz", "Jeremiah Schwarz").
parent("Riley Grover", "Dawne Grover").
parent("Riley Grover", "Gustavo Grover").
parent("Sueann Bolen", "Eugenio Schwarz").
parent("Sueann Bolen", "Odette Schwarz").
parent("Tania Schwarz", "Elbert Canada").
parent("Tania Schwarz", "Elyse Canada").
parent("Zelda Schwarz", "Eugenio Schwarz").
parent("Zelda Schwarz", "Odette Schwarz").

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("Alec Sinclair", "male").
gender("Alfredo Wang", "male").
gender("Alison Smock", "female").
gender("Alvaro Smock", "male").
gender("Alycia Coe", "female").
gender("Barabara Beltran", "female").
gender("Brian Beltran", "male").
gender("Carrol Woodson", "male").
gender("Christina Coe", "female").
gender("Christoper Coe", "male").
gender("Cortney Parmer", "female").
gender("Cythia Smock", "female").
gender("Daisy Beltran", "female").
gender("Dino Beltran", "male").
gender("Dominique Smock", "female").
gender("Dwight Hackworth", "male").
gender("Earle Coe", "male").
gender("Eli Smock", "male").
gender("Gayla Woodson", "female").
gender("Gene Smock", "male").
gender("Isiah Lutz", "male").
gender("Jamison Baptiste", "male").
gender("Kristen Toombs", "female").
gender("Lannie Smock", "female").
gender("Leeann Sinclair", "female").
gender("Leisa Lutz", "female").
gender("Lesley Lutz", "male").
gender("Lissa Coe", "female").
gender("Lonny Parmer", "male").
gender("Maria Baptiste", "female").
gender("Michelle Hackworth", "female").
gender("Noelia Lutz", "female").
gender("Orlando Beltran", "male").
gender("Reggie Coe", "male").
gender("Ricardo Hackworth", "male").
gender("Ryan Wang", "male").
gender("Shannon Beltran", "female").
gender("Shelli Beltran", "female").
gender("Stacia Toombs", "female").
gender("Tanner Beltran", "male").
gender("Tosha Beltran", "female").
gender("Tyson Woodson", "male").
gender("Ulysses Parmer", "male").
gender("Vicki Hackworth", "female").
gender("Vincent Lutz", "male").
gender("Virgil Hackworth", "male").
gender("Von Sinclair", "male").
gender("Wilbert Toombs", "male").
gender("Williams Smock", "male").
gender("Wm Parmer", "male").
gender("Angela Culver", "female").
gender("Anibal Stansberry", "male").
gender("Barbara Philpott", "female").
gender("Bev Gilmore", "female").
gender("Brigette Gilmore", "female").
gender("Celia Macmillan", "female").
gender("Conrad Stansberry", "male").
gender("Cordelia Wiggs", "female").
gender("David Wiggs", "male").
gender("Debra Stansberry", "female").
gender("Desiree Stansberry", "female").
gender("Diane Culver", "female").
gender("Dionne Stansberry", "female").
gender("Eliza Wiggs", "female").
gender("Emanuel Stansberry", "male").
gender("Frankie Hagerty", "male").
gender("Gail Culver", "female").
gender("Garry Gilmore", "male").
gender("Gillian Wiggs", "female").
gender("Glenda Culver", "female").
gender("Hayden Stansberry", "male").
gender("Howard Wiggs", "male").
gender("Hyun Hagerty", "female").
gender("Iva Stansberry", "female").
gender("Jordan Culver", "male").
gender("Jules Culver", "male").
gender("Justine Hagerty", "female").
gender("Kelvin Culver", "male").
gender("Kori Wiggs", "female").
gender("Laverna Stansberry", "female").
gender("Lester Stansberry", "male").
gender("Lincoln Velasco", "male").
gender("Lionel Culver", "male").
gender("Loren Culver", "male").
gender("Markus Hagerty", "male").
gender("Maurine Velasco", "female").
gender("Mickey Philpott", "male").
gender("Millard Stansberry", "male").
gender("Nikki Stansberry", "female").
gender("Oren Stansberry", "male").
gender("Quintin Hagerty", "male").
gender("Renate Stansberry", "female").
gender("Sona Stansberry", "female").
gender("Tad Macmillan", "male").
gender("Tamara Macmillan", "female").
gender("Terence Culver", "male").
gender("Tonya Culver", "female").
gender("Victor Stansberry", "male").
gender("Wilmer Hagerty", "male").
gender("Yolanda Philpott", "female").
gender("Adelaida Ricketts", "female").
gender("Benny Abrams", "male").
gender("Bobby Ricketts", "male").
gender("Bridget Solorio", "female").
gender("Brooks Ricketts", "male").
gender("Cicely Abrams", "female").
gender("Cordelia Zepeda", "female").
gender("Cory Ricketts", "male").
gender("Dee Ricketts", "male").
gender("Deidra Ricketts", "female").
gender("Dennis Ricketts", "male").
gender("Edmund Abrams", "male").
gender("Erin Ricketts", "female").
gender("Flora Ricketts", "female").
gender("Hoa Leija", "female").
gender("Jennifer Ricketts", "female").
gender("Kory Ricketts", "male").
gender("Kristie Abrams", "female").
gender("Kristopher Ricketts", "male").
gender("Lauren Brumbaugh", "female").
gender("Lora Ricketts", "female").
gender("Lyman Leija", "male").
gender("Madelyn Ricketts", "female").
gender("Maranda Ricketts", "female").
gender("Marlene Isaacs", "female").
gender("Melina Deming", "female").
gender("Micheal Leija", "male").
gender("Milton Brumbaugh", "male").
gender("Mona Leija", "female").
gender("Nick Solorio", "male").
gender("Orval Ricketts", "male").
gender("Paula Ricketts", "female").
gender("Randi Leija", "female").
gender("Raymond Leija", "male").
gender("Reed Abrams", "male").
gender("Reggie Brumbaugh", "male").
gender("Renea Ricketts", "female").
gender("Rhonda Ricketts", "female").
gender("Rocky Ricketts", "male").
gender("Rolanda Isaacs", "female").
gender("Rosalee Brumbaugh", "female").
gender("Samuel Ricketts", "male").
gender("Shane Leija", "male").
gender("Spencer Ricketts", "male").
gender("Terrell Isaacs", "male").
gender("Tiffanie Leija", "female").
gender("Tommy Zepeda", "male").
gender("Toney Ricketts", "male").
gender("Ulysses Deming", "male").
gender("Winnifred Ricketts", "female").
gender("Adella Schwarz", "female").
gender("Alberto Schwarz", "male").
gender("Antony Kinder", "male").
gender("Aura Schwarz", "female").
gender("Bernice Kinder", "female").
gender("Carmelita Schwarz", "female").
gender("Carter Bolen", "male").
gender("Clark Kinder", "male").
gender("Dawne Grover", "female").
gender("Delbert Menchaca", "male").
gender("Dillon Schwarz", "male").
gender("Dylan Schwarz", "male").
gender("Elbert Canada", "male").
gender("Elyse Canada", "female").
gender("Emilie Schwarz", "female").
gender("Eugene Schwarz", "male").
gender("Eugenio Schwarz", "male").
gender("Federico Schwarz", "male").
gender("Francis Grover", "male").
gender("Gustavo Grover", "male").
gender("Hank Schwarz", "male").
gender("Herbert Bolen", "male").
gender("Hope Schwarz", "female").
gender("Irish Schwarz", "female").
gender("Jeanette Byrd", "female").
gender("Jeremiah Schwarz", "male").
gender("Joanna Schwarz", "female").
gender("Judith Schwarz", "female").
gender("Kent Schwarz", "male").
gender("Kimberely Menchaca", "female").
gender("Lorina Kinder", "female").
gender("Magdalena Schwarz", "female").
gender("Nada Schwarz", "female").
gender("Odette Schwarz", "female").
gender("Omar Schwarz", "male").
gender("Pamula Schwarz", "female").
gender("Paula Bass", "female").
gender("Phylis Bolen", "female").
gender("Randi Bass", "female").
gender("Randi Schwarz", "female").
gender("Randolph Schwarz", "male").
gender("Riley Grover", "male").
gender("Rodolfo Byrd", "male").
gender("Ross Bolen", "male").
gender("Shawnta Schwarz", "female").
gender("Sona Kinder", "female").
gender("Sueann Bolen", "female").
gender("Tania Schwarz", "female").
gender("Tomas Bass", "male").
gender("Zelda Schwarz", "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.