Simple Question (Direct)
Simple Question
Q8015019
P166
Q768855
USER
Which Orders, decorations, and medals of the United Kingdom was William Macpherson awarded with ?
(Q8015019,P166,c(Q768855))
action filter_type
action find
entity Q8015019
relation P166
type Q768855
['Q8015019', 'P166', {'concept': 'Q768855'}]
SELECT DISTINCT ?e WHERE { resource:Q8015019 property:P166 ?e . ?e rdf:type ontology:Q768855 }
William Macpherson
action filter_type
action find
entity William Macpherson
relation award received
type Orders, decorations, and medals of the United Kingdom
['William Macpherson', 'award received', {'concept': 'Orders, decorations, and medals of the United Kingdom'}]
SELECT DISTINCT ?e WHERE { resource:William_Macpherson property:award_received ?e . ?e rdf:type ontology:Orders,_decorations,_and_medals_of_the_United_Kingdom }
[]
Orders, decorations, and medals of the United Kingdom
Q12177472
SYSTEM
Companion of the Order of the Bath
Q12177472
(Q8015019,P166,c(Q768855))
action filter_type
action find
entity Q8015019
relation P166
type Q768855
Which Orders, decorations, and medals of the United Kingdom was William Macpherson awarded with
['Q8015019', 'P166', {'concept': 'Q768855'}]
SELECT DISTINCT ?e WHERE { resource:Q8015019 property:P166 ?e . ?e rdf:type ontology:Q768855 }
Companion of the Order of the Bath
Which Orders, decorations, and medals of the United Kingdom was William Macpherson awarded with
Companion of the Order of the Bath
action filter_type
action find
entity William Macpherson
relation award received
type Orders, decorations, and medals of the United Kingdom
['William Macpherson', 'award received', {'concept': 'Orders, decorations, and medals of the United Kingdom'}]
SELECT DISTINCT ?e WHERE { resource:William_Macpherson property:award_received ?e . ?e rdf:type ontology:Orders,_decorations,_and_medals_of_the_United_Kingdom }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q8015019
P241
Q781132
USER
Which military branch is William Macpherson associated with ?
(Q8015019,P241,c(Q781132))
action filter_type
action find
entity Q8015019
relation P241
type Q781132
['Q8015019', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?s WHERE { resource:Q8015019 property:P241 ?s . ?s rdf:type ontology:Q781132 }
William Macpherson
action filter_type
action find
entity William Macpherson
relation military branch
type military branch
['William Macpherson', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?s WHERE { resource:William_Macpherson property:military_branch ?s . ?s rdf:type ontology:military_branch }
[]
military branch
Q222595
SYSTEM
British Army
Q222595
(Q8015019,P241,c(Q781132))
action filter_type
action find
entity Q8015019
relation P241
type Q781132
William Macpherson is associated with [ANSWER]
['Q8015019', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?s WHERE { resource:Q8015019 property:P241 ?s . ?s rdf:type ontology:Q781132 }
British Army
William Macpherson is associated with British Army
British Army
action filter_type
action find
entity William Macpherson
relation military branch
type military branch
['William Macpherson', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?s WHERE { resource:William_Macpherson property:military_branch ?s . ?s rdf:type ontology:military_branch }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q55848 Q8015019
P47 P27
Q15617994
USER
Which administrative territories are William Macpherson an inhabitant of or have a shared border with Apice ?
OR((Q8015019,P27,c(Q15617994)), (Q55848,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q8015019
relation P27
action find
entity Q55848
relation P47
type Q15617994
{'OR': [['Q8015019', 'P27', {'concept': 'Q15617994'}], ['Q55848', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q55848 property:P47 ?d } UNION { resource:Q8015019 property:P27 ?d } } . ?d rdf:type ontology:Q15617994 }
Apice William Macpherson
action filter_type
action union
action find
entity William Macpherson
relation country of citizenship
action find
entity Apice
relation shares border with
type designation for an administrative territorial entity
{'OR': [['William Macpherson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Apice', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Apice property:shares_border_with ?d } UNION { resource:William_Macpherson property:country_of_citizenship ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55858 Q55935 Q55000 Q55958 Q55859 Q55978 Q145 Q55052 Q55054 Q55008
SYSTEM
Some of them are Buonalbergo, Paduli, Ariano Irpino, San Giorgio del Sannio, Calvi, Sant'Arcangelo Trimonte, United Kingdom, Melito Irpino, Mirabella Eclano, Bonito
Q55008 Q55978 Q55858 Q55859 Q55000 Q55137 Q55958 Q145 Q55935 Q55052 Q55054 Q55056
OR((Q8015019,P27,c(Q15617994)), (Q55848,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q8015019
relation P27
action find
entity Q55848
relation P47
type Q15617994
[ANSWERS] are William Macpherson an inhabitant of or have a shared border with Apice
{'OR': [['Q8015019', 'P27', {'concept': 'Q15617994'}], ['Q55848', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q55848 property:P47 ?d } UNION { resource:Q8015019 property:P27 ?d } } . ?d rdf:type ontology:Q15617994 }
Bonito Sant'Arcangelo Trimonte Buonalbergo Calvi Ariano Irpino Venticano San Giorgio del Sannio United Kingdom Paduli Melito Irpino Mirabella Eclano Montecalvo Irpino
Buonalbergo, Paduli, Ariano Irpino, San Giorgio del Sannio, Calvi, Sant'Arcangelo Trimonte, United Kingdom, Melito Irpino, Mirabella Eclano and Bonito are William Macpherson an inhabitant of or have a shared border with Apice
Buonalbergo Paduli Ariano Irpino San Giorgio del Sannio Calvi Sant'Arcangelo Trimonte United Kingdom Melito Irpino Mirabella Eclano Bonito
action filter_type
action union
action find
entity William Macpherson
relation country of citizenship
action find
entity Apice
relation shares border with
type designation for an administrative territorial entity
{'OR': [['William Macpherson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Apice', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Apice property:shares_border_with ?d } UNION { resource:William_Macpherson property:country_of_citizenship ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1592489 Q222595
P17
Q15617994
USER
Which administrative territories do British Army or Bomun Station belong to ?
OR((Q222595,P17,c(Q15617994)), (Q1592489,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q222595
relation P17
action find
entity Q1592489
relation P17
type Q15617994
{'OR': [['Q222595', 'P17', {'concept': 'Q15617994'}], ['Q1592489', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { ?d property:P17 ?b . VALUES ( ?d ) { ( resource:Q222595 ) ( resource:Q1592489 ) } } . ?b rdf:type ontology:Q15617994 }
Bomun Station British Army
action filter_type
action union
action find
entity British Army
relation country
action find
entity Bomun Station
relation country
type designation for an administrative territorial entity
{'OR': [['British Army', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Bomun Station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { ?d property:country ?b . VALUES ( ?d ) { ( resource:British_Army ) ( resource:Bomun_Station ) } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q884 Q145
SYSTEM
South Korea, United Kingdom
Q884 Q145
OR((Q222595,P17,c(Q15617994)), (Q1592489,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q222595
relation P17
action find
entity Q1592489
relation P17
type Q15617994
British Army or Bomun Station belong to [ANSWERS]
{'OR': [['Q222595', 'P17', {'concept': 'Q15617994'}], ['Q1592489', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { ?d property:P17 ?b . VALUES ( ?d ) { ( resource:Q222595 ) ( resource:Q1592489 ) } } . ?b rdf:type ontology:Q15617994 }
South Korea United Kingdom
British Army or Bomun Station belong to South Korea and United Kingdom
South Korea United Kingdom
action filter_type
action union
action find
entity British Army
relation country
action find
entity Bomun Station
relation country
type designation for an administrative territorial entity
{'OR': [['British Army', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Bomun Station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { ?d property:country ?b . VALUES ( ?d ) { ( resource:British_Army ) ( resource:Bomun_Station ) } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q36180 Q55054
P19 P106
Q502895
USER
Which people were born at Mirabella Eclano and have the profession as writer ?
AND((c(Q502895),P19,Q55054), (c(Q502895),P106,Q36180))
action filter_type
action intersection
action find_reverse
entity Q55054
relation P19
action find_reverse
entity Q36180
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q55054'], [{'concept': 'Q502895'}, 'P106', 'Q36180']]}
SELECT DISTINCT ?x WHERE { ?x property:P19 resource:Q55054 . ?x property:P106 resource:Q36180 . ?x rdf:type ontology:Q502895 }
writer Mirabella Eclano
action filter_type
action intersection
action find_reverse
entity Mirabella Eclano
relation place of birth
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Mirabella Eclano'], [{'concept': 'common name'}, 'occupation', 'writer']]}
SELECT DISTINCT ?x WHERE { ?x property:place_of_birth resource:Mirabella_Eclano . ?x property:occupation resource:writer . ?x rdf:type ontology:common_name }
[]
common name
Q3804463 Q316098
SYSTEM
Italo de Feo, Marcus Velleius Paterculus
Q3804463 Q316098
AND((c(Q502895),P19,Q55054), (c(Q502895),P106,Q36180))
action filter_type
action intersection
action find_reverse
entity Q55054
relation P19
action find_reverse
entity Q36180
relation P106
type Q502895
[ANSWERS] were born at Mirabella Eclano and have the profession as writer
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q55054'], [{'concept': 'Q502895'}, 'P106', 'Q36180']]}
SELECT DISTINCT ?x WHERE { ?x property:P19 resource:Q55054 . ?x property:P106 resource:Q36180 . ?x rdf:type ontology:Q502895 }
Italo de Feo Marcus Velleius Paterculus
Italo de Feo and Marcus Velleius Paterculus were born at Mirabella Eclano and have the profession as writer
Italo de Feo Marcus Velleius Paterculus
action filter_type
action intersection
action find_reverse
entity Mirabella Eclano
relation place of birth
action find_reverse
entity writer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Mirabella Eclano'], [{'concept': 'common name'}, 'occupation', 'writer']]}
SELECT DISTINCT ?x WHERE { ?x property:place_of_birth resource:Mirabella_Eclano . ?x property:occupation resource:writer . ?x rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3804463 Q316098
P106
Q12737077
USER
Which occupations are the professions of Italo de Feo and Marcus Velleius Paterculus ?
(Q3804463,P106,c(Q12737077)) (Q316098,P106,c(Q12737077))
action union
action filter_type
action find
entity Q3804463
relation P106
type Q12737077
action filter_type
action find
entity Q316098
relation P106
type Q12737077
['Q3804463', 'P106', {'concept': 'Q12737077'}] ['Q316098', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { ?e rdf:type ontology:Q12737077 . resource:Q3804463 property:P106 ?e } UNION { resource:Q316098 property:P106 ?e . ?e rdf:type ontology:Q12737077 } }
Italo de Feo Marcus Velleius Paterculus
action union
action filter_type
action find
entity Italo de Feo
relation occupation
type occupation
action filter_type
action find
entity Marcus Velleius Paterculus
relation occupation
type occupation
['Italo de Feo', 'occupation', {'concept': 'occupation'}] ['Marcus Velleius Paterculus', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { ?e rdf:type ontology:occupation . resource:Italo_de_Feo property:occupation ?e } UNION { resource:Marcus_Velleius_Paterculus property:occupation ?e . ?e rdf:type ontology:occupation } }
[]
occupation
Q201788 Q4263842 Q36180
SYSTEM
historian, literary critic, writer
Q4263842 Q36180 Q201788 Q36180
(Q3804463,P106,c(Q12737077)) (Q316098,P106,c(Q12737077))
action union
action filter_type
action find
entity Q3804463
relation P106
type Q12737077
action filter_type
action find
entity Q316098
relation P106
type Q12737077
The professions of Italo de Feo and Marcus Velleius Paterculus are literary [ANSWERS]
['Q3804463', 'P106', {'concept': 'Q12737077'}] ['Q316098', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { { ?e rdf:type ontology:Q12737077 . resource:Q3804463 property:P106 ?e } UNION { resource:Q316098 property:P106 ?e . ?e rdf:type ontology:Q12737077 } }
literary critic writer historian writer
The professions of Italo de Feo and Marcus Velleius Paterculus are literary historian, literary critic and writer
historian literary critic writer
action union
action filter_type
action find
entity Italo de Feo
relation occupation
type occupation
action filter_type
action find
entity Marcus Velleius Paterculus
relation occupation
type occupation
['Italo de Feo', 'occupation', {'concept': 'occupation'}] ['Marcus Velleius Paterculus', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { { ?e rdf:type ontology:occupation . resource:Italo_de_Feo property:occupation ?e } UNION { resource:Marcus_Velleius_Paterculus property:occupation ?e . ?e rdf:type ontology:occupation } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3804463
P20
Q56061
USER
Which administrative territory is the place of death of that person ?
(Q3804463,P20,c(Q56061))
action filter_type
action find
entity Q3804463
relation P20
type Q56061
['Q3804463', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q3804463 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Italo de Feo
action filter_type
action find
entity Italo de Feo
relation place of death
type administrative territorial entity
['Italo de Feo', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Italo_de_Feo property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q3804463
SYSTEM
Did you mean Italo de Feo ?
Q201788 Q4263842 Q36180
(Q201788,P20,c(Q56061)) (Q4263842,P20,c(Q56061)) (Q36180,P20,c(Q56061))
[ANSWER]
['Q201788', 'P20', {'concept': 'Q56061'}] ['Q4263842', 'P20', {'concept': 'Q56061'}] ['Q36180', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q3804463 property:P20 ?d . ?d rdf:type ontology:Q56061 }
historian literary critic writer
Did you mean Italo de Feo ?
Italo de Feo
['historian', 'place of death', {'concept': 'administrative territorial entity'}] ['literary critic', 'place of death', {'concept': 'administrative territorial entity'}] ['writer', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Italo_de_Feo property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3804463,P20,c(Q56061))
['Q3804463', 'P20', {'concept': 'Q56061'}]
['Italo de Feo', 'place of death', {'concept': 'administrative territorial entity'}]
[]
Q220
SYSTEM
Rome
Q220
(Q3804463,P20,c(Q56061))
action filter_type
action find
entity Q3804463
relation P20
type Q56061
[ANSWER] is the place of death of that person
['Q3804463', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q3804463 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Rome
Rome is the place of death of that person
Rome
action filter_type
action find
entity Italo de Feo
relation place of death
type administrative territorial entity
['Italo de Feo', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Italo_de_Feo property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q220
P190
Q56061
USER
Which administrative territories are a sister city of that one ?
(c(Q56061),P190,Q220)
action filter_type
action find
entity Q220
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q220']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q220 property:P190 ?b }
Rome
action filter_type
action find
entity Rome
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Rome']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:Rome property:sister_city ?b }
[]
administrative territorial entity
Q90 Q8717 Q1490
SYSTEM
Paris, Seville, Tokyo
Q484799 Q8717 Q90 Q34647 Q1490 Q132830
(c(Q56061),P190,Q220)
action filter_type
action find
entity Q220
relation P190
type Q56061
[ANSWERS] are a sister city of that one
[{'concept': 'Q56061'}, 'P190', 'Q220']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q220 property:P190 ?b }
Marbella Seville Paris Johannesburg Tokyo Douala
Paris, Seville and Tokyo are a sister city of that one
Paris Seville Tokyo
action filter_type
action find
entity Rome
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Rome']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:Rome property:sister_city ?b }
[]