Fix #31: only plot valid positions

Note that HQL requires an operator and operand when using BOOLEAN data types (e.g., "WHERE flag = TRUE" as opposed to "WHERE flag").