text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  CREATE TABLE table_name_47 (total_attempts INTEGER, percentage VARCHAR, service_aces VARCHAR)
  ### Question:
  When there is less than 13 services aces with a percentage greater than 0.34900000000000003, what is the smallest total attempts?
  ### Answer:
  SELECT MIN(total_attempts) FROM table_name_47 WHERE percentage > 0.34900000000000003 AND service_aces < 13