cooc_simple_sum.sql 245 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 SELECT id, 177 as node_id, x.ngram_id as ngramX_id, y.ngram_id as ngramY_id, COUNT(*) AS score FROM node_node_ngram AS x INNER JOIN node_node_ngram AS y ON x.node_id = y.node_id AND x.ngram_id <> y.ngram_id GROUP BY x.ngram_id, y.ngram_id