========================================================= tmp : test80_result( "Which rivers are not in asia ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(3),txt("Which"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(wdt),dep_parent(det,n(rivers,2)), node(n(which,1)),flair,upos(pron),fner(o), fn('_')]), w( rivers, [ pos(nns), root(river),loc(2),lnks(4),txt("rivers"), truecase('INIT_UPPER'),corefed,#(1), txt(["rivers"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(2,2))), link(2,'S',r('S',seg(2,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(nns),form(pl),dep_child(det,n(which,1)), dep_parent(nsubj,n(are,3)),node(n(rivers,2)), flair,upos(noun),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),loc(3),lnks(4),txt("are"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,6))), link(2,'S',r('S',seg(2,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),old_pos(vb), pos(vbp),spacy,spos(vbp),tense(present), dep_child(nsubj,n(rivers,2)),dep_child(root,n(are,3)), dep_child(neg,n(not,4)),dep_child(prep,n(in,5)), dep_child(punct,n(?,7)),dep_parent(root,n(are,3)), node(n(are,3)),flair,upos(verb),fner(o), fn('be.01')]), w( not, [ pos(rb), root(not),loc(4),lnks(4),txt("not"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,6))), link(2,'S',r('S',seg(2,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(rb),dep_parent(neg,n(are,3)),node(n(not,4)), flair,upos(adv),fner(o),fn('_')]), w( in, [ pos(in), root(in),loc(5),lnks(5),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,6))), link(2,'VP',r('VP',seg(3,6))), link(3,'S',r('S',seg(2,6))), link(4,'SBAR',r('SBAR',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(in),dep_child(pobj,n(asia,6)), dep_parent(prep,n(are,3)),node(n(in,5)),flair, upos(adp),fner(o),fn('_')]), w( asia, [ root(asia), loc(6),lnks(6),txt("asia"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(6,6))), link(2,'PP',r('PP',seg(5,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(2,6))), link(5,'SBAR',r('SBAR',seg(1,7))), link(6,'CORENLP',r('CORENLP',seg(1,7))),old_pos(nn), pos(nnp),spacy,spos(nnp),form(sg), dep_parent(pobj,n(in,5)),node(n(asia,6)),flair, upos(noun),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),dep_parent(punct,n(are,3)),node(n(?,7)), flair,upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Which rivers are not in asia ?", sentence80, whq( thing&Thing-B, s( np( 3+pl, np_head(Wh_det,wh_det(thing&Thing,thing&Thing-B),[],river), []), verb(aux+be(Be),be(Be),active,pres+fin,[],negP([])), [ arg(arg_pred(Arg9),prep_phrase(Prep,prep(in),np(3+sg,nameOf(Asia,asia,[]),[])))], []))). tmp : test80_result( "Which rivers are not in asia ?", i_sentence, question80( [thing&Thing-B], pred( quantV( wh_det(thing&Thing,thing&Thing-B), thing&Thing-B, '`'(ti(river,B)),'`'(true), [], thing&Thing-B), notP,true, [ '`'(trans_pred(thing,contain,C,B)), quantV( identityQ(IdentityQ), thing&geo&continent-C, '`'(named(C,asia)),'`'(true), [], thing&geo&continent-C)]))). tmp : test80_result( "Which rivers are not in asia ?", qplan, answer80([River]) :- ti(river,River) , \+ (named(Contain_Asia,asia),trans_pred(thing,contain,Contain_Asia,River))). tmp : test80_result( "Which rivers are not in asia ?", results80, [ [ amazon, colorado,congo_river,cubango,danube, elbe,limpopo,mackenzie,mississippi, murray,niger_river,nile,oder,orange, orinoco,parana,rhine,rhone,rio_grande, seine,senegal_river,tagus,vistula,volta, yukon,zambesi]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 31800| true -12 4 12 36 40 | Which rivers are not in asia ? ========================================================= tmp : test80_result( "How many rivers flow to west germany ?", into_lexical_segs, [ w( how, [ pos(wrb), root(how),loc(1),lnks(3),txt("How"), truecase('INIT_UPPER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),spacy, spos(wrb),dep_parent(advmod,n(many,2)),node(n(how,1)), flair,upos(adv),fner(o),fn('_')]), w( many, [ pos(jj), root(many),loc(2),lnks(3),txt("many"), truecase('INIT_UPPER'), link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),spacy, spos(jj),dep_child(advmod,n(how,1)), dep_parent(amod,n(rivers,3)),node(n(many,2)), flair,upos(adj),fner(o),fn('_')]), w( rivers, [ pos(nns), root(river),loc(3),lnks(4),txt("rivers"), truecase('INIT_UPPER'),corefed,#(1), txt(["rivers"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(3,3))), link(2,'S',r('S',seg(3,7))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),spacy, spos(nns),form(pl),dep_child(amod,n(many,2)), dep_parent(nsubj,n(flow,4)),node(n(rivers,3)), flair,upos(noun),fner(o),fn('_')]), w( flow, [ alt(pos(vbp)), root(flow),loc(4),lnks(4),txt("flow"), truecase('INIT_UPPER'),link(1,'VP',r('VP',seg(4,7))), link(2,'S',r('S',seg(3,7))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),old_pos(vb), pos(vbp),spacy,spos(vbp),tense(present), dep_child(nsubj,n(rivers,3)),dep_child(root,n(flow,4)), dep_child(prep,n(to,5)),dep_child(punct,n(?,8)), dep_parent(root,n(flow,4)),node(n(flow,4)),flair, upos(verb),fner(o),fn('flow.01')]), w( to, [ pos(in), root(to),loc(5),lnks(5),txt("to"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,7))), link(2,'VP',r('VP',seg(4,7))), link(3,'S',r('S',seg(3,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),spacy, spos(in),dep_child(pobj,n(germany,7)), dep_parent(prep,n(flow,4)),node(n(to,5)),flair, upos(adp),fner(o),fn('_')]), w( west, [ root(west), loc(6),lnks(6),txt("west"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(6,7))), link(2,'PP',r('PP',seg(5,7))), link(3,'VP',r('VP',seg(4,7))), link(4,'S',r('S',seg(3,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),old_pos(nn), pos(nnp),spacy,spos(nnp),form(sg), dep_parent(compound,n(germany,7)),node(n(west,6)), flair,upos(noun),fner(o),fn('_')]), w( germany, [ root(germany), loc(7),lnks(6),txt("germany"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Germany'),link(1,'NP',r('NP',seg(6,7))), link(2,'PP',r('PP',seg(5,7))), link(3,'VP',r('VP',seg(4,7))), link(4,'S',r('S',seg(3,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),old_pos(nn), pos(nnp),spacy,spos(nnp),form(sg), dep_child(compound,n(west,6)),dep_parent(pobj,n(to,5)), node(n(germany,7)),flair,upos(propn), fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(8),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,8))), link(2,'CORENLP',r('CORENLP',seg(1,8))),spacy, spos('.'),dep_parent(punct,n(flow,4)), node(n(?,8)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "How many rivers flow to west germany ?", sentence80, whq( thing&River&river-B, s( np(3+pl,np_head(QuantV,quantV(same,wh(thing&River&river-B)),[],river),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(to),np(3+sg,nameOf(West_germany,west_germany,[]),[]))]))). tmp : test80_result( "How many rivers flow to west germany ?", i_sentence, question80( [thing&River&river-B], pred( quantV( quantV(same,wh(thing&River&river-B)), thing&River&river-C, '`'(ti(river,C)),'`'(true), [], thing&River&river-C), identityQ(IdentityQ), path_pred_linkage(direct(river_flows),river,C,D,E), [ quantV( identityQ(IdentityQ2), thing&geo&country-E, '`'(named(E,west_germany)),'`'(true), [], thing&geo&country-E), quantV(voidQ(VoidQ),thing&Thing-D,'`'(true),'`'(true),[],_60726-D)]))). tmp : test80_result( "How many rivers flow to west germany ?", qplan, answer80([Numberof]) :- numberof( River, ( ti(river,River) , ^( Path_pred_linkageDirect, ( named(Linkage_West_germany,west_germany) , path_pred_linkage( direct(river_flows), river, River,Path_pred_linkageDirect, Linkage_West_germany)))), Numberof)). tmp : test80_result("How many rivers flow to west germany ?",results80,[[2]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 21301| true 49 12 6 2 69 | How many rivers flow to west germany ? ========================================================= tmp : test80_result( "How many rivers flow to switzerland ?", into_lexical_segs, [ w( how, [ pos(wrb), root(how),loc(1),lnks(3),txt("How"), truecase('INIT_UPPER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(wrb),dep_parent(advmod,n(many,2)),node(n(how,1)), flair,upos(adv),fner(o),fn('_')]), w( many, [ pos(jj), root(many),loc(2),lnks(3),txt("many"), truecase('INIT_UPPER'), link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(jj),dep_child(advmod,n(how,1)), dep_parent(amod,n(rivers,3)),node(n(many,2)), flair,upos(adj),fner(o),fn('_')]), w( rivers, [ pos(nns), root(river),loc(3),lnks(4),txt("rivers"), truecase('INIT_UPPER'),corefed,#(1), txt(["rivers"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(3,3))), link(2,'S',r('S',seg(3,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(nns),form(pl),dep_child(amod,n(many,2)), dep_parent(nsubj,n(flow,4)),node(n(rivers,3)), flair,upos(noun),fner(o),fn('_')]), w( flow, [ alt(pos(vbp)), root(flow),loc(4),lnks(4),txt("flow"), truecase('INIT_UPPER'),link(1,'VP',r('VP',seg(4,6))), link(2,'S',r('S',seg(3,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),old_pos(vb), pos(vbp),spacy,spos(vbp),tense(present), dep_child(nsubj,n(rivers,3)),dep_child(root,n(flow,4)), dep_child(prep,n(to,5)),dep_child(punct,n(?,7)), dep_parent(root,n(flow,4)),node(n(flow,4)),flair, upos(verb),fner(o),fn('flow.01')]), w( to, [ pos(in), root(to),loc(5),lnks(5),txt("to"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,6))), link(2,'VP',r('VP',seg(4,6))), link(3,'S',r('S',seg(3,6))), link(4,'SBAR',r('SBAR',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(in),dep_child(pobj,n(switzerland,6)), dep_parent(prep,n(flow,4)),node(n(to,5)),flair, upos(adp),fner(o),fn('_')]), w( switzerland, [ pos(nnp), root(switzerland),loc(6),lnks(6), txt("switzerland"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Switzerland'), corefed,#(2),txt(["switzerland"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(6,6))), link(2,'PP',r('PP',seg(5,6))), link(3,'VP',r('VP',seg(4,6))), link(4,'S',r('S',seg(3,6))), link(5,'SBAR',r('SBAR',seg(1,7))), link(6,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(nn),form(sg),dep_parent(pobj,n(to,5)), node(n(switzerland,6)),flair,upos(noun), fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),dep_parent(punct,n(flow,4)), node(n(?,7)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "How many rivers flow to switzerland ?", sentence80, whq( thing&River&river-B, s( np(3+pl,np_head(QuantV,quantV(same,wh(thing&River&river-B)),[],river),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(to),np(3+sg,nameOf(Switzerland,switzerland,[]),[]))]))). tmp : test80_result( "How many rivers flow to switzerland ?", i_sentence, question80( [thing&River&river-B], pred( quantV( quantV(same,wh(thing&River&river-B)), thing&River&river-C, '`'(ti(river,C)),'`'(true), [], thing&River&river-C), identityQ(IdentityQ), path_pred_linkage(direct(river_flows),river,C,D,E), [ quantV( identityQ(IdentityQ2), thing&geo&country-E, '`'(named(E,switzerland)),'`'(true), [], thing&geo&country-E), quantV(voidQ(VoidQ),thing&Thing-D,'`'(true),'`'(true),[],_40918-D)]))). tmp : test80_result( "How many rivers flow to switzerland ?", qplan, answer80([Numberof]) :- numberof( River, ( ti(river,River) , ^( Path_pred_linkageDirect, ( named(Linkage_Switzerland,switzerland) , path_pred_linkage( direct(river_flows), river, River,Path_pred_linkageDirect, Linkage_Switzerland)))), Numberof)). tmp : test80_result("How many rivers flow to switzerland ?",results80,[]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 21901| true 2 11 2 2 17 | How many rivers flow to switzerland ? ========================================================= tmp : test80_result( "How many rivers flow through switzerland ?", into_lexical_segs, [ w( how, [ pos(wrb), root(how),loc(1),lnks(3),txt("How"), truecase('INIT_UPPER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(wrb),dep_parent(advmod,n(many,2)),node(n(how,1)), flair,upos(adv),fner(o),fn('_')]), w( many, [ pos(jj), root(many),loc(2),lnks(3),txt("many"), truecase('INIT_UPPER'), link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(jj),dep_child(advmod,n(how,1)), dep_parent(amod,n(rivers,3)),node(n(many,2)), flair,upos(adj),fner(o),fn('_')]), w( rivers, [ pos(nns), root(river),loc(3),lnks(4),txt("rivers"), truecase('INIT_UPPER'),corefed,#(1), txt(["rivers"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(3,3))), link(2,'S',r('S',seg(3,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(nns),form(pl),dep_child(amod,n(many,2)), dep_parent(nsubj,n(flow,4)),node(n(rivers,3)), flair,upos(noun),fner(o),fn('_')]), w( flow, [ alt(pos(vbp)), root(flow),loc(4),lnks(4),txt("flow"), truecase('LOWER'),link(1,'VP',r('VP',seg(4,6))), link(2,'S',r('S',seg(3,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),old_pos(vb), pos(vbp),spacy,spos(vbp),tense(present), dep_child(nsubj,n(rivers,3)),dep_child(root,n(flow,4)), dep_child(prep,n(through,5)),dep_child(punct,n(?,7)), dep_parent(root,n(flow,4)),node(n(flow,4)),flair, upos(verb),fner(o),fn('flow.01')]), w( through, [ pos(in), root(through),loc(5),lnks(5), txt("through"),truecase('LOWER'), link(1,'PP',r('PP',seg(5,6))), link(2,'VP',r('VP',seg(4,6))), link(3,'S',r('S',seg(3,6))), link(4,'SBAR',r('SBAR',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(in),dep_child(pobj,n(switzerland,6)), dep_parent(prep,n(flow,4)),node(n(through,5)), flair,upos(adp),fner(o),fn('_')]), w( switzerland, [ pos(nnp), root(switzerland),loc(6),lnks(6), txt("switzerland"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Switzerland'), corefed,#(2),txt(["switzerland"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(6,6))), link(2,'PP',r('PP',seg(5,6))), link(3,'VP',r('VP',seg(4,6))), link(4,'S',r('S',seg(3,6))), link(5,'SBAR',r('SBAR',seg(1,7))), link(6,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(nn),form(sg),dep_parent(pobj,n(through,5)), node(n(switzerland,6)),flair,upos(propn), fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),dep_parent(punct,n(flow,4)), node(n(?,7)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "How many rivers flow through switzerland ?", sentence80, whq( thing&River&river-B, s( np(3+pl,np_head(QuantV,quantV(same,wh(thing&River&river-B)),[],river),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(through),np(3+sg,nameOf(Switzerland,switzerland,[]),[]))]))). tmp : test80_result( "How many rivers flow through switzerland ?", i_sentence, question80( [thing&River&river-B], pred( quantV( quantV(same,wh(thing&River&river-B)), thing&River&river-C, '`'(ti(river,C)),'`'(true), [], thing&River&river-C), identityQ(IdentityQ), path_pred_linkage(direct(river_flows),river,C,E,D), [ quantV( identityQ(IdentityQ2), thing&geo&country-E, '`'(named(E,switzerland)),'`'(true), [], thing&geo&country-E), quantV(voidQ(VoidQ),thing&Thing-D,'`'(true),'`'(true),[],_24462-D)]))). tmp : test80_result( "How many rivers flow through switzerland ?", qplan, answer80([Numberof]) :- numberof( River, ( ti(river,River) , ^( Linkage, ( named(Switzerland,switzerland) , path_pred_linkage(direct(river_flows),river,River,Switzerland,Linkage)))), Numberof)). tmp : test80_result("How many rivers flow through switzerland ?",results80,[[2]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 22301| true 1 11 0 2 14 | How many rivers flow through switzerland ? ========================================================= tmp : test80_result( "How many rivers flow in switzerland ?", into_lexical_segs, [ w( how, [ pos(wrb), root(how),loc(1),lnks(3),txt("How"), truecase('INIT_UPPER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(wrb),dep_parent(advmod,n(many,2)),node(n(how,1)), flair,upos(adv),fner(o),fn('_')]), w( many, [ pos(jj), root(many),loc(2),lnks(3),txt("many"), truecase('INIT_UPPER'), link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(jj),dep_child(advmod,n(how,1)), dep_parent(amod,n(rivers,3)),node(n(many,2)), flair,upos(adj),fner(o),fn('_')]), w( rivers, [ pos(nns), root(river),loc(3),lnks(4),txt("rivers"), truecase('INIT_UPPER'),corefed,#(1), txt(["rivers"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(3,3))), link(2,'S',r('S',seg(3,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(nns),form(pl),dep_child(amod,n(many,2)), dep_parent(nsubj,n(flow,4)),node(n(rivers,3)), flair,upos(noun),fner(o),fn('_')]), w( flow, [ alt(pos(vbp)), root(flow),loc(4),lnks(4),txt("flow"), truecase('INIT_UPPER'),link(1,'VP',r('VP',seg(4,6))), link(2,'S',r('S',seg(3,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),old_pos(vb), pos(vbp),spacy,spos(vbp),tense(present), dep_child(nsubj,n(rivers,3)),dep_child(root,n(flow,4)), dep_child(prep,n(in,5)),dep_child(punct,n(?,7)), dep_parent(root,n(flow,4)),node(n(flow,4)),flair, upos(verb),fner(o),fn('flow.01')]), w( in, [ pos(in), root(in),loc(5),lnks(5),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,6))), link(2,'VP',r('VP',seg(4,6))), link(3,'S',r('S',seg(3,6))), link(4,'SBAR',r('SBAR',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(in),dep_child(pobj,n(switzerland,6)), dep_parent(prep,n(flow,4)),node(n(in,5)),flair, upos(adp),fner(o),fn('_')]), w( switzerland, [ pos(nnp), root(switzerland),loc(6),lnks(6), txt("switzerland"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Switzerland'), corefed,#(2),txt(["switzerland"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(6,6))), link(2,'PP',r('PP',seg(5,6))), link(3,'VP',r('VP',seg(4,6))), link(4,'S',r('S',seg(3,6))), link(5,'SBAR',r('SBAR',seg(1,7))), link(6,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(nn),form(sg),dep_parent(pobj,n(in,5)), node(n(switzerland,6)),flair,upos(propn), fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),dep_parent(punct,n(flow,4)), node(n(?,7)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "How many rivers flow in switzerland ?", sentence80, whq( thing&River&river-B, s( np(3+pl,np_head(QuantV,quantV(same,wh(thing&River&river-B)),[],river),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(in),np(3+sg,nameOf(Switzerland,switzerland,[]),[]))]))). tmp : test80_result( "How many rivers flow in switzerland ?", i_sentence, question80( [thing&River&river-B], pred( quantV( quantV(same,wh(thing&River&river-B)), thing&River&river-C, '`'(ti(river,C)),'`'(true), [], thing&River&river-C), identityQ(IdentityQ), path_pred_linkage(direct(river_flows),river,C,E,D), [ quantV( identityQ(IdentityQ2), thing&geo&country-E, '`'(named(E,switzerland)),'`'(true), [], thing&geo&country-E), quantV(voidQ(VoidQ),thing&Thing-D,'`'(true),'`'(true),[],_3020-D)]))). tmp : test80_result( "How many rivers flow in switzerland ?", qplan, answer80([Numberof]) :- numberof( River, ( ti(river,River) , ^( Linkage, ( named(Switzerland,switzerland) , path_pred_linkage(direct(river_flows),river,River,Switzerland,Linkage)))), Numberof)). tmp : test80_result("How many rivers flow in switzerland ?",results80,[[2]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 22010| true 1 14 9 2 26 | How many rivers flow in switzerland ? ========================================================= tmp : test80_result( "How many rivers flow from switzerland ?", into_lexical_segs, [ w( how, [ pos(wrb), root(how),loc(1),lnks(3),txt("How"), truecase('INIT_UPPER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adv),fner(o),fn('_')]), w( many, [ pos(jj), root(many),loc(2),lnks(3),txt("many"), truecase('INIT_UPPER'), link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adj),fner(o),fn('_')]), w( rivers, [ pos(nns), root(river),loc(3),lnks(4),txt("rivers"), truecase('INIT_UPPER'),corefed,#(1), txt(["rivers"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(3,3))), link(2,'S',r('S',seg(3,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner(o),fn('_')]), w( flow, [ alt(pos(vbp)), root(flow),pos(vb),loc(4),lnks(4), txt("flow"),truecase('LOWER'), link(1,'VP',r('VP',seg(4,6))), link(2,'S',r('S',seg(3,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(verb),fner(o),fn('flow.01')]), w( from, [ pos(in), root(from),loc(5),lnks(5),txt("from"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,6))), link(2,'VP',r('VP',seg(4,6))), link(3,'S',r('S',seg(3,6))), link(4,'SBAR',r('SBAR',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adp),fner(o),fn('_')]), w( switzerland, [ pos(nnp), root(switzerland),loc(6),lnks(6), txt("switzerland"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Switzerland'), corefed,#(2),txt(["switzerland"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(6,6))), link(2,'PP',r('PP',seg(5,6))), link(3,'VP',r('VP',seg(4,6))), link(4,'S',r('S',seg(3,6))), link(5,'SBAR',r('SBAR',seg(1,7))), link(6,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(propn),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "How many rivers flow from switzerland ?", sentence80, whq( thing&River&river-B, s( np(3+pl,np_head(QuantV,quantV(same,wh(thing&River&river-B)),[],river),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(from),np(3+sg,nameOf(Switzerland,switzerland,[]),[]))]))). tmp : test80_result( "How many rivers flow from switzerland ?", i_sentence, question80( [thing&River&river-B], pred( quantV( quantV(same,wh(thing&River&river-B)), thing&River&river-C, '`'(ti(river,C)),'`'(true), [], thing&River&river-C), identityQ(IdentityQ), path_pred_linkage(direct(river_flows),river,C,E,D), [ quantV( identityQ(IdentityQ2), thing&geo&country-E, '`'(named(E,switzerland)),'`'(true), [], thing&geo&country-E), quantV(voidQ(VoidQ),thing&Thing-D,'`'(true),'`'(true),[],_84670-D)]))). tmp : test80_result( "How many rivers flow from switzerland ?", qplan, answer80([Numberof]) :- numberof( River, ( ti(river,River) , ^( Linkage, ( named(Switzerland,switzerland) , path_pred_linkage(direct(river_flows),river,River,Switzerland,Linkage)))), Numberof)). tmp : test80_result("How many rivers flow from switzerland ?",results80,[[2]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 22101| true -18 8 1 2 -7 | How many rivers flow from switzerland ? ========================================================= tmp : test80_result( "How many rivers flow at switzerland ?", into_lexical_segs, [ w( how, [ pos(wrb), root(how),loc(1),lnks(3),txt("How"), truecase('INIT_UPPER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(wrb),dep_parent(advmod,n(many,2)),node(n(how,1)), flair,upos(adv),fner(o),fn('_')]), w( many, [ pos(jj), root(many),loc(2),lnks(3),txt("many"), truecase('INIT_UPPER'), link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(jj),dep_child(advmod,n(how,1)), dep_parent(amod,n(rivers,3)),node(n(many,2)), flair,upos(adj),fner(o),fn('_')]), w( rivers, [ pos(nns), root(river),loc(3),lnks(4),txt("rivers"), truecase('INIT_UPPER'),corefed,#(1), txt(["rivers"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(3,3))), link(2,'S',r('S',seg(3,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(nns),form(pl),dep_child(amod,n(many,2)), dep_parent(nsubj,n(flow,4)),node(n(rivers,3)), flair,upos(noun),fner(o),fn('_')]), w( flow, [ alt(pos(vbp)), root(flow),loc(4),lnks(4),txt("flow"), truecase('INIT_UPPER'),link(1,'VP',r('VP',seg(4,6))), link(2,'S',r('S',seg(3,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),old_pos(vb), pos(vbp),spacy,spos(vbp),tense(present), dep_child(nsubj,n(rivers,3)),dep_child(root,n(flow,4)), dep_child(prep,n(from,5)),dep_child(punct,n(?,7)), dep_parent(root,n(flow,4)),node(n(flow,4)),flair, upos(verb),fner(o),fn('flow.01')]), w( at, [ pos(in), root(at),loc(5),lnks(5),txt("at"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,6))), link(2,'VP',r('VP',seg(4,6))), link(3,'S',r('S',seg(3,6))), link(4,'SBAR',r('SBAR',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adp),fner(o),fn('_')]), w( switzerland, [ pos(nnp), root(switzerland),loc(6),lnks(6), txt("switzerland"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Switzerland'), corefed,#(2),txt(["switzerland"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(6,6))), link(2,'PP',r('PP',seg(5,6))), link(3,'VP',r('VP',seg(4,6))), link(4,'S',r('S',seg(3,6))), link(5,'SBAR',r('SBAR',seg(1,7))), link(6,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(nnp),form(sg),dep_parent(pobj,n(from,5)), node(n(switzerland,6)),flair,upos(propn), fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),dep_parent(punct,n(flow,4)), node(n(?,7)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "How many rivers flow at switzerland ?", sentence80, whq( thing&River&river-B, s( np(3+pl,np_head(QuantV,quantV(same,wh(thing&River&river-B)),[],river),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(at),np(3+sg,nameOf(Switzerland,switzerland,[]),[]))]))). tmp : test80_result( "How many rivers flow at switzerland ?", i_sentence, question80( [thing&River&river-B], pred( quantV( quantV(same,wh(thing&River&river-B)), thing&River&river-C, '`'(ti(river,C)),'`'(true), [], thing&River&river-C), identityQ(IdentityQ), path_pred_linkage(direct(river_flows),river,C,E,D), [ quantV( identityQ(IdentityQ2), thing&geo&country-E, '`'(named(E,switzerland)),'`'(true), [], thing&geo&country-E), quantV(voidQ(VoidQ),thing&Thing-D,'`'(true),'`'(true),[],_51848-D)]))). tmp : test80_result( "How many rivers flow at switzerland ?", qplan, answer80([Numberof]) :- numberof( River, ( ti(river,River) , ^( Linkage, ( named(Switzerland,switzerland) , path_pred_linkage(direct(river_flows),river,River,Switzerland,Linkage)))), Numberof)). tmp : test80_result("How many rivers flow at switzerland ?",results80,[[2]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 22201| true 2 11 3 2 18 | How many rivers flow at switzerland ? ========================================================= tmp : test80_result( "Which is the largest african country ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(3),txt("Which"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(pron),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(2),lnks(3),txt("is"), truecase('LOWER'),link(1,'S',r('S',seg(2,6))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(4),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,6))), link(2,'S',r('S',seg(2,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(det),fner(o),fn('_')]), w( largest, [ pos(jjs), root(largest),loc(4),lnks(4), txt("largest"),truecase('LOWER'), link(1,'NP',r('NP',seg(3,6))), link(2,'S',r('S',seg(2,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adj),fner(o),fn('_')]), w( african, [ pos(jj), root(african),loc(5),lnks(4), txt("african"),ner('NATIONALITY'), truecase('INIT_UPPER'),entitylink('Africa'), link(1,'NP',r('NP',seg(3,6))), link(2,'S',r('S',seg(2,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adj),fner('s-misc'),fn('_')]), w( country, [ pos(nn), root(country),loc(6),lnks(4), txt("country"),truecase('LOWER'), link(1,'NP',r('NP',seg(3,6))), link(2,'S',r('S',seg(2,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Which is the largest african country ?", sentence80, whq( thing&Thing-B, s( np(3+_38102,wh(thing&Thing-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np(3+sg,np_head(Det,det(the(sg)),[sup(most,adj(large)),adj(african)],country),[]))], []))). tmp : test80_result( "Which is the largest african country ?", i_sentence, question80( [thing&Thing-B], pred( quantV( identityQ(IdentityQ), thing&Thing-B, '`'(true),'`'(true), [], thing&Thing-B), identityQ(IdentityQ2), subsumed_by(B,C), [ quantV( det(the(sg)), thing&Thing-C, aggr( max, C, [E,F], '`'(ti(country,F)), '`'(measure_pred(thing,area,F,E))&'`'(ti(african,F))&'`'(true)), '`'(true), [], thing&Thing-C)]))). tmp : test80_result( "Which is the largest african country ?", qplan, answer80([Subsumed_by]) :- ^( By_Aggregate80, ( ^( SetOf_Max, ( setOf( Measure_Kw:African_Area_Country, ( ti(country,African_Area_Country) , measure_pred(thing,area,African_Area_Country,Measure_Kw) , ti(african,African_Area_Country)), SetOf_Max) , aggregate80(max,SetOf_Max,By_Aggregate80))) , subsumed_by(Subsumed_by,By_Aggregate80)))). tmp : test80_result("Which is the largest african country ?",results80,[[sudan]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 700| true 1 19 22 2 44 | Which is the largest african country ? ========================================================= tmp : test80_result( "Which country's capital is london ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(4),txt("Which"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,3))), link(2,'NP',r('NP',seg(1,4))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(pron),fner(o),fn('_')]), w( country, [ pos(nn), root(country),loc(2),lnks(4), txt("country"),truecase('INIT_UPPER'), link(1,'NP',r('NP',seg(1,3))), link(2,'NP',r('NP',seg(1,4))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner(o),fn('_')]), w( '\'s', [ pos(pos), root('\'s'),loc(3),lnks(4),txt("'s"), truecase('LOWER'),link(1,'NP',r('NP',seg(1,3))), link(2,'NP',r('NP',seg(1,4))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7)))]), w( capital, [ pos(nn), root(capital),loc(4),lnks(3), txt("capital"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,4))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(5),lnks(3),txt("is"), truecase('LOWER'),link(1,'S',r('S',seg(5,6))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(verb),fner(o),fn('be.01')]), w( london, [ pos(nnp), root(london),loc(6),lnks(4),txt("london"), truecase('INIT_UPPER'),corefed,#(1), txt(["london"]),type('PROPER'), numb('SINGULAR'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(6,6))), link(2,'S',r('S',seg(5,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),dep_parent(punct,n(flow,4)), node(n(?,7)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Which country's capital is london ?", sentence80, whq( thing&Country&country-B, s( np( 3+sg, np_head(Det,det(the(sg)),[],capital), [ prep_phrase( Poss, poss(Poss11), np( 3+sg, np_head( Wh_det, wh_det(thing&Country&country,thing&Country&country-B), [], country), []))]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+sg,nameOf(London,london,[]),[]))], []))). tmp : test80_result( "Which country's capital is london ?", i_sentence, question80( [thing&Country&country-B], pred( quantV( det(the(sg)), thing&City&city-C, '`'(specific_pred(thing,nation_capital,B,C)), '`'(true), [ quantV( wh_det(thing&Country&country,thing&Country&country-B), thing&Country&country-B, '`'(ti(country,B)),'`'(true), [], thing&Country&country-B)], thing&City&city-C), identityQ(IdentityQ), subsumed_by(C,D), [ quantV( identityQ(IdentityQ2), thing&City&city-D, '`'(named(D,london)),'`'(true), [], thing&City&city-D)]))). tmp : test80_result( "Which country's capital is london ?", qplan, answer80([Nation_capital_Country]) :- ^( Specific_Subsumed_by, ( ti(country,Nation_capital_Country) , specific_pred(thing,nation_capital,Nation_capital_Country,Specific_Subsumed_by) , named(By_London,london) , subsumed_by(Specific_Subsumed_by,By_London)))). tmp : test80_result("Which country's capital is london ?",results80,[[united_kingdom]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 600| true 2 15 6 0 23 | Which country's capital is london ? ========================================================= tmp : test80_result( "Which country bordering the mediterranean borders a country that is bordered by a country whose population exceeds the population of india ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(3),txt("Which"), truecase('LOWER'),link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,22))), link(3,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(pron),fner(o),fn('_')]), w( country, [ pos(nn), root(country),loc(2),lnks(3), txt("country"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,22))), link(3,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(noun),fner(o),fn('_')]), w( bordering, [ pos(vbg), root(border),loc(3),lnks(4), txt("bordering"),truecase('LOWER'), link(1,'VP',r('VP',seg(3,21))), link(2,'S',r('S',seg(3,21))), link(3,'SBAR',r('SBAR',seg(1,22))), link(4,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(verb),fner(o),fn('border.01')]), w( the, [ pos(dt), root(the),loc(4),lnks(7),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,6))), link(2,'NP',r('NP',seg(4,8))), link(3,'NP',r('NP',seg(4,21))), link(4,'VP',r('VP',seg(3,21))), link(5,'S',r('S',seg(3,21))), link(6,'SBAR',r('SBAR',seg(1,22))), link(7,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(det),fner(o),fn('_')]), w( mediterranean, [ pos(jj), root(mediterranean),loc(5),lnks(7), txt("mediterranean"),truecase('INIT_UPPER'), link(1,'NP',r('NP',seg(4,6))), link(2,'NP',r('NP',seg(4,8))), link(3,'NP',r('NP',seg(4,21))), link(4,'VP',r('VP',seg(3,21))), link(5,'S',r('S',seg(3,21))), link(6,'SBAR',r('SBAR',seg(1,22))), link(7,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(adj),fner(o),fn('_')]), w( borders, [ pos(nns), root(border),loc(6),lnks(7),txt("borders"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,6))), link(2,'NP',r('NP',seg(4,8))), link(3,'NP',r('NP',seg(4,21))), link(4,'VP',r('VP',seg(3,21))), link(5,'S',r('S',seg(3,21))), link(6,'SBAR',r('SBAR',seg(1,22))), link(7,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(noun),fner(o),fn('_')]), w( a, [ pos(dt), root(a),loc(7),lnks(7),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(7,8))), link(2,'NP',r('NP',seg(4,8))), link(3,'NP',r('NP',seg(4,21))), link(4,'VP',r('VP',seg(3,21))), link(5,'S',r('S',seg(3,21))), link(6,'SBAR',r('SBAR',seg(1,22))), link(7,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(det),fner(o),fn('_')]), w( country, [ pos(nn), root(country),loc(8),lnks(7), txt("country"),truecase('LOWER'), link(1,'NP',r('NP',seg(7,8))), link(2,'NP',r('NP',seg(4,8))), link(3,'NP',r('NP',seg(4,21))), link(4,'VP',r('VP',seg(3,21))), link(5,'S',r('S',seg(3,21))), link(6,'SBAR',r('SBAR',seg(1,22))), link(7,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(noun),fner(o),fn('_')]), w( that, [ pos(wdt), root(that),loc(9),lnks(7),txt("that"), truecase('LOWER'),link(1,'NP',r('NP',seg(9,9))), link(2,'SBAR',r('SBAR',seg(9,21))), link(3,'NP',r('NP',seg(4,21))), link(4,'VP',r('VP',seg(3,21))), link(5,'S',r('S',seg(3,21))), link(6,'SBAR',r('SBAR',seg(1,22))), link(7,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(pron),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(10),lnks(8),txt("is"), truecase('LOWER'),link(1,'VP',r('VP',seg(10,21))), link(2,'S',r('S',seg(10,21))), link(3,'SBAR',r('SBAR',seg(9,21))), link(4,'NP',r('NP',seg(4,21))), link(5,'VP',r('VP',seg(3,21))), link(6,'S',r('S',seg(3,21))), link(7,'SBAR',r('SBAR',seg(1,22))), link(8,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(verb),fner(o),fn('be.03')]), w( bordered, [ pos(vbn), root(border),loc(11),lnks(9), txt("bordered"),truecase('LOWER'), link(1,'VP',r('VP',seg(11,21))), link(2,'VP',r('VP',seg(10,21))), link(3,'S',r('S',seg(10,21))), link(4,'SBAR',r('SBAR',seg(9,21))), link(5,'NP',r('NP',seg(4,21))), link(6,'VP',r('VP',seg(3,21))), link(7,'S',r('S',seg(3,21))), link(8,'SBAR',r('SBAR',seg(1,22))), link(9,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(verb),fner(o),fn('surround.01')]), w( by, [ pos(in), root(by),loc(12),lnks(10),txt("by"), truecase('LOWER'),link(1,'PP',r('PP',seg(12,21))), link(2,'VP',r('VP',seg(11,21))), link(3,'VP',r('VP',seg(10,21))), link(4,'S',r('S',seg(10,21))), link(5,'SBAR',r('SBAR',seg(9,21))), link(6,'NP',r('NP',seg(4,21))), link(7,'VP',r('VP',seg(3,21))), link(8,'S',r('S',seg(3,21))), link(9,'SBAR',r('SBAR',seg(1,22))), link(10,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(adp),fner(o),fn('_')]), w( a, [ pos(dt), root(a),loc(13),lnks(12),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(13,14))), link(2,'NP',r('NP',seg(13,21))), link(3,'PP',r('PP',seg(12,21))), link(4,'VP',r('VP',seg(11,21))), link(5,'VP',r('VP',seg(10,21))), link(6,'S',r('S',seg(10,21))), link(7,'SBAR',r('SBAR',seg(9,21))), link(8,'NP',r('NP',seg(4,21))), link(9,'VP',r('VP',seg(3,21))), link(10,'S',r('S',seg(3,21))), link(11,'SBAR',r('SBAR',seg(1,22))), link(12,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(det),fner(o),fn('_')]), w( country, [ pos(nn), root(country),loc(14),lnks(12), txt("country"),truecase('LOWER'), link(1,'NP',r('NP',seg(13,14))), link(2,'NP',r('NP',seg(13,21))), link(3,'PP',r('PP',seg(12,21))), link(4,'VP',r('VP',seg(11,21))), link(5,'VP',r('VP',seg(10,21))), link(6,'S',r('S',seg(10,21))), link(7,'SBAR',r('SBAR',seg(9,21))), link(8,'NP',r('NP',seg(4,21))), link(9,'VP',r('VP',seg(3,21))), link(10,'S',r('S',seg(3,21))), link(11,'SBAR',r('SBAR',seg(1,22))), link(12,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(noun),fner(o),fn('_')]), w( whose, [ pos('wp$'), root(whose),loc(15),lnks(13),txt("whose"), truecase('LOWER'),link(1,'NP',r('NP',seg(15,16))), link(2,'SBAR',r('SBAR',seg(15,21))), link(3,'NP',r('NP',seg(13,21))), link(4,'PP',r('PP',seg(12,21))), link(5,'VP',r('VP',seg(11,21))), link(6,'VP',r('VP',seg(10,21))), link(7,'S',r('S',seg(10,21))), link(8,'SBAR',r('SBAR',seg(9,21))), link(9,'NP',r('NP',seg(4,21))), link(10,'VP',r('VP',seg(3,21))), link(11,'S',r('S',seg(3,21))), link(12,'SBAR',r('SBAR',seg(1,22))), link(13,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(pron),fner(o),fn('_')]), w( population, [ pos(nn), root(population),loc(16),lnks(14), txt("population"),truecase('LOWER'), link(1,'NML',r('NML',seg(16,16))), link(2,'NP',r('NP',seg(15,16))), link(3,'SBAR',r('SBAR',seg(15,21))), link(4,'NP',r('NP',seg(13,21))), link(5,'PP',r('PP',seg(12,21))), link(6,'VP',r('VP',seg(11,21))), link(7,'VP',r('VP',seg(10,21))), link(8,'S',r('S',seg(10,21))), link(9,'SBAR',r('SBAR',seg(9,21))), link(10,'NP',r('NP',seg(4,21))), link(11,'VP',r('VP',seg(3,21))), link(12,'S',r('S',seg(3,21))), link(13,'SBAR',r('SBAR',seg(1,22))), link(14,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(noun),fner(o),fn('_')]), w( exceeds, [ pos(vbz), root(exceed),loc(17),lnks(14), txt("exceeds"),truecase('LOWER'), link(1,'VP',r('VP',seg(17,21))), link(2,'S',r('S',seg(17,21))), link(3,'SBAR',r('SBAR',seg(15,21))), link(4,'NP',r('NP',seg(13,21))), link(5,'PP',r('PP',seg(12,21))), link(6,'VP',r('VP',seg(11,21))), link(7,'VP',r('VP',seg(10,21))), link(8,'S',r('S',seg(10,21))), link(9,'SBAR',r('SBAR',seg(9,21))), link(10,'NP',r('NP',seg(4,21))), link(11,'VP',r('VP',seg(3,21))), link(12,'S',r('S',seg(3,21))), link(13,'SBAR',r('SBAR',seg(1,22))), link(14,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(verb),fner(o),fn('exceed.01')]), w( the, [ pos(dt), root(the),loc(18),lnks(16),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(18,19))), link(2,'NP',r('NP',seg(18,21))), link(3,'VP',r('VP',seg(17,21))), link(4,'S',r('S',seg(17,21))), link(5,'SBAR',r('SBAR',seg(15,21))), link(6,'NP',r('NP',seg(13,21))), link(7,'PP',r('PP',seg(12,21))), link(8,'VP',r('VP',seg(11,21))), link(9,'VP',r('VP',seg(10,21))), link(10,'S',r('S',seg(10,21))), link(11,'SBAR',r('SBAR',seg(9,21))), link(12,'NP',r('NP',seg(4,21))), link(13,'VP',r('VP',seg(3,21))), link(14,'S',r('S',seg(3,21))), link(15,'SBAR',r('SBAR',seg(1,22))), link(16,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(det),fner(o),fn('_')]), w( population, [ pos(nn), root(population),loc(19),lnks(16), txt("population"),truecase('LOWER'), link(1,'NP',r('NP',seg(18,19))), link(2,'NP',r('NP',seg(18,21))), link(3,'VP',r('VP',seg(17,21))), link(4,'S',r('S',seg(17,21))), link(5,'SBAR',r('SBAR',seg(15,21))), link(6,'NP',r('NP',seg(13,21))), link(7,'PP',r('PP',seg(12,21))), link(8,'VP',r('VP',seg(11,21))), link(9,'VP',r('VP',seg(10,21))), link(10,'S',r('S',seg(10,21))), link(11,'SBAR',r('SBAR',seg(9,21))), link(12,'NP',r('NP',seg(4,21))), link(13,'VP',r('VP',seg(3,21))), link(14,'S',r('S',seg(3,21))), link(15,'SBAR',r('SBAR',seg(1,22))), link(16,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(20),lnks(16),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(20,21))), link(2,'NP',r('NP',seg(18,21))), link(3,'VP',r('VP',seg(17,21))), link(4,'S',r('S',seg(17,21))), link(5,'SBAR',r('SBAR',seg(15,21))), link(6,'NP',r('NP',seg(13,21))), link(7,'PP',r('PP',seg(12,21))), link(8,'VP',r('VP',seg(11,21))), link(9,'VP',r('VP',seg(10,21))), link(10,'S',r('S',seg(10,21))), link(11,'SBAR',r('SBAR',seg(9,21))), link(12,'NP',r('NP',seg(4,21))), link(13,'VP',r('VP',seg(3,21))), link(14,'S',r('S',seg(3,21))), link(15,'SBAR',r('SBAR',seg(1,22))), link(16,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(adp),fner(o),fn('_')]), w( india, [ pos(nnp), root(india),loc(21),lnks(17),txt("india"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('India'),corefed,#(1), txt(["india"]),type('PROPER'), numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(21,21))), link(2,'PP',r('PP',seg(20,21))), link(3,'NP',r('NP',seg(18,21))), link(4,'VP',r('VP',seg(17,21))), link(5,'S',r('S',seg(17,21))), link(6,'SBAR',r('SBAR',seg(15,21))), link(7,'NP',r('NP',seg(13,21))), link(8,'PP',r('PP',seg(12,21))), link(9,'VP',r('VP',seg(11,21))), link(10,'VP',r('VP',seg(10,21))), link(11,'S',r('S',seg(10,21))), link(12,'SBAR',r('SBAR',seg(9,21))), link(13,'NP',r('NP',seg(4,21))), link(14,'VP',r('VP',seg(3,21))), link(15,'S',r('S',seg(3,21))), link(16,'SBAR',r('SBAR',seg(1,22))), link(17,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(noun),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(22),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,22))), link(2,'CORENLP',r('CORENLP',seg(1,22))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Which country bordering the mediterranean borders a country that is bordered by a country whose population exceeds the population of india ?", sentence80, whq( thing&geo&Geo-B, s( np( 3+sg, np_head(Wh_det,wh_det(thing&geo&Geo,thing&geo&Geo-B),[],country), [ reduced_rel( thing&geo&Geo-B, s( np(3+sg,wh(thing&geo&Geo-B),[]), verb(main+tv,border,active,inf,[prog],posP([])), [ arg(dirO(DirO),np(3+sg,nameOf(Mediterranean,mediterranean,[]),[]))], []))]), verb(main+tv,border,active,pres+fin,[],posP([])), [ arg( dirO(DirO34), np( 3+sg, np_head(Det,det(a),[],country), [ rel( thing&geo&Geo10-D, s( np(3+sg,wh(thing&geo&Geo10-D),[]), verb(main+tv,border,passive,pres+fin,[],posP([])), [], [ prep_phrase( Prep28, prep(by), np( 3+sg, np_head(Det12,det(a),[],country), [ rel( thing&geo&Geo14-E, s( np( 3+sg, np_head(Det15,det(the(sg)),[],population), [ prep_phrase(Poss,poss(Poss35),np(3+sg,wh(thing&geo&Geo14-E),[]))]), verb(main+tv,exceed,active,pres+fin,[],posP([])), [ arg( dirO(DirO36), np( 3+sg, np_head(Det20,det(the(sg)),[],population), [ prep_phrase(Prep,prep(of),np(3+sg,nameOf(India,india,[]),[]))]))], []))]))]))]))], []))). tmp : test80_result( "Which country bordering the mediterranean borders a country that is bordered by a country whose population exceeds the population of india ?", i_sentence, question80( [thing&geo&Geo-B], pred( quantV( wh_det(thing&geo&Geo,thing&geo&Geo-B), thing&geo&Geo-B, '`'(ti(country,B)),'`'(true), [ pred( quantV( identityQ(IdentityQ), thing&geo&Geo-B, '`'(true),'`'(true), [], thing&geo&Geo-B), identityQ(IdentityQ2), generic_pred(thing,border,B,C), [ quantV( identityQ(IdentityQ3), thing&geo&seamass-C, '`'(named(C,mediterranean)),'`'(true), [], thing&geo&seamass-C)])], thing&geo&Geo-B), identityQ(IdentityQ4), generic_pred(thing,border,B,D), [ quantV( det(a), thing&geo&Geo12-D, '`'(ti(country,D)), ( pred( quantV( identityQ(IdentityQ5), thing&geo&Geo12-D, '`'(true),'`'(true), [], thing&geo&Geo12-D), identityQ(IdentityQ6), generic_pred(thing,border,E,D), [ quantV( det(a), thing&geo&Geo15-E, '`'(ti(country,E)), ( pred( quantV( det(the(sg)), value&units&population-F, '`'(count_pred(thing,population,E,F)), '`'(true), [ quantV( identityQ(IdentityQ7), thing&geo&Geo15-E, '`'(true),'`'(true), [], thing&geo&Geo15-E)], value&units&population-F), identityQ(IdentityQ8), exceeds(F,G), [ quantV( det(the(sg)), value&units&population-G, '`'(count_pred(thing,population,H,G)), '`'(true), [ quantV( identityQ(IdentityQ9), thing&geo&country-H, '`'(named(H,india)),'`'(true), [], thing&geo&country-H)], value&units&population-G)]) & '`'(true)), [], thing&geo&Geo15-E)]) & '`'(true)), [], thing&geo&Geo12-D)]))). tmp : test80_result( "Which country bordering the mediterranean borders a country that is bordered by a country whose population exceeds the population of india ?", qplan, answer80([Border_Country]) :- named(Generic_Mediterranean,mediterranean) , ti(country,Border_Country) , generic_pred(thing,border,Border_Country,Generic_Mediterranean) , ^( Generic_Country3, ( ti(country,Generic_Country3) , ^( Border_Population_Country4, ( ti(country,Border_Population_Country4) , ^( Count_Exceeds, ( count_pred(thing,population,Border_Population_Country4,Count_Exceeds) , ^( Exceeds_Count, ( named(Population_India,india) , count_pred(thing,population,Population_India,Exceeds_Count) , exceeds(Count_Exceeds,Exceeds_Count))))) , generic_pred(thing,border,Border_Population_Country4,Generic_Country3))) , generic_pred(thing,border,Border_Country,Generic_Country3)))). tmp : test80_result( "Which country bordering the mediterranean borders a country that is bordered by a country whose population exceeds the population of india ?", results80, [[turkey]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 1900| true -13 38 43 1283 1351 | Which country bordering the mediterranean borders a country that is bordered by a country whose population exceeds the population of india ? ========================================================= tmp : test80_result( "Which countries with a population exceeding 10 million border the atlantic ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(4),txt("Which"), truecase('LOWER'),link(1,'NP',r('NP',seg(1,2))), link(2,'NP',r('NP',seg(1,5))), link(3,'SBAR',r('SBAR',seg(1,12))), link(4,'CORENLP',r('CORENLP',seg(1,12))),spacy, spos(wdt),dep_parent(nsubj,n(is,2)),node(n(which,1)), flair,upos(pron),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(2),lnks(4), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,2))), link(2,'NP',r('NP',seg(1,5))), link(3,'SBAR',r('SBAR',seg(1,12))), link(4,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(noun),fner(o),fn('_')]), w( with, [ pos(in), root(with),loc(3),lnks(4),txt("with"), truecase('LOWER'),link(1,'PP',r('PP',seg(3,5))), link(2,'NP',r('NP',seg(1,5))), link(3,'SBAR',r('SBAR',seg(1,12))), link(4,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(adp),fner(o),fn('_')]), w( a, [ pos(dt), root(a),loc(4),lnks(5),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,5))), link(2,'PP',r('PP',seg(3,5))), link(3,'NP',r('NP',seg(1,5))), link(4,'SBAR',r('SBAR',seg(1,12))), link(5,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(det),fner(o),fn('_')]), w( population, [ pos(nn), root(population),loc(5),lnks(5), txt("population"),truecase('LOWER'), link(1,'NP',r('NP',seg(4,5))), link(2,'PP',r('PP',seg(3,5))), link(3,'NP',r('NP',seg(1,5))), link(4,'SBAR',r('SBAR',seg(1,12))), link(5,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(noun),fner(o),fn('_')]), w( exceeding, [ pos(vbg), root(exceed),loc(6),lnks(4), txt("exceeding"),truecase('LOWER'), link(1,'VP',r('VP',seg(6,11))), link(2,'S',r('S',seg(6,11))), link(3,'SBAR',r('SBAR',seg(1,12))), link(4,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(verb),fner(o),fn('exceed.01')]), w( '10', [ pos(cd), root('10'),loc(7),lnks(7),txt("10"), ner('NUMBER'),normalizedNER(10000000.0), entitylink('10000000_(number)'), link(1,'QP',r('QP',seg(7,8))), link(2,'NP',r('NP',seg(7,9))), link(3,'NP',r('NP',seg(7,11))), link(4,'VP',r('VP',seg(6,11))), link(5,'S',r('S',seg(6,11))), link(6,'SBAR',r('SBAR',seg(1,12))), link(7,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(num),fner(o),fn('_')]), w( million, [ pos(cd), root(million),loc(8),lnks(7), txt("million"),ner('NUMBER'), normalizedNER(10000000.0),truecase('LOWER'), entitylink('10000000_(number)'), link(1,'QP',r('QP',seg(7,8))), link(2,'NP',r('NP',seg(7,9))), link(3,'NP',r('NP',seg(7,11))), link(4,'VP',r('VP',seg(6,11))), link(5,'S',r('S',seg(6,11))), link(6,'SBAR',r('SBAR',seg(1,12))), link(7,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(num),fner(o),fn('_')]), w( border, [ root(border), loc(9),lnks(6),txt("border"), truecase('LOWER'),link(1,'NP',r('NP',seg(7,9))), link(2,'NP',r('NP',seg(7,11))), link(3,'VP',r('VP',seg(6,11))), link(4,'S',r('S',seg(6,11))), link(5,'SBAR',r('SBAR',seg(1,12))), link(6,'CORENLP',r('CORENLP',seg(1,12))),old_pos(nn), pos(vb),flair,upos(verb),fner(o), fn('_')]), w( the, [ pos(dt), root(the),loc(10),lnks(6),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(10,11))), link(2,'NP',r('NP',seg(7,11))), link(3,'VP',r('VP',seg(6,11))), link(4,'S',r('S',seg(6,11))), link(5,'SBAR',r('SBAR',seg(1,12))), link(6,'CORENLP',r('CORENLP',seg(1,12))),spacy, spos(dt),loc(3),dep_parent(det,n(country,6)), node(n(the,3)),flair,upos(det),fner(o), fn('_')]), w( atlantic, [ pos(nn), root(atlantic),loc(11),lnks(6), txt("atlantic"),truecase('INIT_UPPER'), link(1,'NP',r('NP',seg(10,11))), link(2,'NP',r('NP',seg(7,11))), link(3,'VP',r('VP',seg(6,11))), link(4,'S',r('S',seg(6,11))), link(5,'SBAR',r('SBAR',seg(1,12))), link(6,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(noun),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(12),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,12))), link(2,'CORENLP',r('CORENLP',seg(1,12))),spacy, spos('.'),loc(7),dep_parent(punct,n(is,2)), node(n(?,7)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Which countries with a population exceeding 10 million border the atlantic ?", sentence80, whq( thing&geo&Geo-B, s( np( 3+pl, np_head(Wh_det,wh_det(thing&geo&Geo,thing&geo&Geo-B),[],country), [ prep_phrase( Prep, prep(with), np( 3+sg, np_head(Det,det(a),[],population), [ reduced_rel( value&units&population-C, s( np(3+sg,wh(value&units&population-C),[]), verb(main+tv,exceed,active,inf,[prog],posP([])), [ arg(dirO(DirO),np(3+pl,np_head(QuantV,quantV(same,10),[],million),[]))], []))]))]), verb(main+tv,border,active,pres+fin,[],posP([])), [ arg(dirO(DirO16),np(3+sg,nameOf(Atlantic,atlantic,[]),[]))], []))). tmp : test80_result( "Which countries with a population exceeding 10 million border the atlantic ?", i_sentence, question80( [thing&geo&Geo-B], pred( quantV( wh_det(thing&geo&Geo,thing&geo&Geo-B), thing&geo&Geo-B, '`'(ti(country,B)),'`'(true), [ ( quantV( det(a), value&units&population-C, '`'(count_pred(thing,population,B,C)), '`'(true), [ pred( quantV( identityQ(IdentityQ), value&units&population-C, '`'(true),'`'(true), [], value&units&population-C), identityQ(IdentityQ2), exceeds(C,D), [ quantV( voidQ(VoidQ), value&units&population-D, '`'(same_values(D,--(10,million))),'`'(true), [], value&units&population-D)])], value&units&population-C) & '`'(C=E)), quantV( voidQ(VoidQ4), value&units&population-E, '`'(true),'`'(true), [], _5206-E)], thing&geo&Geo-B), identityQ(IdentityQ5), generic_pred(thing,border,B,F), [ quantV( identityQ(IdentityQ6), thing&geo&seamass-F, '`'(named(F,atlantic)),'`'(true), [], thing&geo&seamass-F)]))). tmp : test80_result( "Which countries with a population exceeding 10 million border the atlantic ?", qplan, answer80([Border_Country_Population]) :- ^( Count_Exceeds, ( ^( Exceeds6, ( same_values(Exceeds6,--(10,million)) , count_pred(thing,population,Border_Country_Population,Count_Exceeds) , exceeds(Count_Exceeds,Exceeds6))) , ti(country,Border_Country_Population))) , named(Generic_Atlantic,atlantic) , generic_pred(thing,border,Border_Country_Population,Generic_Atlantic)). tmp : test80_result( "Which countries with a population exceeding 10 million border the atlantic ?", results80, [ [ argentina, brazil,canada,colombia,france,mexico, morocco,netherlands,nigeria,south_africa, spain,united_kingdom,united_states,venezuela, west_germany,zaire]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 2100| true 12 92 87 1 192 | Which countries with a population exceeding 10 million border the atlantic ? ========================================================= tmp : test80_result( "Which countries have a population exceeding 10 million ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(3),txt("Which"), truecase('LOWER'),link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,9))), link(3,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(pron),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(2),lnks(3), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,9))), link(3,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(noun),fner(o),fn('_')]), w( have, [ alt(pos(vbp)), root(have),pos(vb),loc(3),lnks(4), txt("have"),truecase('LOWER'), link(1,'VP',r('VP',seg(3,8))), link(2,'S',r('S',seg(3,8))), link(3,'SBAR',r('SBAR',seg(1,9))), link(4,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(verb),fner(o),fn('have.03')]), w( a, [ pos(dt), root(a),loc(4),lnks(6),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,5))), link(2,'NP',r('NP',seg(4,8))), link(3,'VP',r('VP',seg(3,8))), link(4,'S',r('S',seg(3,8))), link(5,'SBAR',r('SBAR',seg(1,9))), link(6,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(det),fner(o),fn('_')]), w( population, [ pos(nn), root(population),loc(5),lnks(6), txt("population"),truecase('LOWER'), link(1,'NP',r('NP',seg(4,5))), link(2,'NP',r('NP',seg(4,8))), link(3,'VP',r('VP',seg(3,8))), link(4,'S',r('S',seg(3,8))), link(5,'SBAR',r('SBAR',seg(1,9))), link(6,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(noun),fner(o),fn('_')]), w( exceeding, [ pos(vbg), root(exceed),loc(6),lnks(6), txt("exceeding"),truecase('LOWER'), link(1,'VP',r('VP',seg(6,8))), link(2,'NP',r('NP',seg(4,8))), link(3,'VP',r('VP',seg(3,8))), link(4,'S',r('S',seg(3,8))), link(5,'SBAR',r('SBAR',seg(1,9))), link(6,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(verb),fner(o),fn('exceed.01')]), w( '10', [ pos(cd), root('10'),loc(7),lnks(8),txt("10"), ner('NUMBER'),normalizedNER(10000000.0), entitylink('10000000_(number)'), link(1,'QP',r('QP',seg(7,8))), link(2,'NP',r('NP',seg(7,8))), link(3,'VP',r('VP',seg(6,8))), link(4,'NP',r('NP',seg(4,8))), link(5,'VP',r('VP',seg(3,8))), link(6,'S',r('S',seg(3,8))), link(7,'SBAR',r('SBAR',seg(1,9))), link(8,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(num),fner(o),fn('_')]), w( million, [ pos(cd), root(million),loc(8),lnks(8), txt("million"),ner('NUMBER'), normalizedNER(10000000.0),truecase('LOWER'), entitylink('10000000_(number)'), link(1,'QP',r('QP',seg(7,8))), link(2,'NP',r('NP',seg(7,8))), link(3,'VP',r('VP',seg(6,8))), link(4,'NP',r('NP',seg(4,8))), link(5,'VP',r('VP',seg(3,8))), link(6,'S',r('S',seg(3,8))), link(7,'SBAR',r('SBAR',seg(1,9))), link(8,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(num),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(9),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,9))), link(2,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Which countries have a population exceeding 10 million ?", sentence80, whq( F&_104856-B, s( np(3+pl,np_head(Wh_det,wh_det(F&_38236,F&_38236-B),[],country),[]), verb(aux+have(Have),have(Have),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(Det,det(a),[],population), [ reduced_rel( value&units&population-C, s( np(3+sg,wh(value&units&population-C),[]), verb(main+tv,exceed,active,inf,[prog],posP([])), [ arg(dirO(DirO13),np(3+pl,np_head(QuantV,quantV(same,10),[],million),[]))], []))]))], []))). tmp : test80_result( "Which countries have a population exceeding 10 million ?", i_sentence, question80( [F&_22920-B], pred( quantV( wh_det(F&_95196,F&_95196-B), F&_84234-B,'`'(ti(country,B)), '`'(true), [], F&_84234-B), identityQ(IdentityQ), count_pred(F,population,B,C),C=E, [ quantV( det(a), value&units&population-C, '`'(true),'`'(true), [ pred( quantV( identityQ(IdentityQ1), value&units&population-C, '`'(true),'`'(true), [], value&units&population-C), identityQ(IdentityQ2), exceeds(C,D), [ quantV( voidQ(VoidQ), value&units&population-D, '`'(same_values(D,--(10,million))),'`'(true), [], value&units&population-D)])], value&units&population-C), quantV( voidQ(VoidQ4), value&units&population-E, '`'(true),'`'(true), [], _58228-E)]))). tmp : test80_result( "Which countries have a population exceeding 10 million ?", qplan, answer80([Country]) :- ti(country,Country) , ^( Count_Exceeds, ( ^( Exceeds3, same_values(Exceeds3,--(10,million)),exceeds(Count_Exceeds,Exceeds3)) , count_pred(Population,population,Country,Count_Exceeds)))). tmp : test80_result( "Which countries have a population exceeding 10 million ?", results80, [ [ afghanistan, algeria,argentina,australia,bangladesh, brazil,burma,canada,china,colombia, czechoslovakia,east_germany,egypt,ethiopia, france,india,indonesia,iran,italy, japan,kenya,malaysia,mexico,morocco, nepal,netherlands,nigeria,north_korea, pakistan,peru,philippines,poland, south_africa,south_korea,soviet_union,spain, sri_lanka,sudan,taiwan,tanzania, thailand,turkey,uganda,united_kingdom, united_states,venezuela,vietnam,west_germany, yugoslavia,zaire]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 2000| true 2 24 17 1 44 | Which countries have a population exceeding 10 million ? ========================================================= tmp : test80_result( "Which countries contain more than 3 cities ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(3),txt("Which"), truecase('LOWER'),link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),spacy, spos(wdt),dep_parent(det,n(country,2)), node(n(which,1)),flair,upos(pron),fner(o), fn('_')]), w( countries, [ pos(nns), root(country),loc(2),lnks(3), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( contain, [ alt(pos(vbp)), root(contain),pos(vb),loc(3),lnks(4), txt("contain"),truecase('LOWER'), link(1,'VP',r('VP',seg(3,7))), link(2,'S',r('S',seg(3,7))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(verb),fner(o),fn('contain.01')]), w( more, [ pos(jjr), root(more),loc(4),lnks(6),txt("more"), truecase('LOWER'),link(1,'QP',r('QP',seg(4,6))), link(2,'NP',r('NP',seg(4,7))), link(3,'VP',r('VP',seg(3,7))), link(4,'S',r('S',seg(3,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adj),fner(o),fn('_')]), w( than, [ pos(in), root(than),loc(5),lnks(6),txt("than"), truecase('LOWER'),link(1,'QP',r('QP',seg(4,6))), link(2,'NP',r('NP',seg(4,7))), link(3,'VP',r('VP',seg(3,7))), link(4,'S',r('S',seg(3,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adp),fner(o),fn('_')]), w( '3', [ pos(cd), root('3'),loc(6),lnks(6),txt("3"), ner('NUMBER'),normalizedNER('>3.0'),entitylink(3), corefed,#(1),txt(["3"]), type('PROPER'),numb('SINGULAR'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'QP',r('QP',seg(4,6))), link(2,'NP',r('NP',seg(4,7))), link(3,'VP',r('VP',seg(3,7))), link(4,'S',r('S',seg(3,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(num),fner(o),fn('_')]), w( cities, [ pos(nns), root(city),loc(7),lnks(5),txt("cities"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,7))), link(2,'VP',r('VP',seg(3,7))), link(3,'S',r('S',seg(3,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(8),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,8))), link(2,'CORENLP',r('CORENLP',seg(1,8))),spacy, spos('.'),loc(7),dep_parent(punct,n(is,5)), node(n(?,7)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Which countries contain more than 3 cities ?", sentence80, whq( E&_97958-B, s( np(3+pl,np_head(Wh_det,wh_det(E&_30616,E&_30616-B),[],country),[]), verb(main+tv,contain,active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+pl,np_head(QuantV,quantV(more,3),[],city),[]))], []))). tmp : test80_result( "Which countries contain more than 3 cities ?", i_sentence, question80( [E&_111610-B], pred( quantV( wh_det(E&_58384,E&_58384-B), E&_47422-B,'`'(ti(country,B)), '`'(true), [], E&_47422-B), identityQ(IdentityQ), trans_pred(E,contain,B,D), [ quantV( quantV(more,3), E&_77778-D, '`'(ti(city,D)),'`'(true), [], E&_72336-D)]))). tmp : test80_result( "Which countries contain more than 3 cities ?", qplan, answer80([Country]) :- ti(country,Country) , ^( Numberof, ( numberof( City, ti(city,City),trans_pred(Contain,contain,Country,City), Numberof) , Numberof>3))). tmp : test80_result("Which countries contain more than 3 cities ?",results80,[]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 31100| true -20 15 11 66 72 | Which countries contain more than 3 cities ? ========================================================= tmp : test80_result( "Which countries contain more than 2 cities ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(3),txt("Which"), truecase('LOWER'),link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(pron),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(2),lnks(3), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( contain, [ alt(pos(vbp)), root(contain),pos(vb),loc(3),lnks(4), txt("contain"),truecase('LOWER'), link(1,'VP',r('VP',seg(3,7))), link(2,'S',r('S',seg(3,7))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(verb),fner(o),fn('contain.01')]), w( more, [ pos(jjr), root(more),loc(4),lnks(6),txt("more"), truecase('LOWER'),link(1,'QP',r('QP',seg(4,6))), link(2,'NP',r('NP',seg(4,7))), link(3,'VP',r('VP',seg(3,7))), link(4,'S',r('S',seg(3,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adj),fner(o),fn('_')]), w( than, [ pos(in), root(than),loc(5),lnks(6),txt("than"), truecase('LOWER'),link(1,'QP',r('QP',seg(4,6))), link(2,'NP',r('NP',seg(4,7))), link(3,'VP',r('VP',seg(3,7))), link(4,'S',r('S',seg(3,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adp),fner(o),fn('_')]), w( '2', [ pos(cd), root('2'),loc(6),lnks(6),txt("2"), ner('NUMBER'),normalizedNER('>2.0'),entitylink(2), corefed,#(1),txt(["2"]), type('PROPER'),numb('SINGULAR'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'QP',r('QP',seg(4,6))), link(2,'NP',r('NP',seg(4,7))), link(3,'VP',r('VP',seg(3,7))), link(4,'S',r('S',seg(3,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(num),fner(o),fn('_')]), w( cities, [ pos(nns), root(city),loc(7),lnks(5),txt("cities"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,7))), link(2,'VP',r('VP',seg(3,7))), link(3,'S',r('S',seg(3,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(8),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,8))), link(2,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Which countries contain more than 2 cities ?", sentence80, whq( E&_48290-B, s( np(3+pl,np_head(Wh_det,wh_det(E&_108134,E&_108134-B),[],country),[]), verb(main+tv,contain,active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+pl,np_head(QuantV,quantV(more,2),[],city),[]))], []))). tmp : test80_result( "Which countries contain more than 2 cities ?", i_sentence, question80( [E&_60956-B], pred( quantV( wh_det(E&_8670,E&_8670-B), E&_3342-B,'`'(ti(country,B)), '`'(true), [], E&_3342-B), identityQ(IdentityQ), trans_pred(E,contain,B,D), [ quantV( quantV(more,2), E&_28062-D, '`'(ti(city,D)),'`'(true), [], E&_22620-D)]))). tmp : test80_result( "Which countries contain more than 2 cities ?", qplan, answer80([Country]) :- ti(country,Country) , ^( Numberof, ( numberof( City, ti(city,City),trans_pred(Contain,contain,Country,City), Numberof) , Numberof>2))). tmp : test80_result("Which countries contain more than 2 cities ?",results80,[]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 31200| true 3 15 10 66 94 | Which countries contain more than 2 cities ? ========================================================= tmp : test80_result( "Which countries contain a city ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(3),txt("Which"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),spacy, spos(wdt),dep_parent(det,n(country,2)), node(n(which,1)),flair,upos(pron),fner(o), fn('_')]), w( countries, [ pos(nns), root(country),loc(2),lnks(3), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner(o),fn('_')]), w( contain, [ alt(pos(vbp)), root(contain),pos(vb),loc(3),lnks(4), txt("contain"),truecase('LOWER'), link(1,'VP',r('VP',seg(3,5))), link(2,'S',r('S',seg(3,5))), link(3,'SBAR',r('SBAR',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('contain.01')]), w( a, [ pos(dt), root(a),loc(4),lnks(5),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'S',r('S',seg(3,5))), link(4,'SBAR',r('SBAR',seg(1,6))), link(5,'CORENLP',r('CORENLP',seg(1,6))),spacy, spos(dt),loc(7),dep_parent(det,n(country,8)), node(n(a,7)),flair,upos(det),fner(o), fn('_')]), w( city, [ pos(nn), root(city),loc(5),lnks(5),txt("city"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'S',r('S',seg(3,5))), link(4,'SBAR',r('SBAR',seg(1,6))), link(5,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),spacy, spos('.'),loc(22),dep_parent(punct,n(country,2)), node(n(?,22)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Which countries contain a city ?", sentence80, whq( D&_110138-B, s( np(3+pl,np_head(Wh_det,wh_det(D&_42544,D&_42544-B),[],country),[]), verb(main+tv,contain,active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+sg,np_head(Det,det(a),[],city),[]))], []))). tmp : test80_result( "Which countries contain a city ?", i_sentence, question80( [D&_121662-B], pred( quantV( wh_det(D&_67912,D&_67912-B), D&_56950-B,'`'(ti(country,B)), '`'(true), [], D&_56950-B), identityQ(IdentityQ), trans_pred(D,contain,B,C), [ quantV(det(a),D&_81592-C,'`'(ti(city,C)),'`'(true),[],D&_81592-C)]))). tmp : test80_result( "Which countries contain a city ?", qplan, answer80([Country]) :- ti(country,Country) , ^( City, ti(city,City),trans_pred(Contain,contain,Country,City))). tmp : test80_result("Which countries contain a city ?",results80,[]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 30800| true 2 14 5 64 85 | Which countries contain a city ? ========================================================= tmp : test80_result( "Which countries contain 3 cities ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(3),txt("Which"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(pron),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(2),lnks(3), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner(o),fn('_')]), w( contain, [ alt(pos(vbp)), root(contain),pos(vb),loc(3),lnks(4), txt("contain"),truecase('LOWER'), link(1,'VP',r('VP',seg(3,5))), link(2,'S',r('S',seg(3,5))), link(3,'SBAR',r('SBAR',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('contain.01')]), w( '3', [ pos(cd), root('3'),loc(4),lnks(5),txt("3"), ner('NUMBER'),normalizedNER(3.0),entitylink(3), corefed,#(1),txt(["3"]), type('PROPER'),numb('SINGULAR'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'S',r('S',seg(3,5))), link(4,'SBAR',r('SBAR',seg(1,6))), link(5,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(num),fner(o),fn('_')]), w( cities, [ pos(nns), root(city),loc(5),lnks(5),txt("cities"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'S',r('S',seg(3,5))), link(4,'SBAR',r('SBAR',seg(1,6))), link(5,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Which countries contain 3 cities ?", sentence80, whq( D&_19268-B, s( np(3+pl,np_head(Wh_det,wh_det(D&_79112,D&_79112-B),[],country),[]), verb(main+tv,contain,active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+pl,np_head(QuantV,quantV(same,3),[],city),[]))], []))). tmp : test80_result( "Which countries contain 3 cities ?", i_sentence, question80( [D&_30802-B], pred( quantV( wh_det(D&_104912,D&_104912-B), D&_93950-B,'`'(ti(country,B)), '`'(true), [], D&_93950-B), identityQ(IdentityQ), trans_pred(D,contain,B,C), [ quantV( quantV(same,3), D&_124308-C, '`'(ti(city,C)),'`'(true), [], D&_118866-C)]))). tmp : test80_result( "Which countries contain 3 cities ?", qplan, answer80([Country]) :- ti(country,Country) , numberof( City, ti(city,City),trans_pred(Contain,contain,Country,City), 3)). tmp : test80_result("Which countries contain 3 cities ?",results80,[]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 31000| true 1 12 3 70 86 | Which countries contain 3 cities ? ========================================================= tmp : test80_result( "Which countries contain 2 cities ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(3),txt("Which"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),spacy, spos(wdt),dep_parent(det,n(countries,2)), node(n(which,1)),flair,upos(pron),fner(o), fn('_')]), w( countries, [ pos(nns), root(country),loc(2),lnks(3), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),spacy, spos(nns),form(pl),dep_child(det,n(which,1)), dep_child(root,n(countries,2)),dep_child(prep,n(with,3)), dep_child(punct,n(?,12)),dep_parent(root,n(countries,2)), node(n(countries,2)),flair,upos(noun), fner(o),fn('_')]), w( contain, [ alt(pos(vbp)), root(contain),pos(vb),loc(3),lnks(4), txt("contain"),truecase('LOWER'), link(1,'VP',r('VP',seg(3,5))), link(2,'S',r('S',seg(3,5))), link(3,'SBAR',r('SBAR',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('contain.01')]), w( '2', [ pos(cd), root('2'),loc(4),lnks(5),txt("2"), ner('NUMBER'),normalizedNER(2.0),entitylink(2), corefed,#(1),txt(["2"]), type('PROPER'),numb('SINGULAR'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'S',r('S',seg(3,5))), link(4,'SBAR',r('SBAR',seg(1,6))), link(5,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(num),fner(o),fn('_')]), w( cities, [ pos(nns), root(city),loc(5),lnks(5),txt("cities"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'S',r('S',seg(3,5))), link(4,'SBAR',r('SBAR',seg(1,6))), link(5,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),spacy, spos('.'),loc(12), dep_parent(punct,n(countries,2)),node(n(?,12)), flair,upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Which countries contain 2 cities ?", sentence80, whq( D&_66554-B, s( np(3+pl,np_head(Wh_det,wh_det(D&_126398,D&_126398-B),[],country),[]), verb(main+tv,contain,active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+pl,np_head(QuantV,quantV(same,2),[],city),[]))], []))). tmp : test80_result( "Which countries contain 2 cities ?", i_sentence, question80( [D&_77708-B], pred( quantV( wh_det(D&_24808,D&_24808-B), D&_13846-B,'`'(ti(country,B)), '`'(true), [], D&_13846-B), identityQ(IdentityQ), trans_pred(D,contain,B,C), [ quantV( quantV(same,2), D&_44202-C, '`'(ti(city,C)),'`'(true), [], D&_38760-C)]))). tmp : test80_result( "Which countries contain 2 cities ?", qplan, answer80([Country]) :- ti(country,Country) , numberof( City, ti(city,City),trans_pred(Contain,contain,Country,City), 2)). tmp : test80_result("Which countries contain 2 cities ?",results80,[]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 30900| true 1 12 2 69 84 | Which countries contain 2 cities ? ========================================================= tmp : test80_result( "Which countries are european ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(3),txt("Which"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(pron),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(2),lnks(3), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(noun),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(3),lnks(3), txt("are"),truecase('LOWER'), link(1,'S',r('S',seg(3,4))), link(2,'SBAR',r('SBAR',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(verb),fner(o),fn('be.01')]), w( european, [ root(european), loc(4),lnks(4),txt("european"), ner('NATIONALITY'),truecase('INIT_UPPER'), entitylink('Europe'),link(1,'NP',r('NP',seg(4,4))), link(2,'S',r('S',seg(3,4))), link(3,'SBAR',r('SBAR',seg(1,5))), link(4,'CORENLP',r('CORENLP',seg(1,5))),old_pos(nnp), pos(jj),flair,upos(adj),fner(o), fn('_')]), w( ?, [ pos('.'), root(?),loc(5),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,5))), link(2,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Which countries are european ?", sentence80, whq( thing&Thing-B, s( np( 3+pl, np_head(Wh_det,wh_det(thing&Thing,thing&Thing-B),[],country), []), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg(arg_pred(Arg6),adj(european))], []))). tmp : test80_result( "Which countries are european ?", i_sentence, question80( [thing&Thing-B], pred( quantV( wh_det(thing&Thing,thing&Thing-B), thing&Thing-B, '`'(ti(country,B)),'`'(true), [], thing&Thing-B), identityQ(IdentityQ),true, ['`'(true)&'`'(ti(european,B))&'`'(true)]))). tmp : test80_result( "Which countries are european ?", qplan, answer80([European_Country]) :- ti(country,European_Country) , ti(european,European_Country)). tmp : test80_result( "Which countries are european ?", results80, [ [ albania, andorra,austria,belgium,bulgaria,cyprus, czechoslovakia,denmark,east_germany,eire, finland,france,greece,hungary,iceland, italy,liechtenstein,luxembourg,malta, monaco,netherlands,norway,poland, portugal,romania,san_marino,spain, sweden,switzerland,united_kingdom,west_germany, yugoslavia]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 500| true 1 -3 2 -22 -22 | Which countries are european ? ========================================================= tmp : test80_result( "Which countries are bordered by two seas ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(3),txt("Which"), truecase('LOWER'),link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),spacy, spos(wdt),dep_parent(det,n(countries,2)), node(n(which,1)),flair,upos(pron),fner(o), fn('_')]), w( countries, [ pos(nns), root(country),loc(2),lnks(3), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),spacy, spos(nns),form(pl),dep_child(det,n(which,1)), dep_parent(nsubj,n(have,3)),node(n(countries,2)), flair,upos(noun),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(3),lnks(3), txt("are"),truecase('LOWER'), link(1,'S',r('S',seg(3,7))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(verb),fner(o),fn('be.03')]), w( bordered, [ pos(vbn), root(border),loc(4),lnks(4), txt("bordered"),truecase('LOWER'), link(1,'VP',r('VP',seg(4,7))), link(2,'S',r('S',seg(3,7))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(verb),fner(o),fn('border.01')]), w( by, [ pos(in), root(by),loc(5),lnks(5),txt("by"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,7))), link(2,'VP',r('VP',seg(4,7))), link(3,'S',r('S',seg(3,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adp),fner(o),fn('_')]), w( two, [ pos(cd), root(two),loc(6),lnks(6),txt("two"), ner('NUMBER'),normalizedNER(2.0), truecase('LOWER'),corefed,#(1), txt(["two"]),type('PROPER'), numb('SINGULAR'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(6,7))), link(2,'PP',r('PP',seg(5,7))), link(3,'VP',r('VP',seg(4,7))), link(4,'S',r('S',seg(3,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(num),fner(o),fn('_')]), w( seas, [ pos(nns), root(sea),loc(7),lnks(6),txt("seas"), truecase('LOWER'),link(1,'NP',r('NP',seg(6,7))), link(2,'PP',r('PP',seg(5,7))), link(3,'VP',r('VP',seg(4,7))), link(4,'S',r('S',seg(3,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(8),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,8))), link(2,'CORENLP',r('CORENLP',seg(1,8))),spacy, spos('.'),loc(9),dep_parent(punct,n(have,3)), node(n(?,9)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Which countries are bordered by two seas ?", sentence80, whq( thing&_42976&_42978-B, s( np( 3+pl, np_head(Wh_det,wh_det(thing&_26436&_26438,thing&_26436&_26438-B),[],country), []), verb(main+tv,border,passive,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(by),np(3+pl,np_head(QuantV,quantV(same,2),[],sea),[]))]))). tmp : test80_result( "Which countries are bordered by two seas ?", i_sentence, question80( [thing&_13788&_13790-B], pred( quantV( wh_det(thing&_127962&_127964,thing&_127962&_127964-B), thing&_111452&_111454-B, '`'(ti(country,B)),'`'(true), [], thing&_111452&_111454-B), identityQ(IdentityQ), generic_pred(thing,border,C,B), [ quantV( quantV(same,2), thing&_27108&_27110-C, '`'(ti(sea,C)),'`'(true), [], thing&_20216&_20218-C)]))). tmp : test80_result( "Which countries are bordered by two seas ?", qplan, answer80([Generic_Country]) :- ti(country,Generic_Country) , numberof( Border_Sea, ti(sea,Border_Sea),generic_pred(thing,border,Border_Sea,Generic_Country), 2)). tmp : test80_result( "Which countries are bordered by two seas ?", results80, [ [ egypt, iran,israel,saudi_arabia,turkey]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 1100| true -18 16 27 4 29 | Which countries are bordered by two seas ? ========================================================= tmp : test80_result( "Which continents contain more than 4 cities ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(3),txt("Which"), truecase('LOWER'),link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(pron),fner(o),fn('_')]), w( continents, [ pos(nns), root(continent),loc(2),lnks(3), txt("continents"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( contain, [ alt(pos(vbp)), root(contain),pos(vb),loc(3),lnks(4), txt("contain"),truecase('LOWER'), link(1,'VP',r('VP',seg(3,7))), link(2,'S',r('S',seg(3,7))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(verb),fner(o),fn('contain.01')]), w( more, [ pos(jjr), root(more),loc(4),lnks(6),txt("more"), truecase('LOWER'),link(1,'QP',r('QP',seg(4,6))), link(2,'NP',r('NP',seg(4,7))), link(3,'VP',r('VP',seg(3,7))), link(4,'S',r('S',seg(3,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adj),fner(o),fn('_')]), w( than, [ pos(in), root(than),loc(5),lnks(6),txt("than"), truecase('LOWER'),link(1,'QP',r('QP',seg(4,6))), link(2,'NP',r('NP',seg(4,7))), link(3,'VP',r('VP',seg(3,7))), link(4,'S',r('S',seg(3,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adp),fner(o),fn('_')]), w( '4', [ pos(cd), root('4'),loc(6),lnks(6),txt("4"), ner('NUMBER'),normalizedNER('>4.0'),entitylink(4), corefed,#(1),txt(["4"]), type('PROPER'),numb('SINGULAR'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'QP',r('QP',seg(4,6))), link(2,'NP',r('NP',seg(4,7))), link(3,'VP',r('VP',seg(3,7))), link(4,'S',r('S',seg(3,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(num),fner(o),fn('_')]), w( cities, [ pos(nns), root(city),loc(7),lnks(5),txt("cities"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,7))), link(2,'VP',r('VP',seg(3,7))), link(3,'S',r('S',seg(3,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(8),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,8))), link(2,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Which continents contain more than 4 cities ?", sentence80, whq( thing&geo&continent-B, s( np( 3+pl, np_head(Wh_det,wh_det(thing&geo&continent,thing&geo&continent-B),[],continent), []), verb(main+tv,contain,active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+pl,np_head(QuantV,quantV(more,4),[],city),[]))], []))). tmp : test80_result( "Which continents contain more than 4 cities ?", i_sentence, question80( [thing&geo&continent-B], pred( quantV( wh_det(thing&geo&continent,thing&geo&continent-B), thing&geo&continent-B, '`'(ti(continent,B)),'`'(true), [], thing&geo&continent-B), identityQ(IdentityQ), trans_pred(thing,contain,B,D), [ quantV( quantV(more,4), thing&Thing-D, '`'(ti(city,D)),'`'(true), [], thing&Thing-D)]))). tmp : test80_result( "Which continents contain more than 4 cities ?", qplan, answer80([Contain_Continent]) :- ti(continent,Contain_Continent) , ^( Numberof, ( numberof( City, ti(city,City),trans_pred(thing,contain,Contain_Continent,City), Numberof) , Numberof>4))). tmp : test80_result( "Which continents contain more than 4 cities ?", results80, [ [ africa, america,asia,australasia,europe]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 31300| true 2 3 -1 4 8 | Which continents contain more than 4 cities ? ========================================================= tmp : test80_result( "Which asian countries have a population exceeding 10 million ?", into_lexical_segs, [ w( which, [ pos(wdt), root(which),loc(1),lnks(3),txt("Which"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,10))), link(3,'CORENLP',r('CORENLP',seg(1,10))),spacy, spos(wdt),dep_parent(det,n(countries,2)), node(n(which,1)),flair,upos(pron),fner(o), fn('_')]), w( asian, [ pos(jj), root(asian),loc(2),lnks(4),txt("asian"), ner('NATIONALITY'),truecase('INIT_UPPER'), entitylink('Asian'),link(1,'NP',r('NP',seg(2,3))), link(2,'S',r('S',seg(2,9))), link(3,'SBAR',r('SBAR',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(adj),fner('s-misc'),fn('_')]), w( countries, [ pos(nns), root(country),loc(3),lnks(4), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(2,3))), link(2,'S',r('S',seg(2,9))), link(3,'SBAR',r('SBAR',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),spacy, spos(nns),loc(2),form(pl), dep_child(det,n(which,1)),dep_parent(nsubj,n(contain,3)), node(n(countries,2)),flair,upos(noun), fner(o),fn('_')]), w( have, [ alt(pos(vbp)), root(have),pos(vb),loc(4),lnks(4), txt("have"),truecase('LOWER'), link(1,'VP',r('VP',seg(4,9))), link(2,'S',r('S',seg(2,9))), link(3,'SBAR',r('SBAR',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(verb),fner(o),fn('have.03')]), w( a, [ pos(dt), root(a),loc(5),lnks(6),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(5,6))), link(2,'NP',r('NP',seg(5,9))), link(3,'VP',r('VP',seg(4,9))), link(4,'S',r('S',seg(2,9))), link(5,'SBAR',r('SBAR',seg(1,10))), link(6,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(det),fner(o),fn('_')]), w( population, [ pos(nn), root(population),loc(6),lnks(6), txt("population"),truecase('LOWER'), link(1,'NP',r('NP',seg(5,6))), link(2,'NP',r('NP',seg(5,9))), link(3,'VP',r('VP',seg(4,9))), link(4,'S',r('S',seg(2,9))), link(5,'SBAR',r('SBAR',seg(1,10))), link(6,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(noun),fner(o),fn('_')]), w( exceeding, [ pos(vbg), root(exceed),loc(7),lnks(6), txt("exceeding"),truecase('LOWER'), link(1,'VP',r('VP',seg(7,9))), link(2,'NP',r('NP',seg(5,9))), link(3,'VP',r('VP',seg(4,9))), link(4,'S',r('S',seg(2,9))), link(5,'SBAR',r('SBAR',seg(1,10))), link(6,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(verb),fner(o),fn('exceed.01')]), w( '10', [ pos(cd), root('10'),loc(8),lnks(8),txt("10"), ner('NUMBER'),normalizedNER(10000000.0), entitylink('10000000_(number)'), link(1,'QP',r('QP',seg(8,9))), link(2,'NP',r('NP',seg(8,9))), link(3,'VP',r('VP',seg(7,9))), link(4,'NP',r('NP',seg(5,9))), link(5,'VP',r('VP',seg(4,9))), link(6,'S',r('S',seg(2,9))), link(7,'SBAR',r('SBAR',seg(1,10))), link(8,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(num),fner(o),fn('_')]), w( million, [ pos(cd), root(million),loc(9),lnks(8), txt("million"),ner('NUMBER'), normalizedNER(10000000.0),truecase('LOWER'), entitylink('10000000_(number)'), link(1,'QP',r('QP',seg(8,9))), link(2,'NP',r('NP',seg(8,9))), link(3,'VP',r('VP',seg(7,9))), link(4,'NP',r('NP',seg(5,9))), link(5,'VP',r('VP',seg(4,9))), link(6,'S',r('S',seg(2,9))), link(7,'SBAR',r('SBAR',seg(1,10))), link(8,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(num),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(10),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,10))), link(2,'CORENLP',r('CORENLP',seg(1,10))),spacy, spos('.'),loc(8),dep_parent(punct,n(contain,3)), node(n(?,8)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Which asian countries have a population exceeding 10 million ?", sentence80, whq( thing&Thing-B, s( np( 3+pl, np_head( Wh_det, wh_det(thing&Thing,thing&Thing-B), [adj(asian)], country), []), verb(aux+have(Have),have(Have),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(Det,det(a),[],population), [ reduced_rel( value&units&population-C, s( np(3+sg,wh(value&units&population-C),[]), verb(main+tv,exceed,active,inf,[prog],posP([])), [ arg(dirO(DirO13),np(3+pl,np_head(QuantV,quantV(same,10),[],million),[]))], []))]))], []))). tmp : test80_result( "Which asian countries have a population exceeding 10 million ?", i_sentence, question80( [thing&Thing-B], pred( quantV( wh_det(thing&Thing,thing&Thing-B), thing&Thing-B, '`'(ti(country,B)), '`'(ti(asian,B))&'`'(true), [], thing&Thing-B), identityQ(IdentityQ), count_pred(thing,population,B,C),C=E, [ quantV( det(a), value&units&population-C, '`'(true),'`'(true), [ pred( quantV( identityQ(IdentityQ2), value&units&population-C, '`'(true),'`'(true), [], value&units&population-C), identityQ(IdentityQ3), exceeds(C,D), [ quantV( voidQ(VoidQ), value&units&population-D, '`'(same_values(D,--(10,million))),'`'(true), [], value&units&population-D)])], value&units&population-C), quantV( voidQ(VoidQ5), value&units&population-E, '`'(true),'`'(true), [], _3672-E)]))). tmp : test80_result( "Which asian countries have a population exceeding 10 million ?", qplan, answer80([Population_Asian_Country]) :- ti(country,Population_Asian_Country) , ti(asian,Population_Asian_Country) , ^( Count_Exceeds, ( ^( Exceeds4, same_values(Exceeds4,--(10,million)),exceeds(Count_Exceeds,Exceeds4)) , count_pred(thing,population,Population_Asian_Country,Count_Exceeds)))). tmp : test80_result( "Which asian countries have a population exceeding 10 million ?", results80, [ [ afghanistan, bangladesh,burma,china,india,indonesia, iran,japan,malaysia,nepal,north_korea, pakistan,philippines,south_korea,soviet_union, sri_lanka,taiwan,thailand,turkey, vietnam]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 31400| true 3 22 15 1 41 | Which asian countries have a population exceeding 10 million ? ========================================================= tmp : test80_result( "Where is the largest country ?", into_lexical_segs, [ w( where, [ pos(wrb), root(where),loc(1),lnks(3),txt("Where"), truecase('INIT_UPPER'),link(1,'WHADVP',r('WHADVP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(adv),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(2),lnks(3),txt("is"), truecase('LOWER'),link(1,'S',r('S',seg(2,5))), link(2,'SBAR',r('SBAR',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(4),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,5))), link(2,'S',r('S',seg(2,5))), link(3,'SBAR',r('SBAR',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(det),fner(o),fn('_')]), w( largest, [ pos(jjs), root(largest),loc(4),lnks(4), txt("largest"),truecase('LOWER'), link(1,'NP',r('NP',seg(3,5))), link(2,'S',r('S',seg(2,5))), link(3,'SBAR',r('SBAR',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(adj),fner(o),fn('_')]), w( country, [ pos(nn), root(country),loc(5),lnks(4), txt("country"),truecase('LOWER'), link(1,'NP',r('NP',seg(3,5))), link(2,'S',r('S',seg(2,5))), link(3,'SBAR',r('SBAR',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Where is the largest country ?", sentence80, whq( thing&Thing-B, s( np(3+sg,np_head(Det,det(the(sg)),[sup(most,adj(large))],country),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( arg_pred(Arg9), prep_phrase( Prep, prep(in), np( Np_head5, np_head(Wh_det,wh_det(thing&Thing,thing&Thing-B),[],place), [])))], []))). tmp : test80_result( "Where is the largest country ?", i_sentence, question80( [thing&Thing-B], pred( quantV( det(the(sg)), thing&Thing2-C, aggr( max, C, [E,F], '`'(ti(country,F)), '`'(measure_pred(thing,area,F,E))&'`'(true)), '`'(true), [], thing&Thing2-C), identityQ(IdentityQ),true, [ '`'(trans_pred(thing,contain,B,C)), quantV( wh_det(thing&Thing,thing&Thing-B), thing&Thing-B, '`'(ti(place,B)),'`'(true), [], thing&Thing-B)]))). tmp : test80_result( "Where is the largest country ?", qplan, answer80([Contain_Place]) :- ^( Aggregate80, ( ^( SetOf_Max, ( setOf( Measure_Kw:Area_Country, ti(country,Area_Country),measure_pred(thing,area,Area_Country,Measure_Kw), SetOf_Max) , aggregate80(max,SetOf_Max,Aggregate80))) , ti(place,Contain_Place) , trans_pred(thing,contain,Contain_Place,Aggregate80)))). tmp : test80_result("Where is the largest country ?",results80,[[asia,northern_asia]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 400| true 1 10 7 2 20 | Where is the largest country ? ========================================================= tmp : test80_result( "What rivers are there ?", into_lexical_segs, [ w( what, [ pos(wdt), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(pron),fner(o),fn('_')]), w( rivers, [ pos(nns), root(river),loc(2),lnks(4),txt("rivers"), truecase('LOWER'),corefed,#(1), txt(["rivers"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(2,2))), link(2,'NP',r('NP',seg(1,2))), link(3,'SBAR',r('SBAR',seg(1,5))), link(4,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(noun),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(3),lnks(3), txt("are"),truecase('LOWER'), link(1,'S',r('S',seg(3,4))), link(2,'SBAR',r('SBAR',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(verb),fner(o),fn('be.01')]), w( there, [ pos(ex), root(there),loc(4),lnks(4),txt("there"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,4))), link(2,'S',r('S',seg(3,4))), link(3,'SBAR',r('SBAR',seg(1,5))), link(4,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(pron),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(5),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,5))), link(2,'CORENLP',r('CORENLP',seg(1,5))),spacy, spos('.'),loc(8),dep_parent(punct,n(contain,3)), node(n(?,8)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "What rivers are there ?", sentence80, whq( _52258-B, s( np(3+pl,np_head(Wh_det,wh_det(_98060,_98060-B),[],river),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [voidQ(VoidQ5)], []))). tmp : test80_result( "What rivers are there ?", i_sentence, question80( [_24282-B], pred( quantV( wh_det(_70370,_70370-B), _62988-B,'`'(ti(river,B)), '`'(true), [], _62988-B), identityQ(IdentityQ),true, []))). tmp : test80_result("What rivers are there ?",qplan,(answer80([River]):-ti(river,River))). tmp : test80_result( "What rivers are there ?", results80, [ [ amazon, amu_darya,amur,brahmaputra,colorado, congo_river,cubango,danube,don,elbe, euphrates,ganges,hwang_ho,indus, irrawaddy,lena,limpopo,mackenzie,mekong, mississippi,murray,niger_river,nile,ob, oder,orange,orinoco,parana,rhine, rhone,rio_grande,salween,seine, senegal_river,tagus,vistula,volga,volta, yangtze,yenisei,yukon,zambesi]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 100| true 1 -6 -2 0 -7 | What rivers are there ? ========================================================= tmp : test80_result( "What rivers are in countries bordering the baltic ?", into_lexical_segs, [ w( what, [ pos(wdt), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,9))), link(3,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(pron),fner(o),fn('_')]), w( rivers, [ pos(nns), root(river),loc(2),lnks(4),txt("rivers"), truecase('LOWER'),corefed,#(1), txt(["rivers"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(2,2))), link(2,'S',r('S',seg(2,8))), link(3,'SBAR',r('SBAR',seg(1,9))), link(4,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(noun),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(3),lnks(4), txt("are"),truecase('LOWER'), link(1,'VP',r('VP',seg(3,8))), link(2,'S',r('S',seg(2,8))), link(3,'SBAR',r('SBAR',seg(1,9))), link(4,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(verb),fner(o),fn('be.01')]), w( in, [ pos(in), root(in),loc(4),lnks(5),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,8))), link(2,'VP',r('VP',seg(3,8))), link(3,'S',r('S',seg(2,8))), link(4,'SBAR',r('SBAR',seg(1,9))), link(5,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(adp),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(5),lnks(7), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(5,5))), link(2,'NP',r('NP',seg(5,8))), link(3,'PP',r('PP',seg(4,8))), link(4,'VP',r('VP',seg(3,8))), link(5,'S',r('S',seg(2,8))), link(6,'SBAR',r('SBAR',seg(1,9))), link(7,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(noun),fner(o),fn('_')]), w( bordering, [ pos(vbg), root(border),loc(6),lnks(7), txt("bordering"),truecase('LOWER'), link(1,'VP',r('VP',seg(6,8))), link(2,'NP',r('NP',seg(5,8))), link(3,'PP',r('PP',seg(4,8))), link(4,'VP',r('VP',seg(3,8))), link(5,'S',r('S',seg(2,8))), link(6,'SBAR',r('SBAR',seg(1,9))), link(7,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(verb),fner(o),fn('border.01')]), w( the, [ pos(dt), root(the),loc(7),lnks(8),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(7,8))), link(2,'VP',r('VP',seg(6,8))), link(3,'NP',r('NP',seg(5,8))), link(4,'PP',r('PP',seg(4,8))), link(5,'VP',r('VP',seg(3,8))), link(6,'S',r('S',seg(2,8))), link(7,'SBAR',r('SBAR',seg(1,9))), link(8,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(det),fner(o),fn('_')]), w( baltic, [ pos(jj), root(baltic),loc(8),lnks(8),txt("baltic"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(7,8))), link(2,'VP',r('VP',seg(6,8))), link(3,'NP',r('NP',seg(5,8))), link(4,'PP',r('PP',seg(4,8))), link(5,'VP',r('VP',seg(3,8))), link(6,'S',r('S',seg(2,8))), link(7,'SBAR',r('SBAR',seg(1,9))), link(8,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(9),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,9))), link(2,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "What rivers are in countries bordering the baltic ?", sentence80, whq( thing&Thing-B, s( np( 3+pl, np_head(Wh_det,wh_det(thing&Thing,thing&Thing-B),[],river), []), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( arg_pred(Arg15), prep_phrase( Prep, prep(in), np( 3+pl, np_head(Generic,generic(Generic16),[],country), [ reduced_rel( thing&geo&Geo-C, s( np(3+pl,wh(thing&geo&Geo-C),[]), verb(main+tv,border,active,inf,[prog],posP([])), [ arg(dirO(DirO),np(3+sg,nameOf(Baltic,baltic,[]),[]))], []))])))], []))). tmp : test80_result( "What rivers are in countries bordering the baltic ?", i_sentence, question80( [thing&Thing-B], pred( quantV( wh_det(thing&Thing,thing&Thing-B), thing&Thing-B, '`'(ti(river,B)),'`'(true), [], thing&Thing-B), identityQ(IdentityQ),true, [ '`'(trans_pred(thing,contain,C,B)), quantV( generic(Generic), thing&geo&Geo-C, '`'(ti(country,C)),'`'(true), [ pred( quantV( identityQ(IdentityQ3), thing&geo&Geo-C, '`'(true),'`'(true), [], thing&geo&Geo-C), identityQ(IdentityQ4), generic_pred(thing,border,C,D), [ quantV( identityQ(IdentityQ5), thing&geo&seamass-D, '`'(named(D,baltic)),'`'(true), [], thing&geo&seamass-D)])], thing&geo&Geo-C)]))). tmp : test80_result( "What rivers are in countries bordering the baltic ?", qplan, answer80([River]) :- ti(river,River) , ^( Contain_Border_Country, ( named(Generic_Baltic,baltic) , ti(country,Contain_Border_Country) , generic_pred(thing,border,Contain_Border_Country,Generic_Baltic) , trans_pred(thing,contain,Contain_Border_Country,River)))). tmp : test80_result( "What rivers are in countries bordering the baltic ?", results80, [ [ amu_darya, amur,danube,don,elbe,lena,ob, oder,rhine,vistula,volga,yenisei]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 66600| true 2 10 22 -12 22 | What rivers are in countries bordering the baltic ? ========================================================= tmp : test80_result( "What percentage of countries border each ocean ?", into_lexical_segs, [ w( what, [ pos(wdt), root(what),loc(1),lnks(4),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'NP',r('NP',seg(1,4))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(pron),fner(o),fn('_')]), w( percentage, [ pos(nn), root(percentage),loc(2),lnks(4), txt("percentage"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,2))), link(2,'NP',r('NP',seg(1,4))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(3),lnks(4),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(3,4))), link(2,'NP',r('NP',seg(1,4))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adp),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(4),lnks(5), txt("countries"),truecase('LOWER'),corefed, #(1),txt(["countries"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(4,4))), link(2,'PP',r('PP',seg(3,4))), link(3,'NP',r('NP',seg(1,4))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),spacy, spos(nns),loc(2),form(pl), dep_child(det,n(which,1)),dep_parent(nsubj,n(contain,3)), node(n(countries,2)),flair,upos(noun), fner(o),fn('_')]), w( border, [ alt(pos(vbp)), root(border),pos(vb),loc(5),lnks(4), txt("border"),truecase('LOWER'), link(1,'VP',r('VP',seg(5,7))), link(2,'S',r('S',seg(5,7))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(verb),fner(o),fn('cross.02')]), w( each, [ pos(dt), root(each),loc(6),lnks(5),txt("each"), truecase('LOWER'),link(1,'NP',r('NP',seg(6,7))), link(2,'VP',r('VP',seg(5,7))), link(3,'S',r('S',seg(5,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(det),fner(o),fn('_')]), w( ocean, [ pos(nn), root(ocean),loc(7),lnks(5),txt("ocean"), truecase('LOWER'),link(1,'NP',r('NP',seg(6,7))), link(2,'VP',r('VP',seg(5,7))), link(3,'S',r('S',seg(5,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(8),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,8))), link(2,'CORENLP',r('CORENLP',seg(1,8))),spacy, spos('.'),loc(6),dep_parent(punct,n(contain,3)), node(n(?,6)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "What percentage of countries border each ocean ?", sentence80, whq( _46462-C, s( np( 3+pl, np_head(Wh_det,wh_det(_107532,_107538-C),[],percentage), [ prep_phrase(Prep,prep(of),np(3+pl,np_head(Generic,generic(Generic11),[],country),[]))]), verb(main+tv,border,active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+sg,np_head(Det,det(each),[],ocean),[]))], []))). tmp : test80_result( "What percentage of countries border each ocean ?", i_sentence, question80( [_102010-C], pred( quantV( proportion(_93848-C), thing&_98160&_98162-E, '`'(true),'`'(true), [ quantV( identityQ(IdentityQ), thing&_123380&_123382-E, '`'(ti(country,E)),'`'(true), [], thing&_116496&_116498-E)], thing&_87616&_87618-G), identityQ(IdentityQ1), generic_pred(thing,border,G,B), [ quantV( det(each), thing&_22484&_22486-B, '`'(ti(ocean,B)),'`'(true), [], thing&_15602&_15604-B)]))). tmp : test80_result( "What percentage of countries border each ocean ?", qplan, answer80([Generic_Ocean,Ratio12]) :- ti(ocean,Generic_Ocean) , ^( SetOf_One_of, ( setOf(Ti_Country,ti(country,Ti_Country),SetOf_One_of) , ^( Numberof_Ratio6, ( numberof( Of_Border, ( one_of(SetOf_One_of,Of_Border) , generic_pred(thing,border,Of_Border,Generic_Ocean)), Numberof_Ratio6) , ^( Size_Ratio, ( card(SetOf_One_of,Size_Ratio) , ratio(Numberof_Ratio6,Size_Ratio,Ratio12)))))))). tmp : test80_result( "What percentage of countries border each ocean ?", results80, [ [ [arctic_ocean,2.5641025641025643], [atlantic,36.53846153846154], [indian_ocean,14.102564102564102], [pacific,20.512820512820515]]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 2200| true -17 57 63 2 105 | What percentage of countries border each ocean ? ========================================================= tmp : test80_result( "What is the total area of countries south of the equator and not in australasia ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,16))), link(3,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(pron),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(2),lnks(3),txt("is"), truecase('LOWER'),link(1,'S',r('S',seg(2,15))), link(2,'SBAR',r('SBAR',seg(1,16))), link(3,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,5))), link(2,'NP',r('NP',seg(3,15))), link(3,'S',r('S',seg(2,15))), link(4,'SBAR',r('SBAR',seg(1,16))), link(5,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(det),fner(o),fn('_')]), w( total, [ pos(jj), root(total),loc(4),lnks(5),txt("total"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,5))), link(2,'NP',r('NP',seg(3,15))), link(3,'S',r('S',seg(2,15))), link(4,'SBAR',r('SBAR',seg(1,16))), link(5,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(adj),fner(o),fn('_')]), w( area, [ pos(nn), root(area),loc(5),lnks(5),txt("area"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,5))), link(2,'NP',r('NP',seg(3,15))), link(3,'S',r('S',seg(2,15))), link(4,'SBAR',r('SBAR',seg(1,16))), link(5,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(6),lnks(5),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(6,15))), link(2,'NP',r('NP',seg(3,15))), link(3,'S',r('S',seg(2,15))), link(4,'SBAR',r('SBAR',seg(1,16))), link(5,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(adp),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(7),lnks(7), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(7,7))), link(2,'NP',r('NP',seg(7,15))), link(3,'PP',r('PP',seg(6,15))), link(4,'NP',r('NP',seg(3,15))), link(5,'S',r('S',seg(2,15))), link(6,'SBAR',r('SBAR',seg(1,16))), link(7,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(noun),fner(o),fn('_')]), w( south, [ pos(rb), root(south),loc(8),lnks(9),txt("south"), truecase('LOWER'),link(1,'ADVP',r('ADVP',seg(8,8))), link(2,'PP',r('PP',seg(8,11))), link(3,'PP',r('PP',seg(8,15))), link(4,'NP',r('NP',seg(7,15))), link(5,'PP',r('PP',seg(6,15))), link(6,'NP',r('NP',seg(3,15))), link(7,'S',r('S',seg(2,15))), link(8,'SBAR',r('SBAR',seg(1,16))), link(9,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(adv),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(9),lnks(8),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(8,11))), link(2,'PP',r('PP',seg(8,15))), link(3,'NP',r('NP',seg(7,15))), link(4,'PP',r('PP',seg(6,15))), link(5,'NP',r('NP',seg(3,15))), link(6,'S',r('S',seg(2,15))), link(7,'SBAR',r('SBAR',seg(1,16))), link(8,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(adp),fner(o),fn('_')]), w( the, [ pos(dt), root(the),loc(10),lnks(9),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(10,11))), link(2,'PP',r('PP',seg(8,11))), link(3,'PP',r('PP',seg(8,15))), link(4,'NP',r('NP',seg(7,15))), link(5,'PP',r('PP',seg(6,15))), link(6,'NP',r('NP',seg(3,15))), link(7,'S',r('S',seg(2,15))), link(8,'SBAR',r('SBAR',seg(1,16))), link(9,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(det),fner(o),fn('_')]), w( equator, [ pos(nn), root(equator),loc(11),lnks(9), txt("equator"),truecase('LOWER'), link(1,'NP',r('NP',seg(10,11))), link(2,'PP',r('PP',seg(8,11))), link(3,'PP',r('PP',seg(8,15))), link(4,'NP',r('NP',seg(7,15))), link(5,'PP',r('PP',seg(6,15))), link(6,'NP',r('NP',seg(3,15))), link(7,'S',r('S',seg(2,15))), link(8,'SBAR',r('SBAR',seg(1,16))), link(9,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(noun),fner(o),fn('_')]), w( and, [ pos(cc), root(and),loc(12),lnks(7),txt("and"), truecase('LOWER'),link(1,'PP',r('PP',seg(8,15))), link(2,'NP',r('NP',seg(7,15))), link(3,'PP',r('PP',seg(6,15))), link(4,'NP',r('NP',seg(3,15))), link(5,'S',r('S',seg(2,15))), link(6,'SBAR',r('SBAR',seg(1,16))), link(7,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(cconj),fner(o),fn('_')]), w( not, [ pos(rb), root(not),loc(13),lnks(7),txt("not"), truecase('LOWER'),link(1,'PP',r('PP',seg(8,15))), link(2,'NP',r('NP',seg(7,15))), link(3,'PP',r('PP',seg(6,15))), link(4,'NP',r('NP',seg(3,15))), link(5,'S',r('S',seg(2,15))), link(6,'SBAR',r('SBAR',seg(1,16))), link(7,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(adv),fner(o),fn('_')]), w( in, [ pos(in), root(in),loc(14),lnks(8),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(14,15))), link(2,'PP',r('PP',seg(8,15))), link(3,'NP',r('NP',seg(7,15))), link(4,'PP',r('PP',seg(6,15))), link(5,'NP',r('NP',seg(3,15))), link(6,'S',r('S',seg(2,15))), link(7,'SBAR',r('SBAR',seg(1,16))), link(8,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(adp),fner(o),fn('_')]), w( australasia, [ pos(nn), root(australasia),loc(15),lnks(9), txt("australasia"),ner('LOCATION'), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(15,15))), link(2,'PP',r('PP',seg(14,15))), link(3,'PP',r('PP',seg(8,15))), link(4,'NP',r('NP',seg(7,15))), link(5,'PP',r('PP',seg(6,15))), link(6,'NP',r('NP',seg(3,15))), link(7,'S',r('S',seg(2,15))), link(8,'SBAR',r('SBAR',seg(1,16))), link(9,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(16),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,16))), link(2,'CORENLP',r('CORENLP',seg(1,16))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "What is the total area of countries south of the equator and not in australasia ?", sentence80, whq( _68434-B, s( np(3+_98302,wh(_98310-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(Det,det(the(sg)),[adj(total)],area), [ prep_phrase( Prep16, prep(of), np( 3+pl, np_head(Generic,generic(Generic21),[],country), [ conj( and, reduced_rel( thing&Thing-F, s( np(3+pl,wh(thing&Thing-F),[]), verb(aux+be(Be22),be(Be22),active,pres+fin,[],posP([])), [ arg( arg_pred(Arg23), prep_phrase(Prep,prep(cp(south,of)),np(3+sg,nameOf(Equator,equator,[]),[])))], [])), reduced_rel( thing&Thing-F, s( np(3+pl,wh(thing&Thing-F),[]), verb(aux+be(Be24),be(Be24),active,pres+fin,[],negP([])), [ arg( arg_pred(Arg25), prep_phrase(Prep13,prep(in),np(3+sg,nameOf(Australasia,australasia,[]),[])))], [])))]))]))], []))). tmp : test80_result( "What is the total area of countries south of the equator and not in australasia ?", i_sentence, question80( [_18542-B], pred( quantV(identityQ(IdentityQ),_64394-B,'`'(true),'`'(true),[],_64394-B), identityQ(IdentityQ1), subsumed_by(B,C), [ quantV( det(the(sg)), _101378-C, aggr(total,C,[E],'`'(measure_pred(thing,area,F,E)),'`'(true)), '`'(true), [ quantV( generic(Generic), thing&Thing-F, '`'(ti(country,F)), ( conj( and, '`'(true), [ pred( quantV( identityQ(IdentityQ3), thing&Thing-F, '`'(true),'`'(true), [], thing&Thing-F), identityQ(IdentityQ4),true, [ '`'(ordering_pred(thing,cp(south,of),F,G)), quantV( identityQ(IdentityQ5), thing&Circle_of_latitude&circle_of_latitude-G, '`'(named(G,equator)),'`'(true), [], thing&Circle_of_latitude&circle_of_latitude-G)])], '`'(true), [ pred( quantV( identityQ(IdentityQ6), thing&Thing-F, '`'(true),'`'(true), [], thing&Thing-F), notP,true, [ '`'(trans_pred(thing,contain,H,F)), quantV( identityQ(IdentityQ7), thing&geo&continent-H, '`'(named(H,australasia)),'`'(true), [], thing&geo&continent-H)])]) & '`'(true)), [], thing&Thing-F)], _5490-C)]))). tmp : test80_result( "What is the total area of countries south of the equator and not in australasia ?", qplan, answer80([Subsumed_by]) :- ^( By_Aggregate80, ( ^( SetOf_Total, ( setOf( Measure:[Cp_Country_Area], ( measure_pred(thing,area,Cp_Country_Area,Measure) , ti(country,Cp_Country_Area) , named(Ordering_Equator,equator) , ordering_pred(thing,cp(south,of),Cp_Country_Area,Ordering_Equator) , \+( ( named(Contain_Australasia,australasia) , trans_pred(thing,contain,Contain_Australasia,Cp_Country_Area)))), SetOf_Total) , aggregate80(total,SetOf_Total,By_Aggregate80))) , subsumed_by(Subsumed_by,By_Aggregate80)))). tmp : test80_result( "What is the total area of countries south of the equator and not in australasia ?", results80, [[--(10239.035000000003,ksqmiles)]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 1300| true 2 60 82 5 149 | What is the total area of countries south of the equator and not in australasia ? ========================================================= tmp : test80_result( "What is the total area of countries south of the equator and in australasia ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,15))), link(3,'CORENLP',r('CORENLP',seg(1,15))),flair, upos(pron),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(2),lnks(3),txt("is"), truecase('LOWER'),link(1,'S',r('S',seg(2,14))), link(2,'SBAR',r('SBAR',seg(1,15))), link(3,'CORENLP',r('CORENLP',seg(1,15))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,5))), link(2,'NP',r('NP',seg(3,14))), link(3,'S',r('S',seg(2,14))), link(4,'SBAR',r('SBAR',seg(1,15))), link(5,'CORENLP',r('CORENLP',seg(1,15))),flair, upos(det),fner(o),fn('_')]), w( total, [ pos(jj), root(total),loc(4),lnks(5),txt("total"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,5))), link(2,'NP',r('NP',seg(3,14))), link(3,'S',r('S',seg(2,14))), link(4,'SBAR',r('SBAR',seg(1,15))), link(5,'CORENLP',r('CORENLP',seg(1,15))),flair, upos(adj),fner(o),fn('_')]), w( area, [ pos(nn), root(area),loc(5),lnks(5),txt("area"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,5))), link(2,'NP',r('NP',seg(3,14))), link(3,'S',r('S',seg(2,14))), link(4,'SBAR',r('SBAR',seg(1,15))), link(5,'CORENLP',r('CORENLP',seg(1,15))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(6),lnks(5),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(6,14))), link(2,'NP',r('NP',seg(3,14))), link(3,'S',r('S',seg(2,14))), link(4,'SBAR',r('SBAR',seg(1,15))), link(5,'CORENLP',r('CORENLP',seg(1,15))),flair, upos(adp),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(7),lnks(7), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(7,7))), link(2,'NP',r('NP',seg(7,14))), link(3,'PP',r('PP',seg(6,14))), link(4,'NP',r('NP',seg(3,14))), link(5,'S',r('S',seg(2,14))), link(6,'SBAR',r('SBAR',seg(1,15))), link(7,'CORENLP',r('CORENLP',seg(1,15))),spacy, spos(nns),loc(2),form(pl), dep_child(det,n(which,1)),dep_parent(nsubj,n(contain,3)), node(n(countries,2)),flair,upos(noun), fner(o),fn('_')]), w( south, [ pos(rb), root(south),loc(8),lnks(9),txt("south"), truecase('LOWER'),link(1,'ADVP',r('ADVP',seg(8,8))), link(2,'PP',r('PP',seg(8,11))), link(3,'PP',r('PP',seg(8,14))), link(4,'NP',r('NP',seg(7,14))), link(5,'PP',r('PP',seg(6,14))), link(6,'NP',r('NP',seg(3,14))), link(7,'S',r('S',seg(2,14))), link(8,'SBAR',r('SBAR',seg(1,15))), link(9,'CORENLP',r('CORENLP',seg(1,15))),flair, upos(adv),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(9),lnks(8),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(8,11))), link(2,'PP',r('PP',seg(8,14))), link(3,'NP',r('NP',seg(7,14))), link(4,'PP',r('PP',seg(6,14))), link(5,'NP',r('NP',seg(3,14))), link(6,'S',r('S',seg(2,14))), link(7,'SBAR',r('SBAR',seg(1,15))), link(8,'CORENLP',r('CORENLP',seg(1,15))),flair, upos(adp),fner(o),fn('_')]), w( the, [ pos(dt), root(the),loc(10),lnks(9),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(10,11))), link(2,'PP',r('PP',seg(8,11))), link(3,'PP',r('PP',seg(8,14))), link(4,'NP',r('NP',seg(7,14))), link(5,'PP',r('PP',seg(6,14))), link(6,'NP',r('NP',seg(3,14))), link(7,'S',r('S',seg(2,14))), link(8,'SBAR',r('SBAR',seg(1,15))), link(9,'CORENLP',r('CORENLP',seg(1,15))),flair, upos(det),fner(o),fn('_')]), w( equator, [ pos(nn), root(equator),loc(11),lnks(9), txt("equator"),truecase('LOWER'), link(1,'NP',r('NP',seg(10,11))), link(2,'PP',r('PP',seg(8,11))), link(3,'PP',r('PP',seg(8,14))), link(4,'NP',r('NP',seg(7,14))), link(5,'PP',r('PP',seg(6,14))), link(6,'NP',r('NP',seg(3,14))), link(7,'S',r('S',seg(2,14))), link(8,'SBAR',r('SBAR',seg(1,15))), link(9,'CORENLP',r('CORENLP',seg(1,15))),flair, upos(noun),fner(o),fn('_')]), w( and, [ pos(cc), root(and),loc(12),lnks(7),txt("and"), truecase('LOWER'),link(1,'PP',r('PP',seg(8,14))), link(2,'NP',r('NP',seg(7,14))), link(3,'PP',r('PP',seg(6,14))), link(4,'NP',r('NP',seg(3,14))), link(5,'S',r('S',seg(2,14))), link(6,'SBAR',r('SBAR',seg(1,15))), link(7,'CORENLP',r('CORENLP',seg(1,15))),flair, upos(cconj),fner(o),fn('_')]), w( in, [ pos(in), root(in),loc(13),lnks(8),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(13,14))), link(2,'PP',r('PP',seg(8,14))), link(3,'NP',r('NP',seg(7,14))), link(4,'PP',r('PP',seg(6,14))), link(5,'NP',r('NP',seg(3,14))), link(6,'S',r('S',seg(2,14))), link(7,'SBAR',r('SBAR',seg(1,15))), link(8,'CORENLP',r('CORENLP',seg(1,15))),flair, upos(adp),fner(o),fn('_')]), w( australasia, [ pos(nn), root(australasia),loc(14),lnks(9), txt("australasia"),ner('LOCATION'), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(14,14))), link(2,'PP',r('PP',seg(13,14))), link(3,'PP',r('PP',seg(8,14))), link(4,'NP',r('NP',seg(7,14))), link(5,'PP',r('PP',seg(6,14))), link(6,'NP',r('NP',seg(3,14))), link(7,'S',r('S',seg(2,14))), link(8,'SBAR',r('SBAR',seg(1,15))), link(9,'CORENLP',r('CORENLP',seg(1,15))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(15),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,15))), link(2,'CORENLP',r('CORENLP',seg(1,15))),spacy, spos('.'),loc(6),dep_parent(punct,n(contain,3)), node(n(?,6)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "What is the total area of countries south of the equator and in australasia ?", sentence80, whq( _37480-B, s( np(3+_67222,wh(_67230-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(Det,det(the(sg)),[adj(total)],area), [ prep_phrase( Prep14, prep(of), np( 3+pl, np_head(Generic,generic(Generic19),[],country), [ reduced_rel( thing&Thing-F, s( np(3+pl,wh(thing&Thing-F),[]), verb(aux+be(Be20),be(Be20),active,pres+fin,[],posP([])), [ arg( arg_pred(conj(and,list)), conj( and, prep_phrase(Prep,prep(cp(south,of)),np(3+sg,nameOf(Equator,equator,[]),[])), prep_phrase(Prep11,prep(in),np(3+sg,nameOf(Australasia,australasia,[]),[]))))], []))]))]))], []))). tmp : test80_result( "What is the total area of countries south of the equator and in australasia ?", i_sentence, question80( [_83384-B], pred( quantV(identityQ(IdentityQ),_126282-B,'`'(true),'`'(true),[],_126282-B), identityQ(IdentityQ1), subsumed_by(B,C), [ quantV( det(the(sg)), _32422-C, aggr(total,C,[E],'`'(measure_pred(thing,area,F,E)),'`'(true)), '`'(true), [ quantV( generic(Generic), thing&Thing-F, '`'(ti(country,F)),'`'(true), [ pred( quantV( identityQ(IdentityQ3), thing&Thing-F, '`'(true),'`'(true), [], thing&Thing-F), identityQ(IdentityQ4),true, [ conj( and, '`'(true), [ '`'(ordering_pred(thing,cp(south,of),F,G)), quantV( identityQ(IdentityQ5), thing&Circle_of_latitude&circle_of_latitude-G, '`'(named(G,equator)),'`'(true), [], thing&Circle_of_latitude&circle_of_latitude-G)], '`'(true), [ '`'(trans_pred(thing,contain,H,F)), quantV( identityQ(IdentityQ6), thing&geo&continent-H, '`'(named(H,australasia)),'`'(true), [], thing&geo&continent-H)])])], thing&Thing-F)], _27538-C)]))). tmp : test80_result( "What is the total area of countries south of the equator and in australasia ?", qplan, answer80([Subsumed_by]) :- ^( By_Aggregate80, ( ^( SetOf_Total, ( setOf( Measure:[Cp_Country_Area], ( measure_pred(thing,area,Cp_Country_Area,Measure) , ti(country,Cp_Country_Area) , named(Ordering_Equator,equator) , ordering_pred(thing,cp(south,of),Cp_Country_Area,Ordering_Equator) , named(Contain_Australasia,australasia) , trans_pred(thing,contain,Contain_Australasia,Cp_Country_Area)), SetOf_Total) , aggregate80(total,SetOf_Total,By_Aggregate80))) , subsumed_by(Subsumed_by,By_Aggregate80)))). tmp : test80_result( "What is the total area of countries south of the equator and in australasia ?", results80, [[--(3263.6419999999994,ksqmiles)]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 1301| true 2 22 24 3 51 | What is the total area of countries south of the equator and in australasia ? ========================================================= tmp : test80_result( "What is the ocean that borders african countries and that borders asian countries ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,14))), link(3,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(pron),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(2),lnks(3),txt("is"), truecase('LOWER'),link(1,'S',r('S',seg(2,13))), link(2,'SBAR',r('SBAR',seg(1,14))), link(3,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,13))), link(3,'S',r('S',seg(2,13))), link(4,'SBAR',r('SBAR',seg(1,14))), link(5,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(det),fner(o),fn('_')]), w( ocean, [ pos(nn), root(ocean),loc(4),lnks(5),txt("ocean"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,13))), link(3,'S',r('S',seg(2,13))), link(4,'SBAR',r('SBAR',seg(1,14))), link(5,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(noun),fner(o),fn('_')]), w( that, [ pos(wdt), root(that),loc(5),lnks(6),txt("that"), truecase('LOWER'),link(1,'NP',r('NP',seg(5,5))), link(2,'SBAR',r('SBAR',seg(5,13))), link(3,'NP',r('NP',seg(3,13))), link(4,'S',r('S',seg(2,13))), link(5,'SBAR',r('SBAR',seg(1,14))), link(6,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(pron),fner(o),fn('_')]), w( borders, [ pos(vbz), root(border),loc(6),lnks(7),txt("borders"), truecase('LOWER'),link(1,'VP',r('VP',seg(6,13))), link(2,'S',r('S',seg(6,13))), link(3,'SBAR',r('SBAR',seg(5,13))), link(4,'NP',r('NP',seg(3,13))), link(5,'S',r('S',seg(2,13))), link(6,'SBAR',r('SBAR',seg(1,14))), link(7,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(verb),fner(o),fn('border.01')]), w( african, [ pos(jj), root(african),loc(7),lnks(9), txt("african"),ner('NATIONALITY'), truecase('INIT_UPPER'),entitylink('Africa'), link(1,'NP',r('NP',seg(7,8))), link(2,'NP',r('NP',seg(7,13))), link(3,'VP',r('VP',seg(6,13))), link(4,'S',r('S',seg(6,13))), link(5,'SBAR',r('SBAR',seg(5,13))), link(6,'NP',r('NP',seg(3,13))), link(7,'S',r('S',seg(2,13))), link(8,'SBAR',r('SBAR',seg(1,14))), link(9,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(adj),fner('s-misc'),fn('_')]), w( countries, [ pos(nns), root(country),loc(8),lnks(9), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(7,8))), link(2,'NP',r('NP',seg(7,13))), link(3,'VP',r('VP',seg(6,13))), link(4,'S',r('S',seg(6,13))), link(5,'SBAR',r('SBAR',seg(5,13))), link(6,'NP',r('NP',seg(3,13))), link(7,'S',r('S',seg(2,13))), link(8,'SBAR',r('SBAR',seg(1,14))), link(9,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(noun),fner(o),fn('_')]), w( and, [ pos(cc), root(and),loc(9),lnks(8),txt("and"), truecase('LOWER'),link(1,'NP',r('NP',seg(7,13))), link(2,'VP',r('VP',seg(6,13))), link(3,'S',r('S',seg(6,13))), link(4,'SBAR',r('SBAR',seg(5,13))), link(5,'NP',r('NP',seg(3,13))), link(6,'S',r('S',seg(2,13))), link(7,'SBAR',r('SBAR',seg(1,14))), link(8,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(cconj),fner(o),fn('_')]), w( that, [ pos(in), root(that),loc(10),lnks(11),txt("that"), truecase('LOWER'),link(1,'SBAR',r('SBAR',seg(10,11))), link(2,'NML',r('NML',seg(10,11))), link(3,'NP',r('NP',seg(10,13))), link(4,'NP',r('NP',seg(7,13))), link(5,'VP',r('VP',seg(6,13))), link(6,'S',r('S',seg(6,13))), link(7,'SBAR',r('SBAR',seg(5,13))), link(8,'NP',r('NP',seg(3,13))), link(9,'S',r('S',seg(2,13))), link(10,'SBAR',r('SBAR',seg(1,14))), link(11,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(pron),fner(o),fn('_')]), w( borders, [ root(border), loc(11),lnks(13),txt("borders"), truecase('LOWER'),corefed,#(5), txt(["borders"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(11,11))), link(2,'FRAG',r('FRAG',seg(11,11))), link(3,'SBAR',r('SBAR',seg(10,11))), link(4,'NML',r('NML',seg(10,11))), link(5,'NP',r('NP',seg(10,13))), link(6,'NP',r('NP',seg(7,13))), link(7,'VP',r('VP',seg(6,13))), link(8,'S',r('S',seg(6,13))), link(9,'SBAR',r('SBAR',seg(5,13))), link(10,'NP',r('NP',seg(3,13))), link(11,'S',r('S',seg(2,13))), link(12,'SBAR',r('SBAR',seg(1,14))), link(13,'CORENLP',r('CORENLP',seg(1,14))),old_pos(nns), pos(vb),flair,upos(verb),fner(o), fn('divide.02')]), w( asian, [ pos(jj), root(asian),loc(12),lnks(9),txt("asian"), ner('NATIONALITY'),truecase('INIT_UPPER'), entitylink('Asian'),link(1,'NP',r('NP',seg(10,13))), link(2,'NP',r('NP',seg(7,13))), link(3,'VP',r('VP',seg(6,13))), link(4,'S',r('S',seg(6,13))), link(5,'SBAR',r('SBAR',seg(5,13))), link(6,'NP',r('NP',seg(3,13))), link(7,'S',r('S',seg(2,13))), link(8,'SBAR',r('SBAR',seg(1,14))), link(9,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(adj),fner('s-misc'),fn('_')]), w( countries, [ pos(nns), root(country),loc(13),lnks(9), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(10,13))), link(2,'NP',r('NP',seg(7,13))), link(3,'VP',r('VP',seg(6,13))), link(4,'S',r('S',seg(6,13))), link(5,'SBAR',r('SBAR',seg(5,13))), link(6,'NP',r('NP',seg(3,13))), link(7,'S',r('S',seg(2,13))), link(8,'SBAR',r('SBAR',seg(1,14))), link(9,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(14),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,14))), link(2,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "What is the ocean that borders african countries and that borders asian countries ?", sentence80, whq( thing&_108086&_108088-B, s( np(3+_81552,wh(thing&_81572&_81574-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(Det,det(the(sg)),[],ocean), [ conj( and, rel( thing&_111022&_111024-C, s( np(3+sg,wh(thing&_26240&_26242-C),[]), verb(main+tv,border,active,pres+fin,[],posP([])), [ arg( dirO(DirO15), np(3+pl,np_head(Generic,generic(Generic16),[adj(african)],country),[]))], [])), rel( thing&_35300&_35302-C, s( np(3+sg,wh(thing&_71622&_71624-C),[]), verb(main+tv,border,active,pres+fin,[],posP([])), [ arg( dirO(DirO17), np(3+pl,np_head(Generic8,generic(Generic18),[adj(asian)],country),[]))], [])))]))], []))). tmp : test80_result( "What is the ocean that borders african countries and that borders asian countries ?", i_sentence, question80( [thing&_122500&_122502-B], pred( quantV( identityQ(IdentityQ), thing&_90134&_90136-B, '`'(true),'`'(true), [], thing&_83250&_83252-B), identityQ(IdentityQ1), subsumed_by(B,C), [ quantV( det(the(sg)), thing&_27372&_27374-C, '`'(ti(ocean,C)), ( conj( and, ( pred( quantV( identityQ(IdentityQ2), thing&_67324&_67326-C, '`'(true),'`'(true), [], thing&_60440&_60442-C), identityQ(IdentityQ3), generic_pred(thing,border,C,D), [ quantV( generic(Generic), thing&_93530&_93532-D, '`'(ti(country,D)), '`'(ti(african,D))&'`'(true), [], thing&_86646&_86648-D)]) & '`'(true)), [], ( pred( quantV( identityQ(IdentityQ5), thing&_122382&_122384-C, '`'(true),'`'(true), [], thing&_115498&_115500-C), identityQ(IdentityQ6), generic_pred(thing,border,C,E), [ quantV( generic(Generic7), thing&_24804&_24806-E, '`'(ti(country,E)), '`'(ti(asian,E))&'`'(true), [], thing&_17920&_17922-E)]) & '`'(true)), []) & '`'(true)), [], thing&_5054&_5056-C)]))). tmp : test80_result( "What is the ocean that borders african countries and that borders asian countries ?", qplan, answer80([Subsumed_by]) :- ^( By_Border_Ocean, ( ti(ocean,By_Border_Ocean) , ^( Generic_African_Country, ( ti(country,Generic_African_Country) , ti(african,Generic_African_Country) , generic_pred(thing,border,By_Border_Ocean,Generic_African_Country))) , ^( Generic_Asian_Country4, ( ti(country,Generic_Asian_Country4) , ti(asian,Generic_Asian_Country4) , generic_pred(thing,border,By_Border_Ocean,Generic_Asian_Country4))) , subsumed_by(Subsumed_by,By_Border_Ocean)))). tmp : test80_result( "What is the ocean that borders african countries and that borders asian countries ?", results80, [[indian_ocean]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 900| true 3 71 71 -5 140 | What is the ocean that borders african countries and that borders asian countries ? ========================================================= tmp : test80_result( "What is the capital of upper volta ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(pron),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(2),lnks(3),txt("is"), truecase('LOWER'),link(1,'S',r('S',seg(2,7))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(det),fner(o),fn('_')]), w( capital, [ pos(nn), root(capital),loc(4),lnks(5), txt("capital"),truecase('LOWER'), link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(5),lnks(5),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,7))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adp),fner(o),fn('_')]), w( upper, [ pos(jj), root(upper),loc(6),lnks(6),txt("upper"), ner('COUNTRY'),truecase('INIT_UPPER'), link(1,'NP',r('NP',seg(6,7))), link(2,'PP',r('PP',seg(5,7))), link(3,'NP',r('NP',seg(3,7))), link(4,'S',r('S',seg(2,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adj),fner(o),fn('_')]), w( volta, [ pos(nn), root(volta),loc(7),lnks(6),txt("volta"), ner('COUNTRY'),truecase('INIT_UPPER'), link(1,'NP',r('NP',seg(6,7))), link(2,'PP',r('PP',seg(5,7))), link(3,'NP',r('NP',seg(3,7))), link(4,'S',r('S',seg(2,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(8),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,8))), link(2,'CORENLP',r('CORENLP',seg(1,8))),spacy, spos('.'),loc(6),dep_parent(punct,n(contain,3)), node(n(?,6)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "What is the capital of upper volta ?", sentence80, whq( thing&City&city-B, s( np(3+_86312,wh(thing&City&city-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(Det,det(the(sg)),[],capital), [ prep_phrase(Prep,prep(of),np(3+sg,nameOf(Upper_volta,upper_volta,[]),[]))]))], []))). tmp : test80_result( "What is the capital of upper volta ?", i_sentence, question80( [thing&City&city-B], pred( quantV( identityQ(IdentityQ), thing&City&city-B, '`'(true),'`'(true), [], thing&City&city-B), identityQ(IdentityQ2), subsumed_by(B,C), [ quantV( det(the(sg)), thing&City&city-C, '`'(specific_pred(thing,nation_capital,D,C)), '`'(true), [ quantV( identityQ(IdentityQ3), thing&geo&country-D, '`'(named(D,upper_volta)),'`'(true), [], thing&geo&country-D)], thing&City&city-C)]))). tmp : test80_result( "What is the capital of upper volta ?", qplan, answer80([Subsumed_by]) :- ^( By_Specific, ( named(Nation_capital_Upper_volta,upper_volta) , specific_pred(thing,nation_capital,Nation_capital_Upper_volta,By_Specific) , subsumed_by(Subsumed_by,By_Specific)))). tmp : test80_result("What is the capital of upper volta ?",results80,[[ouagadougou]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 300| true 3 21 11 1 36 | What is the capital of upper volta ? ========================================================= tmp : test80_result( "What is the average area of the countries in each continent ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,12))), link(3,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(pron),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(2),lnks(3),txt("is"), truecase('LOWER'),link(1,'S',r('S',seg(2,11))), link(2,'SBAR',r('SBAR',seg(1,12))), link(3,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,5))), link(2,'NP',r('NP',seg(3,11))), link(3,'S',r('S',seg(2,11))), link(4,'SBAR',r('SBAR',seg(1,12))), link(5,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(det),fner(o),fn('_')]), w( average, [ pos(jj), root(average),loc(4),lnks(5), txt("average"),truecase('LOWER'), link(1,'NP',r('NP',seg(3,5))), link(2,'NP',r('NP',seg(3,11))), link(3,'S',r('S',seg(2,11))), link(4,'SBAR',r('SBAR',seg(1,12))), link(5,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(adj),fner(o),fn('_')]), w( area, [ pos(nn), root(area),loc(5),lnks(5),txt("area"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,5))), link(2,'NP',r('NP',seg(3,11))), link(3,'S',r('S',seg(2,11))), link(4,'SBAR',r('SBAR',seg(1,12))), link(5,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(6),lnks(5),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(6,11))), link(2,'NP',r('NP',seg(3,11))), link(3,'S',r('S',seg(2,11))), link(4,'SBAR',r('SBAR',seg(1,12))), link(5,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(adp),fner(o),fn('_')]), w( the, [ pos(dt), root(the),loc(7),lnks(7),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(7,8))), link(2,'NP',r('NP',seg(7,11))), link(3,'PP',r('PP',seg(6,11))), link(4,'NP',r('NP',seg(3,11))), link(5,'S',r('S',seg(2,11))), link(6,'SBAR',r('SBAR',seg(1,12))), link(7,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(det),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(8),lnks(7), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(7,8))), link(2,'NP',r('NP',seg(7,11))), link(3,'PP',r('PP',seg(6,11))), link(4,'NP',r('NP',seg(3,11))), link(5,'S',r('S',seg(2,11))), link(6,'SBAR',r('SBAR',seg(1,12))), link(7,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(noun),fner(o),fn('_')]), w( in, [ pos(in), root(in),loc(9),lnks(7),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(9,11))), link(2,'NP',r('NP',seg(7,11))), link(3,'PP',r('PP',seg(6,11))), link(4,'NP',r('NP',seg(3,11))), link(5,'S',r('S',seg(2,11))), link(6,'SBAR',r('SBAR',seg(1,12))), link(7,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(adp),fner(o),fn('_')]), w( each, [ pos(dt), root(each),loc(10),lnks(8),txt("each"), truecase('LOWER'),link(1,'NP',r('NP',seg(10,11))), link(2,'PP',r('PP',seg(9,11))), link(3,'NP',r('NP',seg(7,11))), link(4,'PP',r('PP',seg(6,11))), link(5,'NP',r('NP',seg(3,11))), link(6,'S',r('S',seg(2,11))), link(7,'SBAR',r('SBAR',seg(1,12))), link(8,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(det),fner(o),fn('_')]), w( continent, [ pos(nn), root(continent),loc(11),lnks(8), txt("continent"),truecase('LOWER'), link(1,'NP',r('NP',seg(10,11))), link(2,'PP',r('PP',seg(9,11))), link(3,'NP',r('NP',seg(7,11))), link(4,'PP',r('PP',seg(6,11))), link(5,'NP',r('NP',seg(3,11))), link(6,'S',r('S',seg(2,11))), link(7,'SBAR',r('SBAR',seg(1,12))), link(8,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(12),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,12))), link(2,'CORENLP',r('CORENLP',seg(1,12))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "What is the average area of the countries in each continent ?", sentence80, whq( _115566-C, s( np(3+_18088,wh(_18096-C),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(Det,det(the(sg)),[adj(average)],area), [ prep_phrase( Prep9, prep(of), np( 3+pl, np_head(Det2,det(the(pl)),[],country), [ prep_phrase(Prep,prep(in),np(3+sg,np_head(Det4,det(each),[],continent),[]))]))]))], []))). tmp : test80_result( "What is the average area of the countries in each continent ?", i_sentence, question80( [_109562-C], pred( quantV(identityQ(IdentityQ),_14810-C,'`'(true),'`'(true),[],_14810-C), identityQ(IdentityQ1), subsumed_by(C,D), [ quantV( det(the(sg)), _30622-D, aggr(average,D,[F],'`'(measure_pred(thing,area,G,F)),'`'(true)), '`'(true), [ quantV( set(- (- + (- 0))), thing&Thing-G, '`'(ti(country,G)),'`'(true), [ ( quantV( det(each), thing&geo&continent-B, '`'(ti(continent,B)),'`'(true), [], thing&geo&continent-B) & '`'(trans_pred(thing,contain,B,G)))], thing&Thing-G)], _25854-D)]))). tmp : test80_result( "What is the average area of the countries in each continent ?", qplan, answer80([Contain_Continent,Subsumed_by]) :- ti(continent,Contain_Continent) , ^( By_Aggregate80, ( ^( SetOf_Average, ( setOf( Measure:[Country_Area], ( measure_pred(thing,area,Country_Area,Measure) , ti(country,Country_Area) , trans_pred(thing,contain,Contain_Continent,Country_Area)), SetOf_Average) , aggregate80(average,SetOf_Average,By_Aggregate80))) , subsumed_by(Subsumed_by,By_Aggregate80)))). tmp : test80_result( "What is the average area of the countries in each continent ?", results80, [ [ [ africa, --(234.08968749999997,ksqmiles)], [ america, --(496.711935483871,ksqmiles)], [ asia, --(485.6208205128205,ksqmiles)], [ australasia, --(543.9403333333332,ksqmiles)], [ europe, --(58.808937500000006,ksqmiles)]]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 1400| true 2 29 31 4 66 | What is the average area of the countries in each continent ? ========================================================= tmp : test80_result( "What is a river that is in asia ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,9))), link(3,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(pron),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(2),lnks(3),txt("is"), truecase('LOWER'),link(1,'S',r('S',seg(2,8))), link(2,'SBAR',r('SBAR',seg(1,9))), link(3,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(verb),fner(o),fn('be.01')]), w( a, [ pos(dt), root(a),loc(3),lnks(5),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,8))), link(3,'S',r('S',seg(2,8))), link(4,'SBAR',r('SBAR',seg(1,9))), link(5,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(det),fner(o),fn('_')]), w( river, [ pos(nn), root(river),loc(4),lnks(5),txt("river"), ner('TITLE'),truecase('LOWER'), entitylink('River'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,8))), link(3,'S',r('S',seg(2,8))), link(4,'SBAR',r('SBAR',seg(1,9))), link(5,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(noun),fner(o),fn('_')]), w( that, [ pos(wdt), root(that),loc(5),lnks(6),txt("that"), truecase('LOWER'),link(1,'NP',r('NP',seg(5,5))), link(2,'SBAR',r('SBAR',seg(5,8))), link(3,'NP',r('NP',seg(3,8))), link(4,'S',r('S',seg(2,8))), link(5,'SBAR',r('SBAR',seg(1,9))), link(6,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(pron),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(6),lnks(7),txt("is"), truecase('LOWER'),link(1,'VP',r('VP',seg(6,8))), link(2,'S',r('S',seg(6,8))), link(3,'SBAR',r('SBAR',seg(5,8))), link(4,'NP',r('NP',seg(3,8))), link(5,'S',r('S',seg(2,8))), link(6,'SBAR',r('SBAR',seg(1,9))), link(7,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(verb),fner(o),fn('be.01')]), w( in, [ pos(in), root(in),loc(7),lnks(8),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(7,8))), link(2,'VP',r('VP',seg(6,8))), link(3,'S',r('S',seg(6,8))), link(4,'SBAR',r('SBAR',seg(5,8))), link(5,'NP',r('NP',seg(3,8))), link(6,'S',r('S',seg(2,8))), link(7,'SBAR',r('SBAR',seg(1,9))), link(8,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(adp),fner(o),fn('_')]), w( asia, [ pos(nn), root(asia),loc(8),lnks(9),txt("asia"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(8,8))), link(2,'PP',r('PP',seg(7,8))), link(3,'VP',r('VP',seg(6,8))), link(4,'S',r('S',seg(6,8))), link(5,'SBAR',r('SBAR',seg(5,8))), link(6,'NP',r('NP',seg(3,8))), link(7,'S',r('S',seg(2,8))), link(8,'SBAR',r('SBAR',seg(1,9))), link(9,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(noun),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(9),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,9))), link(2,'CORENLP',r('CORENLP',seg(1,9))),spacy, spos('.'),loc(5),dep_parent(punct,n(are,3)), node(n(?,5)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "What is a river that is in asia ?", sentence80, whq( thing&Thing-B, s( np(3+_48930,wh(thing&Thing-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(Det,det(a),[],river), [ rel( thing&Thing-C, s( np(3+sg,wh(thing&Thing-C),[]), verb(aux+be(Be13),be(Be13),active,pres+fin,[],posP([])), [ arg(arg_pred(Arg14),prep_phrase(Prep,prep(in),np(3+sg,nameOf(Asia,asia,[]),[])))], []))]))], []))). tmp : test80_result( "What is a river that is in asia ?", i_sentence, question80( [thing&Thing-B], pred( quantV( identityQ(IdentityQ), thing&Thing-B, '`'(true),'`'(true), [], thing&Thing-B), identityQ(IdentityQ2), subsumed_by(B,C), [ quantV( det(a), thing&Thing-C, '`'(ti(river,C)), ( pred( quantV( identityQ(IdentityQ3), thing&Thing-C, '`'(true),'`'(true), [], thing&Thing-C), identityQ(IdentityQ4),true, [ '`'(trans_pred(thing,contain,D,C)), quantV( identityQ(IdentityQ5), thing&geo&continent-D, '`'(named(D,asia)),'`'(true), [], thing&geo&continent-D)]) & '`'(true)), [], thing&Thing-C)]))). tmp : test80_result( "What is a river that is in asia ?", qplan, answer80([Subsumed_by]) :- ^( By_River, ( ti(river,By_River) , named(Contain_Asia,asia) , trans_pred(thing,contain,Contain_Asia,By_River) , subsumed_by(Subsumed_by,By_River)))). tmp : test80_result( "What is a river that is in asia ?", results80, [ [ amu_darya, amur,brahmaputra,don,euphrates,ganges, hwang_ho,indus,irrawaddy,lena,mekong, ob,salween,volga,yangtze,yenisei]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 31700| true 1 6 16 1 24 | What is a river that is in asia ? ========================================================= tmp : test80_result( "What is a river that is asian ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(pron),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(2),lnks(3),txt("is"), truecase('LOWER'),link(1,'S',r('S',seg(2,7))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(verb),fner(o),fn('be.01')]), w( a, [ pos(dt), root(a),loc(3),lnks(5),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(det),fner(o),fn('_')]), w( river, [ pos(nn), root(river),loc(4),lnks(5),txt("river"), ner('TITLE'),truecase('LOWER'), entitylink('River'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( that, [ pos(wdt), root(that),loc(5),lnks(6),txt("that"), truecase('LOWER'),link(1,'NP',r('NP',seg(5,5))), link(2,'SBAR',r('SBAR',seg(5,7))), link(3,'NP',r('NP',seg(3,7))), link(4,'S',r('S',seg(2,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(pron),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(6),lnks(7),txt("is"), truecase('LOWER'),link(1,'VP',r('VP',seg(6,7))), link(2,'S',r('S',seg(6,7))), link(3,'SBAR',r('SBAR',seg(5,7))), link(4,'NP',r('NP',seg(3,7))), link(5,'S',r('S',seg(2,7))), link(6,'SBAR',r('SBAR',seg(1,8))), link(7,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(verb),fner(o),fn('be.01')]), w( asian, [ pos(jj), root(asian),loc(7),lnks(8),txt("asian"), ner('NATIONALITY'),truecase('INIT_UPPER'), entitylink('Asian'),link(1,'ADJP',r('ADJP',seg(7,7))), link(2,'VP',r('VP',seg(6,7))), link(3,'S',r('S',seg(6,7))), link(4,'SBAR',r('SBAR',seg(5,7))), link(5,'NP',r('NP',seg(3,7))), link(6,'S',r('S',seg(2,7))), link(7,'SBAR',r('SBAR',seg(1,8))), link(8,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adj),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(8),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,8))), link(2,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "What is a river that is asian ?", sentence80, whq( thing&Thing-B, s( np(3+_97208,wh(thing&Thing-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(Det,det(a),[],river), [ rel( thing&Thing-C, s( np(3+sg,wh(thing&Thing-C),[]), verb(aux+be(Be10),be(Be10),active,pres+fin,[],posP([])), [ arg(arg_pred(Arg11),adj(asian))], []))]))], []))). tmp : test80_result( "What is a river that is asian ?", i_sentence, question80( [thing&Thing-B], pred( quantV( identityQ(IdentityQ), thing&Thing-B, '`'(true),'`'(true), [], thing&Thing-B), identityQ(IdentityQ2), subsumed_by(B,C), [ quantV( det(a), thing&Thing-C, '`'(ti(river,C)), ( pred( quantV( identityQ(IdentityQ3), thing&Thing-C, '`'(true),'`'(true), [], thing&Thing-C), identityQ(IdentityQ4),true, ['`'(true)&'`'(ti(asian,C))&'`'(true)]) & '`'(true)), [], thing&Thing-C)]))). tmp : test80_result( "What is a river that is asian ?", qplan, answer80([Subsumed_by]) :- ^( By_Asian_River, ( ti(river,By_Asian_River) , ti(asian,By_Asian_River) , subsumed_by(Subsumed_by,By_Asian_River)))). tmp : test80_result( "What is a river that is asian ?", results80, [ [ amu_darya, amur,brahmaputra,don,euphrates,ganges, hwang_ho,indus,irrawaddy,lena,mekong, ob,salween,volga,yangtze,yenisei]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 31900| true 3 1 9 1 14 | What is a river that is asian ? ========================================================= tmp : test80_result( "What is a river ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(pron),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(2),lnks(3),txt("is"), truecase('LOWER'),link(1,'S',r('S',seg(2,4))), link(2,'SBAR',r('SBAR',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(verb),fner(o),fn('be.01')]), w( a, [ pos(dt), root(a),loc(3),lnks(4),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'S',r('S',seg(2,4))), link(3,'SBAR',r('SBAR',seg(1,5))), link(4,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(det),fner(o),fn('_')]), w( river, [ pos(nn), root(river),loc(4),lnks(4),txt("river"), ner('TITLE'),truecase('LOWER'), entitylink('River'),link(1,'NP',r('NP',seg(3,4))), link(2,'S',r('S',seg(2,4))), link(3,'SBAR',r('SBAR',seg(1,5))), link(4,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(5),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,5))), link(2,'CORENLP',r('CORENLP',seg(1,5))),spacy, spos('.'),loc(8),dep_parent(punct,n(bordered,4)), node(n(?,8)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "What is a river ?", sentence80, whq( _5332-B, s( np(3+_34764,wh(_34772-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+sg,np_head(Det,det(a),[],river),[]))], []))). tmp : test80_result( "What is a river ?", i_sentence, question80( [_93488-B], pred( quantV(identityQ(IdentityQ),_124994-B,'`'(true),'`'(true),[],_124994-B), identityQ(IdentityQ1), subsumed_by(B,C), [ quantV(det(a),_7382-C,'`'(ti(river,C)),'`'(true),[],_7382-C)]))). tmp : test80_result( "What is a river ?", qplan, answer80([Subsumed_by]) :- By_River^(ti(river,By_River),subsumed_by(Subsumed_by,By_River))). tmp : test80_result( "What is a river ?", results80, [ [ amazon, amu_darya,amur,brahmaputra,colorado, congo_river,cubango,danube,don,elbe, euphrates,ganges,hwang_ho,indus, irrawaddy,lena,limpopo,mackenzie,mekong, mississippi,murray,niger_river,nile,ob, oder,orange,orinoco,parana,rhine, rhone,rio_grande,salween,seine, senegal_river,tagus,vistula,volga,volta, yangtze,yenisei,yukon,zambesi]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 31600| true 1 26 21 0 48 | What is a river ? ========================================================= tmp : test80_result( "What countries are there in europe ?", into_lexical_segs, [ w( what, [ pos(wdt), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(pron),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(2),lnks(3), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(3),lnks(3), txt("are"),truecase('LOWER'), link(1,'S',r('S',seg(3,6))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(verb),fner(o),fn('be.01')]), w( there, [ pos(ex), root(there),loc(4),lnks(4),txt("there"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,4))), link(2,'S',r('S',seg(3,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adv),fner(o),fn('_')]), w( in, [ pos(in), root(in),loc(5),lnks(4),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,6))), link(2,'S',r('S',seg(3,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adp),fner(o),fn('_')]), w( europe, [ root(europe), loc(6),lnks(5),txt("europe"), ner('LOCATION'),truecase('INIT_UPPER'), entitylink('Europe'),link(1,'NP',r('NP',seg(6,6))), link(2,'PP',r('PP',seg(5,6))), link(3,'S',r('S',seg(3,6))), link(4,'SBAR',r('SBAR',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),old_pos(nn), pos(nnp),flair,upos(propn),fner('s-loc'), fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "What countries are there in europe ?", sentence80, whq( thing&Thing-B, s( np( 3+pl, np_head(Wh_det,wh_det(thing&Thing,thing&Thing-B),[],country), []), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [voidQ(VoidQ10)], [ prep_phrase(Prep,prep(in),np(3+sg,nameOf(Europe,europe,[]),[]))]))). tmp : test80_result( "What countries are there in europe ?", i_sentence, question80( [thing&Thing-B], pred( quantV( wh_det(thing&Thing,thing&Thing-B), thing&Thing-B, '`'(ti(country,B)),'`'(true), [], thing&Thing-B), identityQ(IdentityQ),true, [ ( quantV( identityQ(IdentityQ2), thing&geo&continent-C, '`'(named(C,europe)),'`'(true), [], thing&geo&continent-C) & '`'(trans_pred(thing,contain,C,B)))]))). tmp : test80_result( "What countries are there in europe ?", qplan, answer80([Country]) :- ti(country,Country) , named(Contain_Europe,europe) , trans_pred(thing,contain,Contain_Europe,Country)). tmp : test80_result( "What countries are there in europe ?", results80, [ [ albania, andorra,austria,belgium,bulgaria,cyprus, czechoslovakia,denmark,east_germany,eire, finland,france,greece,hungary,iceland, italy,liechtenstein,luxembourg,malta, monaco,netherlands,norway,poland, portugal,romania,san_marino,spain, sweden,switzerland,united_kingdom,west_germany, yugoslavia]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 23| true 1 5 13 1 20 | What countries are there in europe ? ========================================================= tmp : test80_result( "What are the rivers that flow through the countries bordering the baltic ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,13))), link(3,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(pron),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(2),lnks(3), txt("are"),truecase('LOWER'), link(1,'S',r('S',seg(2,12))), link(2,'SBAR',r('SBAR',seg(1,13))), link(3,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,9))), link(3,'S',r('S',seg(2,12))), link(4,'SBAR',r('SBAR',seg(1,13))), link(5,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(det),fner(o),fn('_')]), w( rivers, [ pos(nns), root(river),loc(4),lnks(5),txt("rivers"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,9))), link(3,'S',r('S',seg(2,12))), link(4,'SBAR',r('SBAR',seg(1,13))), link(5,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(noun),fner(o),fn('_')]), w( that, [ pos(wdt), root(that),loc(5),lnks(6),txt("that"), truecase('LOWER'),link(1,'NP',r('NP',seg(5,5))), link(2,'SBAR',r('SBAR',seg(5,9))), link(3,'NP',r('NP',seg(3,9))), link(4,'S',r('S',seg(2,12))), link(5,'SBAR',r('SBAR',seg(1,13))), link(6,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(pron),fner(o),fn('_')]), w( flow, [ alt(pos(vbp)), root(flow),pos(vb),loc(6),lnks(7), txt("flow"),truecase('LOWER'), link(1,'VP',r('VP',seg(6,9))), link(2,'S',r('S',seg(6,9))), link(3,'SBAR',r('SBAR',seg(5,9))), link(4,'NP',r('NP',seg(3,9))), link(5,'S',r('S',seg(2,12))), link(6,'SBAR',r('SBAR',seg(1,13))), link(7,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(verb),fner(o),fn('flow.01')]), w( through, [ pos(in), root(through),loc(7),lnks(8), txt("through"),truecase('LOWER'), link(1,'PP',r('PP',seg(7,9))), link(2,'VP',r('VP',seg(6,9))), link(3,'S',r('S',seg(6,9))), link(4,'SBAR',r('SBAR',seg(5,9))), link(5,'NP',r('NP',seg(3,9))), link(6,'S',r('S',seg(2,12))), link(7,'SBAR',r('SBAR',seg(1,13))), link(8,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(adp),fner(o),fn('_')]), w( the, [ pos(dt), root(the),loc(8),lnks(9),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(8,9))), link(2,'PP',r('PP',seg(7,9))), link(3,'VP',r('VP',seg(6,9))), link(4,'S',r('S',seg(6,9))), link(5,'SBAR',r('SBAR',seg(5,9))), link(6,'NP',r('NP',seg(3,9))), link(7,'S',r('S',seg(2,12))), link(8,'SBAR',r('SBAR',seg(1,13))), link(9,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(det),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(9),lnks(9), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(8,9))), link(2,'PP',r('PP',seg(7,9))), link(3,'VP',r('VP',seg(6,9))), link(4,'S',r('S',seg(6,9))), link(5,'SBAR',r('SBAR',seg(5,9))), link(6,'NP',r('NP',seg(3,9))), link(7,'S',r('S',seg(2,12))), link(8,'SBAR',r('SBAR',seg(1,13))), link(9,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(noun),fner(o),fn('_')]), w( bordering, [ pos(vbg), root(border),loc(10),lnks(4), txt("bordering"),truecase('LOWER'), link(1,'VP',r('VP',seg(10,12))), link(2,'S',r('S',seg(2,12))), link(3,'SBAR',r('SBAR',seg(1,13))), link(4,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(verb),fner(o),fn('border.01')]), w( the, [ pos(dt), root(the),loc(11),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(11,12))), link(2,'VP',r('VP',seg(10,12))), link(3,'S',r('S',seg(2,12))), link(4,'SBAR',r('SBAR',seg(1,13))), link(5,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(det),fner(o),fn('_')]), w( baltic, [ pos(jj), root(baltic),loc(12),lnks(5),txt("baltic"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(11,12))), link(2,'VP',r('VP',seg(10,12))), link(3,'S',r('S',seg(2,12))), link(4,'SBAR',r('SBAR',seg(1,13))), link(5,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(13),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,13))), link(2,'CORENLP',r('CORENLP',seg(1,13))),spacy, spos('.'),loc(8),dep_parent(punct,n(contain,3)), node(n(?,8)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "What are the rivers that flow through the countries bordering the baltic ?", sentence80, whq( thing&River&river-B, s( np(3+_116332,wh(thing&River&river-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+pl, np_head(Det,det(the(pl)),[],river), [ rel( thing&River&river-D, s( np(3+pl,wh(thing&River&river-D),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase( Prep, prep(through), np( 3+pl, np_head(Det5,det(the(pl)),[],country), [ reduced_rel( thing&geo&Geo-F, s( np(3+pl,wh(thing&geo&Geo-F),[]), verb(main+tv,border,active,inf,[prog],posP([])), [ arg(dirO(DirO20),np(3+sg,nameOf(Baltic,baltic,[]),[]))], []))]))]))]))], []))). tmp : test80_result( "What are the rivers that flow through the countries bordering the baltic ?", i_sentence, question80( [thing&River&river-B], pred( quantV( identityQ(IdentityQ), thing&River&river-B, '`'(true),'`'(true), [], thing&River&river-B), identityQ(IdentityQ2), subsumed_by(B,C), [ quantV( set(- + (- 0)), thing&River&river-D, '`'(ti(river,D)), ( pred( quantV( identityQ(IdentityQ3), thing&River&river-D, '`'(true),'`'(true), [], thing&River&river-D), identityQ(IdentityQ4), path_pred_linkage(direct(river_flows),river,D,E,H), [ quantV( set(- (- + (- (- + (- 0))))), thing&geo&Geo-F, '`'(ti(country,F)),'`'(true), [ pred( quantV( identityQ(IdentityQ5), thing&geo&Geo-F, '`'(true),'`'(true), [], thing&geo&Geo-F), identityQ(IdentityQ6), generic_pred(thing,border,F,G), [ quantV( identityQ(IdentityQ7), thing&geo&seamass-G, '`'(named(G,baltic)),'`'(true), [], thing&geo&seamass-G)])], thing&geo&Geo-E), quantV(voidQ(VoidQ),thing&_71862-H,'`'(true),'`'(true),[],_71866-H)]) & '`'(true)), [], thing&River&river-C)]))). tmp : test80_result( "What are the rivers that flow through the countries bordering the baltic ?", qplan, answer80([Subsumed_by]) :- ^( By_SetOf, ( setOf( River, ( ti(river,River) , ^( Path_pred_linkageDirect, ( setOf( Border_Country, ( named(Generic_Baltic,baltic) , ti(country,Border_Country) , generic_pred(thing,border,Border_Country,Generic_Baltic)), Path_pred_linkageDirect) , ^( Path_pred_linkage, path_pred_linkage( direct(river_flows), river, River,Path_pred_linkageDirect, Path_pred_linkage))))), By_SetOf) , subsumed_by(Subsumed_by,By_SetOf)))). tmp : test80_result("What are the rivers that flow through the countries bordering the baltic ?",results80,[]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 672| true 3 28 47 -11 67 | What are the rivers that flow through the countries bordering the baltic ? ========================================================= tmp : test80_result( "What are the rivers that flow through each country bordering the baltic ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,13))), link(3,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(pron),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(2),lnks(3), txt("are"),truecase('LOWER'), link(1,'S',r('S',seg(2,12))), link(2,'SBAR',r('SBAR',seg(1,13))), link(3,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,9))), link(3,'S',r('S',seg(2,12))), link(4,'SBAR',r('SBAR',seg(1,13))), link(5,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(det),fner(o),fn('_')]), w( rivers, [ pos(nns), root(river),loc(4),lnks(5),txt("rivers"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,9))), link(3,'S',r('S',seg(2,12))), link(4,'SBAR',r('SBAR',seg(1,13))), link(5,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(noun),fner(o),fn('_')]), w( that, [ pos(wdt), root(that),loc(5),lnks(6),txt("that"), truecase('LOWER'),link(1,'NP',r('NP',seg(5,5))), link(2,'SBAR',r('SBAR',seg(5,9))), link(3,'NP',r('NP',seg(3,9))), link(4,'S',r('S',seg(2,12))), link(5,'SBAR',r('SBAR',seg(1,13))), link(6,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(pron),fner(o),fn('_')]), w( flow, [ alt(pos(vbp)), root(flow),pos(vb),loc(6),lnks(7), txt("flow"),truecase('LOWER'), link(1,'VP',r('VP',seg(6,9))), link(2,'S',r('S',seg(6,9))), link(3,'SBAR',r('SBAR',seg(5,9))), link(4,'NP',r('NP',seg(3,9))), link(5,'S',r('S',seg(2,12))), link(6,'SBAR',r('SBAR',seg(1,13))), link(7,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(verb),fner(o),fn('flow.01')]), w( through, [ pos(in), root(through),loc(7),lnks(8), txt("through"),truecase('LOWER'), link(1,'PP',r('PP',seg(7,9))), link(2,'VP',r('VP',seg(6,9))), link(3,'S',r('S',seg(6,9))), link(4,'SBAR',r('SBAR',seg(5,9))), link(5,'NP',r('NP',seg(3,9))), link(6,'S',r('S',seg(2,12))), link(7,'SBAR',r('SBAR',seg(1,13))), link(8,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(adp),fner(o),fn('_')]), w( each, [ pos(dt), root(each),loc(8),lnks(9),txt("each"), truecase('LOWER'),link(1,'NP',r('NP',seg(8,9))), link(2,'PP',r('PP',seg(7,9))), link(3,'VP',r('VP',seg(6,9))), link(4,'S',r('S',seg(6,9))), link(5,'SBAR',r('SBAR',seg(5,9))), link(6,'NP',r('NP',seg(3,9))), link(7,'S',r('S',seg(2,12))), link(8,'SBAR',r('SBAR',seg(1,13))), link(9,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(det),fner(o),fn('_')]), w( country, [ pos(nn), root(country),loc(9),lnks(9), txt("country"),truecase('LOWER'), link(1,'NP',r('NP',seg(8,9))), link(2,'PP',r('PP',seg(7,9))), link(3,'VP',r('VP',seg(6,9))), link(4,'S',r('S',seg(6,9))), link(5,'SBAR',r('SBAR',seg(5,9))), link(6,'NP',r('NP',seg(3,9))), link(7,'S',r('S',seg(2,12))), link(8,'SBAR',r('SBAR',seg(1,13))), link(9,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(noun),fner(o),fn('_')]), w( bordering, [ pos(vbg), root(border),loc(10),lnks(4), txt("bordering"),truecase('LOWER'), link(1,'VP',r('VP',seg(10,12))), link(2,'S',r('S',seg(2,12))), link(3,'SBAR',r('SBAR',seg(1,13))), link(4,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(verb),fner(o),fn('border.01')]), w( the, [ pos(dt), root(the),loc(11),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(11,12))), link(2,'VP',r('VP',seg(10,12))), link(3,'S',r('S',seg(2,12))), link(4,'SBAR',r('SBAR',seg(1,13))), link(5,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(det),fner(o),fn('_')]), w( baltic, [ pos(jj), root(baltic),loc(12),lnks(5),txt("baltic"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(11,12))), link(2,'VP',r('VP',seg(10,12))), link(3,'S',r('S',seg(2,12))), link(4,'SBAR',r('SBAR',seg(1,13))), link(5,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(13),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,13))), link(2,'CORENLP',r('CORENLP',seg(1,13))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "What are the rivers that flow through each country bordering the baltic ?", sentence80, whq( thing&River&river-B, s( np(3+_108048,wh(thing&River&river-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+pl, np_head(Det,det(the(pl)),[],river), [ rel( thing&River&river-D, s( np(3+pl,wh(thing&River&river-D),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase( Prep, prep(through), np( 3+sg, np_head(Det5,det(each),[],country), [ reduced_rel( thing&geo&Geo-E, s( np(3+sg,wh(thing&geo&Geo-E),[]), verb(main+tv,border,active,inf,[prog],posP([])), [ arg(dirO(DirO20),np(3+sg,nameOf(Baltic,baltic,[]),[]))], []))]))]))]))], []))). tmp : test80_result( "What are the rivers that flow through each country bordering the baltic ?", i_sentence, question80( [thing&River&river-B], pred( quantV( identityQ(IdentityQ), thing&River&river-B, '`'(true),'`'(true), [], thing&River&river-B), identityQ(IdentityQ2), subsumed_by(B,C), [ quantV( set(- + (- 0)), thing&River&river-D, '`'(ti(river,D)), ( pred( quantV( identityQ(IdentityQ3), thing&River&river-D, '`'(true),'`'(true), [], thing&River&river-D), identityQ(IdentityQ4), path_pred_linkage(direct(river_flows),river,D,E,G), [ quantV( det(each), thing&geo&Geo-E, '`'(ti(country,E)),'`'(true), [ pred( quantV( identityQ(IdentityQ5), thing&geo&Geo-E, '`'(true),'`'(true), [], thing&geo&Geo-E), identityQ(IdentityQ6), generic_pred(thing,border,E,F), [ quantV( identityQ(IdentityQ7), thing&geo&seamass-F, '`'(named(F,baltic)),'`'(true), [], thing&geo&seamass-F)])], thing&geo&Geo-E), quantV(voidQ(VoidQ),thing&_64236-G,'`'(true),'`'(true),[],_64240-G)]) & '`'(true)), [], thing&River&river-C)]))). tmp : test80_result( "What are the rivers that flow through each country bordering the baltic ?", qplan, answer80([Subsumed_by]) :- ^( By_SetOf, ( setOf( River, ( ti(river,River) , \+( ^( Border_Country, ( named(Generic_Baltic,baltic) , ti(country,Border_Country) , generic_pred(thing,border,Border_Country,Generic_Baltic) , \+( ^( Path_pred_linkage, path_pred_linkage(direct(river_flows),river,River,Border_Country,Path_pred_linkage))))))), By_SetOf) , subsumed_by(Subsumed_by,By_SetOf)))). tmp : test80_result("What are the rivers that flow through each country bordering the baltic ?",results80,[]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 671| true 3 30 48 5 86 | What are the rivers that flow through each country bordering the baltic ? ========================================================= tmp : test80_result( "What are the rivers of the countries bordering the baltic ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,11))), link(3,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(pron),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(2),lnks(3), txt("are"),truecase('LOWER'), link(1,'S',r('S',seg(2,10))), link(2,'SBAR',r('SBAR',seg(1,11))), link(3,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(det),fner(o),fn('_')]), w( rivers, [ pos(nns), root(river),loc(4),lnks(5),txt("rivers"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(5),lnks(5),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,7))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(adp),fner(o),fn('_')]), w( the, [ pos(dt), root(the),loc(6),lnks(6),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(6,7))), link(2,'PP',r('PP',seg(5,7))), link(3,'NP',r('NP',seg(3,7))), link(4,'S',r('S',seg(2,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(det),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(7),lnks(6), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(6,7))), link(2,'PP',r('PP',seg(5,7))), link(3,'NP',r('NP',seg(3,7))), link(4,'S',r('S',seg(2,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(nns),loc(3),form(pl), dep_child(amod,n(asian,2)),dep_parent(nsubj,n(have,4)), node(n(countries,3)),flair,upos(noun), fner(o),fn('_')]), w( bordering, [ pos(vbg), root(border),loc(8),lnks(4), txt("bordering"),truecase('LOWER'), link(1,'VP',r('VP',seg(8,10))), link(2,'S',r('S',seg(2,10))), link(3,'SBAR',r('SBAR',seg(1,11))), link(4,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(verb),fner(o),fn('border.01')]), w( the, [ pos(dt), root(the),loc(9),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(9,10))), link(2,'VP',r('VP',seg(8,10))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(det),fner(o),fn('_')]), w( baltic, [ pos(jj), root(baltic),loc(10),lnks(5),txt("baltic"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(9,10))), link(2,'VP',r('VP',seg(8,10))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(11),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,11))), link(2,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos('.'),loc(10),dep_parent(punct,n(have,4)), node(n(?,10)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "What are the rivers of the countries bordering the baltic ?", sentence80, whq( thing&River&river-B, s( np(3+_24114,wh(thing&River&river-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+pl, np_head(Det,det(the(pl)),[],river), [ prep_phrase( Prep, prep(of), np( 3+pl, np_head(Det4,det(the(pl)),[],country), [ reduced_rel( thing&geo&Geo-D, s( np(3+pl,wh(thing&geo&Geo-D),[]), verb(main+tv,border,active,inf,[prog],posP([])), [ arg(dirO(DirO17),np(3+sg,nameOf(Baltic,baltic,[]),[]))], []))]))]))], []))). tmp : test80_result( "What are the rivers of the countries bordering the baltic ?", i_sentence, question80( [thing&River&river-B], pred( quantV( identityQ(IdentityQ), thing&River&river-B, '`'(true),'`'(true), [], thing&River&river-B), identityQ(IdentityQ2), subsumed_by(B,C), [ quantV( set(- + (- 0)), thing&River&river-G, '`'((generic_pred(thing,any,D,G),ti(river,G))), '`'(true), [ quantV( index(- + (- 0)), thing&geo&Geo-D, '`'(ti(country,D)),'`'(true), [ pred( quantV( identityQ(IdentityQ3), thing&geo&Geo-D, '`'(true),'`'(true), [], thing&geo&Geo-D), identityQ(IdentityQ4), generic_pred(thing,border,D,F), [ quantV( identityQ(IdentityQ5), thing&geo&seamass-F, '`'(named(F,baltic)),'`'(true), [], thing&geo&seamass-F)])], thing&geo&Geo-D)], thing&River&river-C)]))). tmp : test80_result( "What are the rivers of the countries bordering the baltic ?", qplan, answer80([Subsumed_by]) :- ^( By_SetOf9, ( setOf( [Any_Border_Country]:SetOf, ( named(Generic_Baltic,baltic) , ti(country,Any_Border_Country) , generic_pred(thing,border,Any_Border_Country,Generic_Baltic) , setOf( Generic_River, generic_pred(thing,any,Any_Border_Country,Generic_River),ti(river,Generic_River), SetOf)), By_SetOf9) , subsumed_by(Subsumed_by,By_SetOf9)))). tmp : test80_result( "What are the rivers of the countries bordering the baltic ?", results80, [ [ [ [east_germany]:[elbe], [poland]:[oder,vistula], [soviet_union] : [ amu_darya, amur,don,lena,ob,volga,yenisei], [west_germany]:[danube,elbe,rhine]]]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 668| true 2 66 70 7 145 | What are the rivers of the countries bordering the baltic ? ========================================================= tmp : test80_result( "What are the rivers in countries bordering the baltic ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,10))), link(3,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(pron),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(2),lnks(3), txt("are"),truecase('LOWER'), link(1,'S',r('S',seg(2,9))), link(2,'SBAR',r('SBAR',seg(1,10))), link(3,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,6))), link(3,'S',r('S',seg(2,9))), link(4,'SBAR',r('SBAR',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(det),fner(o),fn('_')]), w( rivers, [ pos(nns), root(river),loc(4),lnks(5),txt("rivers"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,6))), link(3,'S',r('S',seg(2,9))), link(4,'SBAR',r('SBAR',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(noun),fner(o),fn('_')]), w( in, [ pos(in), root(in),loc(5),lnks(5),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,6))), link(2,'NP',r('NP',seg(3,6))), link(3,'S',r('S',seg(2,9))), link(4,'SBAR',r('SBAR',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(adp),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(6),lnks(6), txt("countries"),truecase('LOWER'),corefed, #(2),txt(["countries"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(6,6))), link(2,'PP',r('PP',seg(5,6))), link(3,'NP',r('NP',seg(3,6))), link(4,'S',r('S',seg(2,9))), link(5,'SBAR',r('SBAR',seg(1,10))), link(6,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(noun),fner(o),fn('_')]), w( bordering, [ pos(vbg), root(border),loc(7),lnks(4), txt("bordering"),truecase('LOWER'), link(1,'VP',r('VP',seg(7,9))), link(2,'S',r('S',seg(2,9))), link(3,'SBAR',r('SBAR',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(verb),fner(o),fn('border.01')]), w( the, [ pos(dt), root(the),loc(8),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(8,9))), link(2,'VP',r('VP',seg(7,9))), link(3,'S',r('S',seg(2,9))), link(4,'SBAR',r('SBAR',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(det),fner(o),fn('_')]), w( baltic, [ pos(jj), root(baltic),loc(9),lnks(5),txt("baltic"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(8,9))), link(2,'VP',r('VP',seg(7,9))), link(3,'S',r('S',seg(2,9))), link(4,'SBAR',r('SBAR',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(10),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,10))), link(2,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "What are the rivers in countries bordering the baltic ?", sentence80, whq( thing&geo&Geo-B, s( np(3+_95322,wh(thing&geo&Geo-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+pl, np_head(Det,det(the(pl)),[],river), [ prep_phrase( Prep, prep(in), np( 3+pl, np_head(Generic,generic(Generic16),[],country), [ reduced_rel( thing&geo&Geo-D, s( np(3+pl,wh(thing&geo&Geo-D),[]), verb(main+tv,border,active,inf,[prog],posP([])), [ arg(dirO(DirO17),np(3+sg,nameOf(Baltic,baltic,[]),[]))], []))]))]))], []))). tmp : test80_result( "What are the rivers in countries bordering the baltic ?", i_sentence, question80( [thing&geo&Geo-B], pred( quantV( identityQ(IdentityQ), thing&geo&Geo-B, '`'(true),'`'(true), [], thing&geo&Geo-B), identityQ(IdentityQ2), subsumed_by(B,C), [ quantV( set(- + (- 0)), thing&geo&Geo-D, '`'(ti(river,D)),'`'(true), [ ( quantV( generic(Generic), thing&Thing-E, '`'(ti(country,E)),'`'(true), [], thing&Thing-E) & '`'(trans_pred(thing,contain,E,D))), pred( quantV( identityQ(IdentityQ4), thing&geo&Geo-D, '`'(true),'`'(true), [], thing&geo&Geo-D), identityQ(IdentityQ5), generic_pred(thing,border,D,F), [ quantV( identityQ(IdentityQ6), thing&geo&seamass-F, '`'(named(F,baltic)),'`'(true), [], thing&geo&seamass-F)])], thing&geo&Geo-C)]))). tmp : test80_result( "What are the rivers in countries bordering the baltic ?", qplan, answer80([Subsumed_by]) :- ^( By_SetOf, ( setOf( Border_River, ^( Contain_Country, ( ti(country,Contain_Country) , named(Generic_Baltic,baltic) , ti(river,Border_River) , trans_pred(thing,contain,Contain_Country,Border_River) , generic_pred(thing,border,Border_River,Generic_Baltic))), By_SetOf) , subsumed_by(Subsumed_by,By_SetOf)))). tmp : test80_result("What are the rivers in countries bordering the baltic ?",results80,[]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 670| true 2 26 44 -8 64 | What are the rivers in countries bordering the baltic ? ========================================================= tmp : test80_result( "What are the countries from which a river flows into the black sea ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,14))), link(3,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(pron),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(2),lnks(3), txt("are"),truecase('LOWER'), link(1,'S',r('S',seg(2,13))), link(2,'SBAR',r('SBAR',seg(1,14))), link(3,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,13))), link(3,'S',r('S',seg(2,13))), link(4,'SBAR',r('SBAR',seg(1,14))), link(5,'CORENLP',r('CORENLP',seg(1,14))),spacy, spos(dt),dep_parent(det,n(country,5)), node(n(the,3)),flair,upos(det),fner(o), fn('_')]), w( countries, [ pos(nns), root(country),loc(4),lnks(5), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,13))), link(3,'S',r('S',seg(2,13))), link(4,'SBAR',r('SBAR',seg(1,14))), link(5,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(noun),fner(o),fn('_')]), w( from, [ pos(in), root(from),loc(5),lnks(6),txt("from"), truecase('LOWER'),link(1,'WHPP',r('WHPP',seg(5,6))), link(2,'SBAR',r('SBAR',seg(5,13))), link(3,'NP',r('NP',seg(3,13))), link(4,'S',r('S',seg(2,13))), link(5,'SBAR',r('SBAR',seg(1,14))), link(6,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(adp),fner(o),fn('_')]), w( which, [ pos(wdt), root(which),loc(6),lnks(7),txt("which"), truecase('LOWER'),link(1,'NP',r('NP',seg(6,6))), link(2,'WHPP',r('WHPP',seg(5,6))), link(3,'SBAR',r('SBAR',seg(5,13))), link(4,'NP',r('NP',seg(3,13))), link(5,'S',r('S',seg(2,13))), link(6,'SBAR',r('SBAR',seg(1,14))), link(7,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(pron),fner(o),fn('_')]), w( a, [ pos(dt), root(a),loc(7),lnks(7),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(7,8))), link(2,'S',r('S',seg(7,13))), link(3,'SBAR',r('SBAR',seg(5,13))), link(4,'NP',r('NP',seg(3,13))), link(5,'S',r('S',seg(2,13))), link(6,'SBAR',r('SBAR',seg(1,14))), link(7,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(det),fner(o),fn('_')]), w( river, [ pos(nn), root(river),loc(8),lnks(7),txt("river"), ner('TITLE'),truecase('LOWER'), entitylink('River'),link(1,'NP',r('NP',seg(7,8))), link(2,'S',r('S',seg(7,13))), link(3,'SBAR',r('SBAR',seg(5,13))), link(4,'NP',r('NP',seg(3,13))), link(5,'S',r('S',seg(2,13))), link(6,'SBAR',r('SBAR',seg(1,14))), link(7,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(noun),fner(o),fn('_')]), w( flows, [ pos(vbz), root(flow),loc(9),lnks(7),txt("flows"), truecase('LOWER'),link(1,'VP',r('VP',seg(9,13))), link(2,'S',r('S',seg(7,13))), link(3,'SBAR',r('SBAR',seg(5,13))), link(4,'NP',r('NP',seg(3,13))), link(5,'S',r('S',seg(2,13))), link(6,'SBAR',r('SBAR',seg(1,14))), link(7,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(verb),fner(o),fn('flow.01')]), w( into, [ pos(in), root(into),loc(10),lnks(8),txt("into"), truecase('LOWER'),link(1,'PP',r('PP',seg(10,13))), link(2,'VP',r('VP',seg(9,13))), link(3,'S',r('S',seg(7,13))), link(4,'SBAR',r('SBAR',seg(5,13))), link(5,'NP',r('NP',seg(3,13))), link(6,'S',r('S',seg(2,13))), link(7,'SBAR',r('SBAR',seg(1,14))), link(8,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(adp),fner(o),fn('_')]), w( the, [ pos(dt), root(the),loc(11),lnks(9),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(11,13))), link(2,'PP',r('PP',seg(10,13))), link(3,'VP',r('VP',seg(9,13))), link(4,'S',r('S',seg(7,13))), link(5,'SBAR',r('SBAR',seg(5,13))), link(6,'NP',r('NP',seg(3,13))), link(7,'S',r('S',seg(2,13))), link(8,'SBAR',r('SBAR',seg(1,14))), link(9,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(det),fner(o),fn('_')]), w( black, [ pos(jj), root(black),loc(12),lnks(9),txt("black"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(11,13))), link(2,'PP',r('PP',seg(10,13))), link(3,'VP',r('VP',seg(9,13))), link(4,'S',r('S',seg(7,13))), link(5,'SBAR',r('SBAR',seg(5,13))), link(6,'NP',r('NP',seg(3,13))), link(7,'S',r('S',seg(2,13))), link(8,'SBAR',r('SBAR',seg(1,14))), link(9,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(adj),fner(o),fn('_')]), w( sea, [ pos(nn), root(sea),loc(13),lnks(9),txt("sea"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(11,13))), link(2,'PP',r('PP',seg(10,13))), link(3,'VP',r('VP',seg(9,13))), link(4,'S',r('S',seg(7,13))), link(5,'SBAR',r('SBAR',seg(5,13))), link(6,'NP',r('NP',seg(3,13))), link(7,'S',r('S',seg(2,13))), link(8,'SBAR',r('SBAR',seg(1,14))), link(9,'CORENLP',r('CORENLP',seg(1,14))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(14),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,14))), link(2,'CORENLP',r('CORENLP',seg(1,14))),spacy, spos('.'),loc(6),dep_parent(punct,n(is,2)), node(n(?,6)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "What are the countries from which a river flows into the black sea ?", sentence80, whq( thing&Thing-B, s( np(3+_44860,wh(thing&Thing-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+pl, np_head(Det,det(the(pl)),[],country), [ rel( thing&Thing-D, s( np(3+sg,np_head(Det4,det(a),[],river),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(from),np(3+pl,wh(thing&Thing-D),[])), prep_phrase(Prep11,prep(into),np(3+sg,nameOf(Black_sea,black_sea,[]),[]))]))]))], []))). tmp : test80_result( "What are the countries from which a river flows into the black sea ?", i_sentence, question80( [thing&Thing-B], pred( quantV( identityQ(IdentityQ), thing&Thing-B, '`'(true),'`'(true), [], thing&Thing-B), identityQ(IdentityQ2), subsumed_by(B,C), [ quantV( set(- + (- 0)), thing&Thing-D, '`'(ti(country,D)), ( pred( quantV( det(a), thing&River&river-E, '`'(ti(river,E)),'`'(true), [], thing&River&river-E), identityQ(IdentityQ3), path_pred_linkage(direct(river_flows),river,E,D,F), [ quantV( identityQ(IdentityQ4), thing&Thing-D, '`'(true),'`'(true), [], thing&Thing-D), quantV( identityQ(IdentityQ5), thing&geo&seamass-F, '`'(named(F,black_sea)),'`'(true), [], thing&geo&seamass-F)]) & '`'(true)), [], thing&Thing-C)]))). tmp : test80_result( "What are the countries from which a river flows into the black sea ?", qplan, answer80([Subsumed_by]) :- ^( By_SetOf, ( setOf( Country, ( ti(country,Country) , ^( River, ( ti(river,River) , named(Linkage_Black_sea,black_sea) , path_pred_linkage(direct(river_flows),river,River,Country,Linkage_Black_sea)))), By_SetOf) , subsumed_by(Subsumed_by,By_SetOf)))). tmp : test80_result( "What are the countries from which a river flows into the black sea ?", results80, [[[romania,soviet_union]]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 17| true 2733 24 18 -7 2768 | What are the countries from which a river flows into the black sea ? ========================================================= tmp : test80_result( "What are the continents not containing a country ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,9))), link(3,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(pron),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(2),lnks(3), txt("are"),truecase('LOWER'), link(1,'S',r('S',seg(2,8))), link(2,'SBAR',r('SBAR',seg(1,9))), link(3,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(verb),fner(o),fn('be.03')]), w( the, [ pos(dt), root(the),loc(3),lnks(4),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'S',r('S',seg(2,8))), link(3,'SBAR',r('SBAR',seg(1,9))), link(4,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(det),fner(o),fn('_')]), w( continents, [ pos(nns), root(continent),loc(4),lnks(4), txt("continents"),truecase('LOWER'), link(1,'NP',r('NP',seg(3,4))), link(2,'S',r('S',seg(2,8))), link(3,'SBAR',r('SBAR',seg(1,9))), link(4,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(noun),fner(o),fn('_')]), w( not, [ pos(rb), root(not),loc(5),lnks(3),txt("not"), truecase('LOWER'),link(1,'S',r('S',seg(2,8))), link(2,'SBAR',r('SBAR',seg(1,9))), link(3,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(adv),fner(o),fn('_')]), w( containing, [ pos(vbg), root(contain),loc(6),lnks(4), txt("containing"),truecase('LOWER'), link(1,'VP',r('VP',seg(6,8))), link(2,'S',r('S',seg(2,8))), link(3,'SBAR',r('SBAR',seg(1,9))), link(4,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(verb),fner(o),fn('contain.01')]), w( a, [ pos(dt), root(a),loc(7),lnks(5),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(7,8))), link(2,'VP',r('VP',seg(6,8))), link(3,'S',r('S',seg(2,8))), link(4,'SBAR',r('SBAR',seg(1,9))), link(5,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(det),fner(o),fn('_')]), w( country, [ pos(nn), root(country),loc(8),lnks(5), txt("country"),truecase('LOWER'), link(1,'NP',r('NP',seg(7,8))), link(2,'VP',r('VP',seg(6,8))), link(3,'S',r('S',seg(2,8))), link(4,'SBAR',r('SBAR',seg(1,9))), link(5,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(9),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,9))), link(2,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "What are the continents not containing a country ?", sentence80, whq( thing&geo&continent-B, s( np(3+_5758,wh(thing&geo&continent-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+pl, np_head(Det,det(the(pl)),[],continent), [ reduced_rel( thing&geo&continent-D, s( np(3+pl,wh(thing&geo&continent-D),[]), verb(main+tv,contain,active,inf,[prog],negP([])), [ arg(dirO(DirO11),np(3+sg,np_head(Det3,det(a),[],country),[]))], []))]))], []))). tmp : test80_result( "What are the continents not containing a country ?", i_sentence, question80( [thing&geo&continent-B], pred( quantV( identityQ(IdentityQ), thing&geo&continent-B, '`'(true),'`'(true), [], thing&geo&continent-B), identityQ(IdentityQ1), subsumed_by(B,C), [ quantV( set(- + (- 0)), thing&geo&continent-D, '`'(ti(continent,D)),'`'(true), [ pred( quantV( identityQ(IdentityQ2), thing&geo&continent-D, '`'(true),'`'(true), [], thing&geo&continent-D), notP,trans_pred(thing,contain,D,E), [ quantV( det(a), thing&Thing-E, '`'(ti(country,E)),'`'(true), [], thing&Thing-E)])], thing&geo&continent-C)]))). tmp : test80_result( "What are the continents not containing a country ?", qplan, answer80([Subsumed_by]) :- ^( By_SetOf, ( setOf( Contain_Continent, ( ti(continent,Contain_Continent) , \+( ^( Country, ti(country,Country),trans_pred(thing,contain,Contain_Continent,Country)))), By_SetOf) , subsumed_by(Subsumed_by,By_SetOf)))). tmp : test80_result("What are the continents not containing a country ?",results80,[[[antarctica]]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 208| true -21 16 15 2 12 | What are the continents not containing a country ? ========================================================= tmp : test80_result( "What are the continents no country in which contains more than two cities whose population exceeds 1 million ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,19))), link(3,'CORENLP',r('CORENLP',seg(1,19))),spacy, spos(wp),dep_parent(det,n(rivers,2)),node(n(what,1)), flair,upos(pron),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),loc(2),lnks(3),txt("are"), truecase('LOWER'),link(1,'S',r('S',seg(2,18))), link(2,'SBAR',r('SBAR',seg(1,19))), link(3,'CORENLP',r('CORENLP',seg(1,19))),old_pos(vb), pos(vbp),spacy,spos(vbp),loc(3), tense(present),dep_child(attr,n(rivers,2)), dep_child(root,n(are,3)),dep_child(advmod,n(there,4)), dep_child(punct,n(?,5)),dep_parent(root,n(are,3)), node(n(are,3)),flair,upos(verb),fner(o), fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,18))), link(3,'S',r('S',seg(2,18))), link(4,'SBAR',r('SBAR',seg(1,19))), link(5,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(det),fner(o),fn('_')]), w( continents, [ pos(nns), root(continent),loc(4),lnks(5), txt("continents"),truecase('LOWER'), link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,18))), link(3,'S',r('S',seg(2,18))), link(4,'SBAR',r('SBAR',seg(1,19))), link(5,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(noun),fner(o),fn('_')]), w( no, [ pos(dt), root(no),loc(5),lnks(7),txt("no"), truecase('LOWER'),link(1,'NP',r('NP',seg(5,6))), link(2,'NP',r('NP',seg(5,8))), link(3,'SBAR',r('SBAR',seg(5,18))), link(4,'NP',r('NP',seg(3,18))), link(5,'S',r('S',seg(2,18))), link(6,'SBAR',r('SBAR',seg(1,19))), link(7,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(det),fner(o),fn('_')]), w( country, [ pos(nn), root(country),loc(6),lnks(7), txt("country"),truecase('LOWER'), link(1,'NP',r('NP',seg(5,6))), link(2,'NP',r('NP',seg(5,8))), link(3,'SBAR',r('SBAR',seg(5,18))), link(4,'NP',r('NP',seg(3,18))), link(5,'S',r('S',seg(2,18))), link(6,'SBAR',r('SBAR',seg(1,19))), link(7,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(noun),fner(o),fn('_')]), w( in, [ pos(in), root(in),loc(7),lnks(7),txt("in"), truecase('LOWER'),link(1,'WHPP',r('WHPP',seg(7,8))), link(2,'NP',r('NP',seg(5,8))), link(3,'SBAR',r('SBAR',seg(5,18))), link(4,'NP',r('NP',seg(3,18))), link(5,'S',r('S',seg(2,18))), link(6,'SBAR',r('SBAR',seg(1,19))), link(7,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(adp),fner(o),fn('_')]), w( which, [ pos(wdt), root(which),loc(8),lnks(8),txt("which"), truecase('LOWER'),link(1,'NP',r('NP',seg(8,8))), link(2,'WHPP',r('WHPP',seg(7,8))), link(3,'NP',r('NP',seg(5,8))), link(4,'SBAR',r('SBAR',seg(5,18))), link(5,'NP',r('NP',seg(3,18))), link(6,'S',r('S',seg(2,18))), link(7,'SBAR',r('SBAR',seg(1,19))), link(8,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(pron),fner(o),fn('_')]), w( contains, [ pos(vbz), root(contain),loc(9),lnks(7), txt("contains"),truecase('LOWER'), link(1,'VP',r('VP',seg(9,18))), link(2,'S',r('S',seg(9,18))), link(3,'SBAR',r('SBAR',seg(5,18))), link(4,'NP',r('NP',seg(3,18))), link(5,'S',r('S',seg(2,18))), link(6,'SBAR',r('SBAR',seg(1,19))), link(7,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(verb),fner(o),fn('contain.01')]), w( more, [ pos(jjr), root(more),loc(10),lnks(10),txt("more"), truecase('LOWER'),link(1,'QP',r('QP',seg(10,12))), link(2,'NP',r('NP',seg(10,13))), link(3,'NP',r('NP',seg(10,18))), link(4,'VP',r('VP',seg(9,18))), link(5,'S',r('S',seg(9,18))), link(6,'SBAR',r('SBAR',seg(5,18))), link(7,'NP',r('NP',seg(3,18))), link(8,'S',r('S',seg(2,18))), link(9,'SBAR',r('SBAR',seg(1,19))), link(10,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(adj),fner(o),fn('_')]), w( than, [ pos(in), root(than),loc(11),lnks(10),txt("than"), truecase('LOWER'),link(1,'QP',r('QP',seg(10,12))), link(2,'NP',r('NP',seg(10,13))), link(3,'NP',r('NP',seg(10,18))), link(4,'VP',r('VP',seg(9,18))), link(5,'S',r('S',seg(9,18))), link(6,'SBAR',r('SBAR',seg(5,18))), link(7,'NP',r('NP',seg(3,18))), link(8,'S',r('S',seg(2,18))), link(9,'SBAR',r('SBAR',seg(1,19))), link(10,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(adp),fner(o),fn('_')]), w( two, [ pos(cd), root(two),loc(12),lnks(10),txt("two"), ner('NUMBER'),normalizedNER('>2.0'), truecase('LOWER'),corefed,#(1), txt(["two"]),type('PROPER'), numb('SINGULAR'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'QP',r('QP',seg(10,12))), link(2,'NP',r('NP',seg(10,13))), link(3,'NP',r('NP',seg(10,18))), link(4,'VP',r('VP',seg(9,18))), link(5,'S',r('S',seg(9,18))), link(6,'SBAR',r('SBAR',seg(5,18))), link(7,'NP',r('NP',seg(3,18))), link(8,'S',r('S',seg(2,18))), link(9,'SBAR',r('SBAR',seg(1,19))), link(10,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(num),fner(o),fn('_')]), w( cities, [ pos(nns), root(city),loc(13),lnks(9),txt("cities"), truecase('LOWER'),link(1,'NP',r('NP',seg(10,13))), link(2,'NP',r('NP',seg(10,18))), link(3,'VP',r('VP',seg(9,18))), link(4,'S',r('S',seg(9,18))), link(5,'SBAR',r('SBAR',seg(5,18))), link(6,'NP',r('NP',seg(3,18))), link(7,'S',r('S',seg(2,18))), link(8,'SBAR',r('SBAR',seg(1,19))), link(9,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(noun),fner(o),fn('_')]), w( whose, [ pos('wp$'), root(whose),loc(14),lnks(10),txt("whose"), truecase('LOWER'),link(1,'NP',r('NP',seg(14,15))), link(2,'SBAR',r('SBAR',seg(14,18))), link(3,'NP',r('NP',seg(10,18))), link(4,'VP',r('VP',seg(9,18))), link(5,'S',r('S',seg(9,18))), link(6,'SBAR',r('SBAR',seg(5,18))), link(7,'NP',r('NP',seg(3,18))), link(8,'S',r('S',seg(2,18))), link(9,'SBAR',r('SBAR',seg(1,19))), link(10,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(pron),fner(o),fn('_')]), w( population, [ pos(nn), root(population),loc(15),lnks(11), txt("population"),truecase('LOWER'), link(1,'NML',r('NML',seg(15,15))), link(2,'NP',r('NP',seg(14,15))), link(3,'SBAR',r('SBAR',seg(14,18))), link(4,'NP',r('NP',seg(10,18))), link(5,'VP',r('VP',seg(9,18))), link(6,'S',r('S',seg(9,18))), link(7,'SBAR',r('SBAR',seg(5,18))), link(8,'NP',r('NP',seg(3,18))), link(9,'S',r('S',seg(2,18))), link(10,'SBAR',r('SBAR',seg(1,19))), link(11,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(noun),fner(o),fn('_')]), w( exceeds, [ pos(vbz), root(exceed),loc(16),lnks(11), txt("exceeds"),truecase('LOWER'), link(1,'VP',r('VP',seg(16,18))), link(2,'S',r('S',seg(16,18))), link(3,'SBAR',r('SBAR',seg(14,18))), link(4,'NP',r('NP',seg(10,18))), link(5,'VP',r('VP',seg(9,18))), link(6,'S',r('S',seg(9,18))), link(7,'SBAR',r('SBAR',seg(5,18))), link(8,'NP',r('NP',seg(3,18))), link(9,'S',r('S',seg(2,18))), link(10,'SBAR',r('SBAR',seg(1,19))), link(11,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(verb),fner(o),fn('exceed.01')]), w( '1', [ pos(cd), root('1'),loc(17),lnks(13),txt("1"), ner('NUMBER'),normalizedNER(1000000.0), entitylink('Million'),link(1,'QP',r('QP',seg(17,18))), link(2,'NP',r('NP',seg(17,18))), link(3,'VP',r('VP',seg(16,18))), link(4,'S',r('S',seg(16,18))), link(5,'SBAR',r('SBAR',seg(14,18))), link(6,'NP',r('NP',seg(10,18))), link(7,'VP',r('VP',seg(9,18))), link(8,'S',r('S',seg(9,18))), link(9,'SBAR',r('SBAR',seg(5,18))), link(10,'NP',r('NP',seg(3,18))), link(11,'S',r('S',seg(2,18))), link(12,'SBAR',r('SBAR',seg(1,19))), link(13,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(num),fner(o),fn('_')]), w( million, [ pos(cd), root(million),loc(18),lnks(13), txt("million"),ner('NUMBER'), normalizedNER(1000000.0),truecase('LOWER'), entitylink('Million'),link(1,'QP',r('QP',seg(17,18))), link(2,'NP',r('NP',seg(17,18))), link(3,'VP',r('VP',seg(16,18))), link(4,'S',r('S',seg(16,18))), link(5,'SBAR',r('SBAR',seg(14,18))), link(6,'NP',r('NP',seg(10,18))), link(7,'VP',r('VP',seg(9,18))), link(8,'S',r('S',seg(9,18))), link(9,'SBAR',r('SBAR',seg(5,18))), link(10,'NP',r('NP',seg(3,18))), link(11,'S',r('S',seg(2,18))), link(12,'SBAR',r('SBAR',seg(1,19))), link(13,'CORENLP',r('CORENLP',seg(1,19))),flair, upos(num),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(19),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,19))), link(2,'CORENLP',r('CORENLP',seg(1,19))),spacy, spos('.'),loc(5),dep_parent(punct,n(are,3)), node(n(?,5)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "What are the continents no country in which contains more than two cities whose population exceeds 1 million ?", sentence80, whq( thing&geo&continent-B, s( np(3+_30752,wh(thing&geo&continent-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+pl, np_head(Det,det(the(pl)),[],continent), [ rel( thing&geo&continent-D, s( np( 3+sg, np_head(Det3,det(no),[],country), [ prep_phrase(Prep,prep(in),np(3+pl,wh(thing&geo&continent-D),[]))]), verb(main+tv,contain,active,pres+fin,[],posP([])), [ arg( dirO(DirO25), np( 3+pl, np_head(QuantV,quantV(more,2),[],city), [ rel( thing&Thing-G, s( np( 3+sg, np_head(Det10,det(the(sg)),[],population), [ prep_phrase(Poss,poss(Poss26),np(3+pl,wh(thing&Thing-G),[]))]), verb(main+tv,exceed,active,pres+fin,[],posP([])), [ arg(dirO(DirO27),np(3+sg,np_head(QuantV15,quantV(same,1),[],million),[]))], []))]))], []))]))], []))). tmp : test80_result( "What are the continents no country in which contains more than two cities whose population exceeds 1 million ?", i_sentence, question80( [thing&geo&continent-B], pred( quantV( identityQ(IdentityQ), thing&geo&continent-B, '`'(true),'`'(true), [], thing&geo&continent-B), identityQ(IdentityQ1), subsumed_by(B,C), [ quantV( set(- + (- 0)), thing&geo&continent-D, '`'(ti(continent,D)), ( pred( quantV( det(no), thing&Thing-E, '`'(ti(country,E)),'`'(true), [ ( quantV( identityQ(IdentityQ2), thing&geo&continent-D, '`'(true),'`'(true), [], thing&geo&continent-D) & '`'(trans_pred(thing,contain,D,E)))], thing&Thing-E), identityQ(IdentityQ3), trans_pred(thing,contain,E,G), [ quantV( quantV(more,2), thing&Thing-G, '`'(ti(city,G)), ( pred( quantV( det(the(sg)), value&units&population-H, '`'(count_pred(thing,population,G,H)), '`'(true), [ quantV( identityQ(IdentityQ4), thing&Thing-G, '`'(true),'`'(true), [], thing&Thing-G)], value&units&population-H), identityQ(IdentityQ5), exceeds(H,I), [ quantV( voidQ(VoidQ), value&units&population-I, '`'(same_values(I,--(1,million))),'`'(true), [], value&units&population-I)]) & '`'(true)), [], thing&Thing-G)]) & '`'(true)), [], thing&geo&continent-C)]))). tmp : test80_result( "What are the continents no country in which contains more than two cities whose population exceeds 1 million ?", qplan, answer80([Subsumed_by]) :- ^( By_SetOf, ( setOf( Contain_Continent, ( ti(continent,Contain_Continent) , \+( ^( Contain_Country, ( ti(country,Contain_Country) , trans_pred(thing,contain,Contain_Continent,Contain_Country) , ^( Numberof, ( numberof( Population_City, ( ti(city,Population_City) , ^( Count_Exceeds, ( count_pred(thing,population,Population_City,Count_Exceeds) , ^( Exceeds9, same_values(Exceeds9,--(1,million)),exceeds(Count_Exceeds,Exceeds9)))) , trans_pred(thing,contain,Contain_Country,Population_City)), Numberof) , Numberof>2)))))), By_SetOf) , subsumed_by(Subsumed_by,By_SetOf)))). tmp : test80_result( "What are the continents no country in which contains more than two cities whose population exceeds 1 million ?", results80, [[[africa,antarctica,australasia]]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 18| true 1333 20 52 116 1521 | What are the continents no country in which contains more than two cities whose population exceeds 1 million ? ========================================================= tmp : test80_result( "What are the continents containing a country in which contains more than two cities whose population exceeds 1 million ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,20))), link(3,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(pron),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(2),lnks(3), txt("are"),truecase('LOWER'), link(1,'S',r('S',seg(2,19))), link(2,'SBAR',r('SBAR',seg(1,20))), link(3,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(4),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'S',r('S',seg(2,19))), link(3,'SBAR',r('SBAR',seg(1,20))), link(4,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(det),fner(o),fn('_')]), w( continents, [ pos(nns), root(continent),loc(4),lnks(4), txt("continents"),truecase('LOWER'), link(1,'NP',r('NP',seg(3,4))), link(2,'S',r('S',seg(2,19))), link(3,'SBAR',r('SBAR',seg(1,20))), link(4,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(noun),fner(o),fn('_')]), w( containing, [ pos(vbg), root(contain),loc(5),lnks(4), txt("containing"),truecase('LOWER'), link(1,'VP',r('VP',seg(5,19))), link(2,'S',r('S',seg(2,19))), link(3,'SBAR',r('SBAR',seg(1,20))), link(4,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(verb),fner(o),fn('contain.01')]), w( a, [ pos(dt), root(a),loc(6),lnks(6),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(6,9))), link(2,'SBAR',r('SBAR',seg(6,19))), link(3,'VP',r('VP',seg(5,19))), link(4,'S',r('S',seg(2,19))), link(5,'SBAR',r('SBAR',seg(1,20))), link(6,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(det),fner(o),fn('_')]), w( country, [ pos(nn), root(country),loc(7),lnks(6), txt("country"),truecase('LOWER'), link(1,'NP',r('NP',seg(6,9))), link(2,'SBAR',r('SBAR',seg(6,19))), link(3,'VP',r('VP',seg(5,19))), link(4,'S',r('S',seg(2,19))), link(5,'SBAR',r('SBAR',seg(1,20))), link(6,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(noun),fner(o),fn('_')]), w( in, [ pos(in), root(in),loc(8),lnks(7),txt("in"), truecase('LOWER'),link(1,'WHPP',r('WHPP',seg(8,9))), link(2,'NP',r('NP',seg(6,9))), link(3,'SBAR',r('SBAR',seg(6,19))), link(4,'VP',r('VP',seg(5,19))), link(5,'S',r('S',seg(2,19))), link(6,'SBAR',r('SBAR',seg(1,20))), link(7,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(adp),fner(o),fn('_')]), w( which, [ pos(wdt), root(which),loc(9),lnks(8),txt("which"), truecase('LOWER'),link(1,'NP',r('NP',seg(9,9))), link(2,'WHPP',r('WHPP',seg(8,9))), link(3,'NP',r('NP',seg(6,9))), link(4,'SBAR',r('SBAR',seg(6,19))), link(5,'VP',r('VP',seg(5,19))), link(6,'S',r('S',seg(2,19))), link(7,'SBAR',r('SBAR',seg(1,20))), link(8,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(pron),fner(o),fn('_')]), w( contains, [ pos(vbz), root(contain),loc(10),lnks(7), txt("contains"),truecase('LOWER'), link(1,'VP',r('VP',seg(10,19))), link(2,'S',r('S',seg(10,19))), link(3,'SBAR',r('SBAR',seg(6,19))), link(4,'VP',r('VP',seg(5,19))), link(5,'S',r('S',seg(2,19))), link(6,'SBAR',r('SBAR',seg(1,20))), link(7,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(verb),fner(o),fn('contain.01')]), w( more, [ pos(jjr), root(more),loc(11),lnks(10),txt("more"), truecase('LOWER'),link(1,'QP',r('QP',seg(11,13))), link(2,'NP',r('NP',seg(11,14))), link(3,'NP',r('NP',seg(11,19))), link(4,'VP',r('VP',seg(10,19))), link(5,'S',r('S',seg(10,19))), link(6,'SBAR',r('SBAR',seg(6,19))), link(7,'VP',r('VP',seg(5,19))), link(8,'S',r('S',seg(2,19))), link(9,'SBAR',r('SBAR',seg(1,20))), link(10,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(adj),fner(o),fn('_')]), w( than, [ pos(in), root(than),loc(12),lnks(10),txt("than"), truecase('LOWER'),link(1,'QP',r('QP',seg(11,13))), link(2,'NP',r('NP',seg(11,14))), link(3,'NP',r('NP',seg(11,19))), link(4,'VP',r('VP',seg(10,19))), link(5,'S',r('S',seg(10,19))), link(6,'SBAR',r('SBAR',seg(6,19))), link(7,'VP',r('VP',seg(5,19))), link(8,'S',r('S',seg(2,19))), link(9,'SBAR',r('SBAR',seg(1,20))), link(10,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(adp),fner(o),fn('_')]), w( two, [ pos(cd), root(two),loc(13),lnks(10),txt("two"), ner('NUMBER'),normalizedNER('>2.0'), truecase('LOWER'),corefed,#(1), txt(["two"]),type('PROPER'), numb('SINGULAR'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'QP',r('QP',seg(11,13))), link(2,'NP',r('NP',seg(11,14))), link(3,'NP',r('NP',seg(11,19))), link(4,'VP',r('VP',seg(10,19))), link(5,'S',r('S',seg(10,19))), link(6,'SBAR',r('SBAR',seg(6,19))), link(7,'VP',r('VP',seg(5,19))), link(8,'S',r('S',seg(2,19))), link(9,'SBAR',r('SBAR',seg(1,20))), link(10,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(num),fner(o),fn('_')]), w( cities, [ pos(nns), root(city),loc(14),lnks(9),txt("cities"), truecase('LOWER'),link(1,'NP',r('NP',seg(11,14))), link(2,'NP',r('NP',seg(11,19))), link(3,'VP',r('VP',seg(10,19))), link(4,'S',r('S',seg(10,19))), link(5,'SBAR',r('SBAR',seg(6,19))), link(6,'VP',r('VP',seg(5,19))), link(7,'S',r('S',seg(2,19))), link(8,'SBAR',r('SBAR',seg(1,20))), link(9,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(noun),fner(o),fn('_')]), w( whose, [ pos('wp$'), root(whose),loc(15),lnks(10),txt("whose"), truecase('LOWER'),link(1,'NP',r('NP',seg(15,16))), link(2,'SBAR',r('SBAR',seg(15,19))), link(3,'NP',r('NP',seg(11,19))), link(4,'VP',r('VP',seg(10,19))), link(5,'S',r('S',seg(10,19))), link(6,'SBAR',r('SBAR',seg(6,19))), link(7,'VP',r('VP',seg(5,19))), link(8,'S',r('S',seg(2,19))), link(9,'SBAR',r('SBAR',seg(1,20))), link(10,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(pron),fner(o),fn('_')]), w( population, [ pos(nn), root(population),loc(16),lnks(11), txt("population"),truecase('LOWER'), link(1,'NML',r('NML',seg(16,16))), link(2,'NP',r('NP',seg(15,16))), link(3,'SBAR',r('SBAR',seg(15,19))), link(4,'NP',r('NP',seg(11,19))), link(5,'VP',r('VP',seg(10,19))), link(6,'S',r('S',seg(10,19))), link(7,'SBAR',r('SBAR',seg(6,19))), link(8,'VP',r('VP',seg(5,19))), link(9,'S',r('S',seg(2,19))), link(10,'SBAR',r('SBAR',seg(1,20))), link(11,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(noun),fner(o),fn('_')]), w( exceeds, [ pos(vbz), root(exceed),loc(17),lnks(11), txt("exceeds"),truecase('LOWER'), link(1,'VP',r('VP',seg(17,19))), link(2,'S',r('S',seg(17,19))), link(3,'SBAR',r('SBAR',seg(15,19))), link(4,'NP',r('NP',seg(11,19))), link(5,'VP',r('VP',seg(10,19))), link(6,'S',r('S',seg(10,19))), link(7,'SBAR',r('SBAR',seg(6,19))), link(8,'VP',r('VP',seg(5,19))), link(9,'S',r('S',seg(2,19))), link(10,'SBAR',r('SBAR',seg(1,20))), link(11,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(verb),fner(o),fn('exceed.01')]), w( '1', [ pos(cd), root('1'),loc(18),lnks(13),txt("1"), ner('NUMBER'),normalizedNER(1000000.0), entitylink('Million'),link(1,'QP',r('QP',seg(18,19))), link(2,'NP',r('NP',seg(18,19))), link(3,'VP',r('VP',seg(17,19))), link(4,'S',r('S',seg(17,19))), link(5,'SBAR',r('SBAR',seg(15,19))), link(6,'NP',r('NP',seg(11,19))), link(7,'VP',r('VP',seg(10,19))), link(8,'S',r('S',seg(10,19))), link(9,'SBAR',r('SBAR',seg(6,19))), link(10,'VP',r('VP',seg(5,19))), link(11,'S',r('S',seg(2,19))), link(12,'SBAR',r('SBAR',seg(1,20))), link(13,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(num),fner(o),fn('_')]), w( million, [ pos(cd), root(million),loc(19),lnks(13), txt("million"),ner('NUMBER'), normalizedNER(1000000.0),truecase('LOWER'), entitylink('Million'),link(1,'QP',r('QP',seg(18,19))), link(2,'NP',r('NP',seg(18,19))), link(3,'VP',r('VP',seg(17,19))), link(4,'S',r('S',seg(17,19))), link(5,'SBAR',r('SBAR',seg(15,19))), link(6,'NP',r('NP',seg(11,19))), link(7,'VP',r('VP',seg(10,19))), link(8,'S',r('S',seg(10,19))), link(9,'SBAR',r('SBAR',seg(6,19))), link(10,'VP',r('VP',seg(5,19))), link(11,'S',r('S',seg(2,19))), link(12,'SBAR',r('SBAR',seg(1,20))), link(13,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(num),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(20),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,20))), link(2,'CORENLP',r('CORENLP',seg(1,20))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "What are the continents containing a country in which contains more than two cities whose population exceeds 1 million ?", sentence80, whq( thing&geo&continent-B, s( np(3+_21112,wh(thing&geo&continent-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+pl, np_head(Det,det(the(pl)),[],continent), [ reduced_rel( thing&geo&continent-D, s( np(3+pl,wh(thing&geo&continent-D),[]), verb(main+tv,contain,active,inf,[prog],posP([])), [],[])), rel( thing&geo&continent-D, s( np( 3+sg, np_head(Det3,det(a),[],country), [ prep_phrase(Prep,prep(in),np(3+pl,wh(thing&geo&continent-D),[]))]), verb(main+tv,contain,active,pres+fin,[],posP([])), [ arg( dirO(DirO25), np( 3+pl, np_head(QuantV,quantV(more,2),[],city), [ rel( thing&Thing-H, s( np( 3+sg, np_head(Det10,det(the(sg)),[],population), [ prep_phrase(Poss,poss(Poss26),np(3+pl,wh(thing&Thing-H),[]))]), verb(main+tv,exceed,active,pres+fin,[],posP([])), [ arg(dirO(DirO27),np(3+sg,np_head(QuantV15,quantV(same,1),[],million),[]))], []))]))], []))]))], []))). tmp : test80_result( "What are the continents containing a country in which contains more than two cities whose population exceeds 1 million ?", i_sentence, question80( [thing&geo&continent-B], pred( quantV( identityQ(IdentityQ), thing&geo&continent-B, '`'(true),'`'(true), [], thing&geo&continent-B), identityQ(IdentityQ1), subsumed_by(B,C), [ quantV( set(- + (- 0)), thing&geo&continent-D, '`'(ti(continent,D)), ( pred( quantV( det(a), thing&Thing-F, '`'(ti(country,F)),'`'(true), [ ( quantV( identityQ(IdentityQ2), thing&geo&continent-D, '`'(true),'`'(true), [], thing&geo&continent-D) & '`'(trans_pred(thing,contain,D,F)))], thing&Thing-F), identityQ(IdentityQ3), trans_pred(thing,contain,F,H), [ quantV( quantV(more,2), thing&Thing-H, '`'(ti(city,H)), ( pred( quantV( det(the(sg)), value&units&population-I, '`'(count_pred(thing,population,H,I)), '`'(true), [ quantV( identityQ(IdentityQ4), thing&Thing-H, '`'(true),'`'(true), [], thing&Thing-H)], value&units&population-I), identityQ(IdentityQ5), exceeds(I,J), [ quantV( voidQ(VoidQ), value&units&population-J, '`'(same_values(J,--(1,million))),'`'(true), [], value&units&population-J)]) & '`'(true)), [], thing&Thing-H)]) & '`'(true)), [ pred( quantV( identityQ(IdentityQ7), thing&geo&continent-D, '`'(true),'`'(true), [], thing&geo&continent-D), identityQ(IdentityQ8), trans_pred(thing,contain,D,E), [ quantV(voidQ(VoidQ9),thing&Thing-E,'`'(true),'`'(true),[],_66452-E)])], thing&geo&continent-C)]))). tmp : test80_result( "What are the continents containing a country in which contains more than two cities whose population exceeds 1 million ?", qplan, answer80([Subsumed_by]) :- ^( By_SetOf, ( setOf( Contain_Continent, ( ^( Trans, ti(continent,Contain_Continent),trans_pred(thing,contain,Contain_Continent,Trans)) , ^( Contain_Country, ( ti(country,Contain_Country) , trans_pred(thing,contain,Contain_Continent,Contain_Country) , ^( Numberof, ( numberof( Population_City, ( ti(city,Population_City) , ^( Count_Exceeds, ( count_pred(thing,population,Population_City,Count_Exceeds) , ^( Exceeds10, same_values(Exceeds10,--(1,million)),exceeds(Count_Exceeds,Exceeds10)))) , trans_pred(thing,contain,Contain_Country,Population_City)), Numberof) , Numberof>2))))), By_SetOf) , subsumed_by(Subsumed_by,By_SetOf)))). tmp : test80_result( "What are the continents containing a country in which contains more than two cities whose population exceeds 1 million ?", results80, [[[america,asia,europe]]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 211| true 37691 37 52 13741 51521 | What are the continents containing a country in which contains more than two cities whose population exceeds 1 million ? ========================================================= tmp : test80_result( "What are the cities of the countries bordering the baltic ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,11))), link(3,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(wp),dep_parent(det,n(rivers,2)),node(n(what,1)), flair,upos(pron),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),loc(2),lnks(3),txt("are"), truecase('LOWER'),link(1,'S',r('S',seg(2,10))), link(2,'SBAR',r('SBAR',seg(1,11))), link(3,'CORENLP',r('CORENLP',seg(1,11))),old_pos(vb), pos(vbp),spacy,spos(vbp),loc(3), tense(present),dep_child(nsubj,n(rivers,2)), dep_child(root,n(are,3)),dep_child(prep,n(in,4)), dep_child(punct,n(?,9)),dep_parent(root,n(are,3)), node(n(are,3)),flair,upos(verb),fner(o), fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(dt),loc(7),dep_parent(det,n(baltic,8)), node(n(the,7)),flair,upos(det),fner(o), fn('_')]), w( cities, [ pos(nns), root(city),loc(4),lnks(5),txt("cities"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(5),lnks(5),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,7))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(adp),fner(o),fn('_')]), w( the, [ pos(dt), root(the),loc(6),lnks(6),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(6,7))), link(2,'PP',r('PP',seg(5,7))), link(3,'NP',r('NP',seg(3,7))), link(4,'S',r('S',seg(2,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(det),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(7),lnks(6), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(6,7))), link(2,'PP',r('PP',seg(5,7))), link(3,'NP',r('NP',seg(3,7))), link(4,'S',r('S',seg(2,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(nns),loc(5),form(pl), dep_child(acl,n(bordering,6)),dep_parent(pobj,n(in,4)), node(n(countries,5)),flair,upos(noun), fner(o),fn('_')]), w( bordering, [ pos(vbg), root(border),loc(8),lnks(4), txt("bordering"),truecase('LOWER'), link(1,'VP',r('VP',seg(8,10))), link(2,'S',r('S',seg(2,10))), link(3,'SBAR',r('SBAR',seg(1,11))), link(4,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(vbg),loc(6),tense(active), dep_child(dobj,n(baltic,8)), dep_parent(acl,n(countries,5)),node(n(bordering,6)), flair,upos(verb),fner(o),fn('border.01')]), w( the, [ pos(dt), root(the),loc(9),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(9,10))), link(2,'VP',r('VP',seg(8,10))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(det),fner(o),fn('_')]), w( baltic, [ root(baltic), loc(10),lnks(5),txt("baltic"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(9,10))), link(2,'VP',r('VP',seg(8,10))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),old_pos(jj), pos(nnp),spacy,spos(nnp),loc(8), form(sg),dep_child(det,n(the,7)), dep_parent(dobj,n(bordering,6)),node(n(baltic,8)), flair,upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(11),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,11))), link(2,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos('.'),loc(9),dep_parent(punct,n(are,3)), node(n(?,9)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "What are the cities of the countries bordering the baltic ?", sentence80, whq( thing&City&city-B, s( np(3+_62650,wh(thing&City&city-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+pl, np_head(Det,det(the(pl)),[],city), [ prep_phrase( Prep, prep(of), np( 3+pl, np_head(Det4,det(the(pl)),[],country), [ reduced_rel( thing&geo&Geo-D, s( np(3+pl,wh(thing&geo&Geo-D),[]), verb(main+tv,border,active,inf,[prog],posP([])), [ arg(dirO(DirO17),np(3+sg,nameOf(Baltic,baltic,[]),[]))], []))]))]))], []))). tmp : test80_result( "What are the cities of the countries bordering the baltic ?", i_sentence, question80( [thing&City&city-B], pred( quantV( identityQ(IdentityQ), thing&City&city-B, '`'(true),'`'(true), [], thing&City&city-B), identityQ(IdentityQ2), subsumed_by(B,C), [ quantV( set(- + (- 0)), thing&City&city-G, '`'((generic_pred(thing,any,D,G),ti(city,G))), '`'(true), [ quantV( index(- + (- 0)), thing&geo&Geo-D, '`'(ti(country,D)),'`'(true), [ pred( quantV( identityQ(IdentityQ3), thing&geo&Geo-D, '`'(true),'`'(true), [], thing&geo&Geo-D), identityQ(IdentityQ4), generic_pred(thing,border,D,F), [ quantV( identityQ(IdentityQ5), thing&geo&seamass-F, '`'(named(F,baltic)),'`'(true), [], thing&geo&seamass-F)])], thing&geo&Geo-D)], thing&City&city-C)]))). tmp : test80_result( "What are the cities of the countries bordering the baltic ?", qplan, answer80([Subsumed_by]) :- ^( By_SetOf9, ( setOf( [Any_Border_Country]:SetOf, ( named(Generic_Baltic,baltic) , ti(country,Any_Border_Country) , generic_pred(thing,border,Any_Border_Country,Generic_Baltic) , setOf( Generic_City, generic_pred(thing,any,Any_Border_Country,Generic_City),ti(city,Generic_City), SetOf)), By_SetOf9) , subsumed_by(Subsumed_by,By_SetOf9)))). tmp : test80_result( "What are the cities of the countries bordering the baltic ?", results80, [ [ [ [denmark]:[copenhagen], [east_germany]:[berlin,east_berlin], [finland]:[helsinki], [poland]:[warsaw], [soviet_union]:[kiev,leningrad,moscow], [sweden]:[stockholm], [west_germany]:[bonn,hamburg]]]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 667| true 2 61 62 7 132 | What are the cities of the countries bordering the baltic ? ========================================================= tmp : test80_result( "What are the cities in countries bordering the baltic ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,10))), link(3,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(pron),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(2),lnks(3), txt("are"),truecase('LOWER'), link(1,'S',r('S',seg(2,9))), link(2,'SBAR',r('SBAR',seg(1,10))), link(3,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,6))), link(3,'S',r('S',seg(2,9))), link(4,'SBAR',r('SBAR',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(det),fner(o),fn('_')]), w( cities, [ pos(nns), root(city),loc(4),lnks(5),txt("cities"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,6))), link(3,'S',r('S',seg(2,9))), link(4,'SBAR',r('SBAR',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(noun),fner(o),fn('_')]), w( in, [ pos(in), root(in),loc(5),lnks(5),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,6))), link(2,'NP',r('NP',seg(3,6))), link(3,'S',r('S',seg(2,9))), link(4,'SBAR',r('SBAR',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(adp),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(6),lnks(6), txt("countries"),truecase('LOWER'),corefed, #(2),txt(["countries"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(6,6))), link(2,'PP',r('PP',seg(5,6))), link(3,'NP',r('NP',seg(3,6))), link(4,'S',r('S',seg(2,9))), link(5,'SBAR',r('SBAR',seg(1,10))), link(6,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(noun),fner(o),fn('_')]), w( bordering, [ pos(vbg), root(border),loc(7),lnks(4), txt("bordering"),truecase('LOWER'), link(1,'VP',r('VP',seg(7,9))), link(2,'S',r('S',seg(2,9))), link(3,'SBAR',r('SBAR',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(verb),fner(o),fn('border.01')]), w( the, [ pos(dt), root(the),loc(8),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(8,9))), link(2,'VP',r('VP',seg(7,9))), link(3,'S',r('S',seg(2,9))), link(4,'SBAR',r('SBAR',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(det),fner(o),fn('_')]), w( baltic, [ pos(jj), root(baltic),loc(9),lnks(5),txt("baltic"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(8,9))), link(2,'VP',r('VP',seg(7,9))), link(3,'S',r('S',seg(2,9))), link(4,'SBAR',r('SBAR',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(10),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,10))), link(2,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "What are the cities in countries bordering the baltic ?", sentence80, whq( thing&geo&Geo-B, s( np(3+_128212,wh(thing&geo&Geo-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+pl, np_head(Det,det(the(pl)),[],city), [ prep_phrase( Prep, prep(in), np( 3+pl, np_head(Generic,generic(Generic16),[],country), [ reduced_rel( thing&geo&Geo-D, s( np(3+pl,wh(thing&geo&Geo-D),[]), verb(main+tv,border,active,inf,[prog],posP([])), [ arg(dirO(DirO17),np(3+sg,nameOf(Baltic,baltic,[]),[]))], []))]))]))], []))). tmp : test80_result( "What are the cities in countries bordering the baltic ?", i_sentence, question80( [thing&geo&Geo-B], pred( quantV( identityQ(IdentityQ), thing&geo&Geo-B, '`'(true),'`'(true), [], thing&geo&Geo-B), identityQ(IdentityQ2), subsumed_by(B,C), [ quantV( set(- + (- 0)), thing&geo&Geo-D, '`'(ti(city,D)),'`'(true), [ ( quantV( generic(Generic), thing&Thing-E, '`'(ti(country,E)),'`'(true), [], thing&Thing-E) & '`'(trans_pred(thing,contain,E,D))), pred( quantV( identityQ(IdentityQ4), thing&geo&Geo-D, '`'(true),'`'(true), [], thing&geo&Geo-D), identityQ(IdentityQ5), generic_pred(thing,border,D,F), [ quantV( identityQ(IdentityQ6), thing&geo&seamass-F, '`'(named(F,baltic)),'`'(true), [], thing&geo&seamass-F)])], thing&geo&Geo-C)]))). tmp : test80_result( "What are the cities in countries bordering the baltic ?", qplan, answer80([Subsumed_by]) :- ^( By_SetOf, ( setOf( Border_City, ^( Contain_Country, ( ti(country,Contain_Country) , named(Generic_Baltic,baltic) , ti(city,Border_City) , trans_pred(thing,contain,Contain_Country,Border_City) , generic_pred(thing,border,Border_City,Generic_Baltic))), By_SetOf) , subsumed_by(Subsumed_by,By_SetOf)))). tmp : test80_result("What are the cities in countries bordering the baltic ?",results80,[]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 669| true 2 35 35 62 134 | What are the cities in countries bordering the baltic ? ========================================================= tmp : test80_result( "What are the capitals of the countries bordering the baltic ?", into_lexical_segs, [ w( what, [ root(what), loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,11))), link(3,'CORENLP',r('CORENLP',seg(1,11))),old_pos(wp), pos(wdt),spacy,spos(wdt), dep_parent(det,n(percentage,2)),node(n(what,1)),flair, upos(pron),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(2),lnks(3), txt("are"),truecase('LOWER'), link(1,'S',r('S',seg(2,10))), link(2,'SBAR',r('SBAR',seg(1,11))), link(3,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(det),fner(o),fn('_')]), w( capitals, [ pos(nns), root(capital),loc(4),lnks(5), txt("capitals"),truecase('LOWER'), link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(5),lnks(5),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,7))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(in),loc(3),dep_child(pobj,n(countries,4)), dep_parent(prep,n(percentage,2)),node(n(of,3)), flair,upos(adp),fner(o),fn('_')]), w( the, [ pos(dt), root(the),loc(6),lnks(6),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(6,7))), link(2,'PP',r('PP',seg(5,7))), link(3,'NP',r('NP',seg(3,7))), link(4,'S',r('S',seg(2,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(det),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(7),lnks(6), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(6,7))), link(2,'PP',r('PP',seg(5,7))), link(3,'NP',r('NP',seg(3,7))), link(4,'S',r('S',seg(2,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(nns),loc(4),form(pl), dep_parent(pobj,n(of,3)),node(n(countries,4)), flair,upos(noun),fner(o),fn('_')]), w( bordering, [ pos(vbg), root(border),loc(8),lnks(4), txt("bordering"),truecase('LOWER'), link(1,'VP',r('VP',seg(8,10))), link(2,'S',r('S',seg(2,10))), link(3,'SBAR',r('SBAR',seg(1,11))), link(4,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(verb),fner(o),fn('border.01')]), w( the, [ pos(dt), root(the),loc(9),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(9,10))), link(2,'VP',r('VP',seg(8,10))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(det),fner(o),fn('_')]), w( baltic, [ pos(jj), root(baltic),loc(10),lnks(5),txt("baltic"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(9,10))), link(2,'VP',r('VP',seg(8,10))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(11),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,11))), link(2,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos('.'),loc(8),dep_parent(punct,n(border,5)), node(n(?,8)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "What are the capitals of the countries bordering the baltic ?", sentence80, whq( thing&City&city-B, s( np(3+_31114,wh(thing&City&city-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+pl, np_head(Det,det(the(pl)),[],capital), [ prep_phrase( Prep, prep(of), np( 3+pl, np_head(Det4,det(the(pl)),[],country), [ reduced_rel( thing&geo&country-D, s( np(3+pl,wh(thing&geo&country-D),[]), verb(main+tv,border,active,inf,[prog],posP([])), [ arg(dirO(DirO15),np(3+sg,nameOf(Baltic,baltic,[]),[]))], []))]))]))], []))). tmp : test80_result( "What are the capitals of the countries bordering the baltic ?", i_sentence, question80( [thing&City&city-B], pred( quantV( identityQ(IdentityQ), thing&City&city-B, '`'(true),'`'(true), [], thing&City&city-B), identityQ(IdentityQ2), subsumed_by(B,C), [ quantV( set(- + (- 0)), thing&City&city-G, '`'(specific_pred(thing,nation_capital,D,G)), '`'(true), [ quantV( index(- + (- 0)), thing&geo&country-D, '`'(ti(country,D)),'`'(true), [ pred( quantV( identityQ(IdentityQ3), thing&geo&country-D, '`'(true),'`'(true), [], thing&geo&country-D), identityQ(IdentityQ4), generic_pred(thing,border,D,F), [ quantV( identityQ(IdentityQ5), thing&geo&seamass-F, '`'(named(F,baltic)),'`'(true), [], thing&geo&seamass-F)])], thing&geo&country-D)], thing&City&city-C)]))). tmp : test80_result( "What are the capitals of the countries bordering the baltic ?", qplan, answer80([Subsumed_by]) :- ^( By_SetOf8, ( setOf( [Nation_capital_Border_Country]:SetOf, ( named(Generic_Baltic,baltic) , ti(country,Nation_capital_Border_Country) , generic_pred(thing,border,Nation_capital_Border_Country,Generic_Baltic) , setOf( Specific, specific_pred(thing,nation_capital,Nation_capital_Border_Country,Specific), SetOf)), By_SetOf8) , subsumed_by(Subsumed_by,By_SetOf8)))). tmp : test80_result( "What are the capitals of the countries bordering the baltic ?", results80, [ [ [ [denmark]:[copenhagen], [east_germany]:[east_berlin], [finland]:[helsinki], [poland]:[warsaw], [soviet_union]:[moscow], [sweden]:[stockholm], [west_germany]:[bonn]]]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 10| true 1 34 34 2 71 | What are the capitals of the countries bordering the baltic ? ========================================================= tmp : test80_result( "What are the areas of the countries bordering the baltic ?", into_lexical_segs, [ w( what, [ pos(wp), root(what),loc(1),lnks(3),txt("What"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,1))), link(2,'SBAR',r('SBAR',seg(1,11))), link(3,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(pron),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(2),lnks(3), txt("are"),truecase('LOWER'), link(1,'S',r('S',seg(2,10))), link(2,'SBAR',r('SBAR',seg(1,11))), link(3,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(3),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(det),fner(o),fn('_')]), w( areas, [ pos(nns), root(area),loc(4),lnks(5),txt("areas"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(5),lnks(5),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,7))), link(2,'NP',r('NP',seg(3,7))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(adp),fner(o),fn('_')]), w( the, [ pos(dt), root(the),loc(6),lnks(6),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(6,7))), link(2,'PP',r('PP',seg(5,7))), link(3,'NP',r('NP',seg(3,7))), link(4,'S',r('S',seg(2,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(det),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(7),lnks(6), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(6,7))), link(2,'PP',r('PP',seg(5,7))), link(3,'NP',r('NP',seg(3,7))), link(4,'S',r('S',seg(2,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( bordering, [ pos(vbg), root(border),loc(8),lnks(4), txt("bordering"),truecase('LOWER'), link(1,'VP',r('VP',seg(8,10))), link(2,'S',r('S',seg(2,10))), link(3,'SBAR',r('SBAR',seg(1,11))), link(4,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(verb),fner(o),fn('border.01')]), w( the, [ pos(dt), root(the),loc(9),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(9,10))), link(2,'VP',r('VP',seg(8,10))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(det),fner(o),fn('_')]), w( baltic, [ pos(jj), root(baltic),loc(10),lnks(5),txt("baltic"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(9,10))), link(2,'VP',r('VP',seg(8,10))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(11),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,11))), link(2,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "What are the areas of the countries bordering the baltic ?", sentence80, whq( value&size&area-B, s( np(3+_46682,wh(value&size&area-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+pl, np_head(Det,det(the(pl)),[],area), [ prep_phrase( Prep, prep(of), np( 3+pl, np_head(Det3,det(the(pl)),[],country), [ reduced_rel( thing&geo&Geo-D, s( np(3+pl,wh(thing&geo&Geo-D),[]), verb(main+tv,border,active,inf,[prog],posP([])), [ arg(dirO(DirO16),np(3+sg,nameOf(Baltic,baltic,[]),[]))], []))]))]))], []))). tmp : test80_result( "What are the areas of the countries bordering the baltic ?", i_sentence, question80( [value&size&area-B], pred( quantV( identityQ(IdentityQ), value&size&area-B, '`'(true),'`'(true), [], value&size&area-B), identityQ(IdentityQ1), subsumed_by(B,C), [ quantV( set(- + (- 0)), value&size&area-G, '`'(measure_pred(thing,area,D,G)),'`'(true), [ quantV( index(- + (- 0)), thing&geo&Geo-D, '`'(ti(country,D)),'`'(true), [ pred( quantV( identityQ(IdentityQ2), thing&geo&Geo-D, '`'(true),'`'(true), [], thing&geo&Geo-D), identityQ(IdentityQ3), generic_pred(thing,border,D,F), [ quantV( identityQ(IdentityQ4), thing&geo&seamass-F, '`'(named(F,baltic)),'`'(true), [], thing&geo&seamass-F)])], thing&geo&Geo-D)], value&size&area-C)]))). tmp : test80_result( "What are the areas of the countries bordering the baltic ?", qplan, answer80([Subsumed_by]) :- ^( By_SetOf8, ( setOf( [Area_Border_Country]:SetOf, ( named(Generic_Baltic,baltic) , ti(country,Area_Border_Country) , generic_pred(thing,border,Area_Border_Country,Generic_Baltic) , setOf(Measure,measure_pred(thing,area,Area_Border_Country,Measure),SetOf)), By_SetOf8) , subsumed_by(Subsumed_by,By_SetOf8)))). tmp : test80_result( "What are the areas of the countries bordering the baltic ?", results80, [ [ [ [denmark]:[--(16.615,ksqmiles)], [east_germany]:[--(40.646,ksqmiles)], [finland]:[--(130.119,ksqmiles)], [poland]:[--(120.359,ksqmiles)], [soviet_union]:[--(8347.25,ksqmiles)], [sweden]:[--(173.665,ksqmiles)], [west_germany]:[--(95.815,ksqmiles)]]]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 2400| true 1 48 50 2 101 | What are the areas of the countries bordering the baltic ? ========================================================= tmp : test80_result( "The rhine flows to west germany ?", into_lexical_segs, [ w( the, [ pos(dt), root(the),loc(1),lnks(3),txt("The"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(dt),loc(3),txt("the"), dep_parent(det,n(area,5)),node(n(the,3)),flair, upos(det),fner(o),fn('_')]), w( rhine, [ pos(nn), root(rhine),loc(2),lnks(3),txt("rhine"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner('s-loc'),fn('_')]), w( flows, [ pos(vbz), root(flow),loc(3),lnks(3),txt("flows"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,6))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(verb),fner(o),fn('flow.01')]), w( to, [ pos(in), root(to),loc(4),lnks(4),txt("to"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,6))), link(2,'VP',r('VP',seg(3,6))), link(3,'S',r('S',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adp),fner(o),fn('_')]), w( west, [ pos(nn), root(west),loc(5),lnks(5),txt("west"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(5,6))), link(2,'PP',r('PP',seg(4,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner(o),fn('_')]), w( germany, [ root(germany), loc(6),lnks(5),txt("germany"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Germany'),link(1,'NP',r('NP',seg(5,6))), link(2,'PP',r('PP',seg(4,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),old_pos(nn), pos(nnp),flair,upos(propn),fner('s-loc'), fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'S',r('S',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),loc(16),dep_parent(punct,n(is,2)), node(n(?,16)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "The rhine flows to west germany ?", sentence80, q( s( np(3+sg,nameOf(Rhine,rhine,[]),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(to),np(3+sg,nameOf(West_germany,west_germany,[]),[]))]))). tmp : test80_result( "The rhine flows to west germany ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&River&river-D, '`'(named(D,rhine)),'`'(true), [], thing&River&river-D), identityQ(IdentityQ2), path_pred_linkage(direct(river_flows),river,D,B,C), [ quantV( identityQ(IdentityQ3), thing&geo&country-C, '`'(named(C,west_germany)),'`'(true), [], thing&geo&country-C), quantV(voidQ(VoidQ),thing&Thing-B,'`'(true),'`'(true),[],_71886-B)]))). tmp : test80_result( "The rhine flows to west germany ?", qplan, answer80([]) :- ^( Path_pred_linkageDirect, ( named(Linkage_West_germany,west_germany) , named(River_Rhine,rhine) , path_pred_linkage( direct(river_flows), river, River_Rhine,Path_pred_linkageDirect, Linkage_West_germany)))). tmp : test80_result("The rhine flows to west germany ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 21300| true 44 24 15 0 83 | The rhine flows to west germany ? ========================================================= tmp : test80_result( "The rhine flows to switzerland ?", into_lexical_segs, [ w( the, [ pos(dt), root(the),loc(1),lnks(3),txt("The"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(det),fner(o),fn('_')]), w( rhine, [ pos(nn), root(rhine),loc(2),lnks(3),txt("rhine"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner(o),fn('_')]), w( flows, [ pos(vbz), root(flow),loc(3),lnks(3),txt("flows"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,5))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('flow.01')]), w( to, [ pos(in), root(to),loc(4),lnks(4),txt("to"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'S',r('S',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(adp),fner(o),fn('_')]), w( switzerland, [ pos(nnp), root(switzerland),loc(5),lnks(5), txt("switzerland"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Switzerland'), corefed,#(2),txt(["switzerland"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(5,5))), link(2,'PP',r('PP',seg(4,5))), link(3,'VP',r('VP',seg(3,5))), link(4,'S',r('S',seg(1,6))), link(5,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(propn),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "The rhine flows to switzerland ?", sentence80, q( s( np(3+sg,nameOf(Rhine,rhine,[]),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(to),np(3+sg,nameOf(Switzerland,switzerland,[]),[]))]))). tmp : test80_result( "The rhine flows to switzerland ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&River&river-D, '`'(named(D,rhine)),'`'(true), [], thing&River&river-D), identityQ(IdentityQ2), path_pred_linkage(direct(river_flows),river,D,B,C), [ quantV( identityQ(IdentityQ3), thing&geo&country-C, '`'(named(C,switzerland)),'`'(true), [], thing&geo&country-C), quantV(voidQ(VoidQ),thing&Thing-B,'`'(true),'`'(true),[],_69394-B)]))). tmp : test80_result( "The rhine flows to switzerland ?", qplan, answer80([]) :- ^( Path_pred_linkageDirect, ( named(Linkage_Switzerland,switzerland) , named(River_Rhine,rhine) , path_pred_linkage( direct(river_flows), river, River_Rhine,Path_pred_linkageDirect, Linkage_Switzerland)))). tmp : test80_result("The rhine flows to switzerland ?",results80,[[false]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 21900| true 2 25 12 0 39 | The rhine flows to switzerland ? ========================================================= tmp : test80_result( "The rhine flows through west germany ?", into_lexical_segs, [ w( the, [ pos(dt), root(the),loc(1),lnks(3),txt("The"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(dt),loc(3),txt("the"), dep_parent(det,n(area,5)),node(n(the,3)),flair, upos(det),fner(o),fn('_')]), w( rhine, [ pos(nn), root(rhine),loc(2),lnks(3),txt("rhine"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner('s-loc'),fn('_')]), w( flows, [ pos(vbz), root(flow),loc(3),lnks(3),txt("flows"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,6))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(verb),fner(o),fn('flow.01')]), w( through, [ pos(in), root(through),loc(4),lnks(4), txt("through"),truecase('LOWER'), link(1,'PP',r('PP',seg(4,6))), link(2,'VP',r('VP',seg(3,6))), link(3,'S',r('S',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adp),fner(o),fn('_')]), w( west, [ pos(nn), root(west),loc(5),lnks(5),txt("west"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(5,6))), link(2,'PP',r('PP',seg(4,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner(o),fn('_')]), w( germany, [ root(germany), loc(6),lnks(5),txt("germany"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Germany'),link(1,'NP',r('NP',seg(5,6))), link(2,'PP',r('PP',seg(4,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),old_pos(nn), pos(nnp),flair,upos(propn),fner('s-loc'), fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'S',r('S',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),loc(15),dep_parent(punct,n(is,2)), node(n(?,15)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "The rhine flows through west germany ?", sentence80, q( s( np(3+sg,nameOf(Rhine,rhine,[]),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(through),np(3+sg,nameOf(West_germany,west_germany,[]),[]))]))). tmp : test80_result( "The rhine flows through west germany ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&River&river-D, '`'(named(D,rhine)),'`'(true), [], thing&River&river-D), identityQ(IdentityQ2), path_pred_linkage(direct(river_flows),river,D,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-C, '`'(named(C,west_germany)),'`'(true), [], thing&geo&country-C), quantV(voidQ(VoidQ),thing&Thing-B,'`'(true),'`'(true),[],_73078-B)]))). tmp : test80_result( "The rhine flows through west germany ?", qplan, answer80([]) :- ^( Linkage, ( named(West_germany,west_germany) , named(River_Rhine,rhine) , path_pred_linkage(direct(river_flows),river,River_Rhine,West_germany,Linkage)))). tmp : test80_result("The rhine flows through west germany ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 21700| true 92 31 19 1 143 | The rhine flows through west germany ? ========================================================= tmp : test80_result( "The rhine flows through switzerland ?", into_lexical_segs, [ w( the, [ pos(dt), root(the),loc(1),lnks(3),txt("The"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(det),fner(o),fn('_')]), w( rhine, [ pos(nn), root(rhine),loc(2),lnks(3),txt("rhine"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner(o),fn('_')]), w( flows, [ pos(vbz), root(flow),loc(3),lnks(3),txt("flows"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,5))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('flow.01')]), w( through, [ pos(in), root(through),loc(4),lnks(4), txt("through"),truecase('LOWER'), link(1,'PP',r('PP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'S',r('S',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(adp),fner(o),fn('_')]), w( switzerland, [ pos(nnp), root(switzerland),loc(5),lnks(5), txt("switzerland"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Switzerland'), corefed,#(2),txt(["switzerland"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(5,5))), link(2,'PP',r('PP',seg(4,5))), link(3,'VP',r('VP',seg(3,5))), link(4,'S',r('S',seg(1,6))), link(5,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(propn),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "The rhine flows through switzerland ?", sentence80, q( s( np(3+sg,nameOf(Rhine,rhine,[]),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(through),np(3+sg,nameOf(Switzerland,switzerland,[]),[]))]))). tmp : test80_result( "The rhine flows through switzerland ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&River&river-D, '`'(named(D,rhine)),'`'(true), [], thing&River&river-D), identityQ(IdentityQ2), path_pred_linkage(direct(river_flows),river,D,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-C, '`'(named(C,switzerland)),'`'(true), [], thing&geo&country-C), quantV(voidQ(VoidQ),thing&Thing-B,'`'(true),'`'(true),[],_62146-B)]))). tmp : test80_result( "The rhine flows through switzerland ?", qplan, answer80([]) :- ^( Linkage, ( named(Switzerland,switzerland) , named(River_Rhine,rhine) , path_pred_linkage(direct(river_flows),river,River_Rhine,Switzerland,Linkage)))). tmp : test80_result("The rhine flows through switzerland ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 22300| true 1 29 17 0 47 | The rhine flows through switzerland ? ========================================================= tmp : test80_result( "The rhine flows into west germany ?", into_lexical_segs, [ w( the, [ pos(dt), root(the),loc(1),lnks(3),txt("The"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(dt),loc(3),txt("the"), dep_parent(det,n(ocean,4)),node(n(the,3)),flair, upos(det),fner(o),fn('_')]), w( rhine, [ pos(nn), root(rhine),loc(2),lnks(3),txt("rhine"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner('s-loc'),fn('_')]), w( flows, [ pos(vbz), root(flow),loc(3),lnks(3),txt("flows"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,6))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(verb),fner(o),fn('flow.01')]), w( into, [ pos(in), root(into),loc(4),lnks(4),txt("into"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,6))), link(2,'VP',r('VP',seg(3,6))), link(3,'S',r('S',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adp),fner(o),fn('_')]), w( west, [ pos(nn), root(west),loc(5),lnks(5),txt("west"), ner('LOCATION'),truecase('INIT_UPPER'), entitylink(west),link(1,'NP',r('NP',seg(5,6))), link(2,'PP',r('PP',seg(4,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner(o),fn('_')]), w( germany, [ root(germany), loc(6),lnks(5),txt("germany"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Germany'),link(1,'NP',r('NP',seg(5,6))), link(2,'PP',r('PP',seg(4,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),old_pos(nn), pos(nnp),flair,upos(propn),fner('s-loc'), fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'S',r('S',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),loc(14),dep_parent(punct,n(is,2)), node(n(?,14)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "The rhine flows into west germany ?", sentence80, q( s( np(3+sg,nameOf(Rhine,rhine,[]),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(into),np(3+sg,nameOf(West_germany,west_germany,[]),[]))]))). tmp : test80_result( "The rhine flows into west germany ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&River&river-D, '`'(named(D,rhine)),'`'(true), [], thing&River&river-D), identityQ(IdentityQ2), path_pred_linkage(direct(river_flows),river,D,B,C), [ quantV( identityQ(IdentityQ3), thing&geo&country-C, '`'(named(C,west_germany)),'`'(true), [], thing&geo&country-C), quantV(voidQ(VoidQ),thing&Thing-B,'`'(true),'`'(true),[],_60446-B)]))). tmp : test80_result( "The rhine flows into west germany ?", qplan, answer80([]) :- ^( Path_pred_linkageDirect, ( named(Linkage_West_germany,west_germany) , named(River_Rhine,rhine) , path_pred_linkage( direct(river_flows), river, River_Rhine,Path_pred_linkageDirect, Linkage_West_germany)))). tmp : test80_result("The rhine flows into west germany ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 21200| true 70 26 17 0 113 | The rhine flows into west germany ? ========================================================= tmp : test80_result( "The rhine flows into switzerland ?", into_lexical_segs, [ w( the, [ pos(dt), root(the),loc(1),lnks(3),txt("The"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(det),fner(o),fn('_')]), w( rhine, [ pos(nn), root(rhine),loc(2),lnks(3),txt("rhine"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner(o),fn('_')]), w( flows, [ pos(vbz), root(flow),loc(3),lnks(3),txt("flows"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,5))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('flow.01')]), w( into, [ pos(in), root(into),loc(4),lnks(4),txt("into"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'S',r('S',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(adp),fner(o),fn('_')]), w( switzerland, [ pos(nnp), root(switzerland),loc(5),lnks(5), txt("switzerland"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Switzerland'), corefed,#(2),txt(["switzerland"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(5,5))), link(2,'PP',r('PP',seg(4,5))), link(3,'VP',r('VP',seg(3,5))), link(4,'S',r('S',seg(1,6))), link(5,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(propn),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "The rhine flows into switzerland ?", sentence80, q( s( np(3+sg,nameOf(Rhine,rhine,[]),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(into),np(3+sg,nameOf(Switzerland,switzerland,[]),[]))]))). tmp : test80_result( "The rhine flows into switzerland ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&River&river-D, '`'(named(D,rhine)),'`'(true), [], thing&River&river-D), identityQ(IdentityQ2), path_pred_linkage(direct(river_flows),river,D,B,C), [ quantV( identityQ(IdentityQ3), thing&geo&country-C, '`'(named(C,switzerland)),'`'(true), [], thing&geo&country-C), quantV(voidQ(VoidQ),thing&Thing-B,'`'(true),'`'(true),[],_59772-B)]))). tmp : test80_result( "The rhine flows into switzerland ?", qplan, answer80([]) :- ^( Path_pred_linkageDirect, ( named(Linkage_Switzerland,switzerland) , named(River_Rhine,rhine) , path_pred_linkage( direct(river_flows), river, River_Rhine,Path_pred_linkageDirect, Linkage_Switzerland)))). tmp : test80_result("The rhine flows into switzerland ?",results80,[[false]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 21800| true 1 25 16 0 42 | The rhine flows into switzerland ? ========================================================= tmp : test80_result( "The rhine flows in west germany ?", into_lexical_segs, [ w( the, [ pos(dt), root(the),loc(1),lnks(3),txt("The"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(dt),loc(3),txt("the"), dep_parent(det,n(capital,4)),node(n(the,3)),flair, upos(det),fner(o),fn('_')]), w( rhine, [ pos(nn), root(rhine),loc(2),lnks(3),txt("rhine"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner('s-loc'),fn('_')]), w( flows, [ pos(vbz), root(flow),loc(3),lnks(3),txt("flows"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,6))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(verb),fner(o),fn('flow.01')]), w( in, [ pos(in), root(in),loc(4),lnks(4),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,6))), link(2,'VP',r('VP',seg(3,6))), link(3,'S',r('S',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adp),fner(o),fn('_')]), w( west, [ pos(nn), root(west),loc(5),lnks(5),txt("west"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(5,6))), link(2,'PP',r('PP',seg(4,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner(o),fn('_')]), w( germany, [ root(germany), loc(6),lnks(5),txt("germany"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Germany'),link(1,'NP',r('NP',seg(5,6))), link(2,'PP',r('PP',seg(4,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),old_pos(nn), pos(nnp),flair,upos(propn),fner('s-loc'), fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'S',r('S',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),loc(8),dep_parent(punct,n(is,2)), node(n(?,8)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "The rhine flows in west germany ?", sentence80, q( s( np(3+sg,nameOf(Rhine,rhine,[]),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(in),np(3+sg,nameOf(West_germany,west_germany,[]),[]))]))). tmp : test80_result( "The rhine flows in west germany ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&River&river-D, '`'(named(D,rhine)),'`'(true), [], thing&River&river-D), identityQ(IdentityQ2), path_pred_linkage(direct(river_flows),river,D,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-C, '`'(named(C,west_germany)),'`'(true), [], thing&geo&country-C), quantV(voidQ(VoidQ),thing&Thing-B,'`'(true),'`'(true),[],_64060-B)]))). tmp : test80_result( "The rhine flows in west germany ?", qplan, answer80([]) :- ^( Linkage, ( named(West_germany,west_germany) , named(River_Rhine,rhine) , path_pred_linkage(direct(river_flows),river,River_Rhine,West_germany,Linkage)))). tmp : test80_result("The rhine flows in west germany ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 21400| true 86 27 15 0 128 | The rhine flows in west germany ? ========================================================= tmp : test80_result( "The rhine flows in switzerland ?", into_lexical_segs, [ w( the, [ pos(dt), root(the),loc(1),lnks(3),txt("The"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(det),fner(o),fn('_')]), w( rhine, [ pos(nn), root(rhine),loc(2),lnks(3),txt("rhine"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner(o),fn('_')]), w( flows, [ pos(vbz), root(flow),loc(3),lnks(3),txt("flows"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,5))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('flow.01')]), w( in, [ pos(in), root(in),loc(4),lnks(4),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'S',r('S',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(adp),fner(o),fn('_')]), w( switzerland, [ pos(nnp), root(switzerland),loc(5),lnks(5), txt("switzerland"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Switzerland'), corefed,#(2),txt(["switzerland"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(5,5))), link(2,'PP',r('PP',seg(4,5))), link(3,'VP',r('VP',seg(3,5))), link(4,'S',r('S',seg(1,6))), link(5,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(propn),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "The rhine flows in switzerland ?", sentence80, q( s( np(3+sg,nameOf(Rhine,rhine,[]),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(in),np(3+sg,nameOf(Switzerland,switzerland,[]),[]))]))). tmp : test80_result( "The rhine flows in switzerland ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&River&river-D, '`'(named(D,rhine)),'`'(true), [], thing&River&river-D), identityQ(IdentityQ2), path_pred_linkage(direct(river_flows),river,D,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-C, '`'(named(C,switzerland)),'`'(true), [], thing&geo&country-C), quantV(voidQ(VoidQ),thing&Thing-B,'`'(true),'`'(true),[],_54216-B)]))). tmp : test80_result( "The rhine flows in switzerland ?", qplan, answer80([]) :- ^( Linkage, ( named(Switzerland,switzerland) , named(River_Rhine,rhine) , path_pred_linkage(direct(river_flows),river,River_Rhine,Switzerland,Linkage)))). tmp : test80_result("The rhine flows in switzerland ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 22000| true 1 28 14 0 43 | The rhine flows in switzerland ? ========================================================= tmp : test80_result( "The rhine flows from west germany ?", into_lexical_segs, [ w( the, [ pos(dt), root(the),loc(1),lnks(3),txt("The"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(dt),loc(3),txt("the"), dep_parent(det,n(area,5)),node(n(the,3)),flair, upos(det),fner(o),fn('_')]), w( rhine, [ pos(nn), root(rhine),loc(2),lnks(3),txt("rhine"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner('s-loc'),fn('_')]), w( flows, [ pos(vbz), root(flow),loc(3),lnks(3),txt("flows"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,6))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(verb),fner(o),fn('flow.01')]), w( from, [ pos(in), root(from),loc(4),lnks(4),txt("from"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,6))), link(2,'VP',r('VP',seg(3,6))), link(3,'S',r('S',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adp),fner(o),fn('_')]), w( west, [ pos(nn), root(west),loc(5),lnks(5),txt("west"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(5,6))), link(2,'PP',r('PP',seg(4,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner(o),fn('_')]), w( germany, [ root(germany), loc(6),lnks(5),txt("germany"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Germany'),link(1,'NP',r('NP',seg(5,6))), link(2,'PP',r('PP',seg(4,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),old_pos(nn), pos(nnp),flair,upos(propn),fner('s-loc'), fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'S',r('S',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),loc(12),dep_parent(punct,n(is,2)), node(n(?,12)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "The rhine flows from west germany ?", sentence80, q( s( np(3+sg,nameOf(Rhine,rhine,[]),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(from),np(3+sg,nameOf(West_germany,west_germany,[]),[]))]))). tmp : test80_result( "The rhine flows from west germany ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&River&river-D, '`'(named(D,rhine)),'`'(true), [], thing&River&river-D), identityQ(IdentityQ2), path_pred_linkage(direct(river_flows),river,D,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-C, '`'(named(C,west_germany)),'`'(true), [], thing&geo&country-C), quantV(voidQ(VoidQ),thing&Thing-B,'`'(true),'`'(true),[],_49360-B)]))). tmp : test80_result( "The rhine flows from west germany ?", qplan, answer80([]) :- ^( Linkage, ( named(West_germany,west_germany) , named(River_Rhine,rhine) , path_pred_linkage(direct(river_flows),river,River_Rhine,West_germany,Linkage)))). tmp : test80_result("The rhine flows from west germany ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 21500| true 81 24 13 0 118 | The rhine flows from west germany ? ========================================================= tmp : test80_result( "The rhine flows from switzerland ?", into_lexical_segs, [ w( the, [ pos(dt), root(the),loc(1),lnks(3),txt("The"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(det),fner(o),fn('_')]), w( rhine, [ pos(nn), root(rhine),loc(2),lnks(3),txt("rhine"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner(o),fn('_')]), w( flows, [ pos(vbz), root(flow),loc(3),lnks(3),txt("flows"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,5))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('flow.01')]), w( from, [ pos(in), root(from),loc(4),lnks(4),txt("from"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'S',r('S',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(adp),fner(o),fn('_')]), w( switzerland, [ pos(nnp), root(switzerland),loc(5),lnks(5), txt("switzerland"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Switzerland'), corefed,#(1),txt(["switzerland"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(5,5))), link(2,'PP',r('PP',seg(4,5))), link(3,'VP',r('VP',seg(3,5))), link(4,'S',r('S',seg(1,6))), link(5,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(propn),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "The rhine flows from switzerland ?", sentence80, q( s( np(3+sg,nameOf(Rhine,rhine,[]),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(from),np(3+sg,nameOf(Switzerland,switzerland,[]),[]))]))). tmp : test80_result( "The rhine flows from switzerland ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&River&river-D, '`'(named(D,rhine)),'`'(true), [], thing&River&river-D), identityQ(IdentityQ2), path_pred_linkage(direct(river_flows),river,D,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-C, '`'(named(C,switzerland)),'`'(true), [], thing&geo&country-C), quantV(voidQ(VoidQ),thing&Thing-B,'`'(true),'`'(true),[],_40044-B)]))). tmp : test80_result( "The rhine flows from switzerland ?", qplan, answer80([]) :- ^( Linkage, ( named(Switzerland,switzerland) , named(River_Rhine,rhine) , path_pred_linkage(direct(river_flows),river,River_Rhine,Switzerland,Linkage)))). tmp : test80_result("The rhine flows from switzerland ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 22100| true 1 30 16 0 47 | The rhine flows from switzerland ? ========================================================= tmp : test80_result( "The rhine flows at west germany ?", into_lexical_segs, [ w( the, [ pos(dt), root(the),loc(1),lnks(3),txt("The"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(det),fner(o),fn('_')]), w( rhine, [ pos(nn), root(rhine),loc(2),lnks(3),txt("rhine"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner('s-loc'),fn('_')]), w( flows, [ pos(vbz), root(flow),loc(3),lnks(3),txt("flows"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,6))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(verb),fner(o),fn('flow.01')]), w( at, [ pos(in), root(at),loc(4),lnks(4),txt("at"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,6))), link(2,'VP',r('VP',seg(3,6))), link(3,'S',r('S',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adp),fner(o),fn('_')]), w( west, [ pos(nn), root(west),loc(5),lnks(5),txt("west"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(5,6))), link(2,'PP',r('PP',seg(4,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner(o),fn('_')]), w( germany, [ root(germany), loc(6),lnks(5),txt("germany"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Germany'),link(1,'NP',r('NP',seg(5,6))), link(2,'PP',r('PP',seg(4,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),old_pos(nn), pos(nnp),flair,upos(propn),fner('s-loc'), fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'S',r('S',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),loc(9),dep_parent(punct,n(is,2)), node(n(?,9)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "The rhine flows at west germany ?", sentence80, q( s( np(3+sg,nameOf(Rhine,rhine,[]),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(at),np(3+sg,nameOf(West_germany,west_germany,[]),[]))]))). tmp : test80_result( "The rhine flows at west germany ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&River&river-D, '`'(named(D,rhine)),'`'(true), [], thing&River&river-D), identityQ(IdentityQ2), path_pred_linkage(direct(river_flows),river,D,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-C, '`'(named(C,west_germany)),'`'(true), [], thing&geo&country-C), quantV(voidQ(VoidQ),thing&Thing-B,'`'(true),'`'(true),[],_34992-B)]))). tmp : test80_result( "The rhine flows at west germany ?", qplan, answer80([]) :- ^( Linkage, ( named(West_germany,west_germany) , named(River_Rhine,rhine) , path_pred_linkage(direct(river_flows),river,River_Rhine,West_germany,Linkage)))). tmp : test80_result("The rhine flows at west germany ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 21600| true 72 39 46 0 157 | The rhine flows at west germany ? ========================================================= tmp : test80_result( "The rhine flows at switzerland ?", into_lexical_segs, [ w( the, [ pos(dt), root(the),loc(1),lnks(3),txt("The"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(det),fner(o),fn('_')]), w( rhine, [ pos(nn), root(rhine),loc(2),lnks(3),txt("rhine"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,2))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner(o),fn('_')]), w( flows, [ pos(vbz), root(flow),loc(3),lnks(3),txt("flows"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,5))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('flow.01')]), w( at, [ pos(in), root(at),loc(4),lnks(4),txt("at"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'S',r('S',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(adp),fner(o),fn('_')]), w( switzerland, [ pos(nnp), root(switzerland),loc(5),lnks(5), txt("switzerland"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Switzerland'), corefed,#(2),txt(["switzerland"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(5,5))), link(2,'PP',r('PP',seg(4,5))), link(3,'VP',r('VP',seg(3,5))), link(4,'S',r('S',seg(1,6))), link(5,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "The rhine flows at switzerland ?", sentence80, q( s( np(3+sg,nameOf(Rhine,rhine,[]),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(at),np(3+sg,nameOf(Switzerland,switzerland,[]),[]))]))). tmp : test80_result( "The rhine flows at switzerland ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&River&river-D, '`'(named(D,rhine)),'`'(true), [], thing&River&river-D), identityQ(IdentityQ2), path_pred_linkage(direct(river_flows),river,D,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-C, '`'(named(C,switzerland)),'`'(true), [], thing&geo&country-C), quantV(voidQ(VoidQ),thing&Thing-B,'`'(true),'`'(true),[],_24542-B)]))). tmp : test80_result( "The rhine flows at switzerland ?", qplan, answer80([]) :- ^( Linkage, ( named(Switzerland,switzerland) , named(River_Rhine,rhine) , path_pred_linkage(direct(river_flows),river,River_Rhine,Switzerland,Linkage)))). tmp : test80_result("The rhine flows at switzerland ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 22200| true 1 25 13 0 39 | The rhine flows at switzerland ? ========================================================= tmp : test80_result( "Is there some ocean that does not border any country ?", into_lexical_segs, [ w( is, [ pos(vbz), root(be),loc(1),lnks(2),txt("Is"), truecase('INIT_UPPER'),link(1,'S',r('S',seg(1,11))), link(2,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(vbz),loc(2),tense(present),txt("is"), dep_child(attr,n(what,1)),dep_child(root,n(is,2)), dep_child(nsubj,n(river,4)),dep_child(punct,n(?,8)), dep_parent(root,n(is,2)),node(n(is,2)),flair, upos(verb),fner(o),fn('be.02')]), w( there, [ pos(rb), root(there),loc(2),lnks(3),txt("there"), truecase('LOWER'),link(1,'NP',r('NP',seg(2,2))), link(2,'S',r('S',seg(1,11))), link(3,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(pron),fner(o),fn('_')]), w( some, [ pos(dt), root(some),loc(3),lnks(4),txt("some"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,10))), link(3,'S',r('S',seg(1,11))), link(4,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(det),fner(o),fn('_')]), w( ocean, [ pos(nn), root(ocean),loc(4),lnks(4),txt("ocean"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'NP',r('NP',seg(3,10))), link(3,'S',r('S',seg(1,11))), link(4,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( that, [ pos(wdt), root(that),loc(5),lnks(5),txt("that"), truecase('LOWER'),link(1,'NP',r('NP',seg(5,5))), link(2,'SBAR',r('SBAR',seg(5,10))), link(3,'NP',r('NP',seg(3,10))), link(4,'S',r('S',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(wdt),dep_parent(nsubj,n(is,6)), node(n(that,5)),flair,upos(pron),fner(o), fn('_')]), w( does, [ pos(vbz), root(do),loc(6),lnks(6),txt("does"), truecase('LOWER'),link(1,'VP',r('VP',seg(6,10))), link(2,'S',r('S',seg(6,10))), link(3,'SBAR',r('SBAR',seg(5,10))), link(4,'NP',r('NP',seg(3,10))), link(5,'S',r('S',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(verb),fner(o),fn('do.01')]), w( not, [ pos(rb), root(not),loc(7),lnks(6),txt("not"), truecase('LOWER'),link(1,'VP',r('VP',seg(6,10))), link(2,'S',r('S',seg(6,10))), link(3,'SBAR',r('SBAR',seg(5,10))), link(4,'NP',r('NP',seg(3,10))), link(5,'S',r('S',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(adv),fner(o),fn('_')]), w( border, [ pos(vb), root(border),loc(8),lnks(7),txt("border"), truecase('LOWER'),link(1,'VP',r('VP',seg(8,10))), link(2,'VP',r('VP',seg(6,10))), link(3,'S',r('S',seg(6,10))), link(4,'SBAR',r('SBAR',seg(5,10))), link(5,'NP',r('NP',seg(3,10))), link(6,'S',r('S',seg(1,11))), link(7,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(verb),fner(o),fn('occupy.01')]), w( any, [ pos(dt), root(any),loc(9),lnks(8),txt("any"), truecase('LOWER'),link(1,'NP',r('NP',seg(9,10))), link(2,'VP',r('VP',seg(8,10))), link(3,'VP',r('VP',seg(6,10))), link(4,'S',r('S',seg(6,10))), link(5,'SBAR',r('SBAR',seg(5,10))), link(6,'NP',r('NP',seg(3,10))), link(7,'S',r('S',seg(1,11))), link(8,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(det),fner(o),fn('_')]), w( country, [ pos(nn), root(country),loc(10),lnks(8), txt("country"),truecase('LOWER'), link(1,'NP',r('NP',seg(9,10))), link(2,'VP',r('VP',seg(8,10))), link(3,'VP',r('VP',seg(6,10))), link(4,'S',r('S',seg(6,10))), link(5,'SBAR',r('SBAR',seg(5,10))), link(6,'NP',r('NP',seg(3,10))), link(7,'S',r('S',seg(1,11))), link(8,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(11),lnks(2),txt("?"), link(1,'S',r('S',seg(1,11))), link(2,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos('.'),loc(8),dep_parent(punct,n(is,2)), node(n(?,8)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Is there some ocean that does not border any country ?", sentence80, q( s( there, verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(Det,det(some),[],ocean), [ rel( thing&_85330&_85332-B, s( np(3+sg,wh(thing&_121636&_121638-B),[]), verb(main+tv,border,active,pres+fin,[],negP([])), [ arg(dirO(DirO11),np(3+sg,np_head(Det3,det(any),[],country),[]))], []))]))], []))). tmp : test80_result( "Is there some ocean that does not border any country ?", i_sentence, question80( [], pred( quantV(voidQ(VoidQ),_27776-D,'`'(true),'`'(true),[],thing&_27794&_27796-D), identityQ(IdentityQ), subsumed_by(D,B), [ quantV( det(some), thing&_67878&_67880-B, '`'(ti(ocean,B)), ( pred( quantV( identityQ(IdentityQ3), thing&_94650&_94652-B, '`'(true),'`'(true), [], thing&_87766&_87768-B), notP,generic_pred(thing,border,B,C), [ quantV( det(any), thing&_120380&_120382-C, '`'(ti(country,C)),'`'(true), [], thing&_113498&_113500-C)]) & '`'(true)), [], thing&_60874&_60876-B)]))). tmp : test80_result( "Is there some ocean that does not border any country ?", qplan, answer80([]) :- ^( By_Border_Ocean, ( ti(ocean,By_Border_Ocean) , \+( ^( Generic_Country, ( ti(country,Generic_Country) , generic_pred(thing,border,By_Border_Ocean,Generic_Country)))) , Subsumed_by^subsumed_by(Subsumed_by,By_Border_Ocean)))). tmp : test80_result("Is there some ocean that does not border any country ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 1600| true 3 65 77 1 146 | Is there some ocean that does not border any country ? ========================================================= tmp : test80_result( "Is there more than one country in each continent ?", into_lexical_segs, [ w( is, [ pos(vbz), root(be),loc(1),lnks(2),txt("Is"), truecase('INIT_UPPER'),link(1,'S',r('S',seg(1,10))), link(2,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(verb),fner(o),fn('be.02')]), w( there, [ pos(rb), root(there),loc(2),lnks(3),txt("there"), truecase('LOWER'),link(1,'NP',r('NP',seg(2,2))), link(2,'S',r('S',seg(1,10))), link(3,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(pron),fner(o),fn('_')]), w( more, [ pos(jjr), root(more),loc(3),lnks(5),txt("more"), truecase('LOWER'),link(1,'QP',r('QP',seg(3,5))), link(2,'NP',r('NP',seg(3,6))), link(3,'NP',r('NP',seg(3,9))), link(4,'S',r('S',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(adj),fner(o),fn('_')]), w( than, [ pos(in), root(than),loc(4),lnks(5),txt("than"), truecase('LOWER'),link(1,'QP',r('QP',seg(3,5))), link(2,'NP',r('NP',seg(3,6))), link(3,'NP',r('NP',seg(3,9))), link(4,'S',r('S',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(adp),fner(o),fn('_')]), w( one, [ pos(cd), root(one),loc(5),lnks(5),txt("one"), ner('NUMBER'),normalizedNER('>1.0'), truecase('LOWER'),corefed,#(1), txt(["one"]),type('PROPER'), numb('SINGULAR'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'QP',r('QP',seg(3,5))), link(2,'NP',r('NP',seg(3,6))), link(3,'NP',r('NP',seg(3,9))), link(4,'S',r('S',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(num),fner(o),fn('_')]), w( country, [ pos(nn), root(country),loc(6),lnks(4), txt("country"),truecase('LOWER'), link(1,'NP',r('NP',seg(3,6))), link(2,'NP',r('NP',seg(3,9))), link(3,'S',r('S',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(noun),fner(o),fn('_')]), w( in, [ pos(in), root(in),loc(7),lnks(4),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(7,9))), link(2,'NP',r('NP',seg(3,9))), link(3,'S',r('S',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(adp),fner(o),fn('_')]), w( each, [ pos(dt), root(each),loc(8),lnks(5),txt("each"), truecase('LOWER'),link(1,'NP',r('NP',seg(8,9))), link(2,'PP',r('PP',seg(7,9))), link(3,'NP',r('NP',seg(3,9))), link(4,'S',r('S',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(det),fner(o),fn('_')]), w( continent, [ pos(nn), root(continent),loc(9),lnks(5), txt("continent"),truecase('LOWER'), link(1,'NP',r('NP',seg(8,9))), link(2,'PP',r('PP',seg(7,9))), link(3,'NP',r('NP',seg(3,9))), link(4,'S',r('S',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(10),lnks(2),txt("?"), link(1,'S',r('S',seg(1,10))), link(2,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Is there more than one country in each continent ?", sentence80, q( s( there, verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(QuantV,quantV(more,1),[],country), [ prep_phrase(Prep,prep(in),np(3+sg,np_head(Det,det(each),[],continent),[]))]))], []))). tmp : test80_result( "Is there more than one country in each continent ?", i_sentence, question80( [], pred( quantV(voidQ(VoidQ),_68876-E,'`'(true),'`'(true),[],thing&Thing-E), identityQ(IdentityQ), subsumed_by(E,D), [ quantV( quantV(more,1), thing&Thing-D, '`'(ti(country,D)),'`'(true), [ ( quantV( det(each), thing&geo&continent-B, '`'(ti(continent,B)),'`'(true), [], thing&geo&continent-B) & '`'(trans_pred(thing,contain,B,D)))], thing&Thing-D)]))). tmp : test80_result( "Is there more than one country in each continent ?", qplan, answer80([]) :- \+( ^( Contain_Continent, ( ti(continent,Contain_Continent) , \+( ^( Numberof, ( numberof( By_Country, ( ti(country,By_Country) , trans_pred(thing,contain,Contain_Continent,By_Country) , Subsumed_by^subsumed_by(Subsumed_by,By_Country)), Numberof) , Numberof>1))))))). tmp : test80_result("Is there more than one country in each continent ?",results80,[[false]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 1500| true 2 1 -3 1 1 | Is there more than one country in each continent ? ========================================================= tmp : test80_result( "Is the united kingdom in europe ?", into_lexical_segs, [ w( is, [ pos(vbz), root(be),loc(1),lnks(2),txt("Is"), truecase('LOWER'),link(1,'S',r('S',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(vbz),loc(2),tense(present),txt("is"), dep_child(attr,n(what,1)),dep_child(root,n(is,2)), dep_child(nsubj,n(river,4)),dep_child(punct,n(?,5)), dep_parent(root,n(is,2)),node(n(is,2)),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(2),lnks(3),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(2,4))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(det),fner(o),fn('_')]), w( united, [ pos(jj), root(united),loc(3),lnks(3),txt("united"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('United_Kingdom'), link(1,'NP',r('NP',seg(2,4))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adj),fner('b-loc'),fn('_')]), w( kingdom, [ pos(nn), root(kingdom),loc(4),lnks(3), txt("kingdom"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('United_Kingdom'), link(1,'NP',r('NP',seg(2,4))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner('e-loc'),fn('_')]), w( in, [ pos(in), root(in),loc(5),lnks(3),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,6))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adp),fner(o),fn('_')]), w( europe, [ pos(nn), root(europe),loc(6),lnks(4),txt("europe"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(6,6))), link(2,'PP',r('PP',seg(5,6))), link(3,'S',r('S',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'S',r('S',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),loc(5),dep_parent(punct,n(is,2)), node(n(?,5)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Is the united kingdom in europe ?", sentence80, q( s( np(3+sg,nameOf(United_kingdom,united_kingdom,[]),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg(arg_pred(Arg7),prep_phrase(Prep,prep(in),np(3+sg,nameOf(Europe,europe,[]),[])))], []))). tmp : test80_result( "Is the united kingdom in europe ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&geo&country-C, '`'(named(C,united_kingdom)),'`'(true), [], thing&geo&country-C), identityQ(IdentityQ2),true, [ '`'(trans_pred(thing,contain,B,C)), quantV( identityQ(IdentityQ3), thing&geo&continent-B, '`'(named(B,europe)),'`'(true), [], thing&geo&continent-B)]))). tmp : test80_result( "Is the united kingdom in europe ?", qplan, answer80([]) :- named(Contain_Europe,europe) , named(United_kingdom,united_kingdom) , trans_pred(thing,contain,Contain_Europe,United_kingdom)). tmp : test80_result("Is the united kingdom in europe ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence _626| true 0 18 24 0 42 | Is the united kingdom in europe ? ========================================================= tmp : test80_result( "Is the rhine in switzerland ?", into_lexical_segs, [ w( is, [ pos(vbz), root(be),loc(1),lnks(2),txt("Is"), truecase('LOWER'),link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(2),lnks(3),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(2,3))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(det),fner(o),fn('_')]), w( rhine, [ pos(nn), root(rhine),loc(3),lnks(3),txt("rhine"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(2,3))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner(o),fn('_')]), w( in, [ pos(in), root(in),loc(4),lnks(3),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,5))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(adp),fner(o),fn('_')]), w( switzerland, [ pos(nnp), root(switzerland),loc(5),lnks(4), txt("switzerland"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Switzerland'), corefed,#(2),txt(["switzerland"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(5,5))), link(2,'PP',r('PP',seg(4,5))), link(3,'S',r('S',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Is the rhine in switzerland ?", sentence80, q( s( np(3+sg,nameOf(Rhine,rhine,[]),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( arg_pred(Arg7), prep_phrase(Prep,prep(in),np(3+sg,nameOf(Switzerland,switzerland,[]),[])))], []))). tmp : test80_result( "Is the rhine in switzerland ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&River&river-C, '`'(named(C,rhine)),'`'(true), [], thing&River&river-C), identityQ(IdentityQ2),true, [ '`'(trans_pred(thing,contain,B,C)), quantV( identityQ(IdentityQ3), thing&geo&country-B, '`'(named(B,switzerland)),'`'(true), [], thing&geo&country-B)]))). tmp : test80_result( "Is the rhine in switzerland ?", qplan, answer80([]) :- named(Contain_Switzerland,switzerland) , named(Rhine,rhine) , trans_pred(thing,contain,Contain_Switzerland,Rhine)). tmp : test80_result("Is the rhine in switzerland ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence _626| true 1 5 12 0 18 | Is the rhine in switzerland ? ========================================================= tmp : test80_result( "Is the population of china greater than 200 million ?", into_lexical_segs, [ w( is, [ pos(vbz), root(be),loc(1),lnks(2),txt("Is"), truecase('INIT_UPPER'),link(1,'S',r('S',seg(1,10))), link(2,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(2),lnks(4),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(2,3))), link(2,'NP',r('NP',seg(2,5))), link(3,'S',r('S',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(det),fner(o),fn('_')]), w( population, [ pos(nn), root(population),loc(3),lnks(4), txt("population"),truecase('LOWER'), link(1,'NP',r('NP',seg(2,3))), link(2,'NP',r('NP',seg(2,5))), link(3,'S',r('S',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(4),lnks(4),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,5))), link(2,'NP',r('NP',seg(2,5))), link(3,'S',r('S',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(adp),fner(o),fn('_')]), w( china, [ pos(nn), root(china),loc(5),lnks(5),txt("china"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Porcelain'),link(1,'NP',r('NP',seg(5,5))), link(2,'PP',r('PP',seg(4,5))), link(3,'NP',r('NP',seg(2,5))), link(4,'S',r('S',seg(1,10))), link(5,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(noun),fner('s-loc'),fn('_')]), w( greater, [ pos(jjr), root(greater),loc(6),lnks(4), txt("greater"),truecase('LOWER'), link(1,'ADJP',r('ADJP',seg(6,6))), link(2,'ADJP',r('ADJP',seg(6,9))), link(3,'S',r('S',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(adj),fner(o),fn('_')]), w( than, [ pos(in), root(than),loc(7),lnks(4),txt("than"), truecase('LOWER'),link(1,'PP',r('PP',seg(7,9))), link(2,'ADJP',r('ADJP',seg(6,9))), link(3,'S',r('S',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(adp),fner(o),fn('_')]), w( '200', [ pos(cd), root('200'),loc(8),lnks(6),txt("200"), ner('NUMBER'),normalizedNER('>2.0E8'), entitylink('Google_search'), link(1,'QP',r('QP',seg(8,9))), link(2,'NP',r('NP',seg(8,9))), link(3,'PP',r('PP',seg(7,9))), link(4,'ADJP',r('ADJP',seg(6,9))), link(5,'S',r('S',seg(1,10))), link(6,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(num),fner(o),fn('_')]), w( million, [ pos(cd), root(million),loc(9),lnks(6), txt("million"),ner('NUMBER'), normalizedNER('>2.0E8'),truecase('LOWER'), entitylink('Google_search'), link(1,'QP',r('QP',seg(8,9))), link(2,'NP',r('NP',seg(8,9))), link(3,'PP',r('PP',seg(7,9))), link(4,'ADJP',r('ADJP',seg(6,9))), link(5,'S',r('S',seg(1,10))), link(6,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(num),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(10),lnks(2),txt("?"), link(1,'S',r('S',seg(1,10))), link(2,'CORENLP',r('CORENLP',seg(1,10))),spacy, spos('.'),loc(7),dep_parent(punct,n(are,3)), node(n(?,7)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Is the population of china greater than 200 million ?", sentence80, q( s( np( 3+sg, np_head(Det,det(the(sg)),[],population), [ prep_phrase(Prep,prep(of),np(3+sg,nameOf(China,china,[]),[])), reduced_rel( value&units&population-B, s( np(3+sg,wh(value&units&population-B),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg(arg_pred(Arg14),comp(more,adj(great),np(3+sg,nameOf(Num,num(200),[]),[])))], []))]), verb(aux+be(Be15),be(Be15),active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+_64870,np_head(Generic,generic(Generic17),[],million),[]))], []))). tmp : test80_result( "Is the population of china greater than 200 million ?", i_sentence, question80( [], pred( quantV( det(the(sg)), value&units&population-B, '`'(count_pred(thing,population,F,B)), '`'(true), [ quantV( identityQ(IdentityQ), thing&geo&country-F, '`'(named(F,china)),'`'(true), [], thing&geo&country-F), pred( quantV( identityQ(IdentityQ2), value&units&population-B, '`'(true),'`'(true), [], value&units&population-B), identityQ(IdentityQ3),true, [ ( quantV( voidQ(VoidQ), value&units&population-E, '`'(exceeds(B,E)),'`'(true), [], _86248-E) & quantV( voidQ(VoidQ5), value&units&population-D, '`'(exceeds(C,D)),'`'(true), [], _79026-D) & '`'(exceeds(E,D))), quantV( identityQ(IdentityQ6), value&units&population-C, '`'(named(C,num(200))),'`'(true), [], value&units&population-C)])], value&units&population-B), identityQ(IdentityQ7), subsumed_by(B,G), [ quantV( voidQ(VoidQ8), value&units&population-G, '`'(subsumedBy(G,million)),'`'(true), [], value&units&population-G)]))). tmp : test80_result( "Is the population of china greater than 200 million ?", qplan, answer80([]) :- ^( Count_Exceeds, ( named(Num,num(200)) , ^( Exceeds6, ( exceeds(Num,Exceeds6) , ^( Exceeds4, ( exceeds(Count_Exceeds,Exceeds4) , named(Population_China,china) , count_pred(thing,population,Population_China,Count_Exceeds) , exceeds(Exceeds4,Exceeds6))))) , ^( By_Million, subsumedBy(By_Million,million),subsumed_by(Count_Exceeds,By_Million))))). tmp : test80_result("Is the population of china greater than 200 million ?",results80,[[false]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence _626| true 3 30 30 0 63 | Is the population of china greater than 200 million ? ========================================================= tmp : test80_result( "Is the population of china 840 million ?", into_lexical_segs, [ w( is, [ pos(vbz), root(be),loc(1),lnks(2),txt("Is"), truecase('INIT_UPPER'),link(1,'FRAG',r('FRAG',seg(1,8))), link(2,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(2),lnks(4),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(2,3))), link(2,'NP',r('NP',seg(2,7))), link(3,'FRAG',r('FRAG',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(det),fner(o),fn('_')]), w( population, [ pos(nn), root(population),loc(3),lnks(4), txt("population"),truecase('LOWER'), link(1,'NP',r('NP',seg(2,3))), link(2,'NP',r('NP',seg(2,7))), link(3,'FRAG',r('FRAG',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(4),lnks(4),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,7))), link(2,'NP',r('NP',seg(2,7))), link(3,'FRAG',r('FRAG',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adp),fner(o),fn('_')]), w( china, [ root(china), loc(5),lnks(5),txt("china"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Porcelain'), link(1,'NP',r('NP',seg(5,7))), link(2,'PP',r('PP',seg(4,7))), link(3,'NP',r('NP',seg(2,7))), link(4,'FRAG',r('FRAG',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),old_pos(nn), pos(nnp),flair,upos(propn),fner('s-loc'), fn('_')]), w( '840', [ pos(cd), root('840'),loc(6),lnks(6),txt("840"), ner('NUMBER'),normalizedNER(840000000.0), entitylink('World_population'), link(1,'QP',r('QP',seg(6,7))), link(2,'NP',r('NP',seg(5,7))), link(3,'PP',r('PP',seg(4,7))), link(4,'NP',r('NP',seg(2,7))), link(5,'FRAG',r('FRAG',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(num),fner(o),fn('_')]), w( million, [ pos(cd), root(million),loc(7),lnks(6), txt("million"),ner('NUMBER'), normalizedNER(840000000.0),truecase('LOWER'), entitylink('World_population'), link(1,'QP',r('QP',seg(6,7))), link(2,'NP',r('NP',seg(5,7))), link(3,'PP',r('PP',seg(4,7))), link(4,'NP',r('NP',seg(2,7))), link(5,'FRAG',r('FRAG',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(num),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(8),lnks(2),txt("?"), link(1,'FRAG',r('FRAG',seg(1,8))), link(2,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Is the population of china 840 million ?", sentence80, q( s( np( 3+sg, np_head(Det,det(the(sg)),[],population), [ prep_phrase(Prep,prep(of),np(3+sg,nameOf(China,china,[]),[]))]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+pl,np_head(QuantV,quantV(same,840),[],million),[]))], []))). tmp : test80_result( "Is the population of china 840 million ?", i_sentence, question80( [], pred( quantV( det(the(sg)), value&units&population-B, '`'(count_pred(thing,population,C,B)), '`'(true), [ quantV( identityQ(IdentityQ), thing&geo&country-C, '`'(named(C,china)),'`'(true), [], thing&geo&country-C)], value&units&population-B), identityQ(IdentityQ2), subsumed_by(B,D), [ quantV( voidQ(VoidQ), value&units&population-D, '`'(same_values(D,--(840,million))),'`'(true), [], value&units&population-D)]))). tmp : test80_result( "Is the population of china 840 million ?", qplan, answer80([]) :- ^( Count_Subsumed_by, ( named(Population_China,china) , count_pred(thing,population,Population_China,Count_Subsumed_by) , By^(same_values(By,--(840,million)),subsumed_by(Count_Subsumed_by,By))))). tmp : test80_result("Is the population of china 840 million ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence _626| true -19 19 8 0 8 | Is the population of china 840 million ? ========================================================= tmp : test80_result( "Is spain bordered by the pacific ?", into_lexical_segs, [ w( is, [ pos(vbz), root(be),loc(1),lnks(2),txt("Is"), truecase('LOWER'),link(1,'S',r('S',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(verb),fner(o),fn('be.03')]), w( spain, [ pos(nn), root(spain),loc(2),lnks(3),txt("spain"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Spain'),link(1,'NP',r('NP',seg(2,2))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner('s-loc'),fn('_')]), w( bordered, [ pos(vbn), root(border),loc(3),lnks(3), txt("bordered"),truecase('LOWER'), link(1,'VP',r('VP',seg(3,6))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(verb),fner(o),fn('border.01')]), w( by, [ pos(in), root(by),loc(4),lnks(4),txt("by"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,6))), link(2,'VP',r('VP',seg(3,6))), link(3,'S',r('S',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adp),fner(o),fn('_')]), w( the, [ pos(dt), root(the),loc(5),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(5,6))), link(2,'PP',r('PP',seg(4,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos(dt),loc(3),dep_parent(det,n(rivers,4)), node(n(the,3)),flair,upos(det),fner(o), fn('_')]), w( pacific, [ pos(jj), root(pacific),loc(6),lnks(5), txt("pacific"),truecase('INIT_UPPER'), link(1,'NP',r('NP',seg(5,6))), link(2,'PP',r('PP',seg(4,6))), link(3,'VP',r('VP',seg(3,6))), link(4,'S',r('S',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adj),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'S',r('S',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),loc(13),dep_parent(punct,n(are,2)), node(n(?,13)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Is spain bordered by the pacific ?", sentence80, q( s( np(3+sg,nameOf(Spain,spain,[]),[]), verb(main+tv,border,passive,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(by),np(3+sg,nameOf(Pacific,pacific,[]),[]))]))). tmp : test80_result( "Is spain bordered by the pacific ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&geo&country-C, '`'(named(C,spain)),'`'(true), [], thing&geo&country-C), identityQ(IdentityQ2), generic_pred(thing,border,B,C), [ quantV( identityQ(IdentityQ3), thing&geo&seamass-B, '`'(named(B,pacific)),'`'(true), [], thing&geo&seamass-B)]))). tmp : test80_result( "Is spain bordered by the pacific ?", qplan, answer80([]) :- named(Border_Pacific,pacific) , named(Generic_Spain,spain) , generic_pred(thing,border,Border_Pacific,Generic_Spain)). tmp : test80_result("Is spain bordered by the pacific ?",results80,[[false]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence _626| true 1 18 24 0 43 | Is spain bordered by the pacific ? ========================================================= tmp : test80_result( "Is New York in america ?", into_lexical_segs, [ w( is, [ pos(vbz), root(be),loc(1),lnks(2),txt("Is"), truecase('INIT_UPPER'),link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('be.01')]), w( new, [ pos(nnp), root('New'),loc(2),lnks(3),txt("New"), ner('STATE_OR_PROVINCE'),truecase('INIT_UPPER'), entitylink('New_York'),link(1,'NP',r('NP',seg(2,2))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(propn),fner('b-loc'),fn('_')]), w( york, [ pos(nnp), root('York'),loc(3),lnks(4),txt("York"), ner('STATE_OR_PROVINCE'),truecase('INIT_UPPER'), entitylink('New_York'),link(1,'NP',r('NP',seg(3,3))), link(2,'NP',r('NP',seg(3,5))), link(3,'S',r('S',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(propn),fner('e-loc'),fn('_')]), w( in, [ pos(in), root(in),loc(4),lnks(4),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,5))), link(2,'NP',r('NP',seg(3,5))), link(3,'S',r('S',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(adp),fner(o),fn('_')]), w( america, [ pos(nnp), root(america),loc(5),lnks(5), txt("america"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('America'), corefed,#(2),txt(["america"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(5,5))), link(2,'PP',r('PP',seg(4,5))), link(3,'NP',r('NP',seg(3,5))), link(4,'S',r('S',seg(1,6))), link(5,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(propn),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Is New York in america ?", sentence80, q( s( np(3+sg,nameOf(New_york,new_york,[]),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg(arg_pred(Arg7),prep_phrase(Prep,prep(in),np(3+sg,nameOf(America,america,[]),[])))], []))). tmp : test80_result( "Is New York in america ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&City&city-C, '`'(named(C,new_york)),'`'(true), [], thing&City&city-C), identityQ(IdentityQ2),true, [ '`'(trans_pred(thing,contain,B,C)), quantV( identityQ(IdentityQ3), thing&geo&continent-B, '`'(named(B,america)),'`'(true), [], thing&geo&continent-B)]))). tmp : test80_result( "Is New York in america ?", qplan, answer80([]) :- named(Contain_America,america) , named(New_york,new_york) , trans_pred(thing,contain,Contain_America,New_york)). tmp : test80_result("Is New York in america ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence _626| true 0 21 27 0 48 | Is New York in america ? ========================================================= tmp : test80_result( "Iraq will border iran ?", into_lexical_segs, [ w( iraq, [ pos(nnp), root('Iraq'),loc(1),lnks(3),txt("Iraq"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Iraq'),corefed,#(1), txt(["Iraq"]),type('PROPER'),numb('SINGULAR'), gender('NEUTRAL'),animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(1,1))),link(2,'S',r('S',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(propn),fner('s-loc'),fn('_')]), w( will, [ pos(md), root(will),loc(2),lnks(3),txt("will"), truecase('LOWER'),link(1,'VP',r('VP',seg(2,4))), link(2,'S',r('S',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(aux),fner(o),fn('_')]), w( border, [ pos(vb), root(border),loc(3),lnks(4),txt("border"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,4))), link(2,'VP',r('VP',seg(2,4))), link(3,'S',r('S',seg(1,5))), link(4,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(verb),fner(o),fn('border.01')]), w( iran, [ pos(nnp), root(iran),loc(4),lnks(5),txt("iran"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Iran'),corefed,#(2), txt(["iran"]),type('PROPER'), numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(4,4))), link(2,'VP',r('VP',seg(3,4))), link(3,'VP',r('VP',seg(2,4))), link(4,'S',r('S',seg(1,5))), link(5,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(propn),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(5),lnks(2),txt("?"), link(1,'S',r('S',seg(1,5))), link(2,'CORENLP',r('CORENLP',seg(1,5))),spacy, spos('.'),loc(13),dep_parent(punct,n(are,2)), node(n(?,13)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Iraq will border iran ?", sentence80, q( s( np(3+sg,nameOf(Iraq,iraq,[]),[]), verb(main+tv,border,active,Fin+fin,[],posP([adv(t(will,pres+fin,3+sg))])), [ arg(dirO(DirO),np(3+sg,nameOf(Iran,iran,[]),[]))], []))). tmp : test80_result( "Iraq will border iran ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&geo&country-C, '`'(named(C,iraq)),'`'(true), [], thing&geo&country-C), identityQ(IdentityQ2), will(generic_pred(thing,border,C,B)), [ quantV( identityQ(IdentityQ3), thing&geo&country-B, '`'(named(B,iran)),'`'(true), [], thing&geo&country-B)]))). tmp : test80_result( "Iraq will border iran ?", qplan, answer80([]) :- named(Generic_Iran,iran) , named(Border_Iraq,iraq) , will(generic_pred(thing,border,Border_Iraq,Generic_Iran))). tmp : test80_result("Iraq will border iran ?",results80,[[false]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 10300| true 1 25 30 0 56 | Iraq will border iran ? ========================================================= tmp : test80_result( "Iraq was bordering iran ?", into_lexical_segs, [ w( iraq, [ pos(nnp), root('Iraq'),loc(1),lnks(3),txt("Iraq"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Iraq'),corefed,#(1), txt(["Iraq"]),type('PROPER'),numb('SINGULAR'), gender('NEUTRAL'),animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(1,1))),link(2,'S',r('S',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(propn),fner('s-loc'),fn('_')]), w( was, [ pos(vbd), root(be),loc(2),lnks(3),txt("was"), truecase('LOWER'),link(1,'VP',r('VP',seg(2,4))), link(2,'S',r('S',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(verb),fner(o),fn('be.03')]), w( bordering, [ pos(vbg), root(border),loc(3),lnks(4), txt("bordering"),truecase('LOWER'), link(1,'VP',r('VP',seg(3,4))), link(2,'VP',r('VP',seg(2,4))), link(3,'S',r('S',seg(1,5))), link(4,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(verb),fner(o),fn('border.01')]), w( iran, [ pos(nnp), root(iran),loc(4),lnks(5),txt("iran"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Iran'),corefed,#(2), txt(["iran"]),type('PROPER'), numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(4,4))), link(2,'VP',r('VP',seg(3,4))), link(3,'VP',r('VP',seg(2,4))), link(4,'S',r('S',seg(1,5))), link(5,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(propn),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(5),lnks(2),txt("?"), link(1,'S',r('S',seg(1,5))), link(2,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Iraq was bordering iran ?", sentence80, q( s( np(3+sg,nameOf(Iraq,iraq,[]),[]), verb(main+tv,border,active,past+fin,[prog],posP([])), [ arg(dirO(DirO),np(3+sg,nameOf(Iran,iran,[]),[]))], []))). tmp : test80_result( "Iraq was bordering iran ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&geo&country-C, '`'(named(C,iraq)),'`'(true), [], thing&geo&country-C), identityQ(IdentityQ2), generic_pred(thing,border,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-B, '`'(named(B,iran)),'`'(true), [], thing&geo&country-B)]))). tmp : test80_result( "Iraq was bordering iran ?", qplan, answer80([]) :- named(Generic_Iran,iran) , named(Border_Iraq,iraq) , generic_pred(thing,border,Border_Iraq,Generic_Iran)). tmp : test80_result("Iraq was bordering iran ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 10500| true 1 19 26 0 46 | Iraq was bordering iran ? ========================================================= tmp : test80_result( "Iraq is bordering iran ?", into_lexical_segs, [ w( iraq, [ pos(nnp), root('Iraq'),loc(1),lnks(3),txt("Iraq"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Iraq'),corefed,#(1), txt(["Iraq"]),type('PROPER'),numb('SINGULAR'), gender('NEUTRAL'),animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(1,1))),link(2,'S',r('S',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(propn),fner('s-loc'),fn('_')]), w( is, [ pos(vbz), root(be),loc(2),lnks(3),txt("is"), truecase('LOWER'),link(1,'VP',r('VP',seg(2,4))), link(2,'S',r('S',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(verb),fner(o),fn('be.03')]), w( bordering, [ pos(vbg), root(border),loc(3),lnks(4), txt("bordering"),truecase('LOWER'), link(1,'VP',r('VP',seg(3,4))), link(2,'VP',r('VP',seg(2,4))), link(3,'S',r('S',seg(1,5))), link(4,'CORENLP',r('CORENLP',seg(1,5))),spacy, spos(vbg),loc(8),tense(active), dep_child(dobj,n(baltic,10)), dep_parent(acl,n(countries,7)),node(n(bordering,8)), flair,upos(verb),fner(o),fn('border.01')]), w( iran, [ pos(nnp), root(iran),loc(4),lnks(5),txt("iran"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Iran'),corefed,#(2), txt(["iran"]),type('PROPER'), numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(4,4))), link(2,'VP',r('VP',seg(3,4))), link(3,'VP',r('VP',seg(2,4))), link(4,'S',r('S',seg(1,5))), link(5,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(propn),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(5),lnks(2),txt("?"), link(1,'S',r('S',seg(1,5))), link(2,'CORENLP',r('CORENLP',seg(1,5))),spacy, spos('.'),loc(11),dep_parent(punct,n(are,2)), node(n(?,11)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Iraq is bordering iran ?", sentence80, q( s( np(3+sg,nameOf(Iraq,iraq,[]),[]), verb(main+tv,border,active,pres+fin,[prog],posP([])), [ arg(dirO(DirO),np(3+sg,nameOf(Iran,iran,[]),[]))], []))). tmp : test80_result( "Iraq is bordering iran ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&geo&country-C, '`'(named(C,iraq)),'`'(true), [], thing&geo&country-C), identityQ(IdentityQ2), generic_pred(thing,border,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-B, '`'(named(B,iran)),'`'(true), [], thing&geo&country-B)]))). tmp : test80_result( "Iraq is bordering iran ?", qplan, answer80([]) :- named(Generic_Iran,iran) , named(Border_Iraq,iraq) , generic_pred(thing,border,Border_Iraq,Generic_Iran)). tmp : test80_result("Iraq is bordering iran ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 10400| true 0 17 23 0 40 | Iraq is bordering iran ? ========================================================= tmp : test80_result( "Iraq does border iran ?", into_lexical_segs, [ w( iraq, [ pos(nnp), root('Iraq'),loc(1),lnks(3),txt("Iraq"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Iraq'),corefed,#(1), txt(["Iraq"]),type('PROPER'),numb('SINGULAR'), gender('NEUTRAL'),animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(1,1))),link(2,'S',r('S',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(propn),fner('s-loc'),fn('_')]), w( does, [ pos(vbz), root(do),loc(2),lnks(3),txt("does"), truecase('LOWER'),link(1,'VP',r('VP',seg(2,4))), link(2,'S',r('S',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(verb),fner(o),fn('do.01')]), w( border, [ pos(nn), root(border),loc(3),lnks(4),txt("border"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'VP',r('VP',seg(2,4))), link(3,'S',r('S',seg(1,5))), link(4,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(noun),fner(o),fn('_')]), w( iran, [ root(iran), loc(4),lnks(4),txt("iran"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Iran'), link(1,'NP',r('NP',seg(3,4))), link(2,'VP',r('VP',seg(2,4))), link(3,'S',r('S',seg(1,5))), link(4,'CORENLP',r('CORENLP',seg(1,5))),old_pos(nn), pos(nnp),flair,upos(propn),fner('s-loc'), fn('_')]), w( ?, [ pos('.'), root(?),loc(5),lnks(2),txt("?"), link(1,'S',r('S',seg(1,5))), link(2,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Iraq does border iran ?", sentence80, q( s( np(3+sg,nameOf(Iraq,iraq,[]),[]), verb(main+tv,border,active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+sg,nameOf(Iran,iran,[]),[]))], []))). tmp : test80_result( "Iraq does border iran ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&geo&country-C, '`'(named(C,iraq)),'`'(true), [], thing&geo&country-C), identityQ(IdentityQ2), generic_pred(thing,border,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-B, '`'(named(B,iran)),'`'(true), [], thing&geo&country-B)]))). tmp : test80_result( "Iraq does border iran ?", qplan, answer80([]) :- named(Generic_Iran,iran) , named(Border_Iraq,iraq) , generic_pred(thing,border,Border_Iraq,Generic_Iran)). tmp : test80_result("Iraq does border iran ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 10100| true 1 16 22 0 39 | Iraq does border iran ? ========================================================= tmp : test80_result( "Iraq did border iran ?", into_lexical_segs, [ w( iraq, [ pos(nnp), root('Iraq'),loc(1),lnks(3),txt("Iraq"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Iraq'),corefed,#(1), txt(["Iraq"]),type('PROPER'),numb('SINGULAR'), gender('NEUTRAL'),animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(1,1))),link(2,'S',r('S',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(propn),fner('s-loc'),fn('_')]), w( did, [ pos(vbd), root(do),loc(2),lnks(3),txt("did"), truecase('LOWER'),link(1,'VP',r('VP',seg(2,4))), link(2,'S',r('S',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(verb),fner(o),fn('do.01')]), w( border, [ pos(nn), root(border),loc(3),lnks(4),txt("border"), truecase('LOWER'),link(1,'NP',r('NP',seg(3,4))), link(2,'VP',r('VP',seg(2,4))), link(3,'S',r('S',seg(1,5))), link(4,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(noun),fner(o),fn('_')]), w( iran, [ root(iran), loc(4),lnks(4),txt("iran"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Iran'), link(1,'NP',r('NP',seg(3,4))), link(2,'VP',r('VP',seg(2,4))), link(3,'S',r('S',seg(1,5))), link(4,'CORENLP',r('CORENLP',seg(1,5))),old_pos(nn), pos(nnp),flair,upos(propn),fner('s-loc'), fn('_')]), w( ?, [ pos('.'), root(?),loc(5),lnks(2),txt("?"), link(1,'S',r('S',seg(1,5))), link(2,'CORENLP',r('CORENLP',seg(1,5))),spacy, spos('.'),loc(10),dep_parent(punct,n(are,2)), node(n(?,10)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Iraq did border iran ?", sentence80, q( s( np(3+sg,nameOf(Iraq,iraq,[]),[]), verb(main+tv,border,active,past+fin,[],posP([])), [ arg(dirO(DirO),np(3+sg,nameOf(Iran,iran,[]),[]))], []))). tmp : test80_result( "Iraq did border iran ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&geo&country-C, '`'(named(C,iraq)),'`'(true), [], thing&geo&country-C), identityQ(IdentityQ2), generic_pred(thing,border,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-B, '`'(named(B,iran)),'`'(true), [], thing&geo&country-B)]))). tmp : test80_result( "Iraq did border iran ?", qplan, answer80([]) :- named(Generic_Iran,iran) , named(Border_Iraq,iraq) , generic_pred(thing,border,Border_Iraq,Generic_Iran)). tmp : test80_result("Iraq did border iran ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 10200| true 1 17 23 0 41 | Iraq did border iran ? ========================================================= tmp : test80_result( "Iraq borders iran ?", into_lexical_segs, [ w( iraq, [ pos(nnp), root('Iraq'),loc(1),lnks(3),txt("Iraq"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Iraq'),corefed,#(1), txt(["Iraq"]),type('PROPER'),numb('SINGULAR'), gender('NEUTRAL'),animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(1,1))), link(2,'FRAG',r('FRAG',seg(1,4))), link(3,'CORENLP',r('CORENLP',seg(1,4))),flair, upos(propn),fner('s-loc'),fn('_')]), w( borders, [ root(border), loc(2),lnks(3),txt("borders"), truecase('LOWER'),corefed,#(2), txt(["borders"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(2,2))), link(2,'FRAG',r('FRAG',seg(1,4))), link(3,'CORENLP',r('CORENLP',seg(1,4))),old_pos(nns), pos(vb),flair,upos(verb),fner(o), fn('occupy.01')]), w( iran, [ pos(nnp), root(iran),loc(3),lnks(3),txt("iran"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Iran'),corefed,#(3), txt(["iran"]),type('PROPER'), numb('SINGULAR'),gender('NEUTRAL'), animacy('UNKNOWN'),repm(@(true)), link(1,'NP',r('NP',seg(3,3))), link(2,'FRAG',r('FRAG',seg(1,4))), link(3,'CORENLP',r('CORENLP',seg(1,4))),flair, upos(propn),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(4),lnks(2),txt("?"), link(1,'FRAG',r('FRAG',seg(1,4))), link(2,'CORENLP',r('CORENLP',seg(1,4))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Iraq borders iran ?", sentence80, q( s( np(3+sg,nameOf(Iraq,iraq,[]),[]), verb(main+tv,border,active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+sg,nameOf(Iran,iran,[]),[]))], []))). tmp : test80_result( "Iraq borders iran ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&geo&country-C, '`'(named(C,iraq)),'`'(true), [], thing&geo&country-C), identityQ(IdentityQ2), generic_pred(thing,border,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-B, '`'(named(B,iran)),'`'(true), [], thing&geo&country-B)]))). tmp : test80_result( "Iraq borders iran ?", qplan, answer80([]) :- named(Generic_Iran,iran) , named(Border_Iraq,iraq) , generic_pred(thing,border,Border_Iraq,Generic_Iran)). tmp : test80_result("Iraq borders iran ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 10000| true 1 17 23 0 41 | Iraq borders iran ? ========================================================= tmp : test80_result( "Iran is bordered by iraq ?", into_lexical_segs, [ w( iran, [ pos(nnp), root('Iran'),loc(1),lnks(3),txt("Iran"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Iran'),corefed,#(1), txt(["Iran"]),type('PROPER'),numb('SINGULAR'), gender('NEUTRAL'),animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(1,1))),link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(propn),fner('s-loc'),fn('_')]), w( is, [ pos(vbz), root(be),loc(2),lnks(3),txt("is"), truecase('LOWER'),link(1,'VP',r('VP',seg(2,5))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('be.03')]), w( bordered, [ pos(vbn), root(border),loc(3),lnks(4), txt("bordered"),truecase('LOWER'), link(1,'VP',r('VP',seg(3,5))), link(2,'VP',r('VP',seg(2,5))), link(3,'S',r('S',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('surround.01')]), w( by, [ pos(in), root(by),loc(4),lnks(5),txt("by"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'VP',r('VP',seg(2,5))), link(4,'S',r('S',seg(1,6))), link(5,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(adp),fner(o),fn('_')]), w( iraq, [ root(iraq), loc(5),lnks(6),txt("iraq"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Iraq_War'), link(1,'NP',r('NP',seg(5,5))), link(2,'PP',r('PP',seg(4,5))), link(3,'VP',r('VP',seg(3,5))), link(4,'VP',r('VP',seg(2,5))), link(5,'S',r('S',seg(1,6))), link(6,'CORENLP',r('CORENLP',seg(1,6))),old_pos(nn), pos(nnp),flair,upos(propn),fner('s-loc'), fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),spacy, spos('.'),loc(14),dep_parent(punct,n(are,2)), node(n(?,14)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Iran is bordered by iraq ?", sentence80, q( s( np(3+sg,nameOf(Iran,iran,[]),[]), verb(main+tv,border,passive,pres+fin,[],posP([])), [], [ prep_phrase(Prep,prep(by),np(3+sg,nameOf(Iraq,iraq,[]),[]))]))). tmp : test80_result( "Iran is bordered by iraq ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&geo&country-C, '`'(named(C,iran)),'`'(true), [], thing&geo&country-C), identityQ(IdentityQ2), generic_pred(thing,border,B,C), [ quantV( identityQ(IdentityQ3), thing&geo&country-B, '`'(named(B,iraq)),'`'(true), [], thing&geo&country-B)]))). tmp : test80_result( "Iran is bordered by iraq ?", qplan, answer80([]) :- named(Border_Iraq,iraq) , named(Generic_Iran,iran) , generic_pred(thing,border,Border_Iraq,Generic_Iran)). tmp : test80_result("Iran is bordered by iraq ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 10600| true 1 16 22 0 39 | Iran is bordered by iraq ? ========================================================= tmp : test80_result( "How many rivers are not in asia ?", into_lexical_segs, [ w( how, [ pos(wrb), root(how),loc(1),lnks(3),txt("How"), truecase('INIT_UPPER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adv),fner(o),fn('_')]), w( many, [ pos(jj), root(many),loc(2),lnks(3),txt("many"), truecase('INIT_UPPER'), link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adj),fner(o),fn('_')]), w( rivers, [ pos(nns), root(river),loc(3),lnks(4),txt("rivers"), truecase('INIT_UPPER'),corefed,#(1), txt(["rivers"]),type('NOMINAL'), numb('PLURAL'),gender('UNKNOWN'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(3,3))), link(2,'S',r('S',seg(3,7))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),pos(vb),loc(4),lnks(4), txt("are"),truecase('LOWER'), link(1,'VP',r('VP',seg(4,7))), link(2,'S',r('S',seg(3,7))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(verb),fner(o),fn('be.01')]), w( not, [ pos(rb), root(not),loc(5),lnks(4),txt("not"), truecase('LOWER'),link(1,'VP',r('VP',seg(4,7))), link(2,'S',r('S',seg(3,7))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adv),fner(o),fn('_')]), w( in, [ pos(in), root(in),loc(6),lnks(5),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(6,7))), link(2,'VP',r('VP',seg(4,7))), link(3,'S',r('S',seg(3,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adp),fner(o),fn('_')]), w( asia, [ pos(nn), root(asia),loc(7),lnks(6),txt("asia"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(7,7))), link(2,'PP',r('PP',seg(6,7))), link(3,'VP',r('VP',seg(4,7))), link(4,'S',r('S',seg(3,7))), link(5,'SBAR',r('SBAR',seg(1,8))), link(6,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(8),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,8))), link(2,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "How many rivers are not in asia ?", sentence80, whq( thing&Thing-B, s( np(3+pl,np_head(QuantV,quantV(same,wh(thing&Thing-B)),[],river),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],negP([])), [ arg(arg_pred(Arg9),prep_phrase(Prep,prep(in),np(3+sg,nameOf(Asia,asia,[]),[])))], []))). tmp : test80_result( "How many rivers are not in asia ?", i_sentence, question80( [thing&Thing-B], pred( quantV( quantV(same,wh(thing&Thing-B)), thing&Thing-C, '`'(ti(river,C)),'`'(true), [], thing&Thing-C), notP,true, [ '`'(trans_pred(thing,contain,D,C)), quantV( identityQ(IdentityQ), thing&geo&continent-D, '`'(named(D,asia)),'`'(true), [], thing&geo&continent-D)]))). tmp : test80_result( "How many rivers are not in asia ?", qplan, answer80([Numberof]) :- numberof( River, ( ti(river,River) , \+ (named(Contain_Asia,asia),trans_pred(thing,contain,Contain_Asia,River))), Numberof)). tmp : test80_result("How many rivers are not in asia ?",results80,[[26]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 20300| true 1 3 -7 3 0 | How many rivers are not in asia ? ========================================================= tmp : test80_result( "How many rivers are in asia ?", into_lexical_segs, [ w( how, [ pos(wrb), root(how),loc(1),lnks(4),txt("How"), truecase('INIT_UPPER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'NP',r('NP',seg(1,3))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adv),fner(o),fn('_')]), w( many, [ pos(jj), root(many),loc(2),lnks(4),txt("many"), truecase('INIT_UPPER'), link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'NP',r('NP',seg(1,3))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adj),fner(o),fn('_')]), w( rivers, [ pos(nns), root(river),loc(3),lnks(3),txt("rivers"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(1,3))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner(o),fn('_')]), w( are, [ alt(pos(vbp)), root(be),loc(4),lnks(3),txt("are"), truecase('LOWER'),link(1,'S',r('S',seg(4,6))), link(2,'SBAR',r('SBAR',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),old_pos(vb), pos(vbp),spacy,spos(vbp),loc(2), tense(present),dep_child(attr,n(what,1)), dep_parent(aux,n(containing,6)),node(n(are,2)), flair,upos(verb),fner(o),fn('be.01')]), w( in, [ pos(in), root(in),loc(5),lnks(4),txt("in"), truecase('LOWER'),link(1,'PP',r('PP',seg(5,6))), link(2,'S',r('S',seg(4,6))), link(3,'SBAR',r('SBAR',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(adp),fner(o),fn('_')]), w( asia, [ pos(nn), root(asia),loc(6),lnks(5),txt("asia"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(6,6))), link(2,'PP',r('PP',seg(5,6))), link(3,'S',r('S',seg(4,6))), link(4,'SBAR',r('SBAR',seg(1,7))), link(5,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(noun),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),spacy, spos('.'),loc(9), dep_parent(punct,n(containing,6)),node(n(?,9)), flair,upos(punct),fner(o),fn('_')])]). tmp : test80_result( "How many rivers are in asia ?", sentence80, whq( thing&Thing-B, s( np(3+pl,np_head(QuantV,quantV(same,wh(thing&Thing-B)),[],river),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg(arg_pred(Arg9),prep_phrase(Prep,prep(in),np(3+sg,nameOf(Asia,asia,[]),[])))], []))). tmp : test80_result( "How many rivers are in asia ?", i_sentence, question80( [thing&Thing-B], pred( quantV( quantV(same,wh(thing&Thing-B)), thing&Thing-C, '`'(ti(river,C)),'`'(true), [], thing&Thing-C), identityQ(IdentityQ),true, [ '`'(trans_pred(thing,contain,D,C)), quantV( identityQ(IdentityQ2), thing&geo&continent-D, '`'(named(D,asia)),'`'(true), [], thing&geo&continent-D)]))). tmp : test80_result( "How many rivers are in asia ?", qplan, answer80([Numberof]) :- numberof( River, ( ti(river,River) , named(Contain_Asia,asia) , trans_pred(thing,contain,Contain_Asia,River)), Numberof)). tmp : test80_result("How many rivers are in asia ?",results80,[[16]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 20400| true 1 0 9 2 12 | How many rivers are in asia ? ========================================================= tmp : test80_result( "How many countries have a population greater than 10 million ?", into_lexical_segs, [ w( how, [ pos(wrb), root(how),loc(1),lnks(4),txt("How"), truecase('INIT_UPPER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'NP',r('NP',seg(1,3))), link(3,'SBAR',r('SBAR',seg(1,11))), link(4,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(adv),fner(o),fn('_')]), w( many, [ pos(jj), root(many),loc(2),lnks(4),txt("many"), truecase('LOWER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'NP',r('NP',seg(1,3))), link(3,'SBAR',r('SBAR',seg(1,11))), link(4,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(adj),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(3),lnks(3), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,3))), link(2,'SBAR',r('SBAR',seg(1,11))), link(3,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( have, [ alt(pos(vbp)), root(have),pos(vb),loc(4),lnks(4), txt("have"),truecase('LOWER'), link(1,'VP',r('VP',seg(4,10))), link(2,'S',r('S',seg(4,10))), link(3,'SBAR',r('SBAR',seg(1,11))), link(4,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(verb),fner(o),fn('have.03')]), w( a, [ pos(dt), root(a),loc(5),lnks(5),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(5,10))), link(2,'VP',r('VP',seg(4,10))), link(3,'S',r('S',seg(4,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(det),fner(o),fn('_')]), w( population, [ pos(nn), root(population),loc(6),lnks(5), txt("population"),truecase('LOWER'), link(1,'NP',r('NP',seg(5,10))), link(2,'VP',r('VP',seg(4,10))), link(3,'S',r('S',seg(4,10))), link(4,'SBAR',r('SBAR',seg(1,11))), link(5,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( greater, [ pos(jjr), root(greater),loc(7),lnks(6), txt("greater"),truecase('LOWER'), link(1,'QP',r('QP',seg(7,10))), link(2,'NP',r('NP',seg(5,10))), link(3,'VP',r('VP',seg(4,10))), link(4,'S',r('S',seg(4,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(adj),fner(o),fn('_')]), w( than, [ pos(in), root(than),loc(8),lnks(6),txt("than"), truecase('LOWER'),link(1,'QP',r('QP',seg(7,10))), link(2,'NP',r('NP',seg(5,10))), link(3,'VP',r('VP',seg(4,10))), link(4,'S',r('S',seg(4,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(adp),fner(o),fn('_')]), w( '10', [ pos(cd), root('10'),loc(9),lnks(6),txt("10"), ner('NUMBER'),normalizedNER('>1.0E7'), entitylink('10000000_(number)'), link(1,'QP',r('QP',seg(7,10))), link(2,'NP',r('NP',seg(5,10))), link(3,'VP',r('VP',seg(4,10))), link(4,'S',r('S',seg(4,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(num),fner(o),fn('_')]), w( million, [ pos(cd), root(million),loc(10),lnks(6), txt("million"),ner('NUMBER'), normalizedNER('>1.0E7'),truecase('LOWER'), entitylink('10000000_(number)'), link(1,'QP',r('QP',seg(7,10))), link(2,'NP',r('NP',seg(5,10))), link(3,'VP',r('VP',seg(4,10))), link(4,'S',r('S',seg(4,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(num),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(11),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,11))), link(2,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "How many countries have a population greater than 10 million ?", sentence80, whq( I&_40976-B, s( np(3+pl,np_head(QuantV,quantV(same,wh(I&_95936-B)),[],country),[]), verb(aux+have(Have),have(Have),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(Det,det(a),[],population), [ reduced_rel( value&units&population-D, s( np(3+sg,wh(value&units&population-D),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg( arg_pred(Arg14), comp(more,adj(great),np(3+pl,np_head(QuantV5,quantV(same,10),[],million),[])))], []))]))], []))). tmp : test80_result( "How many countries have a population greater than 10 million ?", i_sentence, question80( [I&_94778-B], pred( quantV( quantV(same,wh(I&_46618-B)), I&_35740-C,'`'(ti(country,C)), '`'(true), [], I&_35740-C), identityQ(IdentityQ), count_pred(I,population,C,D),D=H, [ quantV( det(a), value&units&population-D, '`'(true),'`'(true), [ pred( quantV( identityQ(IdentityQ1), value&units&population-D, '`'(true),'`'(true), [], value&units&population-D), identityQ(IdentityQ2),true, [ ( quantV( voidQ(VoidQ), value&units&population-G, '`'(exceeds(D,G)),'`'(true), [], _102304-G) & quantV( voidQ(VoidQ4), value&units&population-F, '`'(exceeds(E,F)),'`'(true), [], _95082-F) & '`'(exceeds(G,F))), quantV( voidQ(VoidQ5), value&units&population-E, '`'(same_values(E,--(10,million))),'`'(true), [], value&units&population-E)])], value&units&population-D), quantV( voidQ(VoidQ6), value&units&population-H, '`'(true),'`'(true), [], _10792-H)]))). tmp : test80_result( "How many countries have a population greater than 10 million ?", qplan, answer80([Numberof]) :- numberof( Country, ( ti(country,Country) , ^( Count_Exceeds, ( ^( Exceeds3, same_values(Exceeds3,--(10,million)),exceeds(Count_Exceeds,Exceeds3)) , count_pred(Population,population,Country,Count_Exceeds)))), Numberof)). tmp : test80_result("How many countries have a population greater than 10 million ?",results80,[[50]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 20700| true 3 39 36 3 81 | How many countries have a population greater than 10 million ? ========================================================= tmp : test80_result( "How many countries have a population exceeding 10 million ?", into_lexical_segs, [ w( how, [ pos(wrb), root(how),loc(1),lnks(4),txt("How"), truecase('INIT_UPPER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'NP',r('NP',seg(1,3))), link(3,'SBAR',r('SBAR',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(adv),fner(o),fn('_')]), w( many, [ pos(jj), root(many),loc(2),lnks(4),txt("many"), truecase('LOWER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'NP',r('NP',seg(1,3))), link(3,'SBAR',r('SBAR',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(adj),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(3),lnks(3), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,3))), link(2,'SBAR',r('SBAR',seg(1,10))), link(3,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(noun),fner(o),fn('_')]), w( have, [ alt(pos(vbp)), root(have),pos(vb),loc(4),lnks(4), txt("have"),truecase('LOWER'), link(1,'VP',r('VP',seg(4,9))), link(2,'S',r('S',seg(4,9))), link(3,'SBAR',r('SBAR',seg(1,10))), link(4,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(verb),fner(o),fn('have.03')]), w( a, [ pos(dt), root(a),loc(5),lnks(6),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(5,6))), link(2,'NP',r('NP',seg(5,9))), link(3,'VP',r('VP',seg(4,9))), link(4,'S',r('S',seg(4,9))), link(5,'SBAR',r('SBAR',seg(1,10))), link(6,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(det),fner(o),fn('_')]), w( population, [ pos(nn), root(population),loc(6),lnks(6), txt("population"),truecase('LOWER'), link(1,'NP',r('NP',seg(5,6))), link(2,'NP',r('NP',seg(5,9))), link(3,'VP',r('VP',seg(4,9))), link(4,'S',r('S',seg(4,9))), link(5,'SBAR',r('SBAR',seg(1,10))), link(6,'CORENLP',r('CORENLP',seg(1,10))),spacy, spos(nn),loc(15),form(sg), dep_child(poss,n(whose,14)), dep_parent(nsubj,n(exceeds,16)),node(n(population,15)), flair,upos(noun),fner(o),fn('_')]), w( exceeding, [ pos(vbg), root(exceed),loc(7),lnks(6), txt("exceeding"),truecase('LOWER'), link(1,'VP',r('VP',seg(7,9))), link(2,'NP',r('NP',seg(5,9))), link(3,'VP',r('VP',seg(4,9))), link(4,'S',r('S',seg(4,9))), link(5,'SBAR',r('SBAR',seg(1,10))), link(6,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(verb),fner(o),fn('exceed.01')]), w( '10', [ pos(cd), root('10'),loc(8),lnks(8),txt("10"), ner('NUMBER'),normalizedNER(10000000.0), entitylink('10000000_(number)'), link(1,'QP',r('QP',seg(8,9))), link(2,'NP',r('NP',seg(8,9))), link(3,'VP',r('VP',seg(7,9))), link(4,'NP',r('NP',seg(5,9))), link(5,'VP',r('VP',seg(4,9))), link(6,'S',r('S',seg(4,9))), link(7,'SBAR',r('SBAR',seg(1,10))), link(8,'CORENLP',r('CORENLP',seg(1,10))),flair, upos(num),fner(o),fn('_')]), w( million, [ pos(cd), root(million),loc(9),lnks(8), txt("million"),ner('NUMBER'), normalizedNER(10000000.0),truecase('LOWER'), entitylink('10000000_(number)'), link(1,'QP',r('QP',seg(8,9))), link(2,'NP',r('NP',seg(8,9))), link(3,'VP',r('VP',seg(7,9))), link(4,'NP',r('NP',seg(5,9))), link(5,'VP',r('VP',seg(4,9))), link(6,'S',r('S',seg(4,9))), link(7,'SBAR',r('SBAR',seg(1,10))), link(8,'CORENLP',r('CORENLP',seg(1,10))),spacy, spos(cd),loc(18),dep_child(compound,n('1',17)), dep_parent(dobj,n(exceeds,16)),node(n(million,18)), flair,upos(num),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(10),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,10))), link(2,'CORENLP',r('CORENLP',seg(1,10))),spacy, spos('.'),loc(19),dep_parent(punct,n(are,2)), node(n(?,19)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "How many countries have a population exceeding 10 million ?", sentence80, whq( G&_67754-B, s( np(3+pl,np_head(QuantV,quantV(same,wh(G&_122690-B)),[],country),[]), verb(aux+have(Have),have(Have),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(Det,det(a),[],population), [ reduced_rel( value&units&population-D, s( np(3+sg,wh(value&units&population-D),[]), verb(main+tv,exceed,active,inf,[prog],posP([])), [ arg(dirO(DirO13),np(3+pl,np_head(QuantV5,quantV(same,10),[],million),[]))], []))]))], []))). tmp : test80_result( "How many countries have a population exceeding 10 million ?", i_sentence, question80( [G&_107378-B], pred( quantV( quantV(same,wh(G&_50170-B)), G&_39292-C,'`'(ti(country,C)), '`'(true), [], G&_39292-C), identityQ(IdentityQ), count_pred(G,population,C,D),D=F, [ quantV( det(a), value&units&population-D, '`'(true),'`'(true), [ pred( quantV( identityQ(IdentityQ1), value&units&population-D, '`'(true),'`'(true), [], value&units&population-D), identityQ(IdentityQ2), exceeds(D,E), [ quantV( voidQ(VoidQ), value&units&population-E, '`'(same_values(E,--(10,million))),'`'(true), [], value&units&population-E)])], value&units&population-D), quantV( voidQ(VoidQ4), value&units&population-F, '`'(true),'`'(true), [], _14344-F)]))). tmp : test80_result( "How many countries have a population exceeding 10 million ?", qplan, answer80([Numberof]) :- numberof( Country, ( ti(country,Country) , ^( Count_Exceeds, ( ^( Exceeds3, same_values(Exceeds3,--(10,million)),exceeds(Count_Exceeds,Exceeds3)) , count_pred(Population,population,Country,Count_Exceeds)))), Numberof)). tmp : test80_result("How many countries have a population exceeding 10 million ?",results80,[[50]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 20600| true 2 26 21 3 52 | How many countries have a population exceeding 10 million ? ========================================================= tmp : test80_result( "How many countries does the danube flow through ?", into_lexical_segs, [ w( how, [ pos(wrb), root(how),loc(1),lnks(4),txt("How"), truecase('INIT_UPPER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'NP',r('NP',seg(1,3))), link(3,'SBAR',r('SBAR',seg(1,9))), link(4,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(adv),fner(o),fn('_')]), w( many, [ pos(jj), root(many),loc(2),lnks(4),txt("many"), truecase('LOWER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'NP',r('NP',seg(1,3))), link(3,'SBAR',r('SBAR',seg(1,9))), link(4,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(adj),fner(o),fn('_')]), w( countries, [ pos(nns), root(country),loc(3),lnks(3), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(1,3))), link(2,'SBAR',r('SBAR',seg(1,9))), link(3,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(noun),fner(o),fn('_')]), w( does, [ pos(vbz), root(do),loc(4),lnks(4),txt("does"), truecase('LOWER'),link(1,'VP',r('VP',seg(4,8))), link(2,'S',r('S',seg(4,8))), link(3,'SBAR',r('SBAR',seg(1,9))), link(4,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(verb),fner(o),fn('do.01')]), w( the, [ pos(dt), root(the),loc(5),lnks(5),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(5,7))), link(2,'VP',r('VP',seg(4,8))), link(3,'S',r('S',seg(4,8))), link(4,'SBAR',r('SBAR',seg(1,9))), link(5,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(det),fner(o),fn('_')]), w( danube, [ pos(nn), root(danube),loc(6),lnks(5),txt("danube"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(5,7))), link(2,'VP',r('VP',seg(4,8))), link(3,'S',r('S',seg(4,8))), link(4,'SBAR',r('SBAR',seg(1,9))), link(5,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(noun),fner(o),fn('_')]), w( flow, [ root(flow), loc(7),lnks(5),txt("flow"), truecase('LOWER'),link(1,'NP',r('NP',seg(5,7))), link(2,'VP',r('VP',seg(4,8))), link(3,'S',r('S',seg(4,8))), link(4,'SBAR',r('SBAR',seg(1,9))), link(5,'CORENLP',r('CORENLP',seg(1,9))),old_pos(nn), pos(vb),flair,upos(verb),fner(o), fn('flow.01')]), w( through, [ pos(in), root(through),loc(8),lnks(5), txt("through"),truecase('LOWER'), link(1,'PP',r('PP',seg(8,8))), link(2,'VP',r('VP',seg(4,8))), link(3,'S',r('S',seg(4,8))), link(4,'SBAR',r('SBAR',seg(1,9))), link(5,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(adp),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(9),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,9))), link(2,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "How many countries does the danube flow through ?", sentence80, whq( thing&Thing-B, s( np(3+sg,nameOf(Danube,danube,[]),[]), verb(main+tv,flow,active,pres+fin,[],posP([])), [], [ prep_phrase( Prep, prep(through), np(3+pl,np_head(QuantV,quantV(same,wh(thing&Thing-B)),[],country),[]))]))). tmp : test80_result( "How many countries does the danube flow through ?", i_sentence, question80( [thing&Thing-B], pred( quantV( identityQ(IdentityQ), thing&River&river-E, '`'(named(E,danube)),'`'(true), [], thing&River&river-E), identityQ(IdentityQ2), path_pred_linkage(direct(river_flows),river,E,C,D), [ quantV( quantV(same,wh(thing&Thing-B)), thing&Thing-C, '`'(ti(country,C)),'`'(true), [], thing&Thing-C), quantV(voidQ(VoidQ),thing&Thing5-D,'`'(true),'`'(true),[],_21816-D)]))). tmp : test80_result( "How many countries does the danube flow through ?", qplan, answer80([Numberof]) :- numberof( Country, ( ti(country,Country) , ^( Linkage, ( named(River_Danube,danube) , path_pred_linkage(direct(river_flows),river,River_Danube,Country,Linkage)))), Numberof)). tmp : test80_result("How many countries does the danube flow through ?",results80,[[6]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 1200| true 1530 12 5 3 1550 | How many countries does the danube flow through ? ========================================================= tmp : test80_result( "How many asian countries have a population exceeding 10 million ?", into_lexical_segs, [ w( how, [ pos(wrb), root(how),loc(1),lnks(3),txt("How"), truecase('INIT_UPPER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,11))), link(3,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(adv),fner(o),fn('_')]), w( many, [ pos(jj), root(many),loc(2),lnks(3),txt("many"), truecase('LOWER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,11))), link(3,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(adj),fner(o),fn('_')]), w( asian, [ pos(jj), root(asian),loc(3),lnks(4),txt("asian"), ner('NATIONALITY'),truecase('INIT_UPPER'), entitylink('Asian'),link(1,'NP',r('NP',seg(3,4))), link(2,'S',r('S',seg(3,10))), link(3,'SBAR',r('SBAR',seg(1,11))), link(4,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(adj),fner('s-misc'),fn('_')]), w( countries, [ pos(nns), root(country),loc(4),lnks(4), txt("countries"),truecase('LOWER'), link(1,'NP',r('NP',seg(3,4))), link(2,'S',r('S',seg(3,10))), link(3,'SBAR',r('SBAR',seg(1,11))), link(4,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( have, [ alt(pos(vbp)), root(have),pos(vb),loc(5),lnks(4), txt("have"),truecase('LOWER'), link(1,'VP',r('VP',seg(5,10))), link(2,'S',r('S',seg(3,10))), link(3,'SBAR',r('SBAR',seg(1,11))), link(4,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(verb),fner(o),fn('have.03')]), w( a, [ pos(dt), root(a),loc(6),lnks(6),txt("a"), truecase('LOWER'),link(1,'NP',r('NP',seg(6,7))), link(2,'NP',r('NP',seg(6,10))), link(3,'VP',r('VP',seg(5,10))), link(4,'S',r('S',seg(3,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(dt),dep_parent(det,n(country,7)), node(n(a,6)),flair,upos(det),fner(o), fn('_')]), w( population, [ pos(nn), root(population),loc(7),lnks(6), txt("population"),truecase('LOWER'), link(1,'NP',r('NP',seg(6,7))), link(2,'NP',r('NP',seg(6,10))), link(3,'VP',r('VP',seg(5,10))), link(4,'S',r('S',seg(3,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(nn),loc(16),form(sg), dep_child(poss,n(whose,15)), dep_parent(nsubj,n(exceeds,17)),node(n(population,16)), flair,upos(noun),fner(o),fn('_')]), w( exceeding, [ pos(vbg), root(exceed),loc(8),lnks(6), txt("exceeding"),truecase('LOWER'), link(1,'VP',r('VP',seg(8,10))), link(2,'NP',r('NP',seg(6,10))), link(3,'VP',r('VP',seg(5,10))), link(4,'S',r('S',seg(3,10))), link(5,'SBAR',r('SBAR',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(verb),fner(o),fn('exceed.01')]), w( '10', [ pos(cd), root('10'),loc(9),lnks(8),txt("10"), ner('NUMBER'),normalizedNER(10000000.0), entitylink('10000000_(number)'), link(1,'QP',r('QP',seg(9,10))), link(2,'NP',r('NP',seg(9,10))), link(3,'VP',r('VP',seg(8,10))), link(4,'NP',r('NP',seg(6,10))), link(5,'VP',r('VP',seg(5,10))), link(6,'S',r('S',seg(3,10))), link(7,'SBAR',r('SBAR',seg(1,11))), link(8,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(num),fner(o),fn('_')]), w( million, [ pos(cd), root(million),loc(10),lnks(8), txt("million"),ner('NUMBER'), normalizedNER(10000000.0),truecase('LOWER'), entitylink('10000000_(number)'), link(1,'QP',r('QP',seg(9,10))), link(2,'NP',r('NP',seg(9,10))), link(3,'VP',r('VP',seg(8,10))), link(4,'NP',r('NP',seg(6,10))), link(5,'VP',r('VP',seg(5,10))), link(6,'S',r('S',seg(3,10))), link(7,'SBAR',r('SBAR',seg(1,11))), link(8,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(cd),loc(19),dep_child(compound,n('1',18)), dep_parent(dobj,n(exceeds,17)),node(n(million,19)), flair,upos(num),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(11),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,11))), link(2,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos('.'),loc(20),dep_parent(punct,n(are,2)), node(n(?,20)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "How many asian countries have a population exceeding 10 million ?", sentence80, whq( thing&Thing-B, s( np( 3+pl, np_head(QuantV,quantV(same,wh(thing&Thing-B)),[adj(asian)],country), []), verb(aux+have(Have),have(Have),active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(Det,det(a),[],population), [ reduced_rel( value&units&population-D, s( np(3+sg,wh(value&units&population-D),[]), verb(main+tv,exceed,active,inf,[prog],posP([])), [ arg(dirO(DirO13),np(3+pl,np_head(QuantV5,quantV(same,10),[],million),[]))], []))]))], []))). tmp : test80_result( "How many asian countries have a population exceeding 10 million ?", i_sentence, question80( [thing&Thing-B], pred( quantV( quantV(same,wh(thing&Thing-B)), thing&Thing-C, '`'(ti(country,C)), '`'(ti(asian,C))&'`'(true), [], thing&Thing-C), identityQ(IdentityQ), count_pred(thing,population,C,D),D=F, [ quantV( det(a), value&units&population-D, '`'(true),'`'(true), [ pred( quantV( identityQ(IdentityQ2), value&units&population-D, '`'(true),'`'(true), [], value&units&population-D), identityQ(IdentityQ3), exceeds(D,E), [ quantV( voidQ(VoidQ), value&units&population-E, '`'(same_values(E,--(10,million))),'`'(true), [], value&units&population-E)])], value&units&population-D), quantV( voidQ(VoidQ5), value&units&population-F, '`'(true),'`'(true), [], _3564-F)]))). tmp : test80_result( "How many asian countries have a population exceeding 10 million ?", qplan, answer80([Numberof]) :- numberof( Population_Asian_Country, ( ti(country,Population_Asian_Country) , ti(asian,Population_Asian_Country) , ^( Count_Exceeds, ( ^( Exceeds4, same_values(Exceeds4,--(10,million)),exceeds(Count_Exceeds,Exceeds4)) , count_pred(thing,population,Population_Asian_Country,Count_Exceeds)))), Numberof)). tmp : test80_result("How many asian countries have a population exceeding 10 million ?",results80,[[20]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 20500| true 3 19 13 3 38 | How many asian countries have a population exceeding 10 million ? ========================================================= tmp : test80_result( "How large is the smallest american country ?", into_lexical_segs, [ w( how, [ pos(wrb), root(how),loc(1),lnks(3),txt("How"), truecase('INIT_UPPER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adv),fner(o),fn('_')]), w( large, [ pos(jj), root(large),loc(2),lnks(3),txt("large"), truecase('LOWER'),link(1,'WHADJP',r('WHADJP',seg(1,2))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adj),fner(o),fn('_')]), w( is, [ pos(vbz), root(be),loc(3),lnks(3),txt("is"), truecase('LOWER'),link(1,'S',r('S',seg(3,7))), link(2,'SBAR',r('SBAR',seg(1,8))), link(3,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(verb),fner(o),fn('be.01')]), w( the, [ pos(dt), root(the),loc(4),lnks(4),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,7))), link(2,'S',r('S',seg(3,7))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(det),fner(o),fn('_')]), w( smallest, [ pos(jjs), root(smallest),loc(5),lnks(5), txt("smallest"),truecase('LOWER'), link(1,'ADJP',r('ADJP',seg(5,6))), link(2,'NP',r('NP',seg(4,7))), link(3,'S',r('S',seg(3,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adj),fner(o),fn('_')]), w( american, [ pos(jj), root(american),loc(6),lnks(5), txt("american"),ner('NATIONALITY'), truecase('INIT_UPPER'),entitylink('United_States'), link(1,'ADJP',r('ADJP',seg(5,6))), link(2,'NP',r('NP',seg(4,7))), link(3,'S',r('S',seg(3,7))), link(4,'SBAR',r('SBAR',seg(1,8))), link(5,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(adj),fner('s-misc'),fn('_')]), w( country, [ pos(nn), root(country),loc(7),lnks(4), txt("country"),truecase('LOWER'), link(1,'NP',r('NP',seg(4,7))), link(2,'S',r('S',seg(3,7))), link(3,'SBAR',r('SBAR',seg(1,8))), link(4,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(noun),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(8),lnks(2),txt("?"), link(1,'SBAR',r('SBAR',seg(1,8))), link(2,'CORENLP',r('CORENLP',seg(1,8))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "How large is the smallest american country ?", sentence80, whq( value&size&area-B, s( np(3+sg,np_head(Det,det(the(sg)),[sup(most,adj(small)),adj(american)],country),[]), verb(aux+be(Be),be(Be),active,pres+fin,[],posP([])), [ arg(arg_pred(Arg4),value80(adj(large),wh(value&size&area-B)))], []))). tmp : test80_result( "How large is the smallest american country ?", i_sentence, question80( [value&size&area-B], pred( quantV( det(the(sg)), thing&Thing-C, aggr( min, C, [E,F], '`'(ti(country,F)), '`'(measure_pred(thing,area,F,E))&'`'(ti(american,F))&'`'(true)), '`'(true), [], thing&Thing-C), identityQ(IdentityQ),true, ['`'(measure_pred(thing,area,C,B))]))). tmp : test80_result( "How large is the smallest american country ?", qplan, answer80([Measure]) :- ^( Aggregate80_Area, ( ^( SetOf_Min, ( setOf( Measure_Kw:American_Area_Country, ( ti(country,American_Area_Country) , measure_pred(thing,area,American_Area_Country,Measure_Kw) , ti(american,American_Area_Country)), SetOf_Min) , aggregate80(min,SetOf_Min,Aggregate80_Area))) , measure_pred(thing,area,Aggregate80_Area,Measure)))). tmp : test80_result("How large is the smallest american country ?",results80,[[--(0.133,ksqmiles)]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 800| true 1 9 7 2 19 | How large is the smallest american country ? ========================================================= tmp : test80_result( "Does the population of china exceed the population of india ?", into_lexical_segs, [ w( does, [ pos(vbz), root(do),loc(1),lnks(3),txt("Does"), truecase('INIT_UPPER'),link(1,'VP',r('VP',seg(1,10))), link(2,'S',r('S',seg(1,11))), link(3,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(verb),fner(o),fn('do.01')]), w( the, [ pos(dt), root(the),loc(2),lnks(7),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(2,3))), link(2,'NP',r('NP',seg(2,5))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(2,10))), link(5,'VP',r('VP',seg(1,10))), link(6,'S',r('S',seg(1,11))), link(7,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(dt),loc(3),dep_parent(det,n(cities,4)), node(n(the,3)),flair,upos(det),fner(o), fn('_')]), w( population, [ pos(nn), root(population),loc(3),lnks(7), txt("population"),truecase('LOWER'), link(1,'NP',r('NP',seg(2,3))), link(2,'NP',r('NP',seg(2,5))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(2,10))), link(5,'VP',r('VP',seg(1,10))), link(6,'S',r('S',seg(1,11))), link(7,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(4),lnks(7),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,5))), link(2,'NP',r('NP',seg(2,5))), link(3,'S',r('S',seg(2,10))), link(4,'SBAR',r('SBAR',seg(2,10))), link(5,'VP',r('VP',seg(1,10))), link(6,'S',r('S',seg(1,11))), link(7,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(in),loc(5),dep_child(pobj,n(countries,7)), dep_parent(prep,n(cities,4)),node(n(of,5)),flair, upos(adp),fner(o),fn('_')]), w( china, [ root(china), loc(5),lnks(8),txt("china"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Porcelain'), link(1,'NP',r('NP',seg(5,5))), link(2,'PP',r('PP',seg(4,5))), link(3,'NP',r('NP',seg(2,5))), link(4,'S',r('S',seg(2,10))), link(5,'SBAR',r('SBAR',seg(2,10))), link(6,'VP',r('VP',seg(1,10))), link(7,'S',r('S',seg(1,11))), link(8,'CORENLP',r('CORENLP',seg(1,11))),old_pos(nn), pos(nnp),flair,upos(propn),fner('s-loc'), fn('_')]), w( exceed, [ alt(pos(vbp)), root(exceed),pos(vb),loc(6),lnks(6), txt("exceed"),truecase('LOWER'), link(1,'VP',r('VP',seg(6,10))), link(2,'S',r('S',seg(2,10))), link(3,'SBAR',r('SBAR',seg(2,10))), link(4,'VP',r('VP',seg(1,10))), link(5,'S',r('S',seg(1,11))), link(6,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(verb),fner(o),fn('exceed.01')]), w( the, [ pos(dt), root(the),loc(7),lnks(8),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(7,8))), link(2,'NP',r('NP',seg(7,10))), link(3,'VP',r('VP',seg(6,10))), link(4,'S',r('S',seg(2,10))), link(5,'SBAR',r('SBAR',seg(2,10))), link(6,'VP',r('VP',seg(1,10))), link(7,'S',r('S',seg(1,11))), link(8,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos(dt),loc(6),dep_parent(det,n(countries,7)), node(n(the,6)),flair,upos(det),fner(o), fn('_')]), w( population, [ pos(nn), root(population),loc(8),lnks(8), txt("population"),truecase('LOWER'), link(1,'NP',r('NP',seg(7,8))), link(2,'NP',r('NP',seg(7,10))), link(3,'VP',r('VP',seg(6,10))), link(4,'S',r('S',seg(2,10))), link(5,'SBAR',r('SBAR',seg(2,10))), link(6,'VP',r('VP',seg(1,10))), link(7,'S',r('S',seg(1,11))), link(8,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(9),lnks(8),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(9,10))), link(2,'NP',r('NP',seg(7,10))), link(3,'VP',r('VP',seg(6,10))), link(4,'S',r('S',seg(2,10))), link(5,'SBAR',r('SBAR',seg(2,10))), link(6,'VP',r('VP',seg(1,10))), link(7,'S',r('S',seg(1,11))), link(8,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(adp),fner(o),fn('_')]), w( india, [ pos(nnp), root(india),loc(10),lnks(9),txt("india"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('India'),corefed,#(1), txt(["india"]),type('PROPER'), numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(10,10))), link(2,'PP',r('PP',seg(9,10))), link(3,'NP',r('NP',seg(7,10))), link(4,'VP',r('VP',seg(6,10))), link(5,'S',r('S',seg(2,10))), link(6,'SBAR',r('SBAR',seg(2,10))), link(7,'VP',r('VP',seg(1,10))), link(8,'S',r('S',seg(1,11))), link(9,'CORENLP',r('CORENLP',seg(1,11))),flair, upos(propn),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(11),lnks(2),txt("?"), link(1,'S',r('S',seg(1,11))), link(2,'CORENLP',r('CORENLP',seg(1,11))),spacy, spos('.'),dep_parent(punct,n(are,2)), node(n(?,11)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Does the population of china exceed the population of india ?", sentence80, q( s( np( 3+sg, np_head(Det,det(the(sg)),[],population), [ prep_phrase(Prep,prep(of),np(3+sg,nameOf(China,china,[]),[]))]), verb(main+tv,exceed,active,pres+fin,[],posP([])), [ arg( dirO(DirO), np( 3+sg, np_head(Det6,det(the(sg)),[],population), [ prep_phrase(Prep10,prep(of),np(3+sg,nameOf(India,india,[]),[]))]))], []))). tmp : test80_result( "Does the population of china exceed the population of india ?", i_sentence, question80( [], pred( quantV( det(the(sg)), value&units&population-B, '`'(count_pred(thing,population,C,B)), '`'(true), [ quantV( identityQ(IdentityQ), thing&geo&country-C, '`'(named(C,china)),'`'(true), [], thing&geo&country-C)], value&units&population-B), identityQ(IdentityQ2), exceeds(B,D), [ quantV( det(the(sg)), value&units&population-D, '`'(count_pred(thing,population,E,D)), '`'(true), [ quantV( identityQ(IdentityQ3), thing&geo&country-E, '`'(named(E,india)),'`'(true), [], thing&geo&country-E)], value&units&population-D)]))). tmp : test80_result( "Does the population of china exceed the population of india ?", qplan, answer80([]) :- ^( Count_Exceeds, ( named(Population_China,china) , count_pred(thing,population,Population_China,Count_Exceeds) , ^( Exceeds_Count, ( named(Population_India,india) , count_pred(thing,population,Population_India,Exceeds_Count) , exceeds(Count_Exceeds,Exceeds_Count)))))). tmp : test80_result("Does the population of china exceed the population of india ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence _626| true 2 13 10 0 25 | Does the population of china exceed the population of india ? ========================================================= tmp : test80_result( "Does the population of china exceed 1000 million ?", into_lexical_segs, [ w( does, [ pos(vbz), root(do),loc(1),lnks(3),txt("Does"), truecase('INIT_UPPER'),link(1,'VP',r('VP',seg(1,8))), link(2,'S',r('S',seg(1,9))), link(3,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(verb),fner(o),fn('do.01')]), w( the, [ pos(dt), root(the),loc(2),lnks(7),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(2,3))), link(2,'NP',r('NP',seg(2,5))), link(3,'S',r('S',seg(2,8))), link(4,'SBAR',r('SBAR',seg(2,8))), link(5,'VP',r('VP',seg(1,8))), link(6,'S',r('S',seg(1,9))), link(7,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(det),fner(o),fn('_')]), w( population, [ pos(nn), root(population),loc(3),lnks(7), txt("population"),truecase('LOWER'), link(1,'NP',r('NP',seg(2,3))), link(2,'NP',r('NP',seg(2,5))), link(3,'S',r('S',seg(2,8))), link(4,'SBAR',r('SBAR',seg(2,8))), link(5,'VP',r('VP',seg(1,8))), link(6,'S',r('S',seg(1,9))), link(7,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(noun),fner(o),fn('_')]), w( of, [ pos(in), root(of),loc(4),lnks(7),txt("of"), truecase('LOWER'),link(1,'PP',r('PP',seg(4,5))), link(2,'NP',r('NP',seg(2,5))), link(3,'S',r('S',seg(2,8))), link(4,'SBAR',r('SBAR',seg(2,8))), link(5,'VP',r('VP',seg(1,8))), link(6,'S',r('S',seg(1,9))), link(7,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(adp),fner(o),fn('_')]), w( china, [ root(china), loc(5),lnks(8),txt("china"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Porcelain'), link(1,'NP',r('NP',seg(5,5))), link(2,'PP',r('PP',seg(4,5))), link(3,'NP',r('NP',seg(2,5))), link(4,'S',r('S',seg(2,8))), link(5,'SBAR',r('SBAR',seg(2,8))), link(6,'VP',r('VP',seg(1,8))), link(7,'S',r('S',seg(1,9))), link(8,'CORENLP',r('CORENLP',seg(1,9))),old_pos(nn), pos(nnp),flair,upos(propn),fner('s-loc'), fn('_')]), w( exceed, [ alt(pos(vbp)), root(exceed),pos(vb),loc(6),lnks(6), txt("exceed"),truecase('INIT_UPPER'), link(1,'VP',r('VP',seg(6,8))), link(2,'S',r('S',seg(2,8))), link(3,'SBAR',r('SBAR',seg(2,8))), link(4,'VP',r('VP',seg(1,8))), link(5,'S',r('S',seg(1,9))), link(6,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(verb),fner(o),fn('exceed.01')]), w( '1000', [ pos(cd), root('1000'),loc(7),lnks(8),txt("1000"), ner('NUMBER'),normalizedNER(1000000000.0), link(1,'QP',r('QP',seg(7,8))), link(2,'NP',r('NP',seg(7,8))), link(3,'VP',r('VP',seg(6,8))), link(4,'S',r('S',seg(2,8))), link(5,'SBAR',r('SBAR',seg(2,8))), link(6,'VP',r('VP',seg(1,8))), link(7,'S',r('S',seg(1,9))), link(8,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(num),fner(o),fn('_')]), w( million, [ pos(cd), root(million),loc(8),lnks(8), txt("million"),ner('NUMBER'), normalizedNER(1000000000.0),truecase('LOWER'), link(1,'QP',r('QP',seg(7,8))), link(2,'NP',r('NP',seg(7,8))), link(3,'VP',r('VP',seg(6,8))), link(4,'S',r('S',seg(2,8))), link(5,'SBAR',r('SBAR',seg(2,8))), link(6,'VP',r('VP',seg(1,8))), link(7,'S',r('S',seg(1,9))), link(8,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(num),fner(o),fn('_')]), w( ?, [ pos('.'), root(?),loc(9),lnks(2),txt("?"), link(1,'S',r('S',seg(1,9))), link(2,'CORENLP',r('CORENLP',seg(1,9))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Does the population of china exceed 1000 million ?", sentence80, q( s( np( 3+sg, np_head(Det,det(the(sg)),[],population), [ prep_phrase(Prep,prep(of),np(3+sg,nameOf(China,china,[]),[]))]), verb(main+tv,exceed,active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+pl,np_head(QuantV,quantV(same,1000),[],million),[]))], []))). tmp : test80_result( "Does the population of china exceed 1000 million ?", i_sentence, question80( [], pred( quantV( det(the(sg)), value&units&population-B, '`'(count_pred(thing,population,C,B)), '`'(true), [ quantV( identityQ(IdentityQ), thing&geo&country-C, '`'(named(C,china)),'`'(true), [], thing&geo&country-C)], value&units&population-B), identityQ(IdentityQ2), exceeds(B,D), [ quantV( voidQ(VoidQ), value&units&population-D, '`'(same_values(D,--(1000,million))),'`'(true), [], value&units&population-D)]))). tmp : test80_result( "Does the population of china exceed 1000 million ?", qplan, answer80([]) :- ^( Count_Exceeds, ( named(Population_China,china) , count_pred(thing,population,Population_China,Count_Exceeds) , ^( Exceeds4, same_values(Exceeds4,--(1000,million)),exceeds(Count_Exceeds,Exceeds4))))). tmp : test80_result("Does the population of china exceed 1000 million ?",results80,[[false]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence _626| true 1 17 8 0 26 | Does the population of china exceed 1000 million ? ========================================================= tmp : test80_result( "Does the atlantic border spain ?", into_lexical_segs, [ w( does, [ pos(vbz), root(do),loc(1),lnks(2),txt("Does"), truecase('INIT_UPPER'),link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('do.01')]), w( the, [ pos(dt), root(the),loc(2),lnks(3),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(2,5))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),spacy, spos(dt),loc(3),dep_parent(det,n(cities,4)), node(n(the,3)),flair,upos(det),fner(o), fn('_')]), w( atlantic, [ pos(jj), root(atlantic),loc(3),lnks(3), txt("atlantic"),truecase('INIT_UPPER'), link(1,'NP',r('NP',seg(2,5))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(adj),fner('s-misc'),fn('_')]), w( border, [ pos(nn), root(border),loc(4),lnks(3),txt("border"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(2,5))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(noun),fner(o),fn('_')]), w( spain, [ root(spain), loc(5),lnks(3),txt("spain"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Spain'), link(1,'NP',r('NP',seg(2,5))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),old_pos(nn), pos(vb),flair,upos(verb),fner(o), fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),spacy, spos('.'),loc(10),dep_parent(punct,n(are,2)), node(n(?,10)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Does the atlantic border spain ?", sentence80, q( s( np(3+sg,nameOf(Atlantic,atlantic,[]),[]), verb(main+tv,border,active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+sg,nameOf(Spain,spain,[]),[]))], []))). tmp : test80_result( "Does the atlantic border spain ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&geo&seamass-C, '`'(named(C,atlantic)),'`'(true), [], thing&geo&seamass-C), identityQ(IdentityQ2), generic_pred(thing,border,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-B, '`'(named(B,spain)),'`'(true), [], thing&geo&country-B)]))). tmp : test80_result( "Does the atlantic border spain ?", qplan, answer80([]) :- named(Generic_Spain,spain) , named(Border_Atlantic,atlantic) , generic_pred(thing,border,Border_Atlantic,Generic_Spain)). tmp : test80_result("Does the atlantic border spain ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence _626| true 0 17 22 0 39 | Does the atlantic border spain ? ========================================================= tmp : test80_result( "Does Mexico border the United States ?", into_lexical_segs, [ w( does, [ pos(vbz), root(do),loc(1),lnks(2),txt("Does"), truecase('INIT_UPPER'),link(1,'S',r('S',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(verb),fner(o),fn('do.01')]), w( mexico, [ pos(nnp), root('Mexico'),loc(2),lnks(3), txt("Mexico"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('Mexico'), corefed,#(1),txt(["Mexico"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(2,2))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(propn),fner('s-loc'),fn('_')]), w( border, [ pos(vb), root(border),loc(3),lnks(3),txt("border"), truecase('LOWER'),link(1,'VP',r('VP',seg(3,6))), link(2,'S',r('S',seg(1,7))), link(3,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(verb),fner(o),fn('border.01')]), w( the, [ pos(dt), root(the),loc(4),lnks(4),txt("the"), truecase('LOWER'),link(1,'NP',r('NP',seg(4,6))), link(2,'VP',r('VP',seg(3,6))), link(3,'S',r('S',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(det),fner(o),fn('_')]), w( united, [ pos(nnp), root('United'),loc(5),lnks(4), txt("United"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('United_States'), link(1,'NP',r('NP',seg(4,6))), link(2,'VP',r('VP',seg(3,6))), link(3,'S',r('S',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(propn),fner('b-loc'),fn('_')]), w( states, [ pos(nnp), root('States'),loc(6),lnks(4), txt("States"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('United_States'), link(1,'NP',r('NP',seg(4,6))), link(2,'VP',r('VP',seg(3,6))), link(3,'S',r('S',seg(1,7))), link(4,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(propn),fner('e-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(7),lnks(2),txt("?"), link(1,'S',r('S',seg(1,7))), link(2,'CORENLP',r('CORENLP',seg(1,7))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Does Mexico border the United States ?", sentence80, q( s( np(3+sg,nameOf(Mexico,mexico,[]),[]), verb(main+tv,border,active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+sg,nameOf(United_states,united_states,[]),[]))], []))). tmp : test80_result( "Does Mexico border the United States ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&geo&country-C, '`'(named(C,mexico)),'`'(true), [], thing&geo&country-C), identityQ(IdentityQ2), generic_pred(thing,border,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-B, '`'(named(B,united_states)),'`'(true), [], thing&geo&country-B)]))). tmp : test80_result( "Does Mexico border the United States ?", qplan, answer80([]) :- named(Generic_United_states,united_states) , named(Border_Mexico,mexico) , generic_pred(thing,border,Border_Mexico,Generic_United_states)). tmp : test80_result("Does Mexico border the United States ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence _626| true 0 16 22 0 38 | Does Mexico border the United States ? ========================================================= tmp : test80_result( "Does america contain new York ?", into_lexical_segs, [ w( does, [ pos(vbz), root(do),loc(1),lnks(2),txt("Does"), truecase('INIT_UPPER'),link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('do.01')]), w( america, [ pos(nnp), root(america),loc(2),lnks(3), txt("america"),ner('COUNTRY'), truecase('INIT_UPPER'),entitylink('America'), corefed,#(1),txt(["america"]), type('PROPER'),numb('SINGULAR'),gender('NEUTRAL'), animacy('INANIMATE'),repm(@(true)), link(1,'NP',r('NP',seg(2,2))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(propn),fner('s-loc'),fn('_')]), w( contain, [ pos(vb), root(contain),loc(3),lnks(3), txt("contain"),truecase('LOWER'), link(1,'VP',r('VP',seg(3,5))), link(2,'S',r('S',seg(1,6))), link(3,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(verb),fner(o),fn('contain.01')]), w( new, [ pos(jj), root(new),loc(4),lnks(4),txt("new"), ner('STATE_OR_PROVINCE'),truecase('INIT_UPPER'), entitylink('USS_New_York_(1800)'), link(1,'NP',r('NP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'S',r('S',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),flair, upos(adj),fner('b-loc'),fn('_')]), w( york, [ root(york), loc(5),lnks(4),txt("York"), ner('STATE_OR_PROVINCE'),truecase('INIT_UPPER'), entitylink('USS_New_York_(1800)'), link(1,'NP',r('NP',seg(4,5))), link(2,'VP',r('VP',seg(3,5))), link(3,'S',r('S',seg(1,6))), link(4,'CORENLP',r('CORENLP',seg(1,6))),old_pos(nn), pos(nnp),flair,upos(propn),fner('e-loc'), fn('_')]), w( ?, [ pos('.'), root(?),loc(6),lnks(2),txt("?"), link(1,'S',r('S',seg(1,6))), link(2,'CORENLP',r('CORENLP',seg(1,6))),spacy, spos('.'),loc(11),dep_parent(punct,n(are,2)), node(n(?,11)),flair,upos(punct),fner(o), fn('_')])]). tmp : test80_result( "Does america contain new York ?", sentence80, q( s( np(3+sg,nameOf(America,america,[]),[]), verb(main+tv,contain,active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+sg,nameOf(New_york,new_york,[]),[]))], []))). tmp : test80_result( "Does america contain new York ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&geo&continent-C, '`'(named(C,america)),'`'(true), [], thing&geo&continent-C), identityQ(IdentityQ2), trans_pred(thing,contain,C,B), [ quantV( identityQ(IdentityQ3), thing&City&city-B, '`'(named(B,new_york)),'`'(true), [], thing&City&city-B)]))). tmp : test80_result( "Does america contain new York ?", qplan, answer80([]) :- named(New_york,new_york) , named(Contain_America,america) , trans_pred(thing,contain,Contain_America,New_york)). tmp : test80_result("Does america contain new York ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence _626| true 1 18 24 0 43 | Does america contain new York ? ========================================================= tmp : test80_result( "Does afghanistan border china ?", into_lexical_segs, [ w( does, [ pos(vbz), root(do),loc(1),lnks(2),txt("Does"), truecase('INIT_UPPER'),link(1,'S',r('S',seg(1,5))), link(2,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(verb),fner(o),fn('do.01')]), w( afghanistan, [ root(afghanistan), loc(2),lnks(3),txt("afghanistan"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Afghanistan'),link(1,'NP',r('NP',seg(2,4))), link(2,'S',r('S',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),old_pos(jj), pos(nnp),flair,upos(propn),fner('s-loc'), fn('_')]), w( border, [ pos(nn), root(border),loc(3),lnks(3),txt("border"), truecase('INIT_UPPER'),link(1,'NP',r('NP',seg(2,4))), link(2,'S',r('S',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(noun),fner(o),fn('_')]), w( china, [ pos(nn), root(china),loc(4),lnks(3),txt("china"), ner('COUNTRY'),truecase('INIT_UPPER'), entitylink('Porcelain'),link(1,'NP',r('NP',seg(2,4))), link(2,'S',r('S',seg(1,5))), link(3,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(noun),fner('s-loc'),fn('_')]), w( ?, [ pos('.'), root(?),loc(5),lnks(2),txt("?"), link(1,'S',r('S',seg(1,5))), link(2,'CORENLP',r('CORENLP',seg(1,5))),flair, upos(punct),fner(o),fn('_')])]). tmp : test80_result( "Does afghanistan border china ?", sentence80, q( s( np(3+sg,nameOf(Afghanistan,afghanistan,[]),[]), verb(main+tv,border,active,pres+fin,[],posP([])), [ arg(dirO(DirO),np(3+sg,nameOf(China,china,[]),[]))], []))). tmp : test80_result( "Does afghanistan border china ?", i_sentence, question80( [], pred( quantV( identityQ(IdentityQ), thing&geo&country-C, '`'(named(C,afghanistan)),'`'(true), [], thing&geo&country-C), identityQ(IdentityQ2), generic_pred(thing,border,C,B), [ quantV( identityQ(IdentityQ3), thing&geo&country-B, '`'(named(B,china)),'`'(true), [], thing&geo&country-B)]))). tmp : test80_result( "Does afghanistan border china ?", qplan, answer80([]) :- named(Generic_China,china) , named(Border_Afghanistan,afghanistan) , generic_pred(thing,border,Border_Afghanistan,Generic_China)). tmp : test80_result("Does afghanistan border china ?",results80,[[true]]). Test| Passed Parse Semantics Planning Reply TOTAL | Sentence 200| true 1 18 25 0 44 | Does afghanistan border china ?