
# Carmen Sandiego
---
Title: Carmen Sandiego
Type: Homework
Modified by: Karolin Rafalski
Competencies: Basic SQL
---
## Introduction
#### Where In The World Is Carmen Sandiego?
We're going to use what we've learned already about searching with SQL commands, and apply it to chase down and capture an elusive and world-renowned thief, Carmen Sandiego. Follow the clues, use the documentation - write down **both** the SQL commands /queries you used and your answers to the clues (in the [find_carmen.sql](find_carmen.sql) file)- and figure out where Carmen's headed, so we can catch her and bring her in.
## Exercise
#### Requirements
- Use the [find_carmen.sql](find_carmen.sql) file as your "answer sheet"
- From the command line, let's create a new database called ```carmen``` and populate it with the SQL found in ```world.sql```
Use the postgres shell:
```
# Enter psql
psql
# Create database
CREATE DATABASE carmen;
# Connect to carmen
\c carmen
\i starter-code/world.SQL
```
Then, use the clues below to create the appropriate SQL queries to help you find Carmen and then, tell us where she's heading!! (Record your answers in the [find_carmen.sql](find_carmen.sql) file). Don't forget to git commit when you've found her!
### The Clues
- **Clue #1:** We recently got word that someone fitting Carmen Sandiego's description has been traveling through Southern Europe. She's most likely traveling someplace where she won't be noticed, so find the least populated country in Southern Europe, and we'll start looking for her there.
- **Clue #2:** Now that we're here, we have insight that Carmen was seen attending language classes in this country's officially recognized language. Check our databases and find out what language is spoken in this country, so we can call in a translator to work with you.
- **Clue #3:** We have new news on the classes Carmen attended: our gumshoes tell us she's moved on to a different country, a country where people speak *only* the language she was learning. Find out which nearby country speaks nothing but that language.
- **Clue #4:** We're booking the first flight out: maybe we've actually got a chance to catch her this time. There are only two cities she could be flying to in the country. One is named the *same* as the country – that would be too obvious. We're following our gut on this one; find out what other city in that country she might be flying to.