the american independent party joined as a party during what primary election?
Entity
m.03yxcpx
2008 American Independent Primary, California’s 47th Congressional District
class entity
government.primary_election m.01sqkw
government.primary_election government.political_party
Primary election American Independent Party
none none
government.primary_election.party
Party
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.primary_election . 
VALUES ?x1 { :m.01sqkw } 
?x0 :government.primary_election.party ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND government.primary_election (JOIN government.primary_election.party m.01sqkw))