Simple Question (Direct)
Simple Question
Q3758635
P1196
Q1190554
USER
What situation did Gaspare Bona die in ?
(Q3758635,P1196,c(Q1190554))
action filter_type
action find
entity Q3758635
relation P1196
type Q1190554
['Q3758635', 'P1196', {'concept': 'Q1190554'}]
SELECT DISTINCT ?g WHERE { resource:Q3758635 property:P1196 ?g . ?g rdf:type ontology:Q1190554 }
Gaspare Bona
action filter_type
action find
entity Gaspare Bona
relation manner of death
type event
['Gaspare Bona', 'manner of death', {'concept': 'event'}]
SELECT DISTINCT ?g WHERE { resource:Gaspare_Bona property:manner_of_death ?g . ?g rdf:type ontology:event }
[]
event
Q171558
SYSTEM
accident
Q171558
(Q3758635,P1196,c(Q1190554))
action filter_type
action find
entity Q3758635
relation P1196
type Q1190554
Gaspare Bona died in an [ANSWER]
['Q3758635', 'P1196', {'concept': 'Q1190554'}]
SELECT DISTINCT ?g WHERE { resource:Q3758635 property:P1196 ?g . ?g rdf:type ontology:Q1190554 }
accident
Gaspare Bona died in an accident
accident
action filter_type
action find
entity Gaspare Bona
relation manner of death
type event
['Gaspare Bona', 'manner of death', {'concept': 'event'}]
SELECT DISTINCT ?g WHERE { resource:Gaspare_Bona property:manner_of_death ?g . ?g rdf:type ontology:event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3758635
P21
Q290
USER
Which sex does Gaspare Bona belong to ?
(Q3758635,P21,c(Q290))
action filter_type
action find
entity Q3758635
relation P21
type Q290
['Q3758635', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q3758635 property:P21 ?r . ?r rdf:type ontology:Q290 }
Gaspare Bona
action filter_type
action find
entity Gaspare Bona
relation gender
type sex
['Gaspare Bona', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Gaspare_Bona property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3758635,P21,c(Q290))
action filter_type
action find
entity Q3758635
relation P21
type Q290
Gaspare Bona belongs to [ANSWER]
['Q3758635', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q3758635 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
Gaspare Bona belongs to male
male
action filter_type
action find
entity Gaspare Bona
relation gender
type sex
['Gaspare Bona', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Gaspare_Bona property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7114151
Q290
USER
And how about Ovie Scurlock?
(Q7114151,P21,c(Q290))
action filter_type
action find
entity Q7114151
relation P21
type Q290
['Q7114151', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q7114151 property:P21 ?j . ?j rdf:type ontology:Q290 }
Ovie Scurlock
action filter_type
action find
entity Ovie Scurlock
relation gender
type sex
['Ovie Scurlock', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Ovie_Scurlock property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7114151,P21,c(Q290))
action filter_type
action find
entity Q7114151
relation P21
type Q290
[ANSWER]
['Q7114151', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q7114151 property:P21 ?j . ?j rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Ovie Scurlock
relation gender
type sex
['Ovie Scurlock', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Ovie_Scurlock property:gender ?j . ?j rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3758635
P20
Q15617994
USER
Where did Gaspare Bona die ?
(Q3758635,P20,c(Q15617994))
action filter_type
action find
entity Q3758635
relation P20
type Q15617994
['Q3758635', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q3758635 property:P20 ?h . ?h rdf:type ontology:Q15617994 }
Gaspare Bona
action filter_type
action find
entity Gaspare Bona
relation place of death
type designation for an administrative territorial entity
['Gaspare Bona', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Gaspare_Bona property:place_of_death ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q9210
SYSTEM
Caselle Torinese
Q9210
(Q3758635,P20,c(Q15617994))
action filter_type
action find
entity Q3758635
relation P20
type Q15617994
Gaspare Bona died in [ANSWER]
['Q3758635', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q3758635 property:P20 ?h . ?h rdf:type ontology:Q15617994 }
Caselle Torinese
Gaspare Bona died in Caselle Torinese
Caselle Torinese
action filter_type
action find
entity Gaspare Bona
relation place of death
type designation for an administrative territorial entity
['Gaspare Bona', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Gaspare_Bona property:place_of_death ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3758635
P19
Q56061
USER
Which administrative territory is the place of birth of Gaspare Bona ?
(Q3758635,P19,c(Q56061))
action filter_type
action find
entity Q3758635
relation P19
type Q56061
['Q3758635', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q3758635 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Gaspare Bona
action filter_type
action find
entity Gaspare Bona
relation place of birth
type administrative territorial entity
['Gaspare Bona', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Gaspare_Bona property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q9182
SYSTEM
Carignano
Q9182
(Q3758635,P19,c(Q56061))
action filter_type
action find
entity Q3758635
relation P19
type Q56061
[ANSWER] is the place of birth of Gaspare Bona
['Q3758635', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q3758635 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Carignano
Carignano is the place of birth of Gaspare Bona
Carignano
action filter_type
action find
entity Gaspare Bona
relation place of birth
type administrative territorial entity
['Gaspare Bona', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Gaspare_Bona property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q100738
Q56061
USER
And also tell me about Friedrich von Sachsen-Altenburg?
(Q100738,P19,c(Q56061))
action filter_type
action find
entity Q100738
relation P19
type Q56061
['Q100738', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q100738 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Friedrich von Sachsen-Altenburg
action filter_type
action find
entity Friedrich von Sachsen-Altenburg
relation place of birth
type administrative territorial entity
['Friedrich von Sachsen-Altenburg', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Friedrich_von_Sachsen-Altenburg property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q504348
SYSTEM
Hildburghausen
Q504348
(Q100738,P19,c(Q56061))
action filter_type
action find
entity Q100738
relation P19
type Q56061
[ANSWER]
['Q100738', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q100738 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Hildburghausen
Hildburghausen
action filter_type
action find
entity Friedrich von Sachsen-Altenburg
relation place of birth
type administrative territorial entity
['Friedrich von Sachsen-Altenburg', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Friedrich_von_Sachsen-Altenburg property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q504348 Q16095296
P19
Q502895
USER
Does Gerry Wiedel have location of birth at that administrative territory ?
(Q16095296,P19,Q504348)
action is_in
entity Q504348
action find
entity Q16095296
relation P19
['Q16095296', 'P19', 'Q504348']
ASK WHERE { resource:Q16095296 property:P19 resource:Q504348 }
Hildburghausen Gerry Wiedel
action is_in
entity Hildburghausen
action find
entity Gerry Wiedel
relation place of birth
['Gerry Wiedel', 'place of birth', 'Hildburghausen']
ASK WHERE { resource:Gerry_Wiedel property:place_of_birth resource:Hildburghausen }
[]
common name
SYSTEM
YES
(Q16095296,P19,Q504348)
action is_in
entity Q504348
action find
entity Q16095296
relation P19
[ANSWER]
['Q16095296', 'P19', 'Q504348']
ASK WHERE { resource:Q16095296 property:P19 resource:Q504348 }
Yes
action is_in
entity Hildburghausen
action find
entity Gerry Wiedel
relation place of birth
['Gerry Wiedel', 'place of birth', 'Hildburghausen']
ASK WHERE { resource:Gerry_Wiedel property:place_of_birth resource:Hildburghausen }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7146503 Q3758635
P106
Q12737077
USER
Which occupations are the professions of Gaspare Bona or Patrick Flanagan ?
OR((Q3758635,P106,c(Q12737077)), (Q7146503,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q3758635
relation P106
action find
entity Q7146503
relation P106
type Q12737077
{'OR': [['Q3758635', 'P106', {'concept': 'Q12737077'}], ['Q7146503', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q7146503 property:P106 ?s } UNION { resource:Q3758635 property:P106 ?s } } . ?s rdf:type ontology:Q12737077 }
Patrick Flanagan Gaspare Bona
action filter_type
action union
action find
entity Gaspare Bona
relation occupation
action find
entity Patrick Flanagan
relation occupation
type occupation
{'OR': [['Gaspare Bona', 'occupation', {'concept': 'occupation'}], ['Patrick Flanagan', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Patrick_Flanagan property:occupation ?s } UNION { resource:Gaspare_Bona property:occupation ?s } } . ?s rdf:type ontology:occupation }
[]
occupation
Q2462658 Q639669 Q2095549 Q36180 Q15958185
SYSTEM
manager, musician, aviator, writer, racecar driver
Q2462658 Q639669 Q2095549 Q36180 Q15958185
OR((Q3758635,P106,c(Q12737077)), (Q7146503,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q3758635
relation P106
action find
entity Q7146503
relation P106
type Q12737077
The [ANSWERS] are the professions of Gaspare Bona or Patrick Flanagan
{'OR': [['Q3758635', 'P106', {'concept': 'Q12737077'}], ['Q7146503', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q7146503 property:P106 ?s } UNION { resource:Q3758635 property:P106 ?s } } . ?s rdf:type ontology:Q12737077 }
manager musician aviator writer racecar driver
The manager, musician, aviator, writer and racecar driver are the professions of Gaspare Bona or Patrick Flanagan
manager musician aviator writer racecar driver
action filter_type
action union
action find
entity Gaspare Bona
relation occupation
action find
entity Patrick Flanagan
relation occupation
type occupation
{'OR': [['Gaspare Bona', 'occupation', {'concept': 'occupation'}], ['Patrick Flanagan', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Patrick_Flanagan property:occupation ?s } UNION { resource:Gaspare_Bona property:occupation ?s } } . ?s rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q504348
P190
Q56061
USER
Which administrative territory is twin city of Hildburghausen ?
(Q504348,P190,c(Q56061))
action filter_type
action find
entity Q504348
relation P190
type Q56061
['Q504348', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q504348 property:P190 ?b . ?b rdf:type ontology:Q56061 }
Hildburghausen
action filter_type
action find
entity Hildburghausen
relation sister city
type administrative territorial entity
['Hildburghausen', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Hildburghausen property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q14901
SYSTEM
Würselen
Q14901
(Q504348,P190,c(Q56061))
action filter_type
action find
entity Q504348
relation P190
type Q56061
[ANSWER] is twin city of Hildburghausen
['Q504348', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q504348 property:P190 ?b . ?b rdf:type ontology:Q56061 }
Würselen
Würselen is twin city of Hildburghausen
Würselen
action filter_type
action find
entity Hildburghausen
relation sister city
type administrative territorial entity
['Hildburghausen', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Hildburghausen property:sister_city ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P190
Q20667921 Q15617994
USER
How many french administrative divisions or administrative territories are twin city of that administrative territory ?
(c(Q20667921),P190,Q14901) (c(Q15617994),P190,Q14901) (c(Q20667921),P190,Q14901) (c(Q15617994),P190,Q14901)
action count
action union
action filter_type
action find_reverse
entity Q14901
relation P190
type Q20667921
action filter_type
action find_reverse
entity Q14901
relation P190
type Q15617994
[{'concept': 'Q20667921'}, 'P190', 'Q14901'] [{'concept': 'Q15617994'}, 'P190', 'Q14901'] [{'concept': 'Q20667921'}, 'P190', 'Q14901'] [{'concept': 'Q15617994'}, 'P190', 'Q14901']
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { VALUES ( ?t ) { ( ontology:Q20667921 ) ( ontology:Q15617994 ) } . ?p rdf:type ?t }
action count
action union
action filter_type
action find_reverse
entity Würselen
relation sister city
type type of french administrative division
action filter_type
action find_reverse
entity Würselen
relation sister city
type designation for an administrative territorial entity
[{'concept': 'type of french administrative division'}, 'sister city', 'Würselen'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Würselen'] [{'concept': 'type of french administrative division'}, 'sister city', 'Würselen'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Würselen']
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { VALUES ( ?t ) { ( ontology:type_of_french_administrative_division ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?p rdf:type ?t }
[]
type of french administrative division designation for an administrative territorial entity
SYSTEM
2
Q188480 Q202368
(c(Q20667921),P190,Q14901) (c(Q15617994),P190,Q14901) (c(Q20667921),P190,Q14901) (c(Q15617994),P190,Q14901)
action count
action union
action filter_type
action find_reverse
entity Q14901
relation P190
type Q20667921
action filter_type
action find_reverse
entity Q14901
relation P190
type Q15617994
[ANSWER]
[{'concept': 'Q20667921'}, 'P190', 'Q14901'] [{'concept': 'Q15617994'}, 'P190', 'Q14901'] [{'concept': 'Q20667921'}, 'P190', 'Q14901'] [{'concept': 'Q15617994'}, 'P190', 'Q14901']
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { VALUES ( ?t ) { ( ontology:Q20667921 ) ( ontology:Q15617994 ) } . ?p rdf:type ?t }
Campagnatico Morlaix
2
action count
action union
action filter_type
action find_reverse
entity Würselen
relation sister city
type type of french administrative division
action filter_type
action find_reverse
entity Würselen
relation sister city
type designation for an administrative territorial entity
[{'concept': 'type of french administrative division'}, 'sister city', 'Würselen'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Würselen'] [{'concept': 'type of french administrative division'}, 'sister city', 'Würselen'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Würselen']
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { VALUES ( ?t ) { ( ontology:type_of_french_administrative_division ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?p rdf:type ?t }
[]