13_a_stories_09_m12
That was the funniest thing that happened to John.

n13_a_stories_09_m12 n13_a_stories_09_m12__1_1_1_1 That n13_a_stories_09_m12__1_2_1 was n13_a_stories_09_m12__1_3_1_1 the n13_a_stories_09_m12__1_3_2_1_1 funniest n13_a_stories_09_m12__1_3_3_1 thing n13_a_stories_09_m12__1_3_4_1_1 that n13_a_stories_09_m12__1_3_4_2_1 *T* n13_a_stories_09_m12__1_3_4_3_1 happened n13_a_stories_09_m12__1_3_4_4_1_1 to n13_a_stories_09_m12__1_3_4_4_2_1_1 John n13_a_stories_09_m12__1_4_1 . n13_a_stories_09_m12__1 IP-MAT n13_a_stories_09_m12__1_1 NP-SBJ n13_a_stories_09_m12__1->n13_a_stories_09_m12__1_1 n13_a_stories_09_m12__1_2 BED;_Ln_ n13_a_stories_09_m12__1->n13_a_stories_09_m12__1_2 n13_a_stories_09_m12__1_3 NP-PRD n13_a_stories_09_m12__1->n13_a_stories_09_m12__1_3 n13_a_stories_09_m12__1_4 PUNC n13_a_stories_09_m12__1->n13_a_stories_09_m12__1_4 n13_a_stories_09_m12__1_1_1 D;_nphd_ n13_a_stories_09_m12__1_1->n13_a_stories_09_m12__1_1_1 n13_a_stories_09_m12__1_1_1->n13_a_stories_09_m12__1_1_1_1 n13_a_stories_09_m12__1_2->n13_a_stories_09_m12__1_2_1 n13_a_stories_09_m12__1_3_1 D n13_a_stories_09_m12__1_3->n13_a_stories_09_m12__1_3_1 n13_a_stories_09_m12__1_3_2 ADJP n13_a_stories_09_m12__1_3->n13_a_stories_09_m12__1_3_2 n13_a_stories_09_m12__1_3_3 N n13_a_stories_09_m12__1_3->n13_a_stories_09_m12__1_3_3 n13_a_stories_09_m12__1_3_4 IP-REL n13_a_stories_09_m12__1_3->n13_a_stories_09_m12__1_3_4 n13_a_stories_09_m12__1_3_1->n13_a_stories_09_m12__1_3_1_1 n13_a_stories_09_m12__1_3_2_1 ADJS n13_a_stories_09_m12__1_3_2->n13_a_stories_09_m12__1_3_2_1 n13_a_stories_09_m12__1_3_2_1->n13_a_stories_09_m12__1_3_2_1_1 n13_a_stories_09_m12__1_3_3->n13_a_stories_09_m12__1_3_3_1 n13_a_stories_09_m12__1_3_4_1 C n13_a_stories_09_m12__1_3_4->n13_a_stories_09_m12__1_3_4_1 n13_a_stories_09_m12__1_3_4_2 NP-SBJ n13_a_stories_09_m12__1_3_4->n13_a_stories_09_m12__1_3_4_2 n13_a_stories_09_m12__1_3_4_3 VBD;_Ipr_ n13_a_stories_09_m12__1_3_4->n13_a_stories_09_m12__1_3_4_3 n13_a_stories_09_m12__1_3_4_4 PP-CLR n13_a_stories_09_m12__1_3_4->n13_a_stories_09_m12__1_3_4_4 n13_a_stories_09_m12__1_3_4_1->n13_a_stories_09_m12__1_3_4_1_1 n13_a_stories_09_m12__1_3_4_2->n13_a_stories_09_m12__1_3_4_2_1 n13_a_stories_09_m12__1_3_4_3->n13_a_stories_09_m12__1_3_4_3_1 n13_a_stories_09_m12__1_3_4_4_1 P-ROLE n13_a_stories_09_m12__1_3_4_4->n13_a_stories_09_m12__1_3_4_4_1 n13_a_stories_09_m12__1_3_4_4_2 NP n13_a_stories_09_m12__1_3_4_4->n13_a_stories_09_m12__1_3_4_4_2 n13_a_stories_09_m12__1_3_4_4_1->n13_a_stories_09_m12__1_3_4_4_1_1 n13_a_stories_09_m12__1_3_4_4_2_1 NPR n13_a_stories_09_m12__1_3_4_4_2->n13_a_stories_09_m12__1_3_4_4_2_1 n13_a_stories_09_m12__1_3_4_4_2_1->n13_a_stories_09_m12__1_3_4_4_2_1_1 n13_a_stories_09_m12__1_4->n13_a_stories_09_m12__1_4_1
( (IP-MAT (NP-SBJ (D;_nphd_ That;{that}))
          (BED;_Ln_ was;{be})
          (NP-PRD (D the;{the})
                  (ADJP (ADJS funniest;{funny}))
                  (N thing;{thing})
                  (IP-REL (C that;{that})
                          (NP-SBJ *T*)
                          (VBD;_Ipr_ happened;{happen[to]})
                          (PP-CLR (P-ROLE to;{to})
                                  (NP;{JOHN} (NPR John;{John})))))
          (PUNC .))
  (ID 13_a_stories_09_m12))



