What are all the races?
select * from races
What are the names of those that were held after 2017?
select t1.name from races as t1 join circuits as t2 on t1.circuitid = t2.circuitid where t1.year > 2017
Among them, show those with their circuits in Spain.
select t1.name from races as t1 join circuits as t2 on t1.circuitid = t2.circuitid where t2.country = "Spain" and t1.year > 2017