or row in cur :
   if count &lt; 5: print row
   count = count + 1
print count, 'rows.'

cur.execute("'SELECT * FROM Follows JOIN People 
    ON Follows.from_id = People.id WHERE People.id = 2"')
count = 0
print 'Connections for id=2:'
for row in cur :
   if count &lt; 5: print row
   count = count + 1
print count, 'rows.'

cur.close()
</font></pre><font color="black">In this program, we first dump out the <tt>People</tt>
and <tt>Follows</tt> and then dump out a subset of the
data in the tables joined toget