CARDINALITY OF ASSOCIATIONS
GENERAL
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(wordid) AS N FROM synsets LEFT JOIN senses USING(synsetid) GROUP BY synsetid) AS C
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(synsetid) AS N FROM words LEFT JOIN senses USING(wordid) GROUP BY wordid) AS C
MORPHOLOGY
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(wordid) AS N FROM morphs LEFT JOIN morphmaps USING(morphid) GROUP BY morphid) AS C
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(morphid) AS N FROM words LEFT JOIN morphmaps USING(wordid) GROUP BY wordid) AS C
VERBFRAMES
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(frameid) AS N FROM senses LEFT JOIN vframemaps USING(wordid,synsetid) GROUP BY synsetid,wordid) AS C
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(CONCAT(wordid,synsetid)) AS N FROM vframes LEFT JOIN vframemaps USING(frameid) GROUP BY frameid) AS C
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(sentenceid) AS N FROM senses LEFT JOIN vframesentencemaps USING(wordid,synsetid) GROUP BY synsetid,wordid) AS C
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(CONCAT(wordid,synsetid)) AS N FROM vframesentences LEFT JOIN vframesentencemaps USING(sentenceid) GROUP BY sentenceid) AS C
LEGACY SYNSETS
SELECT COUNT(*) FROM synsets21
SELECT COUNT(*) FROM synsets20
LEGACY SENSEMAPS
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(*) AS N FROM senses LEFT JOIN sensemaps2030 USING(wordid,synsetid) GROUP BY wordid,synsetid) AS C
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(CONCAT(wordid,synsetid)) AS N FROM senses20 LEFT JOIN sensemaps2030 USING(wordid,synsetid) GROUP BY wordid,synsetid) AS C
LEGACY SYNSETMAPS
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(synset2id) AS N FROM synsets LEFT JOIN synsetmaps2130 USING(synsetid) GROUP BY synsetid) AS C
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(synset2id) AS N FROM synsets LEFT JOIN synsetmaps2030 USING(synsetid) GROUP BY synsetid) AS C
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(synsetid) N FROM synsetmaps2130 GROUP BY synset2id) AS C
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(synsetid) N FROM synsetmaps2030 GROUP BY synset2id) AS C
VERBNET : CLASSES
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(classid) AS N FROM words LEFT JOIN vnclassmembers USING(wordid) GROUP BY wordid) AS C
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(wordid) AS N FROM vnclasses LEFT JOIN vnclassmembers USING(classid) GROUP BY classid) AS C
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(frameid) AS N FROM senses LEFT JOIN vnframemaps USING(wordid,synsetid) GROUP BY synsetid,wordid) AS C
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(CONCAT(wordid,synsetid)) AS N FROM vnframes LEFT JOIN vnframemaps USING(frameid) GROUP BY frameid) AS C
VERBNET : ROLES
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(roleid) AS N FROM senses LEFT JOIN vnrolemaps USING(wordid,synsetid) GROUP BY synsetid,wordid) AS C
SELECT MIN(N),MAX(N) FROM ( SELECT COUNT(CONCAT(wordid,synsetid)) AS N FROM vnroles LEFT JOIN vnrolemaps USING(roleid) GROUP BY roleid) AS C