async def METHOD_NAME(conn):
    ana = await tok.create_query_analyzer(conn)
    await add_word(conn, 1, 'foo', 'S', 'FOO', {'op': 'in'})
    await add_word(conn, 2, 'bar', 'w', 'BAR')
    query = await ana.analyze_query(make_phrase('foo BAR foo'))
    assert query.num_token_slots() == 3
    assert len(query.nodes[0].starting) == 1
    assert query.nodes[0].starting[0].ttype == TokenType.CATEGORY
    assert not query.nodes[2].starting