Simple Question (Direct)
Simple Question
Q938063
P19
Q56061
USER
Which administrative territory is the birthplace of Rein Raud ?
(Q938063,P19,c(Q56061))
action filter_type
action find
entity Q938063
relation P19
type Q56061
['Q938063', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q938063 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Rein Raud
action filter_type
action find
entity Rein Raud
relation place of birth
type administrative territorial entity
['Rein Raud', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Rein_Raud property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1770
SYSTEM
Tallinn
Q1770
(Q938063,P19,c(Q56061))
action filter_type
action find
entity Q938063
relation P19
type Q56061
In [ANSWER] is the birthplace of Rein Raud
['Q938063', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q938063 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Tallinn
In Tallinn is the birthplace of Rein Raud
Tallinn
action filter_type
action find
entity Rein Raud
relation place of birth
type administrative territorial entity
['Rein Raud', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Rein_Raud property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q938063
P21
Q290
USER
Which sex does Rein Raud possess ?
(Q938063,P21,c(Q290))
action filter_type
action find
entity Q938063
relation P21
type Q290
['Q938063', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q938063 property:P21 ?v . ?v rdf:type ontology:Q290 }
Rein Raud
action filter_type
action find
entity Rein Raud
relation gender
type sex
['Rein Raud', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Rein_Raud property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q938063,P21,c(Q290))
action filter_type
action find
entity Q938063
relation P21
type Q290
Rein Raud possesses un [ANSWER]
['Q938063', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q938063 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
Rein Raud possesses un male
male
action filter_type
action find
entity Rein Raud
relation gender
type sex
['Rein Raud', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Rein_Raud property:gender ?v . ?v rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q9267317
Q290
USER
And also tell me about Georges Mathys?
(Q9267317,P21,c(Q290))
action filter_type
action find
entity Q9267317
relation P21
type Q290
['Q9267317', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q9267317 property:P21 ?m . ?m rdf:type ontology:Q290 }
Georges Mathys
action filter_type
action find
entity Georges Mathys
relation gender
type sex
['Georges Mathys', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Georges_Mathys property:gender ?m . ?m rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q9267317,P21,c(Q290))
action filter_type
action find
entity Q9267317
relation P21
type Q290
[ANSWER]
['Q9267317', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { resource:Q9267317 property:P21 ?m . ?m rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Georges Mathys
relation gender
type sex
['Georges Mathys', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { resource:Georges_Mathys property:gender ?m . ?m rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q101148 Q938063
P47 P27
Q15617994
USER
Which administrative territories do Rein Raud belong to or are adjacent to Gorno ?
OR((Q938063,P27,c(Q15617994)), (Q101148,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q938063
relation P27
action find
entity Q101148
relation P47
type Q15617994
{'OR': [['Q938063', 'P27', {'concept': 'Q15617994'}], ['Q101148', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q938063 property:P27 ?n } UNION { resource:Q101148 property:P47 ?n } } . ?n rdf:type ontology:Q15617994 }
Gorno Rein Raud
action filter_type
action union
action find
entity Rein Raud
relation country of citizenship
action find
entity Gorno
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Rein Raud', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gorno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Rein_Raud property:country_of_citizenship ?n } UNION { resource:Gorno property:shares_border_with ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q101477 Q191 Q101423 Q100396 Q101301 Q100161
SYSTEM
Premolo, Estonia, Ponte Nossa, Colzate, Oneta, Lombardy, Casnigo
Q101477 Q191 Q101423 Q100396 Q101301 Q100161
OR((Q938063,P27,c(Q15617994)), (Q101148,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q938063
relation P27
action find
entity Q101148
relation P47
type Q15617994
[ANSWERS] Rein Raud belong to or are adjacent to Gorno
{'OR': [['Q938063', 'P27', {'concept': 'Q15617994'}], ['Q101148', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q938063 property:P27 ?n } UNION { resource:Q101148 property:P47 ?n } } . ?n rdf:type ontology:Q15617994 }
Premolo Estonia Ponte Nossa Colzate Oneta, Lombardy Casnigo
Premolo, Estonia, Ponte Nossa, Colzate, Oneta, Lombardy and Casnigo Rein Raud belong to or are adjacent to Gorno
Premolo Estonia Ponte Nossa Colzate Oneta, Lombardy Casnigo
action filter_type
action union
action find
entity Rein Raud
relation country of citizenship
action find
entity Gorno
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Rein Raud', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gorno', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Rein_Raud property:country_of_citizenship ?n } UNION { resource:Gorno property:shares_border_with ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q101477
P17
Q15617994
USER
Which administrative territory is that one located in ?
(Q101477,P17,c(Q15617994))
action filter_type
action find
entity Q101477
relation P17
type Q15617994
['Q101477', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q101477 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Premolo
action filter_type
action find
entity Premolo
relation country
type designation for an administrative territorial entity
['Premolo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Premolo property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q101301
SYSTEM
Did you mean Oneta, Lombardy ?
Q101477 Q191 Q101423 Q100396 Q101301 Q100161
(Q101477,P17,c(Q15617994)) (Q191,P17,c(Q15617994)) (Q101423,P17,c(Q15617994)) (Q100396,P17,c(Q15617994)) (Q101301,P17,c(Q15617994)) (Q100161,P17,c(Q15617994))
[ANSWER]
['Q101477', 'P17', {'concept': 'Q15617994'}] ['Q191', 'P17', {'concept': 'Q15617994'}] ['Q101423', 'P17', {'concept': 'Q15617994'}] ['Q100396', 'P17', {'concept': 'Q15617994'}] ['Q101301', 'P17', {'concept': 'Q15617994'}] ['Q100161', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q101477 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Premolo Estonia Ponte Nossa Colzate Oneta, Lombardy Casnigo
Did you mean Oneta, Lombardy ?
Oneta, Lombardy
['Premolo', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Estonia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Ponte Nossa', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Colzate', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Oneta, Lombardy', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Casnigo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Premolo property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Premolo. Could you tell me the answer for that?
(Q101477,P17,c(Q15617994))
Q101477
['Q101477', 'P17', {'concept': 'Q15617994'}]
['Premolo', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q101477,P17,c(Q15617994))
action filter_type
action find
entity Q101477
relation P17
type Q15617994
That one is located in [ANSWER]
['Q101477', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q101477 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Italy
That one is located in Italy
Italy
action filter_type
action find
entity Premolo
relation country
type designation for an administrative territorial entity
['Premolo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Premolo property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q38 Q11934235
P35
Q502895
USER
Is Luigi Stoisa the head of state of that administrative territory ?
(Q38,P35,Q11934235)
action is_in
entity Q11934235
action find
entity Q38
relation P35
['Q38', 'P35', 'Q11934235']
ASK WHERE { resource:Q38 property:P35 resource:Q11934235 }
Italy Luigi Stoisa
action is_in
entity Luigi Stoisa
action find
entity Italy
relation head of state
['Italy', 'head of state', 'Luigi Stoisa']
ASK WHERE { resource:Italy property:head_of_state resource:Luigi_Stoisa }
[]
common name
SYSTEM
NO
(Q38,P35,Q11934235)
action is_in
entity Q11934235
action find
entity Q38
relation P35
[ANSWER]
['Q38', 'P35', 'Q11934235']
ASK WHERE { resource:Q38 property:P35 resource:Q11934235 }
No
action is_in
entity Luigi Stoisa
action find
entity Italy
relation head of state
['Italy', 'head of state', 'Luigi Stoisa']
ASK WHERE { resource:Italy property:head_of_state resource:Luigi_Stoisa }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q38
P127
Q3947 Q2668072
USER
How many houses and collections are under posessision of Italy ?
(c(Q3947),P127,Q38) (c(Q2668072),P127,Q38)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P127
type Q3947
action filter_type
action find_reverse
entity Q38
relation P127
type Q2668072
[{'concept': 'Q3947'}, 'P127', 'Q38'] [{'concept': 'Q2668072'}, 'P127', 'Q38']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ?c . VALUES ( ?c ) { ( ontology:Q3947 ) ( ontology:Q2668072 ) } }
Italy
action count
action union
action filter_type
action find_reverse
entity Italy
relation owned by
type house
action filter_type
action find_reverse
entity Italy
relation owned by
type collection
[{'concept': 'house'}, 'owned by', 'Italy'] [{'concept': 'collection'}, 'owned by', 'Italy']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ?c . VALUES ( ?c ) { ( ontology:house ) ( ontology:collection ) } }
[]
house collection
SYSTEM
4 houses and 1 collections
Q774654 Q733389 Q1952743 Q6567344 Q4012532
(c(Q3947),P127,Q38) (c(Q2668072),P127,Q38)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P127
type Q3947
action filter_type
action find_reverse
entity Q38
relation P127
type Q2668072
[ANSWER]
[{'concept': 'Q3947'}, 'P127', 'Q38'] [{'concept': 'Q2668072'}, 'P127', 'Q38']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ?c . VALUES ( ?c ) { ( ontology:Q3947 ) ( ontology:Q2668072 ) } }
Villa Doria Pamphili Villa Medici Hôtel de Galliffet Rolandstraße 43 Villa Schifanoia
4 houses and 1 collections
action count
action union
action filter_type
action find_reverse
entity Italy
relation owned by
type house
action filter_type
action find_reverse
entity Italy
relation owned by
type collection
[{'concept': 'house'}, 'owned by', 'Italy'] [{'concept': 'collection'}, 'owned by', 'Italy']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ?c . VALUES ( ?c ) { ( ontology:house ) ( ontology:collection ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q1445650 Q502895 Q15617994
USER
Which administrative territories have atleast 3 holidays or people as their patron saint ?
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action atleast
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
value 3
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?n ) WHERE { VALUES ( ?i ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?b rdf:type ?i } GROUP BY ?e } . FILTER ( ?n >= 3 ) }
action atleast
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
value 3
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?n ) WHERE { VALUES ( ?i ) { ( ontology:holiday ) ( ontology:common_name ) } . ?b rdf:type ?i } GROUP BY ?e } . FILTER ( ?n >= 3 ) }
[]
holiday common name designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(c(Q15617994),P417,c(Q1445650)|c(Q502895))
action atleast
action union
action find_tuple_counts
relation P417
type Q15617994
type Q1445650
action find_tuple_counts
relation P417
type Q15617994
type Q502895
value 3
[ANSWER] have atleast 3 holidays or people as their patron saint
[{'concept': 'Q15617994'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?n ) WHERE { VALUES ( ?i ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?b rdf:type ?i } GROUP BY ?e } . FILTER ( ?n >= 3 ) }
Poland
Poland have atleast 3 holidays or people as their patron saint
Poland
action atleast
action union
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type designation for an administrative territorial entity
type common name
value 3
[{'concept': 'designation for an administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?n ) WHERE { VALUES ( ?i ) { ( ontology:holiday ) ( ontology:common_name ) } . ?b rdf:type ?i } GROUP BY ?e } . FILTER ( ?n >= 3 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P27
Q16887380 Q6619679
USER
How many groups or fictional humanoids are a citizen of that administrative territory ?
(c(Q16887380),P27,Q36) (c(Q6619679),P27,Q36) (c(Q16887380),P27,Q36) (c(Q6619679),P27,Q36)
action count
action union
action filter_type
action find_reverse
entity Q36
relation P27
type Q16887380
action filter_type
action find_reverse
entity Q36
relation P27
type Q6619679
[{'concept': 'Q16887380'}, 'P27', 'Q36'] [{'concept': 'Q6619679'}, 'P27', 'Q36'] [{'concept': 'Q16887380'}, 'P27', 'Q36'] [{'concept': 'Q6619679'}, 'P27', 'Q36']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { VALUES ( ?g ) { ( ontology:Q16887380 ) ( ontology:Q6619679 ) } . ?p rdf:type ?g }
action count
action union
action filter_type
action find_reverse
entity Poland
relation country of citizenship
type group
action filter_type
action find_reverse
entity Poland
relation country of citizenship
type fictional humanoid
[{'concept': 'group'}, 'country of citizenship', 'Poland'] [{'concept': 'fictional humanoid'}, 'country of citizenship', 'Poland'] [{'concept': 'group'}, 'country of citizenship', 'Poland'] [{'concept': 'fictional humanoid'}, 'country of citizenship', 'Poland']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { VALUES ( ?g ) { ( ontology:group ) ( ontology:fictional_humanoid ) } . ?p rdf:type ?g }
[]
group fictional humanoid
SYSTEM
4
Q9178550 Q1104987 Q2361723 Q353255
(c(Q16887380),P27,Q36) (c(Q6619679),P27,Q36) (c(Q16887380),P27,Q36) (c(Q6619679),P27,Q36)
action count
action union
action filter_type
action find_reverse
entity Q36
relation P27
type Q16887380
action filter_type
action find_reverse
entity Q36
relation P27
type Q6619679
[ANSWER]
[{'concept': 'Q16887380'}, 'P27', 'Q36'] [{'concept': 'Q6619679'}, 'P27', 'Q36'] [{'concept': 'Q16887380'}, 'P27', 'Q36'] [{'concept': 'Q6619679'}, 'P27', 'Q36']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { VALUES ( ?g ) { ( ontology:Q16887380 ) ( ontology:Q6619679 ) } . ?p rdf:type ?g }
Seidenbeutlowie brothers Ernst Stavro Blofeld Jaws Piast the Wheelwright
4
action count
action union
action filter_type
action find_reverse
entity Poland
relation country of citizenship
type group
action filter_type
action find_reverse
entity Poland
relation country of citizenship
type fictional humanoid
[{'concept': 'group'}, 'country of citizenship', 'Poland'] [{'concept': 'fictional humanoid'}, 'country of citizenship', 'Poland'] [{'concept': 'group'}, 'country of citizenship', 'Poland'] [{'concept': 'fictional humanoid'}, 'country of citizenship', 'Poland']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { VALUES ( ?g ) { ( ontology:group ) ( ontology:fictional_humanoid ) } . ?p rdf:type ?g }
[]