Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the following tables with the structure: 1. athletes(id integer,sex text,dob text, height float, weight integer, nationality text ) (File in: https://ufile.io/escnl) 2. countries(country text,code

Given the following tables with the structure:

1. athletes(id integer,sex text,dob text, height float, weight integer, nationality text ) (File in: https://ufile.io/escnl)

2. countries(country text,code text, population integer, gdp float) (File in: https://ufile.io/hjot8)

3. games(id integer,name text, nationality text, sport text,gold integer, silver integer, bronze integer) (File in: https://ufile.io/oi758)

Use SQLite3 to find the total number of gold medals won by the athletes with nationality 'USA'. And find the top 5 countries with the highest number of female athletes who have won at least one gold medal. List the names of these countries (full names and not the country code) along with their respective female athlete counts as output. Your output should be ordered by the count from highest to lowest.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

WHAT IS AUTOMATION TESTING?

Answered: 1 week ago

Question

What is Selenium? What are the advantages of Selenium?

Answered: 1 week ago

Question

Explain the various collection policies in receivables management.

Answered: 1 week ago

Question

2 The role of economic theory in economics.

Answered: 1 week ago