Holders Rangers will face Aberdeen while nine-time winners Glasgow City have been drawn against Motherwell in the semi-finals of the Women’s Scottish Cup.
The ties were drawn live on the BBC Scotland television channel at half-time during the men’s Scottish Cup semi-final between Livingston and St Johnstone.
Rangers, who lifted the cup for the first time last season and who are currently third in the Scottish Women’s Premier League, edged out visitors Spartans, who lie ninth, 2-0 on Sunday.
They will face Aberdeen, were last in the final in 2006, after the side who currently sit eighth in the top flight beat second-tier hosts St Johnstone 4-1.
SWPL leaders City, who last lifted the trophy in 2019 and last reached the final in 2022, needed extra-time to overcome Heart of Midlothian, who sit fifth in the top flight, 3-2 away from home.
Opponents Motherwell, who were losing finalists in 2018 and currently lie sixth in the SWPL, eased through 3-0 away to second-tier Boroughmuir Thistle.
The semi-finals at Hampden Park are due to be played on the weekend of Saturday 26 and Sunday 27 April.