Simple Question (Direct)
Simple Question
Q124885
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Peter Kaplony ?
(Q124885,P27,c(Q15617994))
action filter_type
action find
entity Q124885
relation P27
type Q15617994
['Q124885', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q124885 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Peter Kaplony
action filter_type
action find
entity Peter Kaplony
relation country of citizenship
type designation for an administrative territorial entity
['Peter Kaplony', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Peter_Kaplony property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39
SYSTEM
Switzerland
Q39
(Q124885,P27,c(Q15617994))
action filter_type
action find
entity Q124885
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Peter Kaplony
['Q124885', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q124885 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Switzerland
Switzerland is the country of citizenship of Peter Kaplony
Switzerland
action filter_type
action find
entity Peter Kaplony
relation country of citizenship
type designation for an administrative territorial entity
['Peter Kaplony', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Peter_Kaplony property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q124885
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q39,P19,c(Q56061))
action filter_type
action find
entity Q124885
relation P19
type Q56061
['Q39', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q124885 property:P19 ?y . ?y rdf:type ontology:Q56061 }
Peter Kaplony
action filter_type
action find
entity Peter Kaplony
relation place of birth
type administrative territorial entity
['Switzerland', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Peter_Kaplony property:place_of_birth ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1781
SYSTEM
Budapest
Q1781
(Q39,P19,c(Q56061))
action filter_type
action find
entity Q124885
relation P19
type Q56061
That person was born in [ANSWER]
['Q39', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q124885 property:P19 ?y . ?y rdf:type ontology:Q56061 }
Budapest
That person was born in Budapest
Budapest
action filter_type
action find
entity Peter Kaplony
relation place of birth
type administrative territorial entity
['Switzerland', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Peter_Kaplony property:place_of_birth ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q10887903 Q124885
P19
Q56061
USER
Or Matías Espíndola?
OR((Q124885,P19,c(Q56061)), (Q10887903,P19,c(Q56061)))
action filter_type
action union
action find
entity Q124885
relation P19
action find
entity Q10887903
relation P19
type Q56061
{'OR': [['Q124885', 'P19', {'concept': 'Q56061'}], ['Q10887903', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q124885 property:P19 ?b } UNION { resource:Q10887903 property:P19 ?b } } . ?b rdf:type ontology:Q56061 }
Matías Espíndola Peter Kaplony
action filter_type
action union
action find
entity Peter Kaplony
relation place of birth
action find
entity Matías Espíndola
relation place of birth
type administrative territorial entity
{'OR': [['Peter Kaplony', 'place of birth', {'concept': 'administrative territorial entity'}], ['Matías Espíndola', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Peter_Kaplony property:place_of_birth ?b } UNION { resource:Matías_Espíndola property:place_of_birth ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q106063 Q1781
SYSTEM
Clorinda, Formosa, Budapest
Q106063 Q1781
OR((Q124885,P19,c(Q56061)), (Q10887903,P19,c(Q56061)))
action filter_type
action union
action find
entity Q124885
relation P19
action find
entity Q10887903
relation P19
type Q56061
[ANSWERS]
{'OR': [['Q124885', 'P19', {'concept': 'Q56061'}], ['Q10887903', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q124885 property:P19 ?b } UNION { resource:Q10887903 property:P19 ?b } } . ?b rdf:type ontology:Q56061 }
Clorinda, Formosa Budapest
Clorinda, Formosa Budapest
action filter_type
action union
action find
entity Peter Kaplony
relation place of birth
action find
entity Matías Espíndola
relation place of birth
type administrative territorial entity
{'OR': [['Peter Kaplony', 'place of birth', {'concept': 'administrative territorial entity'}], ['Matías Espíndola', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Peter_Kaplony property:place_of_birth ?b } UNION { resource:Matías_Espíndola property:place_of_birth ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q644688 Q124885
P39 P106
Q12737077
USER
Which occupations have Peter Kaplony as his/her as a career or were the positions held by Inese Šlesere ?
OR((Q124885,P106,c(Q12737077)), (Q644688,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q124885
relation P106
action find
entity Q644688
relation P39
type Q12737077
{'OR': [['Q124885', 'P106', {'concept': 'Q12737077'}], ['Q644688', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q644688 property:P39 ?v } UNION { resource:Q124885 property:P106 ?v } } . ?v rdf:type ontology:Q12737077 }
Inese Šlesere Peter Kaplony
action filter_type
action union
action find
entity Peter Kaplony
relation occupation
action find
entity Inese Šlesere
relation position held
type occupation
{'OR': [['Peter Kaplony', 'occupation', {'concept': 'occupation'}], ['Inese Šlesere', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Inese_Šlesere property:position_held ?v } UNION { resource:Peter_Kaplony property:occupation ?v } } . ?v rdf:type ontology:occupation }
[]
occupation
Q1350189 Q1622272 Q27169 Q21191589 Q3621491
SYSTEM
egyptologist, university teacher, member of the European Parliament, deputy of Saeima, archaeologist
Q1350189 Q1622272 Q27169 Q21191589 Q3621491
OR((Q124885,P106,c(Q12737077)), (Q644688,P39,c(Q12737077)))
action filter_type
action union
action find
entity Q124885
relation P106
action find
entity Q644688
relation P39
type Q12737077
[ANSWERS] have Peter Kaplony as his/her as a career or were the positions held by Inese Šlesere
{'OR': [['Q124885', 'P106', {'concept': 'Q12737077'}], ['Q644688', 'P39', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q644688 property:P39 ?v } UNION { resource:Q124885 property:P106 ?v } } . ?v rdf:type ontology:Q12737077 }
egyptologist university teacher member of the European Parliament deputy of Saeima archaeologist
Egyptologist, university teacher, member of the European Parliament, deputy of Saeima and archaeologist have Peter Kaplony as his/her as a career or were the positions held by Inese Šlesere
egyptologist university teacher member of the European Parliament deputy of Saeima archaeologist
action filter_type
action union
action find
entity Peter Kaplony
relation occupation
action find
entity Inese Šlesere
relation position held
type occupation
{'OR': [['Peter Kaplony', 'occupation', {'concept': 'occupation'}], ['Inese Šlesere', 'position held', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Inese_Šlesere property:position_held ?v } UNION { resource:Peter_Kaplony property:occupation ?v } } . ?v rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P291
Q56061 Q732577 Q2342494
USER
Which administrative territories are the publication regions of atleast 98 publications and collectables ?
(c(Q732577)|c(Q2342494),P291,c(Q56061))
action atleast
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q732577
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
value 98
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?i WHERE { { ?t property:P291 ?i . ?i rdf:type ontology:Q56061 . ?t rdf:type ontology:Q732577 } UNION { ?i rdf:type ontology:Q56061 . ?t rdf:type ontology:Q2342494 . ?t property:P291 ?i } } GROUP BY ?i } . FILTER ( ?o >= 98 ) }
action atleast
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type publication
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
value 98
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?i WHERE { { ?t property:place_of_publication ?i . ?i rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:publication } UNION { ?i rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:collectable . ?t property:place_of_publication ?i } } GROUP BY ?i } . FILTER ( ?o >= 98 ) }
[]
administrative territorial entity publication collectable
Q90 Q84
SYSTEM
Paris, London
Q90 Q84
(c(Q732577)|c(Q2342494),P291,c(Q56061))
action atleast
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q732577
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
value 98
[ANSWERS] are the publication regions of atleast 98 publications and collectables
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?i WHERE { { ?t property:P291 ?i . ?i rdf:type ontology:Q56061 . ?t rdf:type ontology:Q732577 } UNION { ?i rdf:type ontology:Q56061 . ?t rdf:type ontology:Q2342494 . ?t property:P291 ?i } } GROUP BY ?i } . FILTER ( ?o >= 98 ) }
Paris London
Paris and London are the publication regions of atleast 98 publications and collectables
Paris London
action atleast
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type publication
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
value 98
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) ?i WHERE { { ?t property:place_of_publication ?i . ?i rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:publication } UNION { ?i rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:collectable . ?t property:place_of_publication ?i } } GROUP BY ?i } . FILTER ( ?o >= 98 ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P417
Q502895 Q1445650 Q56061
USER
How many administrative territories have adopted approximately the same number of people and holidays as patron saint as that administrative territory ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1445650 }
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:common_name . ?x rdf:type ontology:holiday }
[]
common name holiday administrative territorial entity
Comparative|Count over More/Less|Mult. entity type|Clarification
Q84
SYSTEM
Did you mean London ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1445650 }
Did you mean London ?
London
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:common_name . ?x rdf:type ontology:holiday }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Paris. Could you tell me the answer for that?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
Q90
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
[]
SYSTEM
33
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q502895)|c(Q1445650))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:Q28914 ?y } UNION { ?z property:Q28914 ?x } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q502895 . ?x rdf:type ontology:Q1445650 }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
33
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:patron_saint ?y } UNION { ?z property:patron_saint ?x } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:common_name . ?x rdf:type ontology:holiday }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q90
P194
Q11204
USER
Which legislature is the legislative body for Paris ?
(Q90,P194,c(Q11204))
action filter_type
action find
entity Q90
relation P194
type Q11204
['Q90', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?u WHERE { resource:Q90 property:P194 ?u . ?u rdf:type ontology:Q11204 }
Paris
action filter_type
action find
entity Paris
relation legislative body
type legislature
['Paris', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?u WHERE { resource:Paris property:legislative_body ?u . ?u rdf:type ontology:legislature }
[]
legislature
Q775994
SYSTEM
Council of Paris
Q775994
(Q90,P194,c(Q11204))
action filter_type
action find
entity Q90
relation P194
type Q11204
Paris [ANSWER] is the legislative body for Paris
['Q90', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?u WHERE { resource:Q90 property:P194 ?u . ?u rdf:type ontology:Q11204 }
Council of Paris
Paris Council of Paris is the legislative body for Paris
Council of Paris
action filter_type
action find
entity Paris
relation legislative body
type legislature
['Paris', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?u WHERE { resource:Paris property:legislative_body ?u . ?u rdf:type ontology:legislature }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q13950
Q11204
USER
And also tell me about Picardy?
(Q13950,P194,c(Q11204))
action filter_type
action find
entity Q13950
relation P194
type Q11204
['Q13950', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q11204 . resource:Q13950 property:P194 ?n }
Picardy
action filter_type
action find
entity Picardy
relation legislative body
type legislature
['Picardy', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:legislature . resource:Picardy property:legislative_body ?n }
[]
legislature
Q2994249
SYSTEM
Regional Council of Picardy
Q2994249
(Q13950,P194,c(Q11204))
action filter_type
action find
entity Q13950
relation P194
type Q11204
[ANSWER]
['Q13950', 'P194', {'concept': 'Q11204'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q11204 . resource:Q13950 property:P194 ?n }
Regional Council of Picardy
Regional Council of Picardy
action filter_type
action find
entity Picardy
relation legislative body
type legislature
['Picardy', 'legislative body', {'concept': 'legislature'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:legislature . resource:Picardy property:legislative_body ?n }
[]