Simple Question (Direct)
Simple Question
Q432717
P106
Q151885
USER
Which concept is the profession of Charlotte Despard ?
(Q432717,P106,c(Q151885))
action filter_type
action find
entity Q432717
relation P106
type Q151885
['Q432717', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?a WHERE { resource:Q432717 property:P106 ?a . ?a rdf:type ontology:Q151885 }
Charlotte Despard
action filter_type
action find
entity Charlotte Despard
relation occupation
type concept
['Charlotte Despard', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?a WHERE { resource:Charlotte_Despard property:occupation ?a . ?a rdf:type ontology:concept }
[]
concept
Q15253558
SYSTEM
activist
Q15253558
(Q432717,P106,c(Q151885))
action filter_type
action find
entity Q432717
relation P106
type Q151885
As [ANSWER] is the profession of Charlotte Despard
['Q432717', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?a WHERE { resource:Q432717 property:P106 ?a . ?a rdf:type ontology:Q151885 }
activist
As activist is the profession of Charlotte Despard
activist
action filter_type
action find
entity Charlotte Despard
relation occupation
type concept
['Charlotte Despard', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?a WHERE { resource:Charlotte_Despard property:occupation ?a . ?a rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15253558
P425
Q9332
USER
Who has that concept as the associated field of occupation ?
(Q15253558,P425,c(Q9332))
action filter_type
action find
entity Q15253558
relation P425
type Q9332
['Q15253558', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ?h WHERE { resource:Q15253558 property:P425 ?h . ?h rdf:type ontology:Q9332 }
activist
action filter_type
action find
entity activist
relation field of this occupation
type behavior
['activist', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ?h WHERE { resource:activist property:field_of_this_occupation ?h . ?h rdf:type ontology:behavior }
[]
behavior
Q203764
SYSTEM
activism
Q203764
(Q15253558,P425,c(Q9332))
action filter_type
action find
entity Q15253558
relation P425
type Q9332
To [ANSWER] has that concept as the associated field of occupation
['Q15253558', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ?h WHERE { resource:Q15253558 property:P425 ?h . ?h rdf:type ontology:Q9332 }
activism
To activism has that concept as the associated field of occupation
activism
action filter_type
action find
entity activist
relation field of this occupation
type behavior
['activist', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ?h WHERE { resource:activist property:field_of_this_occupation ?h . ?h rdf:type ontology:behavior }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3303297
Q9332
USER
And also tell me about ironmaster?
(Q3303297,P425,c(Q9332))
action filter_type
action find
entity Q3303297
relation P425
type Q9332
['Q3303297', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ?z WHERE { resource:Q3303297 property:P425 ?z . ?z rdf:type ontology:Q9332 }
ironmaster
action filter_type
action find
entity ironmaster
relation field of this occupation
type behavior
['ironmaster', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ?z WHERE { resource:ironmaster property:field_of_this_occupation ?z . ?z rdf:type ontology:behavior }
[]
behavior
Q193057
SYSTEM
forging
Q193057
(Q3303297,P425,c(Q9332))
action filter_type
action find
entity Q3303297
relation P425
type Q9332
[ANSWER]
['Q3303297', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ?z WHERE { resource:Q3303297 property:P425 ?z . ?z rdf:type ontology:Q9332 }
forging
forging
action filter_type
action find
entity ironmaster
relation field of this occupation
type behavior
['ironmaster', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ?z WHERE { resource:ironmaster property:field_of_this_occupation ?z . ?z rdf:type ontology:behavior }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q193057
P106 P21
Q502895
USER
Which people have forging as his/her means of employment and have the gender as male ?
AND((c(Q502895),P106,Q193057), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q193057
relation P106
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q193057'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?p WHERE { ?p property:P106 resource:Q193057 . ?p property:P21 resource:Q6581097 . ?p rdf:type ontology:Q502895 }
male forging
action filter_type
action intersection
action find_reverse
entity forging
relation occupation
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'forging'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?p WHERE { ?p property:occupation resource:forging . ?p property:gender resource:male . ?p rdf:type ontology:common_name }
[]
common name
Q5625581
SYSTEM
Gyula Jungfer
Q5625581
AND((c(Q502895),P106,Q193057), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q193057
relation P106
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have forging as his/her means of employment and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q193057'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?p WHERE { ?p property:P106 resource:Q193057 . ?p property:P21 resource:Q6581097 . ?p rdf:type ontology:Q502895 }
Gyula Jungfer
Gyula Jungfer have forging as his/her means of employment and have the gender as male
Gyula Jungfer
action filter_type
action intersection
action find_reverse
entity forging
relation occupation
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'forging'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?p WHERE { ?p property:occupation resource:forging . ?p property:gender resource:male . ?p rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5698296 Q5625581
P20
Q56061
USER
Which administrative territories did the expiration of Gyula Jungfer or Antonio Fernández Grilo occur ?
OR((Q5625581,P20,c(Q56061)), (Q5698296,P20,c(Q56061)))
action filter_type
action union
action find
entity Q5625581
relation P20
action find
entity Q5698296
relation P20
type Q56061
{'OR': [['Q5625581', 'P20', {'concept': 'Q56061'}], ['Q5698296', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q5625581 property:P20 ?t } UNION { resource:Q5698296 property:P20 ?t } } . ?t rdf:type ontology:Q56061 }
Antonio Fernández Grilo Gyula Jungfer
action filter_type
action union
action find
entity Gyula Jungfer
relation place of death
action find
entity Antonio Fernández Grilo
relation place of death
type administrative territorial entity
{'OR': [['Gyula Jungfer', 'place of death', {'concept': 'administrative territorial entity'}], ['Antonio Fernández Grilo', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Gyula_Jungfer property:place_of_death ?t } UNION { resource:Antonio_Fernández_Grilo property:place_of_death ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807 Q1781
SYSTEM
Madrid, Budapest
Q2807 Q1781
OR((Q5625581,P20,c(Q56061)), (Q5698296,P20,c(Q56061)))
action filter_type
action union
action find
entity Q5625581
relation P20
action find
entity Q5698296
relation P20
type Q56061
The expiration of Gyula Jungfer or Antonio Fernández Grilo occurred in [ANSWERS]
{'OR': [['Q5625581', 'P20', {'concept': 'Q56061'}], ['Q5698296', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q5625581 property:P20 ?t } UNION { resource:Q5698296 property:P20 ?t } } . ?t rdf:type ontology:Q56061 }
Madrid Budapest
The expiration of Gyula Jungfer or Antonio Fernández Grilo occurred in Madrid and Budapest
Madrid Budapest
action filter_type
action union
action find
entity Gyula Jungfer
relation place of death
action find
entity Antonio Fernández Grilo
relation place of death
type administrative territorial entity
{'OR': [['Gyula Jungfer', 'place of death', {'concept': 'administrative territorial entity'}], ['Antonio Fernández Grilo', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Gyula_Jungfer property:place_of_death ?t } UNION { resource:Antonio_Fernández_Grilo property:place_of_death ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q780560
P190
Q56061
USER
Are Chak Enayetnagar twin town of those ones ?
(Q780560,P190,Q2807) (Q780560,P190,Q1781)
action is_in
entity prev_answer
action find
entity Q780560
relation P190
['Q780560', 'P190', 'Q2807'] ['Q780560', 'P190', 'Q1781']
ASK WHERE { resource:Q780560 property:P190 ?h . VALUES ( ?h ) { ( resource:Q2807 ) ( resource:Q1781 ) } }
Chak Enayetnagar
action is_in
entity prev_answer
action find
entity Chak Enayetnagar
relation sister city
['Chak Enayetnagar', 'sister city', 'Madrid'] ['Chak Enayetnagar', 'sister city', 'Budapest']
ASK WHERE { resource:Chak_Enayetnagar property:sister_city ?h . VALUES ( ?h ) { ( resource:Madrid ) ( resource:Budapest ) } }
[]
administrative territorial entity
SYSTEM
NO
(Q780560,P190,Q2807) (Q780560,P190,Q1781)
action is_in
entity prev_answer
action find
entity Q780560
relation P190
[ANSWER]
['Q780560', 'P190', 'Q2807'] ['Q780560', 'P190', 'Q1781']
ASK WHERE { resource:Q780560 property:P190 ?h . VALUES ( ?h ) { ( resource:Q2807 ) ( resource:Q1781 ) } }
No
action is_in
entity prev_answer
action find
entity Chak Enayetnagar
relation sister city
['Chak Enayetnagar', 'sister city', 'Madrid'] ['Chak Enayetnagar', 'sister city', 'Budapest']
ASK WHERE { resource:Chak_Enayetnagar property:sister_city ?h . VALUES ( ?h ) { ( resource:Madrid ) ( resource:Budapest ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2807
P36
Q7275
USER
Which states have Madrid as their administrative centre ?
(c(Q7275),P36,Q2807)
action filter_type
action find_reverse
entity Q2807
relation P36
type Q7275
[{'concept': 'Q7275'}, 'P36', 'Q2807']
SELECT DISTINCT ?s WHERE { ?s property:P36 resource:Q2807 . ?s rdf:type ontology:Q7275 }
Madrid
action filter_type
action find_reverse
entity Madrid
relation capital
type state
[{'concept': 'state'}, 'capital', 'Madrid']
SELECT DISTINCT ?s WHERE { ?s property:capital resource:Madrid . ?s rdf:type ontology:state }
[]
state
Q1709185 Q1044536 Q497777
SYSTEM
Kingdom of Spain under Joseph Bonaparte, Spain under the Restoration, First Spanish Republic
Q1044536 Q497777 Q1709185 Q1322229 Q178038
(c(Q7275),P36,Q2807)
action filter_type
action find_reverse
entity Q2807
relation P36
type Q7275
[ANSWERS] have Madrid as their administrative centre
[{'concept': 'Q7275'}, 'P36', 'Q2807']
SELECT DISTINCT ?s WHERE { ?s property:P36 resource:Q2807 . ?s rdf:type ontology:Q7275 }
Spain under the Restoration First Spanish Republic Kingdom of Spain under Joseph Bonaparte Enlightenment in Spain Second Spanish Republic
Kingdom of Spain under Joseph Bonaparte, Spain under the Restoration and First Spanish Republic have Madrid as their administrative centre
Kingdom of Spain under Joseph Bonaparte Spain under the Restoration First Spanish Republic
action filter_type
action find_reverse
entity Madrid
relation capital
type state
[{'concept': 'state'}, 'capital', 'Madrid']
SELECT DISTINCT ?s WHERE { ?s property:capital resource:Madrid . ?s rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1709185 Q1044536 Q497777
P1376
Q56061
USER
Which administrative territories are the capital of those states ?
(c(Q56061),P1376,Q1709185) (c(Q56061),P1376,Q1044536) (c(Q56061),P1376,Q497777)
action filter_type
action find_reverse
entity prev_answer
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q1709185'] [{'concept': 'Q56061'}, 'P1376', 'Q1044536'] [{'concept': 'Q56061'}, 'P1376', 'Q497777']
SELECT DISTINCT ?x WHERE { ?x property:P1376 ?w . VALUES ( ?w ) { ( resource:Q1044536 ) ( resource:Q497777 ) ( resource:Q1709185 ) } . ?x rdf:type ontology:Q56061 }
Kingdom of Spain under Joseph Bonaparte Spain under the Restoration First Spanish Republic
action filter_type
action find_reverse
entity prev_answer
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Kingdom of Spain under Joseph Bonaparte'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Spain under the Restoration'] [{'concept': 'administrative territorial entity'}, 'capital of', 'First Spanish Republic']
SELECT DISTINCT ?x WHERE { ?x property:capital_of ?w . VALUES ( ?w ) { ( resource:Spain_under_the_Restoration ) ( resource:First_Spanish_Republic ) ( resource:Kingdom_of_Spain_under_Joseph_Bonaparte ) } . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807
SYSTEM
Madrid
Q2807
(c(Q56061),P1376,Q1709185) (c(Q56061),P1376,Q1044536) (c(Q56061),P1376,Q497777)
action filter_type
action find_reverse
entity prev_answer
relation P1376
type Q56061
[ANSWER] is the capital of those states
[{'concept': 'Q56061'}, 'P1376', 'Q1709185'] [{'concept': 'Q56061'}, 'P1376', 'Q1044536'] [{'concept': 'Q56061'}, 'P1376', 'Q497777']
SELECT DISTINCT ?x WHERE { ?x property:P1376 ?w . VALUES ( ?w ) { ( resource:Q1044536 ) ( resource:Q497777 ) ( resource:Q1709185 ) } . ?x rdf:type ontology:Q56061 }
Madrid
Madrid is the capital of those states
Madrid
action filter_type
action find_reverse
entity prev_answer
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Kingdom of Spain under Joseph Bonaparte'] [{'concept': 'administrative territorial entity'}, 'capital of', 'Spain under the Restoration'] [{'concept': 'administrative territorial entity'}, 'capital of', 'First Spanish Republic']
SELECT DISTINCT ?x WHERE { ?x property:capital_of ?w . VALUES ( ?w ) { ( resource:Spain_under_the_Restoration ) ( resource:First_Spanish_Republic ) ( resource:Kingdom_of_Spain_under_Joseph_Bonaparte ) } . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1044536
P140
Q879146
USER
What is the religion associated with Spain under the Restoration ?
(Q1044536,P140,c(Q879146))
action filter_type
action find
entity Q1044536
relation P140
type Q879146
['Q1044536', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?a WHERE { resource:Q1044536 property:P140 ?a . ?a rdf:type ontology:Q879146 }
Spain under the Restoration
action filter_type
action find
entity Spain under the Restoration
relation religion
type Christian denomination
['Spain under the Restoration', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?a WHERE { resource:Spain_under_the_Restoration property:religion ?a . ?a rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q1044536,P140,c(Q879146))
action filter_type
action find
entity Q1044536
relation P140
type Q879146
The religion associated with Spain under the Restoration is the [ANSWER]
['Q1044536', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?a WHERE { resource:Q1044536 property:P140 ?a . ?a rdf:type ontology:Q879146 }
Roman Catholic Church
The religion associated with Spain under the Restoration is the Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Spain under the Restoration
relation religion
type Christian denomination
['Spain under the Restoration', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?a WHERE { resource:Spain_under_the_Restoration property:religion ?a . ?a rdf:type ontology:Christian_denomination }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1288978
Q879146
USER
And what about Georg Anton Brinkmann?
(Q1288978,P140,c(Q879146))
action filter_type
action find
entity Q1288978
relation P140
type Q879146
['Q1288978', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?t WHERE { resource:Q1288978 property:P140 ?t . ?t rdf:type ontology:Q879146 }
Georg Anton Brinkmann
action filter_type
action find
entity Georg Anton Brinkmann
relation religion
type Christian denomination
['Georg Anton Brinkmann', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?t WHERE { resource:Georg_Anton_Brinkmann property:religion ?t . ?t rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q1288978,P140,c(Q879146))
action filter_type
action find
entity Q1288978
relation P140
type Q879146
[ANSWER]
['Q1288978', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?t WHERE { resource:Q1288978 property:P140 ?t . ?t rdf:type ontology:Q879146 }
Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Georg Anton Brinkmann
relation religion
type Christian denomination
['Georg Anton Brinkmann', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?t WHERE { resource:Georg_Anton_Brinkmann property:religion ?t . ?t rdf:type ontology:Christian_denomination }
[]