///|
pub fn sync_query_score(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut score = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int()
    if value >= threshold {
      score += 1
    }
  }
  score
}

///|
/// Stable application query sync_001.
pub fn sync_query_001(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      1
    if value % 2 == threshold % 2 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_002.
pub fn sync_query_002(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      2
    if value % 3 == threshold % 3 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_003.
pub fn sync_query_003(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      3
    if value % 4 == threshold % 4 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_004.
pub fn sync_query_004(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      4
    if value % 5 == threshold % 5 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_005.
pub fn sync_query_005(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      5
    if value % 6 == threshold % 6 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_006.
pub fn sync_query_006(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      6
    if value % 7 == threshold % 7 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_007.
pub fn sync_query_007(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      7
    if value % 8 == threshold % 8 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_008.
pub fn sync_query_008(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      8
    if value % 9 == threshold % 9 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_009.
pub fn sync_query_009(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      9
    if value % 10 == threshold % 10 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_010.
pub fn sync_query_010(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      10
    if value % 11 == threshold % 11 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_011.
pub fn sync_query_011(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      11
    if value % 12 == threshold % 12 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_012.
pub fn sync_query_012(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      12
    if value % 13 == threshold % 13 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_013.
pub fn sync_query_013(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      13
    if value % 14 == threshold % 14 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_014.
pub fn sync_query_014(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      14
    if value % 15 == threshold % 15 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_015.
pub fn sync_query_015(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      15
    if value % 16 == threshold % 16 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_016.
pub fn sync_query_016(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      16
    if value % 17 == threshold % 17 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_017.
pub fn sync_query_017(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      17
    if value % 18 == threshold % 18 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_018.
pub fn sync_query_018(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      18
    if value % 19 == threshold % 19 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_019.
pub fn sync_query_019(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      19
    if value % 20 == threshold % 20 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_020.
pub fn sync_query_020(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      20
    if value % 21 == threshold % 21 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_021.
pub fn sync_query_021(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      21
    if value % 22 == threshold % 22 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_022.
pub fn sync_query_022(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      22
    if value % 23 == threshold % 23 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_023.
pub fn sync_query_023(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      23
    if value % 24 == threshold % 24 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_024.
pub fn sync_query_024(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      24
    if value % 25 == threshold % 25 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_025.
pub fn sync_query_025(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      25
    if value % 26 == threshold % 26 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_026.
pub fn sync_query_026(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      26
    if value % 27 == threshold % 27 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_027.
pub fn sync_query_027(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      27
    if value % 28 == threshold % 28 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_028.
pub fn sync_query_028(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      28
    if value % 29 == threshold % 29 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_029.
pub fn sync_query_029(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      29
    if value % 30 == threshold % 30 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_030.
pub fn sync_query_030(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      30
    if value % 31 == threshold % 31 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_031.
pub fn sync_query_031(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      31
    if value % 32 == threshold % 32 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_032.
pub fn sync_query_032(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      32
    if value % 33 == threshold % 33 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_033.
pub fn sync_query_033(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      33
    if value % 34 == threshold % 34 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_034.
pub fn sync_query_034(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      34
    if value % 35 == threshold % 35 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_035.
pub fn sync_query_035(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      35
    if value % 36 == threshold % 36 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_036.
pub fn sync_query_036(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      36
    if value % 37 == threshold % 37 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_037.
pub fn sync_query_037(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      37
    if value % 38 == threshold % 38 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_038.
pub fn sync_query_038(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      38
    if value % 39 == threshold % 39 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_039.
pub fn sync_query_039(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      39
    if value % 40 == threshold % 40 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_040.
pub fn sync_query_040(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      40
    if value % 41 == threshold % 41 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_041.
pub fn sync_query_041(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      41
    if value % 42 == threshold % 42 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_042.
pub fn sync_query_042(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      42
    if value % 43 == threshold % 43 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_043.
pub fn sync_query_043(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      43
    if value % 44 == threshold % 44 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_044.
pub fn sync_query_044(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      44
    if value % 45 == threshold % 45 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_045.
pub fn sync_query_045(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      45
    if value % 46 == threshold % 46 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_046.
pub fn sync_query_046(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      46
    if value % 47 == threshold % 47 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_047.
pub fn sync_query_047(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      47
    if value % 48 == threshold % 48 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_048.
pub fn sync_query_048(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      48
    if value % 49 == threshold % 49 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_049.
pub fn sync_query_049(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      49
    if value % 50 == threshold % 50 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_050.
pub fn sync_query_050(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      50
    if value % 51 == threshold % 51 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_051.
pub fn sync_query_051(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      51
    if value % 52 == threshold % 52 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_052.
pub fn sync_query_052(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      52
    if value % 53 == threshold % 53 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_053.
pub fn sync_query_053(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      53
    if value % 54 == threshold % 54 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_054.
pub fn sync_query_054(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      54
    if value % 55 == threshold % 55 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_055.
pub fn sync_query_055(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      55
    if value % 56 == threshold % 56 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_056.
pub fn sync_query_056(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      56
    if value % 57 == threshold % 57 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_057.
pub fn sync_query_057(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      57
    if value % 58 == threshold % 58 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_058.
pub fn sync_query_058(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      58
    if value % 59 == threshold % 59 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_059.
pub fn sync_query_059(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      59
    if value % 60 == threshold % 60 {
      total += 1
    }
  }
  total
}

///|
/// Stable application query sync_060.
pub fn sync_query_060(items : ArrayView[SyncMatch], threshold : Int) -> Int {
  let mut total = 0
  for item in items {
    let value = item.image.frame_id.length() +
      item.annotations.length() +
      item.max_abs_offset_ns.to_int() +
      60
    if value % 61 == threshold % 61 {
      total += 1
    }
  }
  total
}