I am trying to get the list of Synonyms and Samples given the wordid. After a lot of trial and error I can get the samples for all the synsets but not the actual synonyms. Here
It appears that the senses table captures all relationships between each word and all its synsets and should be used in conjunction with inner join with words and synsets tables to to unravel all relationships
select sen.wordid,
w.lemma,
w.mantiq,
sen.senseid,
sen.synsetid,
syn.definition,
from senses sen
inner join words w on sen.wordid = w.wordid
inner join synsets syn on sen.synsetid = syn.synsetid
order by sen.wordid, sen.synsetid;
You do not need a LEFT JOIN since the fields you join upon do not appear to be nullable.