Simple Question (Direct)
Simple Question
Q15973439
P106
Q12737077
USER
Which occupation is the profession of Joseph Balesi ?
(Q15973439,P106,c(Q12737077))
action filter_type
action find
entity Q15973439
relation P106
type Q12737077
['Q15973439', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . resource:Q15973439 property:P106 ?t }
Joseph Balesi
action filter_type
action find
entity Joseph Balesi
relation occupation
type occupation
['Joseph Balesi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . resource:Joseph_Balesi property:occupation ?t }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q15973439,P106,c(Q12737077))
action filter_type
action find
entity Q15973439
relation P106
type Q12737077
So [ANSWER] is the profession of Joseph Balesi
['Q15973439', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q12737077 . resource:Q15973439 property:P106 ?t }
politician
So politician is the profession of Joseph Balesi
politician
action filter_type
action find
entity Joseph Balesi
relation occupation
type occupation
['Joseph Balesi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:occupation . resource:Joseph_Balesi property:occupation ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15973439
P39
Q12737077
USER
Which occupations were the positions for which Joseph Balesi were appointed ?
(Q15973439,P39,c(Q12737077))
action filter_type
action find
entity Q15973439
relation P39
type Q12737077
['Q15973439', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q15973439 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
Joseph Balesi
action filter_type
action find
entity Joseph Balesi
relation position held
type occupation
['Joseph Balesi', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Joseph_Balesi property:position_held ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q382617 Q3044918
SYSTEM
maire, member of the French National Assembly
Q382617 Q3044918
(Q15973439,P39,c(Q12737077))
action filter_type
action find
entity Q15973439
relation P39
type Q12737077
[ANSWERS]
['Q15973439', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q15973439 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
maire member of the French National Assembly
The maire and member of the French National Assembly were the positions for which Joseph Balesi were appointed
maire member of the French National Assembly
action filter_type
action find
entity Joseph Balesi
relation position held
type occupation
['Joseph Balesi', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Joseph_Balesi property:position_held ?a . ?a rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15973439
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Joseph Balesi ?
(Q15973439,P27,c(Q15617994))
action filter_type
action find
entity Q15973439
relation P27
type Q15617994
['Q15973439', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q15973439 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Joseph Balesi
action filter_type
action find
entity Joseph Balesi
relation country of citizenship
type designation for an administrative territorial entity
['Joseph Balesi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Joseph_Balesi property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q15973439,P27,c(Q15617994))
action filter_type
action find
entity Q15973439
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Joseph Balesi
['Q15973439', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q15973439 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
France
France is the country of citizenship of Joseph Balesi
France
action filter_type
action find
entity Joseph Balesi
relation country of citizenship
type designation for an administrative territorial entity
['Joseph Balesi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Joseph_Balesi property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15973439
P20
Q56061
USER
Where did the demise of Joseph Balesi occur ?
(Q15973439,P20,c(Q56061))
action filter_type
action find
entity Q15973439
relation P20
type Q56061
['Q15973439', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q15973439 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Joseph Balesi
action filter_type
action find
entity Joseph Balesi
relation place of death
type administrative territorial entity
['Joseph Balesi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Joseph_Balesi property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q40104
SYSTEM
Ajaccio
Q40104
(Q15973439,P20,c(Q56061))
action filter_type
action find
entity Q15973439
relation P20
type Q56061
The demise of Joseph Balesi occurred in [ANSWER]
['Q15973439', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q15973439 property:P20 ?w . ?w rdf:type ontology:Q56061 }
Ajaccio
The demise of Joseph Balesi occurred in Ajaccio
Ajaccio
action filter_type
action find
entity Joseph Balesi
relation place of death
type administrative territorial entity
['Joseph Balesi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Joseph_Balesi property:place_of_death ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q125128
Q56061
USER
And how about Marcello Truzzi?
(Q125128,P20,c(Q56061))
action filter_type
action find
entity Q125128
relation P20
type Q56061
['Q125128', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q125128 property:P20 ?a }
Marcello Truzzi
action filter_type
action find
entity Marcello Truzzi
relation place of death
type administrative territorial entity
['Marcello Truzzi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Marcello_Truzzi property:place_of_death ?a }
[]
administrative territorial entity
Q485172
SYSTEM
Ann Arbor
Q485172
(Q125128,P20,c(Q56061))
action filter_type
action find
entity Q125128
relation P20
type Q56061
[ANSWER]
['Q125128', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q125128 property:P20 ?a }
Ann Arbor
Ann Arbor
action filter_type
action find
entity Marcello Truzzi
relation place of death
type administrative territorial entity
['Marcello Truzzi', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Marcello_Truzzi property:place_of_death ?a }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19509316 Q485172
P276 P190
Q56061
USER
Which administrative territories are twin towns of Ann Arbor or are the locations of Schellingstraat ?
OR((Q485172,P190,c(Q56061)), (Q19509316,P276,c(Q56061)))
action filter_type
action union
action find
entity Q485172
relation P190
action find
entity Q19509316
relation P276
type Q56061
{'OR': [['Q485172', 'P190', {'concept': 'Q56061'}], ['Q19509316', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q485172 property:P190 ?p } UNION { resource:Q19509316 property:P276 ?p } } . ?p rdf:type ontology:Q56061 }
Schellingstraat Ann Arbor
action filter_type
action union
action find
entity Ann Arbor
relation sister city
action find
entity Schellingstraat
relation location
type administrative territorial entity
{'OR': [['Ann Arbor', 'sister city', {'concept': 'administrative territorial entity'}], ['Schellingstraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Ann_Arbor property:sister_city ?p } UNION { resource:Schellingstraat property:location ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3718 Q108223 Q12912978 Q1025801 Q172438
SYSTEM
Dakar, Belize City, Oosterhout, Juigalpa, Peterborough
Q3718 Q108223 Q12912978 Q1025801 Q172438
OR((Q485172,P190,c(Q56061)), (Q19509316,P276,c(Q56061)))
action filter_type
action union
action find
entity Q485172
relation P190
action find
entity Q19509316
relation P276
type Q56061
[ANSWERS] are twin towns of Ann Arbor or are the locations of Schellingstraat
{'OR': [['Q485172', 'P190', {'concept': 'Q56061'}], ['Q19509316', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q485172 property:P190 ?p } UNION { resource:Q19509316 property:P276 ?p } } . ?p rdf:type ontology:Q56061 }
Dakar Belize City Oosterhout Juigalpa Peterborough
Dakar, Belize City, Oosterhout, Juigalpa and Peterborough are twin towns of Ann Arbor or are the locations of Schellingstraat
Dakar Belize City Oosterhout Juigalpa Peterborough
action filter_type
action union
action find
entity Ann Arbor
relation sister city
action find
entity Schellingstraat
relation location
type administrative territorial entity
{'OR': [['Ann Arbor', 'sister city', {'concept': 'administrative territorial entity'}], ['Schellingstraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Ann_Arbor property:sister_city ?p } UNION { resource:Schellingstraat property:location ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P190
Q56061
USER
How many administrative territories are a sister city of that administrative territory ?
(c(Q56061),P190,Q1025801)
[{'concept': 'Q56061'}, 'P190', 'Q1025801']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P190 resource:Q1025801 . ?z rdf:type ontology:Q56061 }
[{'concept': 'administrative territorial entity'}, 'sister city', 'Juigalpa']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:sister_city resource:Juigalpa . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q12912978
SYSTEM
Did you mean Oosterhout ?
(c(Q56061),P190,Q3718) (c(Q56061),P190,Q108223) (c(Q56061),P190,Q12912978) (c(Q56061),P190,Q1025801) (c(Q56061),P190,Q172438)
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q3718'] [{'concept': 'Q56061'}, 'P190', 'Q108223'] [{'concept': 'Q56061'}, 'P190', 'Q12912978'] [{'concept': 'Q56061'}, 'P190', 'Q1025801'] [{'concept': 'Q56061'}, 'P190', 'Q172438']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P190 resource:Q1025801 . ?z rdf:type ontology:Q56061 }
Did you mean Oosterhout ?
Oosterhout
[{'concept': 'administrative territorial entity'}, 'sister city', 'Dakar'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Belize City'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Oosterhout'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Juigalpa'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Peterborough']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:sister_city resource:Juigalpa . ?z rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Juigalpa. Could you tell me the answer for that?
(c(Q56061),P190,Q1025801)
Q1025801
[{'concept': 'Q56061'}, 'P190', 'Q1025801']
[{'concept': 'administrative territorial entity'}, 'sister city', 'Juigalpa']
[]
SYSTEM
2
Q485172 Q36600
(c(Q56061),P190,Q1025801)
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q1025801']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P190 resource:Q1025801 . ?z rdf:type ontology:Q56061 }
Ann Arbor The Hague
2
[{'concept': 'administrative territorial entity'}, 'sister city', 'Juigalpa']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:sister_city resource:Juigalpa . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q55
P163
Q14660
USER
Which flag is associated with Netherlands ?
(Q55,P163,c(Q14660))
action filter_type
action find
entity Q55
relation P163
type Q14660
['Q55', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?y WHERE { resource:Q55 property:P163 ?y . ?y rdf:type ontology:Q14660 }
Netherlands
action filter_type
action find
entity Netherlands
relation flag
type flag
['Netherlands', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?y WHERE { resource:Netherlands property:flag ?y . ?y rdf:type ontology:flag }
[]
flag
Q46585
SYSTEM
flag of the Netherlands
Q46585
(Q55,P163,c(Q14660))
action filter_type
action find
entity Q55
relation P163
type Q14660
Netherlands [ANSWER] is associated with Netherlands
['Q55', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?y WHERE { resource:Q55 property:P163 ?y . ?y rdf:type ontology:Q14660 }
flag of the Netherlands
Netherlands flag of the Netherlands is associated with Netherlands
flag of the Netherlands
action filter_type
action find
entity Netherlands
relation flag
type flag
['Netherlands', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?y WHERE { resource:Netherlands property:flag ?y . ?y rdf:type ontology:flag }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q783
Q14660
USER
And what about Honduras?
(Q783,P163,c(Q14660))
action filter_type
action find
entity Q783
relation P163
type Q14660
['Q783', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?v WHERE { resource:Q783 property:P163 ?v . ?v rdf:type ontology:Q14660 }
Honduras
action filter_type
action find
entity Honduras
relation flag
type flag
['Honduras', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?v WHERE { resource:Honduras property:flag ?v . ?v rdf:type ontology:flag }
[]
flag
Q102939
SYSTEM
Flag of Honduras
Q102939
(Q783,P163,c(Q14660))
action filter_type
action find
entity Q783
relation P163
type Q14660
[ANSWER]
['Q783', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?v WHERE { resource:Q783 property:P163 ?v . ?v rdf:type ontology:Q14660 }
Flag of Honduras
Flag of Honduras
action filter_type
action find
entity Honduras
relation flag
type flag
['Honduras', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?v WHERE { resource:Honduras property:flag ?v . ?v rdf:type ontology:flag }
[]