beyer, peacock builds locomotives of which class?
Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity
m.0g9wdgk m.02xbjtk m.04mzjff m.06ksk7 m.0g54k61 m.07dgyr m.07fpgy m.08mh8f m.027cky6 m.07jldb m.0g57_tb m.04ld8d8 m.0wrc9m7 m.04d_ct8 m.0fqpg83 m.0f5s8n m.0g9y_mh m.0j_6q7b m.03gz7zs m.04y853x m.0r8m0d4 m.0ys_r00 m.09vmdp m.0h53t28 m.0wxv7n6 m.0j67064 m.04gg5np m.0hnd6b5 m.0gfdxjs m.0gtw7_3 m.04mx94p m.04zz0kg m.0h69562 m.0glrhns m.0j9k0_1 m.0czknc m.05f57jq m.05f82gj m.08b6s6 m.0wy07b4 m.06jl56 m.0yntb81 m.0c9whx m.0nc6b88 m.0dgqp5p m.0dz1ht m.08b65r m.046523r m.04n2gpt m.0g9tw58 m.03ydncx m.0yqj5bh m.0qsc9bt m.0j25d99 m.0gfdhpd m.0hncx9w m.0n46_tx m.0wy4_83 m.0hhtc2f m.0czkwb m.02q9ljy m.0j655sz m.04pfd0 m.02ryxzp m.04n103n m.012fwysq m.04mz5qr m.01262780 m.05tssc m.0h53zqp
CBSCR Bandon Tank Rhymney Railway R class New South Wales AD60 class locomotive LSWR 0298 Class South African Class 15A 4-8-2 British Rail Class 17 British Rail Class 25 GCR Class 9F New South Wales 46 class locomotive British Rail Class 82 South African Class 14B 4-8-2 New South Wales Z12 class locomotive New South Wales F351 class locomotive GCR Class 8 South African Class 15F 4-8-2 GNR Class N2 South African Class NG G16 2-6-2+2-6-2 South Australian Railways W class WAGR X class LT&SR 69 Class JGR Class 5500 BNR class P Metropolitan Railway A Class CGR class H1 New South Wales Z11 class locomotive LSWR 135 class Victorian Railways B class GCR Class 9J Cambrian Railways Jones Class 89 0-6-0 South African Class 5B 4-6-2 New South Wales C32 class locomotive South Australian Railways 400 class South African Class GEA 4-8-2+2-8-4 Queensland Beyer-Garratt class L&YR Class 2 (Aspinall) GNRI Class Q GNRI Class T2 WAGR V class NER Class P3 AD6029 GWR 5700 Class BNR class HSG SLNCR Lough class GCR Class 8C South Maitland Railways 10 Class GS&WR Class 101 GER Class S69 SECR L class New South Wales Z20 class locomotive South African Class 12 4-8-2 Taff Vale Railway O4 class BNR class NM SLNCR Leitrim class Finnish Steam Locomotive Class B1 South African Class 10B 4-6-2 GCR Class 9D Rhodesia Railways 15th class New South Wales Z15 class locomotive GCR Class 9Q BNCR Class S LSWR 415 class LSWR 380 class British Rail Class D2/11 GNRI Class S New South Wales C30 class locomotive EAR 60 class New South Wales D50 class locomotive DHR D Class LMS Stanier Class 8F CGR class C1 and C1a
class entity
rail.locomotive_class m.0532kq
rail.locomotive_class rail.locomotive_builder
Locomotive class beyer, peacock
none none
rail.locomotive_class.built_by
Built by
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :rail.locomotive_class . 
VALUES ?x1 { :m.0532kq } 
?x0 :rail.locomotive_class.built_by ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND rail.locomotive_class (JOIN rail.locomotive_class.built_by m.0532kq))