which system of nobility had the crown prince rank first?
Entity
m.01phzd
Kazoku
class class entity literal
royalty.system_of_nobility royalty.system_rank_relationship m.01j950 0^^http://www.w3.org/2001/XMLSchema#int
royalty.system_of_nobility royalty.system_rank_relationship royalty.noble_rank type.datetime
System of nobility System-Rank relationship Crown prince 0
none none none argmin
royalty.system_of_nobility.ranks royalty.system_rank_relationship.rank royalty.system_of_nobility.used_from_date
Ranks Rank Used from 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 :royalty.system_of_nobility . 
?x1 :type.object.type :royalty.system_rank_relationship . 
VALUES ?x2 { :m.01j950 } 
{
SELECT (MIN(?y3) AS ?x3)  WHERE { 
?y0 :type.object.type :royalty.system_of_nobility . 
?y1 :type.object.type :royalty.system_rank_relationship . 
VALUES ?y2 { :m.01j950 } 
?y0 :royalty.system_of_nobility.ranks ?y1 . 
?y1 :royalty.system_rank_relationship.rank ?y2 . 
?y0 :royalty.system_of_nobility.used_from_date ?y3 . 
FILTER ( ?y0 != ?y1 && ?y0 != ?y2 && ?y0 != ?y3 && ?y1 != ?y2 && ?y1 != ?y3 && ?y2 != ?y3  )
}
}
?x0 :royalty.system_of_nobility.ranks ?x1 . 
?x1 :royalty.system_rank_relationship.rank ?x2 . 
?x0 :royalty.system_of_nobility.used_from_date ?x3 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x0 != ?x3 && ?x1 != ?x2 && ?x1 != ?x3 && ?x2 != ?x3  )
}
}
(ARGMIN (AND royalty.system_of_nobility (JOIN royalty.system_of_nobility.ranks (JOIN royalty.system_rank_relationship.rank m.01j950))) royalty.system_of_nobility.used_from_date)