A new report has found that 84 of Scotland’s primary schools ensure that almost ever primary seven pupil is up to standard in reading, writing, numeracy, listening and talking.
The Sunday Times report used data submitted by schools in each of the four categories to come up with a mark out of a maximum of 400.
Read more: Prestigious international school that claimed steady pupil numbers could shut over falling roll
A total of 1,197 primary schools provided data for the annual Achievement in Curriculum for Excellence Levels publications, with the remaining 729 on the government database not participating, either because no children were up to standard, the school roll was too small or the data was not collected centrally.
Schools with a higher proportion of deprived pupils were weighted to rise up the league table to recognise their achievement in delivering a good education despite the challenges of poverty.
The schools were then placed in a league table according to how well they were performing.
In the area covered by Midlothian Council a total of 14 primaries received at least 350 points - with none scoring full marks.
Here are all 14 of the top performing primary schools in Midlothian.
Make sure you don't miss a moment of breaking news from across Scotland by signing up to our free newsletter here.

5. Roslin Primary School
Roslin Primary School dropped 20 marks in the numeracy category and 10 in the writing to finish with 370 points out of a maximum of 400. Again, fewer than 10 per cent of the school's pupils are categorised as being 'very deprived'. | Google Maps

6. St Luke's Primary School
St Luke's Primary School, in the village of Mayfield, is one of four Midlothian to score 360 points out of 400 in the report - dropping 20 points in the numeracy category and 10 points in reading and writing. Between 30-40 per cent of the school's 174 pupils come from 'very deprived' backgrounds. | Google Maps

7. St Andrew's Primary School
St Andrew's Primary School, in Gorebridge, dropped 10 marks in each of the four core educational categories to finish with 360 points in the report. Between 10-20 per cent of the school's 147 pupils come from 'very deprived' families. | Google Maps

8. Paradykes Primary School
Located in Loanhead, Paradykes Primary School dropped 20 points in the numeracy category and 10 points in each of the reading and writing categories for a total score of 360. 10-20 per cent of the school's 351 pupils are classed as 'very deprived'. | Google Maps

