Minor bugfix in polypharmacy and diabetes test queries

Signed-off-by: Jeremy Ho <jujaga@gmail.com>