static L ai_thoughtSpace_queryTriples(Symbol a, Symbol b, Symbol c, AbstractThoughtSpace ts) { L l = null; if (!isDollarVar(a)) { if (!isDollarVar(b)) ret ts.getOneTwo(a, b); l = shortestListUnlessNull2(l, ts.getTriples(a, 0)); if (l(l) <= 1) ret l; } if (!isDollarVar(b)) { l = shortestListUnlessNull2(l, ts.getTriples(b, 1)); if (l(l) <= 1) ret l; } if (!isDollarVar(c)) l = shortestListUnlessNull2(l, ts.getTriples(c, 2)); ret l; }