Table: rcb_stats
Columns: opposition
span
lost
tied
success_rate

Question: What is the total number of losses against the Rajasthan Royals with more than 0 ties?
SQL: SELECT COUNT("lost") FROM rcb_stats WHERE "opposition" = 'rajasthan royals' AND "tied" > 0

Question: What is the average number of losses when there are more than 0 ties?
SQL: SELECT AVG("lost") FROM rcb_stats WHERE "tied" > 0