Verified Pages
Which pages have the verified badge on Meta, and who created them?
- Joins
- Filtering
- Sorting
Challenge brief
Understand the request
Creator Partnerships is reaching out to verified pages for a co-marketing campaign and needs their contact list.
List verified pages with page name, category, follower count, and creator username.
Return
- page_name
- category
- followers_count
- creator_username
Constraints
- Return verified pages only
- Show the largest follower counts first
Data you will use
Review the relevant tables before deciding how to join, filter, or aggregate them.
pages
page_idINTEGERpage_nameVARCHAR(100)categoryVARCHAR(50)created_byINTEGERfollowers_countINTEGERverifiedINTEGER
users
user_idINTEGERusernameVARCHAR(50)
Hints, when you need them
Open one clue at a time so you still do the reasoning.
Hint 1
Page data is in pages. The verified column is an integer flag: 1 = verified, 0 = not verified. Creator username is in users — connect via created_by.
Hint 2
INNER JOIN pages to users on created_by = user_id. WHERE p.verified = 1. Alias u.username AS creator_username. ORDER BY p.followers_count DESC.
Hint 3
Start with the tables that establish the result grain for question 6, select the required output aliases, and add the remaining joins, filters, aggregation, and ordering one clause at a time.
Verified SQL answer
Attempt the problem first, then compare structure and reasoning—not just syntax.
Reveal solution and explanation
SELECT p.page_name, p.category, p.followers_count, u.username AS creator_username FROM pages p INNER JOIN users u ON p.created_by = u.user_id WHERE p.verified = 1 ORDER BY p.followers_count DESC;Why this works
verified is stored as 1/0. WHERE p.verified = 1 keeps only the 2 verified pages. Design Inspiration (verified = 0) is excluded.
Success check
2 verified pages — AI Research Hub (8500 followers) and Tech News Daily (5000 followers)
Expected result
Use this output to verify values, aliases, ordering, and row count.
| page_name | category | followers_count | creator_username |
|---|---|---|---|
| AI Research Hub | Science | 8500 | mike_wilson |
| Tech News Daily | Technology | 5000 | john_doe |
Learn the concepts behind this answer
Strengthen your understanding with these targeted learning topics:
Continue practicing
Explore related company challenges
Google
Independent Google-style search, advertising, user-engagement, and video-product SQL practice.
Netflix
Independent Netflix-style streaming, subscription, catalog, ratings, and engagement SQL practice.
Airbnb
Independent Airbnb-style marketplace, booking, listing, payment, review, and guest analytics SQL practice.
Return to the complete interview preparation experience.