Question: how many customers live in germany and have invoice
SQL: SELECT count ( * )  FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId   =   T2.CustomerId WHERE T1.country   =   "Germany"