def fastpath_dup_rid_input(app):
    """
    Access DB directly. Fetch > 1 measurements from fastpath that share the same
    report_id and input
    Returns (rid, input, count)
    """
    sql = """
    SELECT report_id, input,
    from fastpath
    group by report_id, input
    HAVING count(*) > 1
    LIMIT 1
    """
    with app.app_context():
        for row in app.db_session.execute(sql):
            return (row[0], row[1])