I have added LIMIT 3 in below code to display 3 results of a JOINED table. However in Python multiple lines was displayed. In SQL execution, it is fine.
LIMIT 3