Support custom SQL select statements