Fixing incremental queries by attaching prolog queries to individual threads.