What is the average share amount of the transactions?
select avg(share_count) from transactions
How many transactions have a share count smaller than 50?
select count(*) from transactions_lots as t1 join transactions as t2 on t1.transaction_id = t2.transaction_id where t2.share_count < 50
What are the lot details of lots associated with transactions with share count smaller than 50?
select t1.lot_details from lots as t1 join transactions_lots as t2 on t1.lot_id = t2.transaction_id join transactions as t3 on t2.transaction_id = t3.transaction_id where t3.share_count < 50