Simple Question (Direct)
Simple Question
Q1789411
P27
Q1048835
USER
Which political territory is Kristof Magnusson an inhabitant of ?
(Q1789411,P27,c(Q1048835))
action filter_type
action find
entity Q1789411
relation P27
type Q1048835
['Q1789411', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q1789411 property:P27 ?v . ?v rdf:type ontology:Q1048835 }
Kristof Magnusson
action filter_type
action find
entity Kristof Magnusson
relation country of citizenship
type political territorial entity
['Kristof Magnusson', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Kristof_Magnusson property:country_of_citizenship ?v . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q1789411,P27,c(Q1048835))
action filter_type
action find
entity Q1789411
relation P27
type Q1048835
[ANSWER] is Kristof Magnusson an inhabitant of
['Q1789411', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { resource:Q1789411 property:P27 ?v . ?v rdf:type ontology:Q1048835 }
Germany
Germany is Kristof Magnusson an inhabitant of
Germany
action filter_type
action find
entity Kristof Magnusson
relation country of citizenship
type political territorial entity
['Kristof Magnusson', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Kristof_Magnusson property:country_of_citizenship ?v . ?v rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1789411
P106
Q12737077
USER
What do that person do for a living ?
(Q183,P106,c(Q12737077))
action filter_type
action find
entity Q1789411
relation P106
type Q12737077
['Q183', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1789411 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Kristof Magnusson
action filter_type
action find
entity Kristof Magnusson
relation occupation
type occupation
['Germany', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Kristof_Magnusson property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q333634 Q36180
SYSTEM
translator, writer
Q333634 Q36180
(Q183,P106,c(Q12737077))
action filter_type
action find
entity Q1789411
relation P106
type Q12737077
That person do for a living as [ANSWERS]
['Q183', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q1789411 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
translator writer
That person do for a living as translator and writer
translator writer
action filter_type
action find
entity Kristof Magnusson
relation occupation
type occupation
['Germany', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Kristof_Magnusson property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q18718704
P106
Q502895
USER
Do Dana Balatková have the profession as those occupations ?
(Q18718704,P106,Q333634) (Q18718704,P106,Q36180)
action is_in
entity prev_answer
action find
entity Q18718704
relation P106
['Q18718704', 'P106', 'Q333634'] ['Q18718704', 'P106', 'Q36180']
ASK WHERE { resource:Q18718704 property:P106 ?l . VALUES ( ?l ) { ( resource:Q333634 ) ( resource:Q36180 ) } }
Dana Balatková
action is_in
entity prev_answer
action find
entity Dana Balatková
relation occupation
['Dana Balatková', 'occupation', 'translator'] ['Dana Balatková', 'occupation', 'writer']
ASK WHERE { resource:Dana_Balatková property:occupation ?l . VALUES ( ?l ) { ( resource:translator ) ( resource:writer ) } }
[]
common name
SYSTEM
YES
(Q18718704,P106,Q333634) (Q18718704,P106,Q36180)
action is_in
entity prev_answer
action find
entity Q18718704
relation P106
[ANSWER]
['Q18718704', 'P106', 'Q333634'] ['Q18718704', 'P106', 'Q36180']
ASK WHERE { resource:Q18718704 property:P106 ?l . VALUES ( ?l ) { ( resource:Q333634 ) ( resource:Q36180 ) } }
Yes
action is_in
entity prev_answer
action find
entity Dana Balatková
relation occupation
['Dana Balatková', 'occupation', 'translator'] ['Dana Balatková', 'occupation', 'writer']
ASK WHERE { resource:Dana_Balatková property:occupation ?l . VALUES ( ?l ) { ( resource:translator ) ( resource:writer ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1789411 Q1564246 Q7253641
P19
Q486972
USER
Was Kristof Magnusson born at Humin-Dobra Ziemskie and Przylasek ?
(Q1789411,P19,Q1564246) (Q1789411,P19,Q7253641)
action is_in
entity Q1789411
action intersection
action find_reverse
entity Q1564246
relation P19
action find_reverse
entity Q7253641
relation P19
['Q1789411', 'P19', 'Q1564246'] ['Q1789411', 'P19', 'Q7253641']
ASK WHERE { resource:Q1789411 property:P19 resource:Q1564246 . resource:Q1789411 property:P19 resource:Q7253641 }
Kristof Magnusson Humin-Dobra Ziemskie Przylasek
action is_in
entity Kristof Magnusson
action intersection
action find_reverse
entity Humin-Dobra Ziemskie
relation place of birth
action find_reverse
entity Przylasek
relation place of birth
['Kristof Magnusson', 'place of birth', 'Humin-Dobra Ziemskie'] ['Kristof Magnusson', 'place of birth', 'Przylasek']
ASK WHERE { resource:Kristof_Magnusson property:place_of_birth resource:Humin-Dobra_Ziemskie . resource:Kristof_Magnusson property:place_of_birth resource:Przylasek }
[]
human settlement
SYSTEM
NO
(Q1789411,P19,Q1564246) (Q1789411,P19,Q7253641)
action is_in
entity Q1789411
action intersection
action find_reverse
entity Q1564246
relation P19
action find_reverse
entity Q7253641
relation P19
[ANSWER]
['Q1789411', 'P19', 'Q1564246'] ['Q1789411', 'P19', 'Q7253641']
ASK WHERE { resource:Q1789411 property:P19 resource:Q1564246 . resource:Q1789411 property:P19 resource:Q7253641 }
No
action is_in
entity Kristof Magnusson
action intersection
action find_reverse
entity Humin-Dobra Ziemskie
relation place of birth
action find_reverse
entity Przylasek
relation place of birth
['Kristof Magnusson', 'place of birth', 'Humin-Dobra Ziemskie'] ['Kristof Magnusson', 'place of birth', 'Przylasek']
ASK WHERE { resource:Kristof_Magnusson property:place_of_birth resource:Humin-Dobra_Ziemskie . resource:Kristof_Magnusson property:place_of_birth resource:Przylasek }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q183 Q586 Q64
P36
Q56061
USER
Does Germany consist of Bonn and Berlin as its capital ?
(Q183,P36,Q586) (Q183,P36,Q64)
action is_in
entity Q183
action intersection
action find_reverse
entity Q586
relation P36
action find_reverse
entity Q64
relation P36
['Q183', 'P36', 'Q586'] ['Q183', 'P36', 'Q64']
ASK WHERE { resource:Q183 property:P36 resource:Q64 . resource:Q183 property:P36 resource:Q586 }
Germany Bonn Berlin
action is_in
entity Germany
action intersection
action find_reverse
entity Bonn
relation capital
action find_reverse
entity Berlin
relation capital
['Germany', 'capital', 'Bonn'] ['Germany', 'capital', 'Berlin']
ASK WHERE { resource:Germany property:capital resource:Berlin . resource:Germany property:capital resource:Bonn }
[]
administrative territorial entity
SYSTEM
YES
(Q183,P36,Q586) (Q183,P36,Q64)
action is_in
entity Q183
action intersection
action find_reverse
entity Q586
relation P36
action find_reverse
entity Q64
relation P36
[ANSWER]
['Q183', 'P36', 'Q586'] ['Q183', 'P36', 'Q64']
ASK WHERE { resource:Q183 property:P36 resource:Q64 . resource:Q183 property:P36 resource:Q586 }
Yes
action is_in
entity Germany
action intersection
action find_reverse
entity Bonn
relation capital
action find_reverse
entity Berlin
relation capital
['Germany', 'capital', 'Bonn'] ['Germany', 'capital', 'Berlin']
ASK WHERE { resource:Germany property:capital resource:Berlin . resource:Germany property:capital resource:Bonn }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q183
P793
Q350604 Q198
USER
How many armed conflicts or wars are a significant events associated with Germany ?
(Q183,P793,c(Q350604)) (Q183,P793,c(Q198))
action count
action union
action filter_type
action find
entity Q183
relation P793
type Q350604
action filter_type
action find
entity Q183
relation P793
type Q198
['Q183', 'P793', {'concept': 'Q350604'}] ['Q183', 'P793', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { VALUES ( ?t ) { ( ontology:Q198 ) ( ontology:Q350604 ) } . ?g rdf:type ?t }
Germany
action count
action union
action filter_type
action find
entity Germany
relation significant event
type armed conflict
action filter_type
action find
entity Germany
relation significant event
type war
['Germany', 'significant event', {'concept': 'armed conflict'}] ['Germany', 'significant event', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { VALUES ( ?t ) { ( ontology:war ) ( ontology:armed_conflict ) } . ?g rdf:type ?t }
[]
armed conflict war
SYSTEM
2
Q182865 Q242352
(Q183,P793,c(Q350604)) (Q183,P793,c(Q198))
action count
action union
action filter_type
action find
entity Q183
relation P793
type Q350604
action filter_type
action find
entity Q183
relation P793
type Q198
[ANSWER]
['Q183', 'P793', {'concept': 'Q350604'}] ['Q183', 'P793', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { VALUES ( ?t ) { ( ontology:Q198 ) ( ontology:Q350604 ) } . ?g rdf:type ?t }
War in Afghanistan Yugoslav Wars
2
action count
action union
action filter_type
action find
entity Germany
relation significant event
type armed conflict
action filter_type
action find
entity Germany
relation significant event
type war
['Germany', 'significant event', {'concept': 'armed conflict'}] ['Germany', 'significant event', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?n ) WHERE { VALUES ( ?t ) { ( ontology:war ) ( ontology:armed_conflict ) } . ?g rdf:type ?t }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P35
Q502895 Q7275 Q35798
USER
How many people are the heads of state of atleast 6 states or executive branches ?
(c(Q7275)|c(Q35798),P35,c(Q502895))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
value 6
[[{'concept': 'Q7275'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { FILTER ( ?t >= 6 ) . { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?t ) WHERE { { ?u property:P35 ?n . ?n rdf:type ontology:Q502895 . ?u rdf:type ontology:Q7275 } UNION { ?u property:P35 ?n . ?n rdf:type ontology:Q502895 . ?u rdf:type ontology:Q35798 } } GROUP BY ?n } }
action count
action atleast
action union
action find_reverse_tuple_counts
relation head of state
type common name
type state
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
value 6
[[{'concept': 'state'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { FILTER ( ?t >= 6 ) . { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?t ) WHERE { { ?u property:head_of_state ?n . ?n rdf:type ontology:common_name . ?u rdf:type ontology:state } UNION { ?u property:head_of_state ?n . ?n rdf:type ontology:common_name . ?u rdf:type ontology:executive_branch } } GROUP BY ?n } }
[]
common name state executive branch
SYSTEM
20
Q310994 Q45068 Q1241 Q1242 Q153688 Q1238 Q1230 Q1233 Q1235 Q150642 Q181261 Q57279 Q189575 Q269412 Q168691 Q57287 Q154912 Q1228 Q1220 Q9682
(c(Q7275)|c(Q35798),P35,c(Q502895))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P35
type Q502895
type Q7275
action find_reverse_tuple_counts
relation P35
type Q502895
type Q35798
value 6
[ANSWER]
[[{'concept': 'Q7275'}, {'concept': 'Q35798'}], 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { FILTER ( ?t >= 6 ) . { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?t ) WHERE { { ?u property:P35 ?n . ?n rdf:type ontology:Q502895 . ?u rdf:type ontology:Q7275 } UNION { ?u property:P35 ?n . ?n rdf:type ontology:Q502895 . ?u rdf:type ontology:Q35798 } } GROUP BY ?n } }
Patrick Hillery Carl XVI Gustaf of Sweden Giovanni Gronchi Luigi Einaudi Umberto I of Italy Giuseppe Saragat Francesco Cossiga Sandro Pertini Giovanni Leone Vittorio Emanuele III Charles Albert of Sardinia Traian Băsescu Ion Iliescu George V Victor Emmanuel II of Savoy Harald V of Norway Olav V of Norway Oscar Luigi Scalfaro Giorgio Napolitano Elizabeth II
20
action count
action atleast
action union
action find_reverse_tuple_counts
relation head of state
type common name
type state
action find_reverse_tuple_counts
relation head of state
type common name
type executive branch
value 6
[[{'concept': 'state'}, {'concept': 'executive branch'}], 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?j ) WHERE { FILTER ( ?t >= 6 ) . { SELECT DISTINCT ?n ( COUNT ( ?u ) AS ?t ) WHERE { { ?u property:head_of_state ?n . ?n rdf:type ontology:common_name . ?u rdf:type ontology:state } UNION { ?u property:head_of_state ?n . ?n rdf:type ontology:common_name . ?u rdf:type ontology:executive_branch } } GROUP BY ?n } }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q3702067 Q183
P530 P27
Q15617994
USER
Which administrative territories holds diplomatic relationship with Germany and are not the countries of citizenship of Tex Ritter ?
AND((Q183,P530,c(Q15617994)), NOT((Q3702067,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q3702067
relation P27
type Q15617994
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q3702067', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?y WHERE { resource:Q183 property:P530 ?y . FILTER NOT EXISTS { resource:Q3702067 property:P27 ?y } . ?y rdf:type ontology:Q15617994 }
Tex Ritter Germany
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Tex Ritter
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Tex Ritter', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?y WHERE { resource:Germany property:diplomatic_relation ?y . FILTER NOT EXISTS { resource:Tex_Ritter property:country_of_citizenship ?y } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q214 Q298 Q224 Q265 Q833 Q750 Q96 Q228 Q889 Q115
SYSTEM
Some of them are Slovakia, Chile, Croatia, Uzbekistan, Malaysia, Bolivia, Mexico, Andorra, Afghanistan, Ethiopia
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
AND((Q183,P530,c(Q15617994)), NOT((Q3702067,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q183
relation P530
action find
entity Q3702067
relation P27
type Q15617994
[ANSWERS] hold diplomatic relationship with Germany and are not the countries of citizenship of Tex Ritter
{'AND': [['Q183', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q3702067', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?y WHERE { resource:Q183 property:P530 ?y . FILTER NOT EXISTS { resource:Q3702067 property:P27 ?y } . ?y rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
Slovakia, Chile, Croatia, Uzbekistan, Malaysia, Bolivia, Mexico, Andorra, Afghanistan and Ethiopia hold diplomatic relationship with Germany and are not the countries of citizenship of Tex Ritter
Slovakia Chile Croatia Uzbekistan Malaysia Bolivia Mexico Andorra Afghanistan Ethiopia
action filter_type
action difference
action find
entity Germany
relation diplomatic relation
action find
entity Tex Ritter
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Tex Ritter', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?y WHERE { resource:Germany property:diplomatic_relation ?y . FILTER NOT EXISTS { resource:Tex_Ritter property:country_of_citizenship ?y } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]