factor out get donor select statements
updated predicate assertions for near integers and n-grams