hotel grades have been awarded for the fewest number of years from which hotel grading authority?
Entity
m.01rmsg
AAA
class class literal
travel.hotel_grading_authority travel.hotel_grade 0^^http://www.w3.org/2001/XMLSchema#int
travel.hotel_grading_authority travel.hotel_grade type.datetime
Hotel Grading Authority Hotel Grade 0
none none argmin
travel.hotel_grading_authority.grades_awarded travel.hotel_grade.years_awarded
Grades Awarded Years Awarded
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 :travel.hotel_grading_authority . 
?x1 :type.object.type :travel.hotel_grade . 
{
SELECT (MIN(?y2) AS ?x2)  WHERE { 
?y0 :type.object.type :travel.hotel_grading_authority . 
?y1 :type.object.type :travel.hotel_grade . 
?y0 :travel.hotel_grading_authority.grades_awarded ?y1 . 
?y1 :travel.hotel_grade.years_awarded ?y2 . 
FILTER ( ?y0 != ?y1 && ?y0 != ?y2 && ?y1 != ?y2  )
}
}
?x0 :travel.hotel_grading_authority.grades_awarded ?x1 . 
?x1 :travel.hotel_grade.years_awarded ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(ARGMIN travel.hotel_grading_authority (JOIN travel.hotel_grading_authority.grades_awarded travel.hotel_grade.years_awarded))