you are given graphql query and variables, you need to created graphql query that includes the variables values in the query: 
query GraphSearchCount5($query: GraphEntityQueryInput, $controlId: ID, $projectId: NAME_1!, $first: Int, $after: NAME_1, $quick: Boolean) {
  graphSearch(
    query: $query
    controlId: $controlId
    projectId: $projectId
    first: $first
    after: $after
    quick: $quick
  ) {
    totalCount
    maxCountReached
    __typename
  }
}

{
  "query": {
    "type": [
      "VIRTUAL_MACHINE"
    ],
    "select": true,
    "relationships": [
      {
        "type": [
          {
            "type": "USES"
          }
        ],
        "with": {
          "type": [
            "VOLUME"
          ],
          "select": true,
          "where": {
            "_vertexID": {
              "EQUALS": [
                "123"
              ]
            }
          }
        }
      }
    ]
  },
  "projectId": "*",
  "quick": true
}