fishing license is is the type of permit for which government issues permit?
Entity Entity
m.0nbwf m.011ky7hg
Long Beach Massachusetts Fishing License
class entity
government.government_issued_permit m.0_lfh42
government.government_issued_permit government.government_permit_type
Government Issued Permit Fishing license
none none
government.government_issued_permit.permit_type
Permit type
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 :government.government_issued_permit . 
VALUES ?x1 { :m.0_lfh42 } 
?x0 :government.government_issued_permit.permit_type ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND government.government_issued_permit (JOIN government.government_issued_permit.permit_type m.0_lfh42))