%3 r_0013_0007__happened_r_0013_0008__to happened to r_0013_0009__John John r_0013_0007__happened_r_0013_0008__to->r_0013_0009__John [arg1] r_0013_0003__the_r_0013_0005__thing the thing r_0013_0007__happened_r_0013_0008__to->r_0013_0003__the_r_0013_0005__thing [inv_arg0] r_0013_0004__funniest funniest r_0013_0003__the_r_0013_0005__thing->r_0013_0004__funniest [attrib] r_0013_0002__was was r_0013_0002__was->r_0013_0003__the_r_0013_0005__thing [prd] r_0013_0001__That That r_0013_0002__was->r_0013_0001__That [arg0]
arc(r_0013_0002__was,r_0013_0001__That,arg0).
arc(r_0013_0002__was,r_0013_0003__the_r_0013_0005__thing,prd).
arc(r_0013_0003__the_r_0013_0005__thing,r_0013_0004__funniest,attrib).
arc(r_0013_0007__happened_r_0013_0008__to,r_0013_0003__the_r_0013_0005__thing,inv_arg0).
arc(r_0013_0007__happened_r_0013_0008__to,r_0013_0009__John,arg1).



%3 r_0013_0002__was was r_0013_0001__That That r_0013_0002__was->r_0013_0001__That [arg0] r_0013_0003__the_r_0013_0005__thing the thing r_0013_0002__was->r_0013_0003__the_r_0013_0005__thing [prd] r_0013_0004__funniest funniest r_0013_0003__the_r_0013_0005__thing->r_0013_0004__funniest [attrib] r_0013_0007__happened_r_0013_0008__to happened to r_0013_0003__the_r_0013_0005__thing->r_0013_0007__happened_r_0013_0008__to [inv_arg0] r_0013_0009__John John r_0013_0007__happened_r_0013_0008__to->r_0013_0009__John [arg1]
fof(formula,axiom,
    ? [R_0013_0001__THAT,R_0013_0004__FUNNIEST,R_0013_0009__JOHN,R_0013_0007__HAPPENED_R_0013_0008__TO,R_0013_0003__THE_R_0013_0005__THING,R_0013_0002__WAS] :
      ( r_0013_0001__That(R_0013_0001__THAT)
      & r_0013_0004__funniest(R_0013_0004__FUNNIEST)
      & r_0013_0009__John(R_0013_0009__JOHN)
      & r_0013_0002__was(R_0013_0002__WAS)
      & has_prd(R_0013_0002__WAS,R_0013_0003__THE_R_0013_0005__THING)
      & r_0013_0003__the_r_0013_0005__thing(R_0013_0003__THE_R_0013_0005__THING)
      & has_inv_arg0(R_0013_0003__THE_R_0013_0005__THING,R_0013_0007__HAPPENED_R_0013_0008__TO)
      & r_0013_0007__happened_r_0013_0008__to(R_0013_0007__HAPPENED_R_0013_0008__TO)
      & has_arg1(R_0013_0007__HAPPENED_R_0013_0008__TO,R_0013_0009__JOHN)
      & has_attrib(R_0013_0003__THE_R_0013_0005__THING,R_0013_0004__FUNNIEST)
      & has_arg0(R_0013_0002__WAS,R_0013_0001__THAT) ) ).