text-graph-generalization

Code for our paper Compositional Generalization with Grounded Language Models
git clone https://esimon.eu/repos/text-graph-generalization.git
Log | Files | Refs | README | LICENSE

3_hop_annotations.json (16233B)


      1 {
      2     "0": {
      3         "mapping": "Does X teach a course that has a student who is a teaching assistant of Y?",
      4         "type": [
      5             "teacherOf",
      6             "takesCourse_r",
      7             "teachingAssistantOf"
      8         ]
      9     },
     10     "1": {
     11         "mapping": "Was X written by the supervisor of a person that wrote Y?",
     12         "type": [
     13             "publicationAuthor",
     14             "advisor_r",
     15             "publicationAuthor_r"
     16         ]
     17     },
     18     "10": {
     19         "mapping": "Is X the supervisor of someone that wrote an article that was written by Y?",
     20         "type": [
     21             "advisor_r",
     22             "publicationAuthor_r",
     23             "publicationAuthor"
     24         ]
     25     },
     26     "12": {
     27         "mapping": "Does X have a teaching assistant that takes a course which has a student named Y?",
     28         "type": [
     29             "teachingAssistantOf_r",
     30             "takesCourse",
     31             "takesCourse_r"
     32         ]
     33     },
     34     "13": {
     35         "mapping": "Did X write a paper that was written by a teacher of Y?",
     36         "type": [
     37             "publicationAuthor_r",
     38             "publicationAuthor",
     39             "teacherOf"
     40         ]
     41     },
     42     "14": {
     43         "mapping": "Does X have a student that takes a course taught by Y?",
     44         "type": [
     45             "takesCourse_r",
     46             "takesCourse",
     47             "takesCourse_r"
     48         ]
     49     },
     50     "15": {
     51         "mapping": "Does X take a course that has a student that wrote Y?",
     52         "type": [
     53             "takesCourse",
     54             "takesCourse_r",
     55             "publicationAuthor_r"
     56         ]
     57     },
     58     "16": {
     59         "mapping": "Is X supervised by the author of a paper that was written by Y?",
     60         "type": [
     61             "advisor",
     62             "publicationAuthor_r",
     63             "publicationAuthor"
     64         ]
     65     },
     66     "17": {
     67         "mapping": "Is X a teaching assistant for a course which has a student supervised by Y?",
     68         "type": [
     69             "teachingAssistantOf",
     70             "takesCourse_r",
     71             "advisor"
     72         ]
     73     },
     74     "18": {
     75         "mapping": "Does X take a course that has a student that is a teaching assistant for Y?",
     76         "type": [
     77             "takesCourse",
     78             "takesCourse_r",
     79             "teachingAssistantOf"
     80         ]
     81     },
     82     "19": {
     83         "mapping": "Is X the teacher of a course which has a student that takes Y?",
     84         "type": [
     85             "teacherOf",
     86             "takesCourse_r",
     87             "takesCourse"
     88         ]
     89     },
     90     "2": {
     91         "mapping": "Is X the teacher of a course which has a teaching assistant that wrote Y?",
     92         "type": [
     93             "teacherOf",
     94             "teachingAssistantOf_r",
     95             "publicationAuthor_r"
     96         ]
     97     },
     98     "20": {
     99         "mapping": "Does X take a course which has a teaching assistant that wrote Y?",
    100         "type": [
    101             "takesCourse",
    102             "teachingAssistantOf_r",
    103             "publicationAuthor_r"
    104         ]
    105     },
    106     "21": {
    107         "mapping": "Does X have a student that wrote an article that was written by Y?",
    108         "type": [
    109             "takesCourse_r",
    110             "publicationAuthor_r",
    111             "publicationAuthor"
    112         ]
    113     },
    114     "22": {
    115         "mapping": "Is X the supervisor of someone taking a course that has a student named Y?",
    116         "type": [
    117             "advisor_r",
    118             "takesCourse",
    119             "takesCourse_r"
    120         ]
    121     },
    122     "23": {
    123         "mapping": "Does X have a teaching assistant that is supervised by a supervisor of Y?",
    124         "type": [
    125             "teachingAssistantOf_r",
    126             "advisor",
    127             "advisor_r"
    128         ]
    129     },
    130     "24": {
    131         "mapping": "Did X write a paper that was written by a supervisor of Y?",
    132         "type": [
    133             "publicationAuthor_r",
    134             "publicationAuthor",
    135             "advisor_r"
    136         ]
    137     },
    138     "25": {
    139         "mapping": "Does X have a student that is supervised by a teacher of Y?",
    140         "type": [
    141             "takesCourse_r",
    142             "advisor",
    143             "teacherOf"
    144         ]
    145     },
    146     "26": {
    147         "mapping": "Was X written by a teaching assistant of a course taken by Y?",
    148         "type": [
    149             "publicationAuthor",
    150             "teachingAssistantOf",
    151             "takesCourse_r"
    152         ]
    153     },
    154     "27": {
    155         "mapping": "Was X written by the supervisor of a student that takes Y?",
    156         "type": [
    157             "publicationAuthor",
    158             "advisor_r",
    159             "takesCourse"
    160         ]
    161     },
    162     "28": {
    163         "mapping": "Is X the teacher of a course which as a student supervised by Y?",
    164         "type": [
    165             "teacherOf",
    166             "takesCourse_r",
    167             "advisor"
    168         ]
    169     },
    170     "29": {
    171         "mapping": "Is X the teacher of a course which has a teaching assistant taking Y?",
    172         "type": [
    173             "teacherOf",
    174             "teachingAssistantOf_r",
    175             "takesCourse"
    176         ]
    177     },
    178     "3": {
    179         "mapping": "Is X supervised by the supervisor of a student taking Y?",
    180         "type": [
    181             "advisor",
    182             "advisor_r",
    183             "takesCourse"
    184         ]
    185     },
    186     "30": {
    187         "mapping": "Does X have a teacher that is supervising an author of Y?",
    188         "type": [
    189             "teacherOf_r",
    190             "advisor_r",
    191             "publicationAuthor_r"
    192         ]
    193     },
    194     "31": {
    195         "mapping": "Does X have a teaching assistant that is supervised by an author of Y?",
    196         "type": [
    197             "teachingAssistantOf_r",
    198             "advisor",
    199             "publicationAuthor_r"
    200         ]
    201     },
    202     "32": {
    203         "mapping": "Does X have a teacher that is supervising a teaching assistant of Y?",
    204         "type": [
    205             "teacherOf_r",
    206             "advisor_r",
    207             "teachingAssistantOf"
    208         ]
    209     },
    210     "33": {
    211         "mapping": "Was X written by someone that wrote an article that was written by Y?",
    212         "type": [
    213             "publicationAuthor",
    214             "publicationAuthor_r",
    215             "publicationAuthor"
    216         ]
    217     },
    218     "34": {
    219         "mapping": "Did X write a paper that was written by an author of Y?",
    220         "type": [
    221             "publicationAuthor_r",
    222             "publicationAuthor",
    223             "publicationAuthor_r"
    224         ]
    225     },
    226     "35": {
    227         "mapping": "Does X have a student that is supervised by a supervisor of Y?",
    228         "type": [
    229             "takesCourse_r",
    230             "advisor",
    231             "advisor_r"
    232         ]
    233     },
    234     "36": {
    235         "mapping": "Does X have a student that is a teaching assistant of a course taught by Y?",
    236         "type": [
    237             "takesCourse_r",
    238             "teachingAssistantOf",
    239             "teacherOf_r"
    240         ]
    241     },
    242     "37": {
    243         "mapping": "Does X take a course which has a student that takes Y?",
    244         "type": [
    245             "takesCourse",
    246             "takesCourse_r",
    247             "takesCourse"
    248         ]
    249     },
    250     "38": {
    251         "mapping": "Did X write a paper that was written by the teaching assistant of Y?",
    252         "type": [
    253             "publicationAuthor_r",
    254             "publicationAuthor",
    255             "teachingAssistantOf"
    256         ]
    257     },
    258     "39": {
    259         "mapping": "Is X a teaching assistant of a course taught by a supervisor of Y?",
    260         "type": [
    261             "teachingAssistantOf",
    262             "teacherOf_r",
    263             "advisor_r"
    264         ]
    265     },
    266     "4": {
    267         "mapping": "Is X taught by an author of an article written by Y?",
    268         "type": [
    269             "teacherOf_r",
    270             "publicationAuthor_r",
    271             "publicationAuthor"
    272         ]
    273     },
    274     "40": {
    275         "mapping": "Is X taught by a teacher of a course that has a student named Y?",
    276         "type": [
    277             "teacherOf_r",
    278             "teacherOf",
    279             "takesCourse_r"
    280         ]
    281     },
    282     "41": {
    283         "mapping": "Is X a teaching assistant for a course taught by an author of Y?",
    284         "type": [
    285             "teachingAssistantOf",
    286             "teacherOf_r",
    287             "publicationAuthor_r"
    288         ]
    289     },
    290     "42": {
    291         "mapping": "Does X have a student that is supervised by an author of Y?",
    292         "type": [
    293             "takesCourse_r",
    294             "advisor",
    295             "publicationAuthor_r"
    296         ]
    297     },
    298     "43": {
    299         "mapping": "Does X take a course that has a student supervised by Y?",
    300         "type": [
    301             "takesCourse",
    302             "takesCourse_r",
    303             "advisor"
    304         ]
    305     },
    306     "44": {
    307         "mapping": "Does X take a course that has a teaching assistant that takes Y?",
    308         "type": [
    309             "takesCourse",
    310             "teachingAssistantOf_r",
    311             "takesCourse"
    312         ]
    313     },
    314     "45": {
    315         "mapping": "Does X take a course that has a teaching assistant supervised by Y?",
    316         "type": [
    317             "takesCourse",
    318             "teachingAssistantOf_r",
    319             "advisor"
    320         ]
    321     },
    322     "46": {
    323         "mapping": "Is X taught by a supervisor of a student taking Y?",
    324         "type": [
    325             "teacherOf_r",
    326             "advisor_r",
    327             "takesCourse"
    328         ]
    329     },
    330     "47": {
    331         "mapping": "Was X written by a supervisor of a teacher of Y?",
    332         "type": [
    333             "publicationAuthor",
    334             "advisor",
    335             "teacherOf"
    336         ]
    337     },
    338     "48": {
    339         "mapping": "Does X have a teaching assistant that takes a course taught by Y?",
    340         "type": [
    341             "teachingAssistantOf_r",
    342             "takesCourse",
    343             "teacherOf_r"
    344         ]
    345     },
    346     "49": {
    347         "mapping": "Was X written by a someone taking a course which has a student named Y?",
    348         "type": [
    349             "publicationAuthor",
    350             "takesCourse",
    351             "takesCourse_r"
    352         ]
    353     },
    354     "5": {
    355         "mapping": "Is X a teaching assistant for a course that has a student that takes Y?",
    356         "type": [
    357             "teachingAssistantOf",
    358             "takesCourse_r",
    359             "takesCourse"
    360         ]
    361     },
    362     "50": {
    363         "mapping": "Did X write a paper that was written by someone taking Y?",
    364         "type": [
    365             "publicationAuthor_r",
    366             "publicationAuthor",
    367             "takesCourse"
    368         ]
    369     },
    370     "51": {
    371         "mapping": "Does X have a student that is taking a course taught by Y?",
    372         "type": [
    373             "takesCourse_r",
    374             "takesCourse",
    375             "teacherOf_r"
    376         ]
    377     },
    378     "52": {
    379         "mapping": "Is X supervised by the teacher of a course which has a teaching assistant named Y?",
    380         "type": [
    381             "advisor",
    382             "teacherOf",
    383             "teachingAssistantOf_r"
    384         ]
    385     },
    386     "53": {
    387         "mapping": "Does X take a course that is taught by a teacher of Y?",
    388         "type": [
    389             "takesCourse",
    390             "teacherOf_r",
    391             "teacherOf"
    392         ]
    393     },
    394     "54": {
    395         "mapping": "Is X the supervisor of someone taking a course taught by Y?",
    396         "type": [
    397             "advisor_r",
    398             "takesCourse",
    399             "teacherOf_r"
    400         ]
    401     },
    402     "55": {
    403         "mapping": "Was X written by someone supervised by the supervisor of Y?",
    404         "type": [
    405             "publicationAuthor",
    406             "advisor",
    407             "advisor_r"
    408         ]
    409     },
    410     "56": {
    411         "mapping": "Was X written by a teaching assistant of a course taught by Y?",
    412         "type": [
    413             "publicationAuthor",
    414             "teachingAssistantOf",
    415             "teacherOf_r"
    416         ]
    417     },
    418     "57": {
    419         "mapping": "Did X write a paper that was written by someone supervised by Y?",
    420         "type": [
    421             "publicationAuthor_r",
    422             "publicationAuthor",
    423             "advisor"
    424         ]
    425     },
    426     "58": {
    427         "mapping": "Is X supervised by a teacher of a course which has a student named Y?",
    428         "type": [
    429             "advisor",
    430             "teacherOf",
    431             "takesCourse_r"
    432         ]
    433     },
    434     "59": {
    435         "mapping": "Is X supervised by the supervisor of a teaching assistant of Y?",
    436         "type": [
    437             "advisor",
    438             "advisor_r",
    439             "teachingAssistantOf"
    440         ]
    441     },
    442     "6": {
    443         "mapping": "Does X take a course that has a student taking a course where a teaching assistant is named Y?",
    444         "type": [
    445             "takesCourse_r",
    446             "takesCourse",
    447             "teachingAssistantOf_r"
    448         ]
    449     },
    450     "60": {
    451         "mapping": "Does X take a course that has a teacher supervising Y?",
    452         "type": [
    453             "takesCourse",
    454             "teacherOf_r",
    455             "advisor_r"
    456         ]
    457     },
    458     "61": {
    459         "mapping": "Is X supervised by the supervisor of an author of Y?",
    460         "type": [
    461             "advisor",
    462             "advisor_r",
    463             "publicationAuthor_r"
    464         ]
    465     },
    466     "62": {
    467         "mapping": "Was X written by someone supervised by the author of Y?",
    468         "type": [
    469             "publicationAuthor",
    470             "advisor",
    471             "publicationAuthor_r"
    472         ]
    473     },
    474     "63": {
    475         "mapping": "Was X written by the teacher of a course which has a teaching assistant named Y?",
    476         "type": [
    477             "publicationAuthor",
    478             "teacherOf",
    479             "teachingAssistantOf_r"
    480         ]
    481     },
    482     "64": {
    483         "mapping": "Does X take a course that has a teacher that wrote Y?",
    484         "type": [
    485             "takesCourse",
    486             "teacherOf_r",
    487             "publicationAuthor_r"
    488         ]
    489     },
    490     "65": {
    491         "mapping": "Does X have a student that is a teaching assistant of a course that has a student named Y?",
    492         "type": [
    493             "takesCourse_r",
    494             "teachingAssistantOf",
    495             "takesCourse_r"
    496         ]
    497     },
    498     "66": {
    499         "mapping": "Is X the teacher of a course that has a student that wrote Y?",
    500         "type": [
    501             "teacherOf",
    502             "takesCourse_r",
    503             "publicationAuthor_r"
    504         ]
    505     },
    506     "67": {
    507         "mapping": "Was X written by a teacher of a course that has a student named Y?",
    508         "type": [
    509             "publicationAuthor",
    510             "teacherOf",
    511             "takesCourse_r"
    512         ]
    513     },
    514     "68": {
    515         "mapping": "Was X written by a supervisor of a teaching assistant of Y?",
    516         "type": [
    517             "publicationAuthor",
    518             "advisor_r",
    519             "teachingAssistantOf"
    520         ]
    521     },
    522     "69": {
    523         "mapping": "Is X the supervisor of a teaching assistant of a course that has a student named Y?",
    524         "type": [
    525             "advisor_r",
    526             "teachingAssistantOf",
    527             "takesCourse_r"
    528         ]
    529     },
    530     "7": {
    531         "mapping": "Does X have a teaching assistant that wrote an article that was written by Y?",
    532         "type": [
    533             "teachingAssistantOf_r",
    534             "publicationAuthor_r",
    535             "publicationAuthor"
    536         ]
    537     },
    538     "71": {
    539         "mapping": "Is X taught by a teacher of a course that has a teaching assistant named Y?",
    540         "type": [
    541             "teacherOf_r",
    542             "teacherOf",
    543             "teachingAssistantOf_r"
    544         ]
    545     },
    546     "72": {
    547         "mapping": "Is X the supervisor of a teaching assistant of a course taught by Y?",
    548         "type": [
    549             "advisor_r",
    550             "teachingAssistantOf",
    551             "teacherOf_r"
    552         ]
    553     },
    554     "73": {
    555         "mapping": "Is X a teaching assistant for a course taught by a teachor of Y?",
    556         "type": [
    557             "teachingAssistantOf",
    558             "teacherOf_r",
    559             "teacherOf"
    560         ]
    561     },
    562     "74": {
    563         "mapping": "Is X teaching a course that has a teaching assistant supervised by Y?",
    564         "type": [
    565             "teacherOf",
    566             "teachingAssistantOf_r",
    567             "advisor"
    568         ]
    569     },
    570     "8": {
    571         "mapping": "Was X written by a student taking a course taught by Y?",
    572         "type": [
    573             "publicationAuthor",
    574             "takesCourse",
    575             "teacherOf_r"
    576         ]
    577     },
    578     "9": {
    579         "mapping": "Is X the supervisor of a student taking a course which has a teaching assistant named Y?",
    580         "type": [
    581             "advisor_r",
    582             "takesCourse",
    583             "teachingAssistantOf_r"
    584         ]
    585     }
    586 }