what are the military ranks for the service members who served until 1865-09?
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 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 Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity
m.05sjk2 m.03b0_w m.015czt m.014y19 m.09b523 m.05xqr2 m.0284gtf m.0h66s4c m.02ry51 m.01cpkt m.0j2rt m.03c3lsq m.0cl39k m.01cpmd m.025t7vs m.03m3ty5 m.0218k8 m.0g686w m.08j24f m.01k9tk m.01cpjx m.0fmz2b m.01qbrt m.01cpmv m.08gj4b m.01jqx4 m.066bv m.02ry4c m.01j03h m.02ry2v m.0b1npp m.05yr8p m.01x4hy m.01_m32 m.0j2rd m.01c83m m.01g2j2 m.0130xz m.0523_nk m.0b1nr1 m.06w240q m.04jjlgw m.01gzh0 m.0284gkw m.05w7bf m.0dlllt7 m.086jg m.02ry1f m.02rx_m m.04fvnb m.03v962 m.0jt2z6s m.0248v m.02lg0r m.0385m7 m.02ry0q m.0909_m m.04zj0_ m.0hfq_ m.08mjcs m.0c258p2 m.0_frn27 m.012qdp m.01cpjg m.03b1dy m.0h6536c m.04jy0n m.01qbv9 m.03x7g8 m.02rntmz m.08j25g m.01cpkc m.01d7pt m.0385ml m.02pkm28 m.05sjks m.042128 m.0y6d119 m.01lqvg m.0b5sz6 m.01qbt6 m.031jy4 m.02rxyn m.059xt5y m.03v2vm m.087pg3 m.0254p4 m.02y13g m.052njjv m.02q6hk m.074djt m.0b8866 m.0h3ylnv m.0788wf m.0779y5 m.01s8xt m.02rn4dt m.02ld1l m.01sf2h m.0119g4rv m.0h3pf2h m.010gq7p1 m.0114dpp5 m.01cg6m m.04n4nbq m.01myhv m.04zz8d m.01cpn8 m.0d6fp2 m.02v_bgy m.01qbsh m.03v0wj m.02w14x m.060jx6 m.039vxx m.02rx_z m.02p27x5 m.08yxd8 m.07dzc4 m.03194t m.03cw99x m.02pklgn m.0412d7r m.02lghf m.073y_x m.02s4tj m.08gj94 m.0yp404m m.03b1py m.03cw8_y m.0p0w5 m.02q6h6 m.0gm_38 m.0by4dt m.072ktv m.09kww3 m.0zcvz7n m.0c0lmd2 m.04jbx9t m.052njgv m.08kfk0 m.059xt7y m.08gj9v m.02pgd1 m.0b1nrd m.0h6ljz7 m.0190jy m.02ry5d m.02q347_ m.01qbtz m.0bqv7xm m.05kpn2_ m.03v40h m.0267mj_ m.059xt74 m.0h2_hs m.059xt8d
Risaldar Lance sergeant Lieutenant Regimental sergeant major Lieutenant colonel Flight cadet Captain Lieutenant colonel Flying officer Major Rear admiral Captain LCPL Lieutenant commander Platoon leader Brigadier general First lieutenant Captain Colonel Lieutenant colonel Major general Divisional general Private first class Second lieutenant Aluf Aide-De-Camp Private Flight lieutenant Corporal Air marshal Lieutenant-general Bombardier Admiral of the Fleet Lance corporal Vice admiral Colonel Sergeant General officer Captain Lieutenant-general Surgeon-General Generalmajor Commander Captain Jemadar Rear admiral Warrant officer Air vice-marshal Wing commander Hauptsturmführer Company sergeant major Vice Chief of the Defence Staff Commodore Chief petty officer Naik Air commodore Subedar-major Feldwebel Admiral Rifleman Boeotarch Chief of Military Personnel Military Officer Lieutenant general Havildar Lieutenant commander Brigadeführer Sergeant major Sub-lieutenant Gunner Colonel Brigadier Brigadier general Lance naik Brigadier Subedar Commander-in-Chief, India Chief of the General Staff Commander-in-chief Major Master sergeant Gruppenführer Squadron leader Flight Commander Flight sergeant Field marshal Lieutenant (junior grade) Ensign Deputy Chief Technical sergeant Daejang Master gunner Infantry Lieutenant Admiral Trooper Midshipman Quartermaster sergeant Bombardier United States Secretary of the Air Force Major general Commander of the Royal Canadian Navy Oberfeldwebel Chief of the General Staff Field marshal Commandant-General of the RAF Regiment Sapper Leading seaman General of the Army Boy seaman Stabskapitän Staff sergeant Colonel-in-Chief Marshal of the Soviet Union Pipe major Fusilier Group captain Intelligence officer Guardsman Brigade major General of the Armies Commander Major-general Supreme Commander Petty officer Mareşal Drill instructor General Chief of the General Staff Company quartermaster sergeant Rear admiral Flight surgeon Senior airman Technician Fourth Grade Cornet General of the Army Luftwaffenhelfer Able Seaman Hoplite Battalion surgeon Fight Engineer Chief of General Staff Squadron Commander General Petty officer, second class Lieutenant general Electronics Officer Chaplain Pilot officer Ordinary seaman First sergeant Platoon Commander Director Regimental quartermaster sergeant Brigade Commander Wing Leader Titles in academia Wing Commander, RAF Marham
class class literal
military.rank military.military_service 1865-09^^http://www.w3.org/2001/XMLSchema#gYearMonth
military.rank military.military_service type.datetime
Military rank Military Service 1865-09
none none >=
military.rank.used_by_services military.military_service.to_date
Servicemembers To date
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 :military.rank . 
?x1 :type.object.type :military.military_service . 
FILTER (?x2 >= "1865-09-08:00"^^<http://www.w3.org/2001/XMLSchema#gYearMonth>)
?x0 :military.rank.used_by_services ?x1 . 
?x1 :military.military_service.to_date ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND military.rank (JOIN military.rank.used_by_services (ge military.military_service.to_date 1865-09^^http://www.w3.org/2001/XMLSchema#gYearMonth)))