select * from thing where type=?