select NAME, rank, count, surname_entries.id 'wiki_id' from surnames left join surname_entries on surname_entries.surname = surnames.name and surname_entries.entry_type = 1 where index2 = 'QI' order by rank asc limit 0,100 Surnames > Q > QI > QIL

Surnames > Q > QI > QIL

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
QA QI QO QU
QI QIA QIN QIU

Full Surname List Starting with QIL(Alphabetical)