---
# System prepended metadata

title: Introduction

---

# Introduction

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 interweb - write down both the SQL commands / queries you used and your answers to the clues - and figure out where Carmen's headed, so we can catch her and bring her in.

# Setup

Download the seed data and create a new folder for this assignment. https://drive.google.com/file/d/13oKgZWDd4GgsNC-zJIX7N1OKMxbU1s3f/view?usp=sharing 

You’ll need to load the seed data into postgres so you can access the data. 

Navigate to your directory where you created the project with the world.sql file in it and run `psql -f world.sql` to load the data in.

You should be plopped into a psql command line. You can run SQL commands in here directly. If that does not work, try `psql -d world`

`\d`  is useful command in the psql command line for listing the tables in a database - go ahead and give that a try. 

Lastly, writing your sql commands directly in the command line can be a pain, you can write your sql commands in a separate file called `clues.sql` and execute it with `psql -d world -f clues.sql`. Feel free to use `clues.sql` as you go through. 

Attempt to solve each clue by querying the world database. As you go through each one you’ll get closer to finding Carmen! 


# Clues

- 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.

- 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.

- 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.

- 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.

- Oh no, she pulled a switch: there are two cities with very similar names, but in totally different parts of the globe! She's headed to South America as we speak; go find a city whose name is like the one we were headed to, but doesn't end the same. Find out the city, and do another search for what country it's in. Hurry!

 - We're close! Our South American agent says she just got a taxi at the airport, and is headed towards the capital! Look up the country's capital, and get there pronto! Send us the name of where you're headed and we'll follow right behind you!

- She knows we're on to her: her taxi dropped her off at the international airport, and she beat us to the boarding gates. We have one chance to catch her, we just have to know where she's heading and beat her to the landing dock.

- Lucky for us, she's getting cocky. She left us a note, and I'm sure she thinks she's very clever, but if we can crack it, we can finally put her where she belongs – behind bars.

>   Our play date of late has been unusually fun –
>   As an agent, I'll say, you've been a joy to outrun.
>   And while the food here is great, and the people – so nice!
>   I need a little more sunshine with my slice of life.
>   So I'm off to add one to the population I find
>   In a city of ninety-one thousand and now, eighty five.
> 