Simple Question (Direct)
Simple Question
Q707548
P21
Q290
USER
What is the sex of Grantley Herbert Adams ?
(Q707548,P21,c(Q290))
action filter_type
action find
entity Q707548
relation P21
type Q290
['Q707548', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q707548 property:P21 ?z . ?z rdf:type ontology:Q290 }
Grantley Herbert Adams
action filter_type
action find
entity Grantley Herbert Adams
relation gender
type sex
['Grantley Herbert Adams', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Grantley_Herbert_Adams property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q707548,P21,c(Q290))
action filter_type
action find
entity Q707548
relation P21
type Q290
The sex of Grantley Herbert Adams is a [ANSWER]
['Q707548', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q707548 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
The sex of Grantley Herbert Adams is a male
male
action filter_type
action find
entity Grantley Herbert Adams
relation gender
type sex
['Grantley Herbert Adams', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Grantley_Herbert_Adams property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q707548
P159
Q7210356
USER
Which political organization has its HQ location at Grantley Herbert Adams ?
(c(Q7210356),P159,Q707548)
action filter_type
action find_reverse
entity Q707548
relation P159
type Q7210356
[{'concept': 'Q7210356'}, 'P159', 'Q707548']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q7210356 . ?d property:P159 resource:Q707548 }
Grantley Herbert Adams
action filter_type
action find_reverse
entity Grantley Herbert Adams
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'Grantley Herbert Adams']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_organization . ?d property:headquarters_location resource:Grantley_Herbert_Adams }
[]
political organization
Q740420
SYSTEM
Barbados Labour Party
Q740420
(c(Q7210356),P159,Q707548)
action filter_type
action find_reverse
entity Q707548
relation P159
type Q7210356
The [ANSWER] has its HQ location at Grantley Herbert Adams
[{'concept': 'Q7210356'}, 'P159', 'Q707548']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q7210356 . ?d property:P159 resource:Q707548 }
Barbados Labour Party
The Barbados Labour Party has its HQ location at Grantley Herbert Adams
Barbados Labour Party
action filter_type
action find_reverse
entity Grantley Herbert Adams
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'Grantley Herbert Adams']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_organization . ?d property:headquarters_location resource:Grantley_Herbert_Adams }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q740420
P112
Q618779
USER
What is the name of the founder of that political organization ?
(Q740420,P112,c(Q618779))
action filter_type
action find
entity Q740420
relation P112
type Q618779
['Q740420', 'P112', {'concept': 'Q618779'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q618779 . resource:Q740420 property:P112 ?x }
Barbados Labour Party
action filter_type
action find
entity Barbados Labour Party
relation founder
type award
['Barbados Labour Party', 'founder', {'concept': 'award'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:award . resource:Barbados_Labour_Party property:founder ?x }
[]
award
Q209690
SYSTEM
Sir
Q209690
(Q740420,P112,c(Q618779))
action filter_type
action find
entity Q740420
relation P112
type Q618779
The name of the founder of that political organization is the [ANSWER]
['Q740420', 'P112', {'concept': 'Q618779'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q618779 . resource:Q740420 property:P112 ?x }
Sir
The name of the founder of that political organization is the Sir
Sir
action filter_type
action find
entity Barbados Labour Party
relation founder
type award
['Barbados Labour Party', 'founder', {'concept': 'award'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:award . resource:Barbados_Labour_Party property:founder ?x }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1230516 Q740420
P488 P161
Q502895
USER
Which people were the chairpersons of Barbados Labour Party or starred in Dive Bomber ?
OR((Q740420,P488,c(Q502895)), (Q1230516,P161,c(Q502895)))
action filter_type
action union
action find
entity Q740420
relation P488
action find
entity Q1230516
relation P161
type Q502895
{'OR': [['Q740420', 'P488', {'concept': 'Q502895'}], ['Q1230516', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . { { resource:Q740420 property:P488 ?y } UNION { resource:Q1230516 property:P161 ?y } } }
Dive Bomber Barbados Labour Party
action filter_type
action union
action find
entity Barbados Labour Party
relation chairperson
action find
entity Dive Bomber
relation cast member
type common name
{'OR': [['Barbados Labour Party', 'chairperson', {'concept': 'common name'}], ['Dive Bomber', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . { { resource:Barbados_Labour_Party property:chairperson ?y } UNION { resource:Dive_Bomber property:cast_member ?y } } }
[]
common name
Q3500809 Q2756542 Q6687485 Q6137080 Q356309 Q450047 Q93188 Q364135 Q242482 Q356389
SYSTEM
Some of them are Stuart Holmes, Craig Stevens, Louis Jean Heydt, James K Anderson, Fred MacMurray, Ann Doran, Errol Flynn, Ralph Bellamy, Alexis Smith, Owen Arthur
Q359446 Q3500809 Q356309 Q1848730 Q364135 Q450047 Q82360 Q951224 Q93188 Q242482 Q6137080 Q6687485 Q2756542 Q356389
OR((Q740420,P488,c(Q502895)), (Q1230516,P161,c(Q502895)))
action filter_type
action union
action find
entity Q740420
relation P488
action find
entity Q1230516
relation P161
type Q502895
[ANSWERS] were the chairpersons of Barbados Labour Party or starred in Dive Bomber
{'OR': [['Q740420', 'P488', {'concept': 'Q502895'}], ['Q1230516', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q502895 . { { resource:Q740420 property:P488 ?y } UNION { resource:Q1230516 property:P161 ?y } } }
Regis Toomey Stuart Holmes Fred MacMurray Moroni Olsen Ralph Bellamy Ann Doran Robert Armstrong Howard Hickman Errol Flynn Alexis Smith James K Anderson Louis Jean Heydt Craig Stevens Owen Arthur
Stuart Holmes, Craig Stevens, Louis Jean Heydt, James K Anderson, Fred MacMurray, Ann Doran, Errol Flynn, Ralph Bellamy, Alexis Smith and Owen Arthur were the chairpersons of Barbados Labour Party or starred in Dive Bomber
Stuart Holmes Craig Stevens Louis Jean Heydt James K Anderson Fred MacMurray Ann Doran Errol Flynn Ralph Bellamy Alexis Smith Owen Arthur
action filter_type
action union
action find
entity Barbados Labour Party
relation chairperson
action find
entity Dive Bomber
relation cast member
type common name
{'OR': [['Barbados Labour Party', 'chairperson', {'concept': 'common name'}], ['Dive Bomber', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:common_name . { { resource:Barbados_Labour_Party property:chairperson ?y } UNION { resource:Dive_Bomber property:cast_member ?y } } }
[]