So, the reason that the code looks like this is because it's joining each of those strings in the tuple to the integer, and what you get is SQL that looks like this:

```product name = %(product0)s AND version_string = %(version0)s AND is_rapid_beta = TRUE```

The integer on the end is important for the right population of values from the dict, which has the structure of 

```{'version0': '3.0', 'product0': 'Waterwolf'}```