Simple Question (Direct)
Simple Question
Q370617
P106
Q12737077
USER
Which occupation is the profession of J. Hugo Aronson ?
(Q370617,P106,c(Q12737077))
action filter_type
action find
entity Q370617
relation P106
type Q12737077
['Q370617', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q370617 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
J. Hugo Aronson
action filter_type
action find
entity J. Hugo Aronson
relation occupation
type occupation
['J. Hugo Aronson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:J._Hugo_Aronson property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q370617,P106,c(Q12737077))
action filter_type
action find
entity Q370617
relation P106
type Q12737077
The [ANSWER] is the profession of J. Hugo Aronson
['Q370617', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q370617 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
politician
The politician is the profession of J. Hugo Aronson
politician
action filter_type
action find
entity J. Hugo Aronson
relation occupation
type occupation
['J. Hugo Aronson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:J._Hugo_Aronson property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q370617
P39
Q12737077
USER
What were the positions held by J. Hugo Aronson ?
(Q370617,P39,c(Q12737077))
action filter_type
action find
entity Q370617
relation P39
type Q12737077
['Q370617', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q370617 property:P39 ?k }
J. Hugo Aronson
action filter_type
action find
entity J. Hugo Aronson
relation position held
type occupation
['J. Hugo Aronson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:J._Hugo_Aronson property:position_held ?k }
[]
occupation
Q21365323 Q17496847 Q20801646
SYSTEM
member of the State Senate of Montana, Member of the Montana House of Representatives, Governor of Montana
Q21365323 Q17496847 Q20801646
(Q370617,P39,c(Q12737077))
action filter_type
action find
entity Q370617
relation P39
type Q12737077
The positions held by J. Hugo Aronson were [ANSWERS]
['Q370617', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q12737077 . resource:Q370617 property:P39 ?k }
member of the State Senate of Montana Member of the Montana House of Representatives Governor of Montana
The positions held by J. Hugo Aronson were member of the State Senate of Montana, Member of the Montana House of Representatives and Governor of Montana
member of the State Senate of Montana Member of the Montana House of Representatives Governor of Montana
action filter_type
action find
entity J. Hugo Aronson
relation position held
type occupation
['J. Hugo Aronson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:occupation . resource:J._Hugo_Aronson property:position_held ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20801646
P1313
Q852446
USER
Which US administrative territory has Governor of Montana as title of head of government ?
(c(Q852446),P1313,Q20801646)
action filter_type
action find_reverse
entity Q20801646
relation P1313
type Q852446
[{'concept': 'Q852446'}, 'P1313', 'Q20801646']
SELECT DISTINCT ?a WHERE { ?a property:P1313 resource:Q20801646 . ?a rdf:type ontology:Q852446 }
Governor of Montana
action filter_type
action find_reverse
entity Governor of Montana
relation office held by head of government
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'office held by head of government', 'Governor of Montana']
SELECT DISTINCT ?a WHERE { ?a property:office_held_by_head_of_government resource:Governor_of_Montana . ?a rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
administrative territorial entity of the United States
Q1212
SYSTEM
Montana
Q1212
(c(Q852446),P1313,Q20801646)
action filter_type
action find_reverse
entity Q20801646
relation P1313
type Q852446
In [ANSWER] has Governor of [ANSWER] as title of head of government
[{'concept': 'Q852446'}, 'P1313', 'Q20801646']
SELECT DISTINCT ?a WHERE { ?a property:P1313 resource:Q20801646 . ?a rdf:type ontology:Q852446 }
Montana
In Montana has Governor of Montana as title of head of government
Montana
action filter_type
action find_reverse
entity Governor of Montana
relation office held by head of government
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'office held by head of government', 'Governor of Montana']
SELECT DISTINCT ?a WHERE { ?a property:office_held_by_head_of_government resource:Governor_of_Montana . ?a rdf:type ontology:administrative_territorial_entity_of_the_United_States }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1212
P163
Q14660
USER
What is associated with that US administrative territory ?
(Q1212,P163,c(Q14660))
action filter_type
action find
entity Q1212
relation P163
type Q14660
['Q1212', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?v WHERE { resource:Q1212 property:P163 ?v . ?v rdf:type ontology:Q14660 }
Montana
action filter_type
action find
entity Montana
relation flag
type flag
['Montana', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?v WHERE { resource:Montana property:flag ?v . ?v rdf:type ontology:flag }
[]
flag
Q633087
SYSTEM
Flag of Montana
Q633087
(Q1212,P163,c(Q14660))
action filter_type
action find
entity Q1212
relation P163
type Q14660
Montana [ANSWER] is associated with that US administrative territory
['Q1212', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?v WHERE { resource:Q1212 property:P163 ?v . ?v rdf:type ontology:Q14660 }
Flag of Montana
Montana Flag of Montana is associated with that US administrative territory
Flag of Montana
action filter_type
action find
entity Montana
relation flag
type flag
['Montana', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?v WHERE { resource:Montana property:flag ?v . ?v rdf:type ontology:flag }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q1509 Q1212
P163
Q14660
USER
Or Tennessee?
OR((Q1212,P163,c(Q14660)), (Q1509,P163,c(Q14660)))
action filter_type
action union
action find
entity Q1212
relation P163
action find
entity Q1509
relation P163
type Q14660
{'OR': [['Q1212', 'P163', {'concept': 'Q14660'}], ['Q1509', 'P163', {'concept': 'Q14660'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?o ) { ( resource:Q1509 ) ( resource:Q1212 ) } . ?o property:P163 ?h } . ?h rdf:type ontology:Q14660 }
Tennessee Montana
action filter_type
action union
action find
entity Montana
relation flag
action find
entity Tennessee
relation flag
type flag
{'OR': [['Montana', 'flag', {'concept': 'flag'}], ['Tennessee', 'flag', {'concept': 'flag'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?o ) { ( resource:Tennessee ) ( resource:Montana ) } . ?o property:flag ?h } . ?h rdf:type ontology:flag }
[]
flag
Q605195 Q633087
SYSTEM
Flag of Tennessee, Flag of Montana
Q605195 Q633087
OR((Q1212,P163,c(Q14660)), (Q1509,P163,c(Q14660)))
action filter_type
action union
action find
entity Q1212
relation P163
action find
entity Q1509
relation P163
type Q14660
[ANSWERS]
{'OR': [['Q1212', 'P163', {'concept': 'Q14660'}], ['Q1509', 'P163', {'concept': 'Q14660'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?o ) { ( resource:Q1509 ) ( resource:Q1212 ) } . ?o property:P163 ?h } . ?h rdf:type ontology:Q14660 }
Flag of Tennessee Flag of Montana
Flag of Tennessee Flag of Montana
action filter_type
action union
action find
entity Montana
relation flag
action find
entity Tennessee
relation flag
type flag
{'OR': [['Montana', 'flag', {'concept': 'flag'}], ['Tennessee', 'flag', {'concept': 'flag'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?o ) { ( resource:Tennessee ) ( resource:Montana ) } . ?o property:flag ?h } . ?h rdf:type ontology:flag }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q605195 Q633087
P163
Q852446
USER
Which US administrative territories are associated with Flag of Tennessee and Flag of Montana ?
(c(Q852446),P163,Q605195) (c(Q852446),P163,Q633087)
action union
action filter_type
action find_reverse
entity Q605195
relation P163
type Q852446
action filter_type
action find_reverse
entity Q633087
relation P163
type Q852446
[{'concept': 'Q852446'}, 'P163', 'Q605195'] [{'concept': 'Q852446'}, 'P163', 'Q633087']
SELECT DISTINCT ?f WHERE { ?f property:P163 ?k . VALUES ( ?k ) { ( resource:Q633087 ) ( resource:Q605195 ) } }
Flag of Tennessee Flag of Montana
action union
action filter_type
action find_reverse
entity Flag of Tennessee
relation flag
type administrative territorial entity of the United States
action filter_type
action find_reverse
entity Flag of Montana
relation flag
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'flag', 'Flag of Tennessee'] [{'concept': 'administrative territorial entity of the United States'}, 'flag', 'Flag of Montana']
SELECT DISTINCT ?f WHERE { ?f property:flag ?k . VALUES ( ?k ) { ( resource:Flag_of_Montana ) ( resource:Flag_of_Tennessee ) } }
[]
administrative territorial entity of the United States
Q1509 Q1212
SYSTEM
Tennessee, Montana
Q1509 Q1212
(c(Q852446),P163,Q605195) (c(Q852446),P163,Q633087)
action union
action filter_type
action find_reverse
entity Q605195
relation P163
type Q852446
action filter_type
action find_reverse
entity Q633087
relation P163
type Q852446
And [ANSWERS] are associated with Flag of Tennessee and Flag of Montana
[{'concept': 'Q852446'}, 'P163', 'Q605195'] [{'concept': 'Q852446'}, 'P163', 'Q633087']
SELECT DISTINCT ?f WHERE { ?f property:P163 ?k . VALUES ( ?k ) { ( resource:Q633087 ) ( resource:Q605195 ) } }
Tennessee Montana
And Tennessee and Montana are associated with Flag of Tennessee and Flag of Montana
Tennessee Montana
action union
action filter_type
action find_reverse
entity Flag of Tennessee
relation flag
type administrative territorial entity of the United States
action filter_type
action find_reverse
entity Flag of Montana
relation flag
type administrative territorial entity of the United States
[{'concept': 'administrative territorial entity of the United States'}, 'flag', 'Flag of Tennessee'] [{'concept': 'administrative territorial entity of the United States'}, 'flag', 'Flag of Montana']
SELECT DISTINCT ?f WHERE { ?f property:flag ?k . VALUES ( ?k ) { ( resource:Flag_of_Montana ) ( resource:Flag_of_Tennessee ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1509
P138
Q56061
USER
Which administrative territory is namesake of that US administrative territory ?
(Q1509,P138,c(Q56061))
action filter_type
action find
entity Q1509
relation P138
type Q56061
['Q1509', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q1509 property:P138 ?p . ?p rdf:type ontology:Q56061 }
Tennessee
action filter_type
action find
entity Tennessee
relation named after
type administrative territorial entity
['Tennessee', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Tennessee property:named_after ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q1212
SYSTEM
Did you mean Montana ?
Q1509 Q1212
(Q1509,P138,c(Q56061)) (Q1212,P138,c(Q56061))
[ANSWER]
['Q1509', 'P138', {'concept': 'Q56061'}] ['Q1212', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q1509 property:P138 ?p . ?p rdf:type ontology:Q56061 }
Tennessee Montana
Did you mean Montana ?
Montana
['Tennessee', 'named after', {'concept': 'administrative territorial entity'}] ['Montana', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Tennessee property:named_after ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Tennessee. Could you tell me the answer for that?
(Q1509,P138,c(Q56061))
Q1509
['Q1509', 'P138', {'concept': 'Q56061'}]
['Tennessee', 'named after', {'concept': 'administrative territorial entity'}]
[]
Q265234
SYSTEM
Tanasi
Q265234
(Q1509,P138,c(Q56061))
action filter_type
action find
entity Q1509
relation P138
type Q56061
[ANSWER] is namesake of that US administrative territory
['Q1509', 'P138', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q1509 property:P138 ?p . ?p rdf:type ontology:Q56061 }
Tanasi
Tanasi is namesake of that US administrative territory
Tanasi
action filter_type
action find
entity Tennessee
relation named after
type administrative territorial entity
['Tennessee', 'named after', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Tennessee property:named_after ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]