Simple Question (Direct)
Simple Question
Q2070470
P119
Q43229
USER
Which organization is the place of burial of Pauls Stradiņš ?
(Q2070470,P119,c(Q43229))
action filter_type
action find
entity Q2070470
relation P119
type Q43229
['Q2070470', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?w WHERE { resource:Q2070470 property:P119 ?w . ?w rdf:type ontology:Q43229 }
Pauls Stradiņš
action filter_type
action find
entity Pauls Stradiņš
relation place of burial
type organization
['Pauls Stradiņš', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?w WHERE { resource:Pauls_Stradiņš property:place_of_burial ?w . ?w rdf:type ontology:organization }
[]
organization
Q2564167
SYSTEM
Rīgas Meža kapi
Q2564167
(Q2070470,P119,c(Q43229))
action filter_type
action find
entity Q2070470
relation P119
type Q43229
[ANSWER] is the place of burial of Pauls Stradiņš
['Q2070470', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?w WHERE { resource:Q2070470 property:P119 ?w . ?w rdf:type ontology:Q43229 }
Rīgas Meža kapi
Rīgas Meža kapi is the place of burial of Pauls Stradiņš
Rīgas Meža kapi
action filter_type
action find
entity Pauls Stradiņš
relation place of burial
type organization
['Pauls Stradiņš', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?w WHERE { resource:Pauls_Stradiņš property:place_of_burial ?w . ?w rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2070470
P69
Q1935049
USER
Which military school is the alma mater of Pauls Stradiņš ?
(Q2070470,P69,c(Q1935049))
action filter_type
action find
entity Q2070470
relation P69
type Q1935049
['Q2070470', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?z WHERE { resource:Q2070470 property:P69 ?z . ?z rdf:type ontology:Q1935049 }
Pauls Stradiņš
action filter_type
action find
entity Pauls Stradiņš
relation educated at
type military school
['Pauls Stradiņš', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?z WHERE { resource:Pauls_Stradiņš property:educated_at ?z . ?z rdf:type ontology:military_school }
[]
military school
Q1459393
SYSTEM
S.M.Kirov Military Medical Academy
Q1459393
(Q2070470,P69,c(Q1935049))
action filter_type
action find
entity Q2070470
relation P69
type Q1935049
[ANSWER] is the alma mater of Pauls Stradiņš
['Q2070470', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?z WHERE { resource:Q2070470 property:P69 ?z . ?z rdf:type ontology:Q1935049 }
S.M.Kirov Military Medical Academy
S.M.Kirov Military Medical Academy is the alma mater of Pauls Stradiņš
S.M.Kirov Military Medical Academy
action filter_type
action find
entity Pauls Stradiņš
relation educated at
type military school
['Pauls Stradiņš', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?z WHERE { resource:Pauls_Stradiņš property:educated_at ?z . ?z rdf:type ontology:military_school }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16640578
Q1935049
USER
And what about Vladimir Goodilin?
(Q16640578,P69,c(Q1935049))
action filter_type
action find
entity Q16640578
relation P69
type Q1935049
['Q16640578', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?d WHERE { resource:Q16640578 property:P69 ?d . ?d rdf:type ontology:Q1935049 }
Vladimir Goodilin
action filter_type
action find
entity Vladimir Goodilin
relation educated at
type military school
['Vladimir Goodilin', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?d WHERE { resource:Vladimir_Goodilin property:educated_at ?d . ?d rdf:type ontology:military_school }
[]
military school
Q4129767
SYSTEM
Naval Engineering High School
Q4129767
(Q16640578,P69,c(Q1935049))
action filter_type
action find
entity Q16640578
relation P69
type Q1935049
[ANSWER]
['Q16640578', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?d WHERE { resource:Q16640578 property:P69 ?d . ?d rdf:type ontology:Q1935049 }
Naval Engineering High School
Naval Engineering High School
action filter_type
action find
entity Vladimir Goodilin
relation educated at
type military school
['Vladimir Goodilin', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?d WHERE { resource:Vladimir_Goodilin property:educated_at ?d . ?d rdf:type ontology:military_school }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q4129767 Q188570
P138
Q502895
USER
Is Felix Dzerzhinsky the origin of that military school ?
(Q4129767,P138,Q188570)
action is_in
entity Q188570
action find
entity Q4129767
relation P138
['Q4129767', 'P138', 'Q188570']
ASK WHERE { resource:Q4129767 property:P138 resource:Q188570 }
Naval Engineering High School Felix Dzerzhinsky
action is_in
entity Felix Dzerzhinsky
action find
entity Naval Engineering High School
relation named after
['Naval Engineering High School', 'named after', 'Felix Dzerzhinsky']
ASK WHERE { resource:Naval_Engineering_High_School property:named_after resource:Felix_Dzerzhinsky }
[]
common name
SYSTEM
YES
(Q4129767,P138,Q188570)
action is_in
entity Q188570
action find
entity Q4129767
relation P138
[ANSWER]
['Q4129767', 'P138', 'Q188570']
ASK WHERE { resource:Q4129767 property:P138 resource:Q188570 }
Yes
action is_in
entity Felix Dzerzhinsky
action find
entity Naval Engineering High School
relation named after
['Naval Engineering High School', 'named after', 'Felix Dzerzhinsky']
ASK WHERE { resource:Naval_Engineering_High_School property:named_after resource:Felix_Dzerzhinsky }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q4129767
P138
Q502895
USER
How many people are Naval Engineering High School named after ?
(Q4129767,P138,c(Q502895))
action count
action filter_type
action find
entity Q4129767
relation P138
type Q502895
['Q4129767', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Q4129767 property:P138 ?d . ?d rdf:type ontology:Q502895 }
Naval Engineering High School
action count
action filter_type
action find
entity Naval Engineering High School
relation named after
type common name
['Naval Engineering High School', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Naval_Engineering_High_School property:named_after ?d . ?d rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q188570
(Q4129767,P138,c(Q502895))
action count
action filter_type
action find
entity Q4129767
relation P138
type Q502895
[ANSWER]
['Q4129767', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Q4129767 property:P138 ?d . ?d rdf:type ontology:Q502895 }
Felix Dzerzhinsky
1
action count
action filter_type
action find
entity Naval Engineering High School
relation named after
type common name
['Naval Engineering High School', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { resource:Naval_Engineering_High_School property:named_after ?d . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q18928638
P138
Q502895
USER
And how about Abel J Tasmanstraat?
(Q18928638,P138,c(Q502895))
action count
action filter_type
action find
entity Q18928638
relation P138
type Q502895
['Q18928638', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { resource:Q18928638 property:P138 ?d . ?d rdf:type ontology:Q502895 }
Abel J Tasmanstraat
action count
action filter_type
action find
entity Abel J Tasmanstraat
relation named after
type common name
['Abel J Tasmanstraat', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { resource:Abel_J_Tasmanstraat property:named_after ?d . ?d rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q42188
(Q18928638,P138,c(Q502895))
action count
action filter_type
action find
entity Q18928638
relation P138
type Q502895
[ANSWER]
['Q18928638', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { resource:Q18928638 property:P138 ?d . ?d rdf:type ontology:Q502895 }
Abel Tasman
1
action count
action filter_type
action find
entity Abel J Tasmanstraat
relation named after
type common name
['Abel J Tasmanstraat', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { resource:Abel_J_Tasmanstraat property:named_after ?d . ?d rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q19265983
Q502895
USER
And also tell me about Johan de Wittstraat?
(Q19265983,P138,c(Q502895))
action count
action filter_type
action find
entity Q19265983
relation P138
type Q502895
['Q19265983', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { resource:Q19265983 property:P138 ?f . ?f rdf:type ontology:Q502895 }
Johan de Wittstraat
action count
action filter_type
action find
entity Johan de Wittstraat
relation named after
type common name
['Johan de Wittstraat', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { resource:Johan_de_Wittstraat property:named_after ?f . ?f rdf:type ontology:common_name }
[]
common name
SYSTEM
1
(Q19265983,P138,c(Q502895))
action count
action filter_type
action find
entity Q19265983
relation P138
type Q502895
[ANSWER]
['Q19265983', 'P138', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { resource:Q19265983 property:P138 ?f . ?f rdf:type ontology:Q502895 }
1
action count
action filter_type
action find
entity Johan de Wittstraat
relation named after
type common name
['Johan de Wittstraat', 'named after', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?p ) WHERE { resource:Johan_de_Wittstraat property:named_after ?f . ?f rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1191029 Q18928638
P17
Q15617994
USER
Which administrative territories do Abel J Tasmanstraat or Hirado Castle belong to ?
OR((Q18928638,P17,c(Q15617994)), (Q1191029,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q18928638
relation P17
action find
entity Q1191029
relation P17
type Q15617994
{'OR': [['Q18928638', 'P17', {'concept': 'Q15617994'}], ['Q1191029', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?n ) { ( resource:Q18928638 ) ( resource:Q1191029 ) } . ?n property:P17 ?s } . ?s rdf:type ontology:Q15617994 }
Hirado Castle Abel J Tasmanstraat
action filter_type
action union
action find
entity Abel J Tasmanstraat
relation country
action find
entity Hirado Castle
relation country
type designation for an administrative territorial entity
{'OR': [['Abel J Tasmanstraat', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Hirado Castle', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?n ) { ( resource:Abel_J_Tasmanstraat ) ( resource:Hirado_Castle ) } . ?n property:country ?s } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q55
SYSTEM
Japan, Netherlands
Q17 Q55
OR((Q18928638,P17,c(Q15617994)), (Q1191029,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q18928638
relation P17
action find
entity Q1191029
relation P17
type Q15617994
Abel J Tasmanstraat or Hirado Castle belong to [ANSWERS]
{'OR': [['Q18928638', 'P17', {'concept': 'Q15617994'}], ['Q1191029', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?n ) { ( resource:Q18928638 ) ( resource:Q1191029 ) } . ?n property:P17 ?s } . ?s rdf:type ontology:Q15617994 }
Japan Netherlands
Abel J Tasmanstraat or Hirado Castle belong to Japan and Netherlands
Japan Netherlands
action filter_type
action union
action find
entity Abel J Tasmanstraat
relation country
action find
entity Hirado Castle
relation country
type designation for an administrative territorial entity
{'OR': [['Abel J Tasmanstraat', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Hirado Castle', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?n ) { ( resource:Abel_J_Tasmanstraat ) ( resource:Hirado_Castle ) } . ?n property:country ?s } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q18708975
P495
Q838948
USER
Are those administrative territories a country of origin of The Hunting of the Hawk ?
(Q18708975,P495,Q17) (Q18708975,P495,Q55)
action is_in
entity prev_answer
action find
entity Q18708975
relation P495
['Q18708975', 'P495', 'Q17'] ['Q18708975', 'P495', 'Q55']
ASK WHERE { VALUES ( ?l ) { ( resource:Q17 ) ( resource:Q55 ) } . resource:Q18708975 property:P495 ?l }
The Hunting of the Hawk
action is_in
entity prev_answer
action find
entity The Hunting of the Hawk
relation country of origin
['The Hunting of the Hawk', 'country of origin', 'Japan'] ['The Hunting of the Hawk', 'country of origin', 'Netherlands']
ASK WHERE { VALUES ( ?l ) { ( resource:Japan ) ( resource:Netherlands ) } . resource:The_Hunting_of_the_Hawk property:country_of_origin ?l }
[]
work of art
SYSTEM
NO
(Q18708975,P495,Q17) (Q18708975,P495,Q55)
action is_in
entity prev_answer
action find
entity Q18708975
relation P495
[ANSWER]
['Q18708975', 'P495', 'Q17'] ['Q18708975', 'P495', 'Q55']
ASK WHERE { VALUES ( ?l ) { ( resource:Q17 ) ( resource:Q55 ) } . resource:Q18708975 property:P495 ?l }
No
action is_in
entity prev_answer
action find
entity The Hunting of the Hawk
relation country of origin
['The Hunting of the Hawk', 'country of origin', 'Japan'] ['The Hunting of the Hawk', 'country of origin', 'Netherlands']
ASK WHERE { VALUES ( ?l ) { ( resource:Japan ) ( resource:Netherlands ) } . resource:The_Hunting_of_the_Hawk property:country_of_origin ?l }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with exactly 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?t ) WHERE { ?k property:P530 ?y . ?k rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?t = 1 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?t ) WHERE { ?k property:diplomatic_relation ?y . ?k rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?t = 1 ) }
[]
political territorial entity designation for an administrative territorial entity
Q1000 Q769 Q778
SYSTEM
Gabon, Grenada, The Bahamas
Q1000 Q781 Q778 Q769
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[ANSWERS] have diplomatic relationships with exactly 1 administrative territory
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?t ) WHERE { ?k property:P530 ?y . ?k rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?t = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada
Gabon, Grenada and The Bahamas have diplomatic relationships with exactly 1 administrative territory
Gabon Grenada The Bahamas
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?y ) AS ?t ) WHERE { ?k property:diplomatic_relation ?y . ?k rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?t = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5751909 Q1000
P47 P495
Q15617994
USER
Which administrative territories have a shared border with Gabon or did Hidden Pleasures originate ?
OR((Q1000,P47,c(Q15617994)), (Q5751909,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q1000
relation P47
action find
entity Q5751909
relation P495
type Q15617994
{'OR': [['Q1000', 'P47', {'concept': 'Q15617994'}], ['Q5751909', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q5751909 property:P495 ?r } UNION { resource:Q1000 property:P47 ?r } } . ?r rdf:type ontology:Q15617994 }
Hidden Pleasures Gabon
action filter_type
action union
action find
entity Gabon
relation shares border with
action find
entity Hidden Pleasures
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Gabon', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Hidden Pleasures', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Hidden_Pleasures property:country_of_origin ?r } UNION { resource:Gabon property:shares_border_with ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q1009 Q983 Q971
SYSTEM
Spain, Cameroon, Equatorial Guinea, Republic of the Congo
Q29 Q1009 Q983 Q971
OR((Q1000,P47,c(Q15617994)), (Q5751909,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q1000
relation P47
action find
entity Q5751909
relation P495
type Q15617994
[ANSWERS] have a shared border with Gabon or did Hidden Pleasures originate
{'OR': [['Q1000', 'P47', {'concept': 'Q15617994'}], ['Q5751909', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q5751909 property:P495 ?r } UNION { resource:Q1000 property:P47 ?r } } . ?r rdf:type ontology:Q15617994 }
Spain Cameroon Equatorial Guinea Republic of the Congo
Spain, Cameroon, Equatorial Guinea and Republic of the Congo have a shared border with Gabon or did Hidden Pleasures originate
Spain Cameroon Equatorial Guinea Republic of the Congo
action filter_type
action union
action find
entity Gabon
relation shares border with
action find
entity Hidden Pleasures
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Gabon', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Hidden Pleasures', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Hidden_Pleasures property:country_of_origin ?r } UNION { resource:Gabon property:shares_border_with ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]