Commit bc71d908 authored by delanoe's avatar delanoe

[TEST] Some SQL queries to test ngrams.

parent 2420d55f
select nn.ngram_id from node_node_ngram as nn
JOIN node_node as n on nn.node_id = n.id
JOIN node_ngram as ng ON ng.id = nn.ngram_id
JOIN node_node_ngram as nng ON nng.ngram_id = nn.ngram_id
JOIN node_node as nodeList on nodeList.id = nn.node_id
JOIN node_nodetype as typ on typ.id = nodeList.type_id
WHERE n.parent_id = 1452569
AND ng.terms = 'moral support'
AND typ.name = 'MiamList'
GROUP BY nn.ngram_id
;
select * from node_nodengramngram as nnn
JOIN node_node as n on nnn.node_id = n.id
JOIN node_ngram as ng ON ng.id = nnn.ngramy_id
JOIN node_node as nodeList on nodeList.id = nnn.node_id
JOIN node_nodetype as typ on typ.id = nodeList.type_id
WHERE n.parent_id = 1452569
AND ng.terms = 'moral support'
AND typ.name = 'GroupList'
;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment