Simple Question (Direct)
Simple Question
Q2486389
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Johan Hegg ?
(Q2486389,P27,c(Q15617994))
action filter_type
action find
entity Q2486389
relation P27
type Q15617994
['Q2486389', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q2486389 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Johan Hegg
action filter_type
action find
entity Johan Hegg
relation country of citizenship
type designation for an administrative territorial entity
['Johan Hegg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Johan_Hegg property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q34
SYSTEM
Sweden
Q34
(Q2486389,P27,c(Q15617994))
action filter_type
action find
entity Q2486389
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Johan Hegg
['Q2486389', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q2486389 property:P27 ?g . ?g rdf:type ontology:Q15617994 }
Sweden
Sweden is the country of citizenship of Johan Hegg
Sweden
action filter_type
action find
entity Johan Hegg
relation country of citizenship
type designation for an administrative territorial entity
['Johan Hegg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Johan_Hegg property:country_of_citizenship ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q34
P710
Q1190554
USER
Which events were that administrative territory a participant of ?
(c(Q1190554),P710,Q34)
action filter_type
action find_reverse
entity Q34
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q34']
SELECT DISTINCT ?q WHERE { ?q property:P710 resource:Q34 . ?q rdf:type ontology:Q1190554 }
Sweden
action filter_type
action find_reverse
entity Sweden
relation participant
type event
[{'concept': 'event'}, 'participant', 'Sweden']
SELECT DISTINCT ?q WHERE { ?q property:participant resource:Sweden . ?q rdf:type ontology:event }
[]
event
Q705409 Q541566 Q1606958
SYSTEM
Battle of Helsingborg, Battle of Kolding, Battle of Bogesund
Q3500708 Q705409 Q546505 Q46003 Q138025 Q736268 Q367025 Q155726 Q663359 Q682482 Q541566 Q1606958
(c(Q1190554),P710,Q34)
action filter_type
action find_reverse
entity Q34
relation P710
type Q1190554
[ANSWERS]
[{'concept': 'Q1190554'}, 'P710', 'Q34']
SELECT DISTINCT ?q WHERE { ?q property:P710 resource:Q34 . ?q rdf:type ontology:Q1190554 }
Battle of Stäket Battle of Helsingborg Battle of Stegeborg Battle of Rajovka Siege of Veprik Finnish War Battle of Lena Battle of Narva Battle of Holowczyn Russo-Swedish War Battle of Kolding Battle of Bogesund
Which events were that administrative territory a participant of
Battle of Helsingborg Battle of Kolding Battle of Bogesund
action filter_type
action find_reverse
entity Sweden
relation participant
type event
[{'concept': 'event'}, 'participant', 'Sweden']
SELECT DISTINCT ?q WHERE { ?q property:participant resource:Sweden . ?q rdf:type ontology:event }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q34 Q34201
P921
Q191067
USER
How many articles are Sweden or Zeus a main subject of ?
(c(Q191067),P921,Q34) (c(Q191067),P921,Q34201)
action count
action union
action filter_type
action find_reverse
entity Q34
relation P921
type Q191067
action filter_type
action find_reverse
entity Q34201
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q34'] [{'concept': 'Q191067'}, 'P921', 'Q34201']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:P921 ?k . VALUES ( ?k ) { ( resource:Q34 ) ( resource:Q34201 ) } }
Sweden Zeus
action count
action union
action filter_type
action find_reverse
entity Sweden
relation main subject
type article
action filter_type
action find_reverse
entity Zeus
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Sweden'] [{'concept': 'article'}, 'main subject', 'Zeus']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:main_subject ?k . VALUES ( ?k ) { ( resource:Sweden ) ( resource:Zeus ) } }
[]
article
SYSTEM
2
Q24054150 Q24054184
(c(Q191067),P921,Q34) (c(Q191067),P921,Q34201)
action count
action union
action filter_type
action find_reverse
entity Q34
relation P921
type Q191067
action filter_type
action find_reverse
entity Q34201
relation P921
type Q191067
[ANSWER]
[{'concept': 'Q191067'}, 'P921', 'Q34'] [{'concept': 'Q191067'}, 'P921', 'Q34201']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:P921 ?k . VALUES ( ?k ) { ( resource:Q34 ) ( resource:Q34201 ) } }
NSRW / Zeus EB-11 / Zeus
2
action count
action union
action filter_type
action find_reverse
entity Sweden
relation main subject
type article
action filter_type
action find_reverse
entity Zeus
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Sweden'] [{'concept': 'article'}, 'main subject', 'Zeus']
SELECT DISTINCT ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:main_subject ?k . VALUES ( ?k ) { ( resource:Sweden ) ( resource:Zeus ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q36 Q34
P27
Q502895
USER
Which people are a native of Sweden and Poland ?
AND((c(Q502895),P27,Q34), (c(Q502895),P27,Q36))
action filter_type
action intersection
action find_reverse
entity Q34
relation P27
action find_reverse
entity Q36
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q34'], [{'concept': 'Q502895'}, 'P27', 'Q36']]}
SELECT DISTINCT ?n WHERE { ?n property:P27 resource:Q34 . ?n property:P27 resource:Q36 . ?n rdf:type ontology:Q502895 }
Poland Sweden
action filter_type
action intersection
action find_reverse
entity Sweden
relation country of citizenship
action find_reverse
entity Poland
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Sweden'], [{'concept': 'common name'}, 'country of citizenship', 'Poland']]}
SELECT DISTINCT ?n WHERE { ?n property:country_of_citizenship resource:Sweden . ?n property:country_of_citizenship resource:Poland . ?n rdf:type ontology:common_name }
[]
common name
Q4505004 Q705427 Q469783 Q4354057 Q937309 Q15992181 Q715765 Q4678787 Q655548 Q4994466
SYSTEM
Some of them are Slawomir Rynkiewicz, Johann Patkul, Anna Vasa of Sweden, August Maximilian Myhrberg, Jozef Lewandowski, Jan Mizerski, Czesław Słania, Adam Bromberg, Karol Ferdynand Vasa, Tomasz Neuman
Q4497106 Q18244051 Q4972891 Q645306 Q15992181 Q4354057 Q715765 Q468037 Q447328 Q2587680 Q705427 Q316519 Q603265 Q577896 Q1686032 Q4505004 Q4678787 Q230055 Q469783 Q937309 Q655548 Q4994466 Q3809255
AND((c(Q502895),P27,Q34), (c(Q502895),P27,Q36))
action filter_type
action intersection
action find_reverse
entity Q34
relation P27
action find_reverse
entity Q36
relation P27
type Q502895
[ANSWERS] are a native of Sweden and Poland
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q34'], [{'concept': 'Q502895'}, 'P27', 'Q36']]}
SELECT DISTINCT ?n WHERE { ?n property:P27 resource:Q34 . ?n property:P27 resource:Q36 . ?n rdf:type ontology:Q502895 }
Adam Heymowski Sebastian Ludzik Małgorzata Pieczyńska Ivo Pękalski Jan Mizerski August Maximilian Myhrberg Czesław Słania Jürgen von Farensbach Stefan Liv Dominika Peczynski Johann Patkul Jerzy Einhorn Michal Leszczylowski Peter Jablonski Piotr Mokrosiński Slawomir Rynkiewicz Adam Bromberg Izabella Scorupco Anna Vasa of Sweden Jozef Lewandowski Karol Ferdynand Vasa Tomasz Neuman Joanna Troikowicz
Slawomir Rynkiewicz, Johann Patkul, Anna Vasa of Sweden, August Maximilian Myhrberg, Jozef Lewandowski, Jan Mizerski, Czesław Słania, Adam Bromberg, Karol Ferdynand Vasa and Tomasz Neuman are a native of Sweden and Poland
Slawomir Rynkiewicz Johann Patkul Anna Vasa of Sweden August Maximilian Myhrberg Jozef Lewandowski Jan Mizerski Czesław Słania Adam Bromberg Karol Ferdynand Vasa Tomasz Neuman
action filter_type
action intersection
action find_reverse
entity Sweden
relation country of citizenship
action find_reverse
entity Poland
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Sweden'], [{'concept': 'common name'}, 'country of citizenship', 'Poland']]}
SELECT DISTINCT ?n WHERE { ?n property:country_of_citizenship resource:Sweden . ?n property:country_of_citizenship resource:Poland . ?n rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q213 Q34
P27
Q502895
USER
Which people are a native of Sweden and Czech Republic ?
AND((c(Q502895),P27,Q34), (c(Q502895),P27,Q213))
action filter_type
action intersection
action find_reverse
entity Q34
relation P27
action find_reverse
entity Q213
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q34'], [{'concept': 'Q502895'}, 'P27', 'Q213']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P27 resource:Q34 . ?h property:P27 resource:Q213 }
Czech Republic Sweden
action filter_type
action intersection
action find_reverse
entity Sweden
relation country of citizenship
action find_reverse
entity Czech Republic
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Sweden'], [{'concept': 'common name'}, 'country of citizenship', 'Czech Republic']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:country_of_citizenship resource:Sweden . ?h property:country_of_citizenship resource:Czech_Republic }
[]
common name
Q11876915 Q3490335
SYSTEM
Egon Lánský, Renata Chlumska
Q11876915 Q3490335
AND((c(Q502895),P27,Q34), (c(Q502895),P27,Q213))
action filter_type
action intersection
action find_reverse
entity Q34
relation P27
action find_reverse
entity Q213
relation P27
type Q502895
[ANSWERS] are a native of Sweden and Czech Republic
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q34'], [{'concept': 'Q502895'}, 'P27', 'Q213']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P27 resource:Q34 . ?h property:P27 resource:Q213 }
Egon Lánský Renata Chlumska
Egon Lánský and Renata Chlumska are a native of Sweden and Czech Republic
Egon Lánský Renata Chlumska
action filter_type
action intersection
action find_reverse
entity Sweden
relation country of citizenship
action find_reverse
entity Czech Republic
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Sweden'], [{'concept': 'common name'}, 'country of citizenship', 'Czech Republic']]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:country_of_citizenship resource:Sweden . ?h property:country_of_citizenship resource:Czech_Republic }
[]