Time: combinatorial match explosion.

An attempt to normalize query and results to try to find a match.  The
tricky bit is understanding the query, of course, so this is still
vaguely naive.

Feel free to ignore this pull request.  It's mostly just an alternative idea. Perhaps it will inspire you to something better.