Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started