fix query uri encoding
return no data when there are no targets