extract features and submit queries