Simple Question (Direct)
Simple Question
Q7819653
P607
Q198
USER
What was the war that Tommy Macpherson took part in
(Q7819653,P607,c(Q198))
action filter_type
action find
entity Q7819653
relation P607
type Q198
['Q7819653', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?e WHERE { resource:Q7819653 property:P607 ?e . ?e rdf:type ontology:Q198 }
Tommy Macpherson
action filter_type
action find
entity Tommy Macpherson
relation conflict
type war
['Tommy Macpherson', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?e WHERE { resource:Tommy_Macpherson property:conflict ?e . ?e rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q7819653,P607,c(Q198))
action filter_type
action find
entity Q7819653
relation P607
type Q198
The war that Tommy Macpherson took part in was in [ANSWER]
['Q7819653', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?e WHERE { resource:Q7819653 property:P607 ?e . ?e rdf:type ontology:Q198 }
World War II
The war that Tommy Macpherson took part in was in World War II
World War II
action filter_type
action find
entity Tommy Macpherson
relation conflict
type war
['Tommy Macpherson', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?e WHERE { resource:Tommy_Macpherson property:conflict ?e . ?e rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7819653
P19
Q56061
USER
Where was that person born ?
(Q362,P19,c(Q56061))
action filter_type
action find
entity Q7819653
relation P19
type Q56061
['Q362', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q7819653 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Tommy Macpherson
action filter_type
action find
entity Tommy Macpherson
relation place of birth
type administrative territorial entity
['World War II', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Tommy_Macpherson property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q23436
SYSTEM
Edinburgh
Q23436
(Q362,P19,c(Q56061))
action filter_type
action find
entity Q7819653
relation P19
type Q56061
That person was born in [ANSWER]
['Q362', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q7819653 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Edinburgh
That person was born in Edinburgh
Edinburgh
action filter_type
action find
entity Tommy Macpherson
relation place of birth
type administrative territorial entity
['World War II', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Tommy_Macpherson property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q20387 Q7819653
P19 P190
Q56061
USER
Which administrative territories are the places of birth of Tommy Macpherson or are sister towns of Poggio a Caiano ?
OR((Q7819653,P19,c(Q56061)), (Q20387,P190,c(Q56061)))
action filter_type
action union
action find
entity Q7819653
relation P19
action find
entity Q20387
relation P190
type Q56061
{'OR': [['Q7819653', 'P19', {'concept': 'Q56061'}], ['Q20387', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . { { resource:Q7819653 property:P19 ?w } UNION { resource:Q20387 property:P190 ?w } } }
Poggio a Caiano Tommy Macpherson
action filter_type
action union
action find
entity Tommy Macpherson
relation place of birth
action find
entity Poggio a Caiano
relation sister city
type administrative territorial entity
{'OR': [['Tommy Macpherson', 'place of birth', {'concept': 'administrative territorial entity'}], ['Poggio a Caiano', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . { { resource:Tommy_Macpherson property:place_of_birth ?w } UNION { resource:Poggio_a_Caiano property:sister_city ?w } } }
[]
administrative territorial entity
Q2260996 Q23436
SYSTEM
Agounit, Edinburgh
Q2260996 Q23436
OR((Q7819653,P19,c(Q56061)), (Q20387,P190,c(Q56061)))
action filter_type
action union
action find
entity Q7819653
relation P19
action find
entity Q20387
relation P190
type Q56061
[ANSWERS] are the places of birth of Tommy Macpherson or are sister towns of Poggio a Caiano
{'OR': [['Q7819653', 'P19', {'concept': 'Q56061'}], ['Q20387', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . { { resource:Q7819653 property:P19 ?w } UNION { resource:Q20387 property:P190 ?w } } }
Agounit Edinburgh
Agounit and Edinburgh are the places of birth of Tommy Macpherson or are sister towns of Poggio a Caiano
Agounit Edinburgh
action filter_type
action union
action find
entity Tommy Macpherson
relation place of birth
action find
entity Poggio a Caiano
relation sister city
type administrative territorial entity
{'OR': [['Tommy Macpherson', 'place of birth', {'concept': 'administrative territorial entity'}], ['Poggio a Caiano', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . { { resource:Tommy_Macpherson property:place_of_birth ?w } UNION { resource:Poggio_a_Caiano property:sister_city ?w } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2260996 Q23436
P190
Q56061
USER
Which administrative territories are partner town of those ones ?
(c(Q56061),P190,Q2260996) (c(Q56061),P190,Q23436)
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q2260996'] [{'concept': 'Q56061'}, 'P190', 'Q23436']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . ?r property:P190 ?b . VALUES ( ?r ) { ( resource:Q2260996 ) ( resource:Q23436 ) } }
Agounit Edinburgh
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Agounit'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Edinburgh']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . ?r property:sister_city ?b . VALUES ( ?r ) { ( resource:Agounit ) ( resource:Edinburgh ) } }
[]
administrative territorial entity
Q216 Q2044 Q33959
SYSTEM
Vilnius, Florence, Nice
Q210093 Q24639 Q133073 Q15684 Q216 Q25410 Q1726 Q33959 Q2044
(c(Q56061),P190,Q2260996) (c(Q56061),P190,Q23436)
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS] are partner town of those ones
[{'concept': 'Q56061'}, 'P190', 'Q2260996'] [{'concept': 'Q56061'}, 'P190', 'Q23436']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . ?r property:P190 ?b . VALUES ( ?r ) { ( resource:Q2260996 ) ( resource:Q23436 ) } }
Motril Vancouver Dunedin Segovia Vilnius Aalborg Munich Nice Florence
Vilnius, Florence and Nice are partner town of those ones
Vilnius Florence Nice
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Agounit'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Edinburgh']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . ?r property:sister_city ?b . VALUES ( ?r ) { ( resource:Agounit ) ( resource:Edinburgh ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q23436
P1376
Q1048835
USER
Which political territory has Edinburgh has its first city ?
(Q23436,P1376,c(Q1048835))
action filter_type
action find
entity Q23436
relation P1376
type Q1048835
['Q23436', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1048835 . resource:Q23436 property:P1376 ?h }
Edinburgh
action filter_type
action find
entity Edinburgh
relation capital of
type political territorial entity
['Edinburgh', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:political_territorial_entity . resource:Edinburgh property:capital_of ?h }
[]
political territorial entity
Q2379199
SYSTEM
politics of Edinburgh
Q2379199
(Q23436,P1376,c(Q1048835))
action filter_type
action find
entity Q23436
relation P1376
type Q1048835
[ANSWER] has Edinburgh has its first city
['Q23436', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1048835 . resource:Q23436 property:P1376 ?h }
politics of Edinburgh
Politics of Edinburgh has Edinburgh has its first city
politics of Edinburgh
action filter_type
action find
entity Edinburgh
relation capital of
type political territorial entity
['Edinburgh', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:political_territorial_entity . resource:Edinburgh property:capital_of ?h }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q23436
Q7275
USER
And which state?
(Q23436,P1376,c(Q7275))
action filter_type
action find
entity Q23436
relation P1376
type Q7275
['Q23436', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q7275 . resource:Q23436 property:P1376 ?w }
Edinburgh
action filter_type
action find
entity Edinburgh
relation capital of
type state
['Edinburgh', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:state . resource:Edinburgh property:capital_of ?w }
[]
state
Q230791
SYSTEM
Kingdom of Scotland
Q230791
(Q23436,P1376,c(Q7275))
action filter_type
action find
entity Q23436
relation P1376
type Q7275
[ANSWER]
['Q23436', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q7275 . resource:Q23436 property:P1376 ?w }
Kingdom of Scotland
Kingdom of Scotland
action filter_type
action find
entity Edinburgh
relation capital of
type state
['Edinburgh', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:state . resource:Edinburgh property:capital_of ?w }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q20387
P19 P21
Q502895
USER
Which people were born at Poggio a Caiano and are a male ?
AND((c(Q502895),P19,Q20387), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q20387
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q20387'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i property:P19 resource:Q20387 . ?i property:P21 resource:Q6581097 . ?i rdf:type ontology:Q502895 }
male Poggio a Caiano
action filter_type
action intersection
action find_reverse
entity Poggio a Caiano
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Poggio a Caiano'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i property:place_of_birth resource:Poggio_a_Caiano . ?i property:gender resource:male . ?i rdf:type ontology:common_name }
[]
common name
Q3547626 Q3893669 Q16559534 Q1306964 Q3750119 Q678789 Q17992208
SYSTEM
Uberto Poggi, Paolino Taddei, Giorgio Gatti, Philip Mazzei, Francesco Inverni, Armando Spadini, Giovanni Bellini
Q3547626 Q3893669 Q16559534 Q1306964 Q3750119 Q678789 Q17992208
AND((c(Q502895),P19,Q20387), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q20387
relation P19
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] were born at Poggio a Caiano and are a male
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q20387'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?i WHERE { ?i property:P19 resource:Q20387 . ?i property:P21 resource:Q6581097 . ?i rdf:type ontology:Q502895 }
Uberto Poggi Paolino Taddei Giorgio Gatti Philip Mazzei Francesco Inverni Armando Spadini Giovanni Bellini
Uberto Poggi, Paolino Taddei, Giorgio Gatti, Philip Mazzei, Francesco Inverni, Armando Spadini and Giovanni Bellini were born at Poggio a Caiano and are a male
Uberto Poggi Paolino Taddei Giorgio Gatti Philip Mazzei Francesco Inverni Armando Spadini Giovanni Bellini
action filter_type
action intersection
action find_reverse
entity Poggio a Caiano
relation place of birth
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Poggio a Caiano'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?i WHERE { ?i property:place_of_birth resource:Poggio_a_Caiano . ?i property:gender resource:male . ?i rdf:type ontology:common_name }
[]