SELECT COUNT (*) AS BugCount FROM CardTypeTable,TypeTable WHERE CardTypeTable.TypeID = TypeTable.TypeID AND TypeName="Bug";
SELECT AVG(speed) FROM CardTable,CardTypeTable WHERE CardTable.ID = CardTypeTable.CardID AND CardTypeTable.TypeID=1;