Simple Question (Direct)
Simple Question
Q7506256
P119
Q43229
USER
Which organization is the tomb of Shōzō Sakurai ?
(Q7506256,P119,c(Q43229))
action filter_type
action find
entity Q7506256
relation P119
type Q43229
['Q7506256', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?v WHERE { resource:Q7506256 property:P119 ?v . ?v rdf:type ontology:Q43229 }
Shōzō Sakurai
action filter_type
action find
entity Shōzō Sakurai
relation place of burial
type organization
['Shōzō Sakurai', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?v WHERE { resource:Shōzō_Sakurai property:place_of_burial ?v . ?v rdf:type ontology:organization }
[]
organization
Q982473
SYSTEM
Tama Cemetery
Q982473
(Q7506256,P119,c(Q43229))
action filter_type
action find
entity Q7506256
relation P119
type Q43229
Station [ANSWER] is the tomb of Shōzō Sakurai
['Q7506256', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?v WHERE { resource:Q7506256 property:P119 ?v . ?v rdf:type ontology:Q43229 }
Tama Cemetery
Station Tama Cemetery is the tomb of Shōzō Sakurai
Tama Cemetery
action filter_type
action find
entity Shōzō Sakurai
relation place of burial
type organization
['Shōzō Sakurai', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?v WHERE { resource:Shōzō_Sakurai property:place_of_burial ?v . ?v rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7506256
P19
Q515
USER
Where was that person born ?
(Q982473,P19,c(Q515))
action filter_type
action find
entity Q7506256
relation P19
type Q515
['Q982473', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { resource:Q7506256 property:P19 ?h . ?h rdf:type ontology:Q515 }
Shōzō Sakurai
action filter_type
action find
entity Shōzō Sakurai
relation place of birth
type city
['Tama Cemetery', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { resource:Shōzō_Sakurai property:place_of_birth ?h . ?h rdf:type ontology:city }
[]
city
Q378225
SYSTEM
Hagi
Q378225
(Q982473,P19,c(Q515))
action filter_type
action find
entity Q7506256
relation P19
type Q515
That person was born in [ANSWER]
['Q982473', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { resource:Q7506256 property:P19 ?h . ?h rdf:type ontology:Q515 }
Hagi
That person was born in Hagi
Hagi
action filter_type
action find
entity Shōzō Sakurai
relation place of birth
type city
['Tama Cemetery', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { resource:Shōzō_Sakurai property:place_of_birth ?h . ?h rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7506256
P607
Q198
USER
Which battle did Shōzō Sakurai take part in ?
(Q7506256,P607,c(Q198))
action filter_type
action find
entity Q7506256
relation P607
type Q198
['Q7506256', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?v WHERE { resource:Q7506256 property:P607 ?v . ?v rdf:type ontology:Q198 }
Shōzō Sakurai
action filter_type
action find
entity Shōzō Sakurai
relation conflict
type war
['Shōzō Sakurai', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?v WHERE { resource:Shōzō_Sakurai property:conflict ?v . ?v rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q7506256,P607,c(Q198))
action filter_type
action find
entity Q7506256
relation P607
type Q198
Shōzō Sakurai took part in [ANSWER]
['Q7506256', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?v WHERE { resource:Q7506256 property:P607 ?v . ?v rdf:type ontology:Q198 }
World War II
Shōzō Sakurai took part in World War II
World War II
action filter_type
action find
entity Shōzō Sakurai
relation conflict
type war
['Shōzō Sakurai', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?v WHERE { resource:Shōzō_Sakurai property:conflict ?v . ?v rdf:type ontology:war }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16240918
Q198
USER
And what about Roscoe W. Burson?
(Q16240918,P607,c(Q198))
action filter_type
action find
entity Q16240918
relation P607
type Q198
['Q16240918', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?b WHERE { resource:Q16240918 property:P607 ?b . ?b rdf:type ontology:Q198 }
Roscoe W. Burson
action filter_type
action find
entity Roscoe W. Burson
relation conflict
type war
['Roscoe W. Burson', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?b WHERE { resource:Roscoe_W._Burson property:conflict ?b . ?b rdf:type ontology:war }
[]
war
Q361
SYSTEM
World War I
Q361
(Q16240918,P607,c(Q198))
action filter_type
action find
entity Q16240918
relation P607
type Q198
[ANSWER]
['Q16240918', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?b WHERE { resource:Q16240918 property:P607 ?b . ?b rdf:type ontology:Q198 }
World War I
World War I
action filter_type
action find
entity Roscoe W. Burson
relation conflict
type war
['Roscoe W. Burson', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?b WHERE { resource:Roscoe_W._Burson property:conflict ?b . ?b rdf:type ontology:war }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q361 Q18715746
P607
Q502895
USER
Did that war fight in W.C.V. Galwey ?
(Q18715746,P607,Q361)
action is_in
entity Q361
action find
entity Q18715746
relation P607
['Q18715746', 'P607', 'Q361']
ASK WHERE { resource:Q18715746 property:P607 resource:Q361 }
World War I W.C.V. Galwey
action is_in
entity World War I
action find
entity W.C.V. Galwey
relation conflict
['W.C.V. Galwey', 'conflict', 'World War I']
ASK WHERE { resource:W.C.V._Galwey property:conflict resource:World_War_I }
[]
common name
SYSTEM
YES
(Q18715746,P607,Q361)
action is_in
entity Q361
action find
entity Q18715746
relation P607
[ANSWER]
['Q18715746', 'P607', 'Q361']
ASK WHERE { resource:Q18715746 property:P607 resource:Q361 }
Yes
action is_in
entity World War I
action find
entity W.C.V. Galwey
relation conflict
['W.C.V. Galwey', 'conflict', 'World War I']
ASK WHERE { resource:W.C.V._Galwey property:conflict resource:World_War_I }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7506256
P734
Q82799
USER
Which name is associated with Shōzō Sakurai ?
(Q7506256,P734,c(Q82799))
action filter_type
action find
entity Q7506256
relation P734
type Q82799
['Q7506256', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q7506256 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Shōzō Sakurai
action filter_type
action find
entity Shōzō Sakurai
relation family name
type name
['Shōzō Sakurai', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Shōzō_Sakurai property:family_name ?r . ?r rdf:type ontology:name }
[]
name
Q10660307
SYSTEM
Sakurai
Q10660307
(Q7506256,P734,c(Q82799))
action filter_type
action find
entity Q7506256
relation P734
type Q82799
To [ANSWER] is associated with Shōzō [ANSWER]
['Q7506256', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q7506256 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Sakurai
To Sakurai is associated with Shōzō Sakurai
Sakurai
action filter_type
action find
entity Shōzō Sakurai
relation family name
type name
['Shōzō Sakurai', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Shōzō_Sakurai property:family_name ?r . ?r rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7506256
P106
Q12737077
USER
Which occupation is the profession of that person ?
(Q10660307,P106,c(Q12737077))
action filter_type
action find
entity Q7506256
relation P106
type Q12737077
['Q10660307', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q12737077 . resource:Q7506256 property:P106 ?c }
Shōzō Sakurai
action filter_type
action find
entity Shōzō Sakurai
relation occupation
type occupation
['Sakurai', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:occupation . resource:Shōzō_Sakurai property:occupation ?c }
[]
occupation
Q47064
SYSTEM
military personnel
Q47064
(Q10660307,P106,c(Q12737077))
action filter_type
action find
entity Q7506256
relation P106
type Q12737077
The [ANSWER] is the profession of that person
['Q10660307', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q12737077 . resource:Q7506256 property:P106 ?c }
military personnel
The military personnel is the profession of that person
military personnel
action filter_type
action find
entity Shōzō Sakurai
relation occupation
type occupation
['Sakurai', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:occupation . resource:Shōzō_Sakurai property:occupation ?c }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q2934945 Q7506256
P106
Q12737077
USER
Or Camille Groult?
OR((Q7506256,P106,c(Q12737077)), (Q2934945,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7506256
relation P106
action find
entity Q2934945
relation P106
type Q12737077
{'OR': [['Q7506256', 'P106', {'concept': 'Q12737077'}], ['Q2934945', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q7506256 property:P106 ?b } UNION { resource:Q2934945 property:P106 ?b } } . ?b rdf:type ontology:Q12737077 }
Camille Groult Shōzō Sakurai
action filter_type
action union
action find
entity Shōzō Sakurai
relation occupation
action find
entity Camille Groult
relation occupation
type occupation
{'OR': [['Shōzō Sakurai', 'occupation', {'concept': 'occupation'}], ['Camille Groult', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Shōzō_Sakurai property:occupation ?b } UNION { resource:Camille_Groult property:occupation ?b } } . ?b rdf:type ontology:occupation }
[]
occupation
Q15637082 Q47064
SYSTEM
industrialist, military personnel
Q15637082 Q47064
OR((Q7506256,P106,c(Q12737077)), (Q2934945,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q7506256
relation P106
action find
entity Q2934945
relation P106
type Q12737077
[ANSWERS]
{'OR': [['Q7506256', 'P106', {'concept': 'Q12737077'}], ['Q2934945', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q7506256 property:P106 ?b } UNION { resource:Q2934945 property:P106 ?b } } . ?b rdf:type ontology:Q12737077 }
industrialist military personnel
industrialist military personnel
action filter_type
action union
action find
entity Shōzō Sakurai
relation occupation
action find
entity Camille Groult
relation occupation
type occupation
{'OR': [['Shōzō Sakurai', 'occupation', {'concept': 'occupation'}], ['Camille Groult', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Shōzō_Sakurai property:occupation ?b } UNION { resource:Camille_Groult property:occupation ?b } } . ?b rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q21458844
P106
Q502895
USER
Do Jeanne Courtauld have those occupations as his/her means of employment ?
(Q21458844,P106,Q15637082) (Q21458844,P106,Q47064)
action is_in
entity prev_answer
action find
entity Q21458844
relation P106
['Q21458844', 'P106', 'Q15637082'] ['Q21458844', 'P106', 'Q47064']
ASK WHERE { resource:Q21458844 property:P106 ?m . VALUES ( ?m ) { ( resource:Q15637082 ) ( resource:Q47064 ) } }
Jeanne Courtauld
action is_in
entity prev_answer
action find
entity Jeanne Courtauld
relation occupation
['Jeanne Courtauld', 'occupation', 'industrialist'] ['Jeanne Courtauld', 'occupation', 'military personnel']
ASK WHERE { resource:Jeanne_Courtauld property:occupation ?m . VALUES ( ?m ) { ( resource:industrialist ) ( resource:military_personnel ) } }
[]
common name
SYSTEM
NO
(Q21458844,P106,Q15637082) (Q21458844,P106,Q47064)
action is_in
entity prev_answer
action find
entity Q21458844
relation P106
[ANSWER]
['Q21458844', 'P106', 'Q15637082'] ['Q21458844', 'P106', 'Q47064']
ASK WHERE { resource:Q21458844 property:P106 ?m . VALUES ( ?m ) { ( resource:Q15637082 ) ( resource:Q47064 ) } }
No
action is_in
entity prev_answer
action find
entity Jeanne Courtauld
relation occupation
['Jeanne Courtauld', 'occupation', 'industrialist'] ['Jeanne Courtauld', 'occupation', 'military personnel']
ASK WHERE { resource:Jeanne_Courtauld property:occupation ?m . VALUES ( ?m ) { ( resource:industrialist ) ( resource:military_personnel ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
How many people are the names of person who are the patron saints of atleast 3 occupations ?
(c(Q12737077),P417,c(Q502895))
action count
action atleast
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { FILTER ( ?e >= 3 ) . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?e ) WHERE { ?k rdf:type ontology:Q502895 . ?b rdf:type ontology:Q12737077 . ?b property:P417 ?k } GROUP BY ?k } }
action count
action atleast
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { FILTER ( ?e >= 3 ) . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?e ) WHERE { ?k rdf:type ontology:common_name . ?b rdf:type ontology:occupation . ?b property:patron_saint ?k } GROUP BY ?k } }
[]
common name occupation
SYSTEM
6
Q128538 Q192816 Q43982 Q179718 Q43600 Q200895
(c(Q12737077),P417,c(Q502895))
action count
action atleast
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 3
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { FILTER ( ?e >= 3 ) . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?e ) WHERE { ?k rdf:type ontology:Q502895 . ?b rdf:type ontology:Q12737077 . ?b property:P417 ?k } GROUP BY ?k } }
Luke the Evangelist Saint Barbara Bartholomew the Apostle Catherine of Alexandria Matthew the Apostle Agatha of Sicily
6
action count
action atleast
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 3
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { FILTER ( ?e >= 3 ) . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?e ) WHERE { ?k rdf:type ontology:common_name . ?b rdf:type ontology:occupation . ?b property:patron_saint ?k } GROUP BY ?k } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q242352
P921
Q198 Q838948 Q2342494
USER
How many wars were the main subjects of greater number of works of art or collectables 's work than Yugoslav Wars ?
(c(Q838948)|c(Q2342494),P921,c(Q198))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q242352
relation P921
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { FILTER ( ?d > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:P921 resource:Q242352 . { { ?r rdf:type ontology:Q838948 } UNION { ?r rdf:type ontology:Q2342494 } } } } . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?d ) WHERE { { ?x rdf:type ontology:Q198 . ?s rdf:type ontology:Q838948 . ?s property:P921 ?x } UNION { ?s property:P921 ?x . ?x rdf:type ontology:Q198 . ?s rdf:type ontology:Q2342494 } } GROUP BY ?x } }
Yugoslav Wars
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type war
type work of art
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action count
action filter_multi_types
action find_reverse
entity Yugoslav Wars
relation main subject
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { FILTER ( ?d > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:main_subject resource:Yugoslav_Wars . { { ?r rdf:type ontology:work_of_art } UNION { ?r rdf:type ontology:collectable } } } } . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?d ) WHERE { { ?x rdf:type ontology:war . ?s rdf:type ontology:work_of_art . ?s property:main_subject ?x } UNION { ?s property:main_subject ?x . ?x rdf:type ontology:war . ?s rdf:type ontology:collectable } } GROUP BY ?x } }
[]
war work of art collectable
SYSTEM
6
Q8683 Q8676 Q10859 Q362 Q361 Q545449
(c(Q838948)|c(Q2342494),P921,c(Q198))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q242352
relation P921
type Q838948
type Q2342494
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { FILTER ( ?d > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:P921 resource:Q242352 . { { ?r rdf:type ontology:Q838948 } UNION { ?r rdf:type ontology:Q2342494 } } } } . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?d ) WHERE { { ?x rdf:type ontology:Q198 . ?s rdf:type ontology:Q838948 . ?s property:P921 ?x } UNION { ?s property:P921 ?x . ?x rdf:type ontology:Q198 . ?s rdf:type ontology:Q2342494 } } GROUP BY ?x } }
Cold War American Civil War Spanish Civil War World War II World War I Iraq War
6
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type war
type work of art
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action count
action filter_multi_types
action find_reverse
entity Yugoslav Wars
relation main subject
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { FILTER ( ?d > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:main_subject resource:Yugoslav_Wars . { { ?r rdf:type ontology:work_of_art } UNION { ?r rdf:type ontology:collectable } } } } . { SELECT DISTINCT ?x ( COUNT ( ?s ) AS ?d ) WHERE { { ?x rdf:type ontology:war . ?s rdf:type ontology:work_of_art . ?s property:main_subject ?x } UNION { ?s property:main_subject ?x . ?x rdf:type ontology:war . ?s rdf:type ontology:collectable } } GROUP BY ?x } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q633862
P921
Q198 Q838948 Q2342494
USER
And how about Cold War?
(c(Q838948)|c(Q2342494),P921,c(Q198))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q633862
relation P921
type Q838948
type Q2342494
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?u ) WHERE { VALUES ( ?y ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?i rdf:type ?y } GROUP BY ?v } . FILTER ( ?u > ?r ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { { ?k rdf:type ontology:Q838948 } UNION { ?k rdf:type ontology:Q2342494 } } . ?k property:P921 resource:Q633862 } } }
Cold War
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type war
type work of art
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action count
action filter_multi_types
action find_reverse
entity Cold War
relation main subject
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?u ) WHERE { VALUES ( ?y ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?i rdf:type ?y } GROUP BY ?v } . FILTER ( ?u > ?r ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { { ?k rdf:type ontology:work_of_art } UNION { ?k rdf:type ontology:collectable } } . ?k property:main_subject resource:Cold_War } } }
[]
war work of art collectable
SYSTEM
8
Q8683 Q8676 Q10859 Q242352 Q201424 Q362 Q361 Q545449
(c(Q838948)|c(Q2342494),P921,c(Q198))
action count
action greater
action union
action find_reverse_tuple_counts
relation P921
type Q198
type Q838948
action find_reverse_tuple_counts
relation P921
type Q198
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q633862
relation P921
type Q838948
type Q2342494
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?u ) WHERE { VALUES ( ?y ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } . ?i rdf:type ?y } GROUP BY ?v } . FILTER ( ?u > ?r ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { { ?k rdf:type ontology:Q838948 } UNION { ?k rdf:type ontology:Q2342494 } } . ?k property:P921 resource:Q633862 } } }
Cold War American Civil War Spanish Civil War Yugoslav Wars nuclear war World War II World War I Iraq War
8
action count
action greater
action union
action find_reverse_tuple_counts
relation main subject
type war
type work of art
action find_reverse_tuple_counts
relation main subject
type war
type collectable
action count
action filter_multi_types
action find_reverse
entity Cold War
relation main subject
type work of art
type collectable
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'main subject', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?u ) WHERE { VALUES ( ?y ) { ( ontology:work_of_art ) ( ontology:collectable ) } . ?i rdf:type ?y } GROUP BY ?v } . FILTER ( ?u > ?r ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) WHERE { { { ?k rdf:type ontology:work_of_art } UNION { ?k rdf:type ontology:collectable } } . ?k property:main_subject resource:Cold_War } } }
[]