The Numeric select list would be perfect if it could draw values from a specified table.
It pretty much does what I have in mind, except that it won't query columns other than the one where it stores values, meaning that the input must be a range too, instead of a single value store from an input text field.