restructured docs

i think the synopsis should be put into the sql reference section, maybe under a subsection "Predicates"