SQL Advent Challenge 2017: Day 18

Task #18:

How many letters were written by children from countries other than those in which there was at least one naughty child?

Answer 18 for the crossword:

The number returned by the query, with the digits reversed.

Challenge Accepted?

Use the SQL Advent Challenge sandbox to solve tasks and practice writing all kinds of SQL queries.