input: Write a function that, given an array of integers `nums`, an array of integers `queries`, and an integer `x`, returns a list of indices where the x-th occurrence specified in `queries` is located in `nums`. If the occurrence isn't found as described in `queries`, return -1 for that specific query.
  
  
  from typing import List
  
  def index_of_occurrence(nums: List[int], queries: List[int], x: int) -> List[int]:
      """
      Given a list of integers nums, a list of integers queries, and an integer x, this function computes the index of the x_th occurrence of each value in queries within the nums list. If an occurrence count specified in queries isn't available, return -1 for that position.
  
      Args:
      nums (List[int]): List of integers
      queries (List[int]): List of query occurrences to find
      x (int): The target integer to find in nums
  
      Returns:
      List[int]: Returns a list of indices or -1 based on the condition
  
      Examples:
      >>> nums = [1,3,1,7], queries = [1,3,2,4], x = 1
      [0,-1,2,-1]
      >>> nums = [1,2,3], queries = [10], x = 5
      [-1]
  
      Constraints:
      1 <= nums.length, queries.length <= 10^5
      1 <= queries[i] <= 10^5
      1 <= nums[i], x <= 10^4
      """
  
output: def index_of_occurrence(nums: List[int], queries: List[int], x: int) -> List[int]:
      result = []
      occurrences = {}
      
      for i, num in enumerate(nums):
          if num == x:
              if num in occurrences:
                  occurrences[num].append(i)
              else:
                  occurrences[num] = [i]
                  
      for query in queries:
          if x in occurrences and len(occurrences[x]) >= query:
              result.append(occurrences[x][query-1])
          else:
              result.append(-1)
              
      return result