Question: What is the position held by Bonar Law who is elected in UK Parliamentary by-election?
Paraphrase: Bonar Law held what position in UK Parliamentary by election?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q166663 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P2715 wd:Q7864918 }