Simple Question (Direct)
Simple Question
Q15429071
P27
Q7275
USER
Which state is Karl-Heinz Wirzberger an inhabitant of ?
(Q15429071,P27,c(Q7275))
action filter_type
action find
entity Q15429071
relation P27
type Q7275
['Q15429071', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?m WHERE { resource:Q15429071 property:P27 ?m . ?m rdf:type ontology:Q7275 }
Karl-Heinz Wirzberger
action filter_type
action find
entity Karl-Heinz Wirzberger
relation country of citizenship
type state
['Karl-Heinz Wirzberger', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?m WHERE { resource:Karl-Heinz_Wirzberger property:country_of_citizenship ?m . ?m rdf:type ontology:state }
[]
state
Q16957
SYSTEM
East Germany
Q16957
(Q15429071,P27,c(Q7275))
action filter_type
action find
entity Q15429071
relation P27
type Q7275
[ANSWER] is Karl-Heinz Wirzberger an inhabitant of
['Q15429071', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?m WHERE { resource:Q15429071 property:P27 ?m . ?m rdf:type ontology:Q7275 }
East Germany
East Germany is Karl-Heinz Wirzberger an inhabitant of
East Germany
action filter_type
action find
entity Karl-Heinz Wirzberger
relation country of citizenship
type state
['Karl-Heinz Wirzberger', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?m WHERE { resource:Karl-Heinz_Wirzberger property:country_of_citizenship ?m . ?m rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16957
P1001
Q17335294
USER
Which coat of arms has control over the jurisdiction of that state ?
(c(Q17335294),P1001,Q16957)
action filter_type
action find_reverse
entity Q16957
relation P1001
type Q17335294
[{'concept': 'Q17335294'}, 'P1001', 'Q16957']
SELECT DISTINCT ?u WHERE { ?u property:P1001 resource:Q16957 . ?u rdf:type ontology:Q17335294 }
East Germany
action filter_type
action find_reverse
entity East Germany
relation applies to jurisdiction
type flag or coat of arms
[{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'East Germany']
SELECT DISTINCT ?u WHERE { ?u property:applies_to_jurisdiction resource:East_Germany . ?u rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q7624391
SYSTEM
flag of the German Democratic Republic
Q7624391
(c(Q17335294),P1001,Q16957)
action filter_type
action find_reverse
entity Q16957
relation P1001
type Q17335294
The [ANSWER] has control over the jurisdiction of that state
[{'concept': 'Q17335294'}, 'P1001', 'Q16957']
SELECT DISTINCT ?u WHERE { ?u property:P1001 resource:Q16957 . ?u rdf:type ontology:Q17335294 }
flag of the German Democratic Republic
The flag of the German Democratic Republic has control over the jurisdiction of that state
flag of the German Democratic Republic
action filter_type
action find_reverse
entity East Germany
relation applies to jurisdiction
type flag or coat of arms
[{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'East Germany']
SELECT DISTINCT ?u WHERE { ?u property:applies_to_jurisdiction resource:East_Germany . ?u rdf:type ontology:flag_or_coat_of_arms }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q7624391 Q16957
P163
Q7275
USER
Does East Germany have flag named that coat of arms ?
(Q16957,P163,Q7624391)
action is_in
entity Q7624391
action find
entity Q16957
relation P163
['Q16957', 'P163', 'Q7624391']
ASK WHERE { resource:Q16957 property:P163 resource:Q7624391 }
flag of the German Democratic Republic East Germany
action is_in
entity flag of the German Democratic Republic
action find
entity East Germany
relation flag
['East Germany', 'flag', 'flag of the German Democratic Republic']
ASK WHERE { resource:East_Germany property:flag resource:flag_of_the_German_Democratic_Republic }
[]
state
SYSTEM
YES
(Q16957,P163,Q7624391)
action is_in
entity Q7624391
action find
entity Q16957
relation P163
[ANSWER]
['Q16957', 'P163', 'Q7624391']
ASK WHERE { resource:Q16957 property:P163 resource:Q7624391 }
Yes
action is_in
entity flag of the German Democratic Republic
action find
entity East Germany
relation flag
['East Germany', 'flag', 'flag of the German Democratic Republic']
ASK WHERE { resource:East_Germany property:flag resource:flag_of_the_German_Democratic_Republic }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7368196 Q16957
P47 P17
Q1048835
USER
Which political territories share the border with East Germany or are Rosehill, New Zealand situated in ?
OR((Q16957,P47,c(Q1048835)), (Q7368196,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q16957
relation P47
action find
entity Q7368196
relation P17
type Q1048835
{'OR': [['Q16957', 'P47', {'concept': 'Q1048835'}], ['Q7368196', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q16957 property:P47 ?k } UNION { resource:Q7368196 property:P17 ?k } } . ?k rdf:type ontology:Q1048835 }
Rosehill, New Zealand East Germany
action filter_type
action union
action find
entity East Germany
relation shares border with
action find
entity Rosehill, New Zealand
relation country
type political territorial entity
{'OR': [['East Germany', 'shares border with', {'concept': 'political territorial entity'}], ['Rosehill, New Zealand', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:East_Germany property:shares_border_with ?k } UNION { resource:Rosehill,_New_Zealand property:country ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664 Q183
SYSTEM
New Zealand, Germany
Q664 Q183
OR((Q16957,P47,c(Q1048835)), (Q7368196,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q16957
relation P47
action find
entity Q7368196
relation P17
type Q1048835
[ANSWERS] share the border with East Germany or are Rosehill, New Zealand situated in
{'OR': [['Q16957', 'P47', {'concept': 'Q1048835'}], ['Q7368196', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q16957 property:P47 ?k } UNION { resource:Q7368196 property:P17 ?k } } . ?k rdf:type ontology:Q1048835 }
New Zealand Germany
New Zealand and Germany share the border with East Germany or are Rosehill, New Zealand situated in
New Zealand Germany
action filter_type
action union
action find
entity East Germany
relation shares border with
action find
entity Rosehill, New Zealand
relation country
type political territorial entity
{'OR': [['East Germany', 'shares border with', {'concept': 'political territorial entity'}], ['Rosehill, New Zealand', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:East_Germany property:shares_border_with ?k } UNION { resource:Rosehill,_New_Zealand property:country ?k } } . ?k rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q38
P530
Q15617994
USER
Do Italy have ambassadorial relations with those political territories ?
(Q38,P530,Q664) (Q38,P530,Q183)
action is_in
entity prev_answer
action find
entity Q38
relation P530
['Q38', 'P530', 'Q664'] ['Q38', 'P530', 'Q183']
ASK WHERE { VALUES ( ?w ) { ( resource:Q664 ) ( resource:Q183 ) } . resource:Q38 property:P530 ?w }
Italy
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'New Zealand'] ['Italy', 'diplomatic relation', 'Germany']
ASK WHERE { VALUES ( ?w ) { ( resource:New_Zealand ) ( resource:Germany ) } . resource:Italy property:diplomatic_relation ?w }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q664) (Q38,P530,Q183)
action is_in
entity prev_answer
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q664'] ['Q38', 'P530', 'Q183']
ASK WHERE { VALUES ( ?w ) { ( resource:Q664 ) ( resource:Q183 ) } . resource:Q38 property:P530 ?w }
Yes
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'New Zealand'] ['Italy', 'diplomatic relation', 'Germany']
ASK WHERE { VALUES ( ?w ) { ( resource:New_Zealand ) ( resource:Germany ) } . resource:Italy property:diplomatic_relation ?w }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q987767 Q10675206 Q17335294
USER
Which coats of arms express max number of containers and ingredients ?
(c(Q17335294),P180,c(Q987767)|c(Q10675206))
action argmax
action union
action find_tuple_counts
relation P180
type Q17335294
type Q987767
action find_tuple_counts
relation P180
type Q17335294
type Q10675206
[{'concept': 'Q17335294'}, 'P180', [{'concept': 'Q987767'}, {'concept': 'Q10675206'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?c WHERE { { ?c rdf:type ontology:Q17335294 . ?w rdf:type ontology:Q987767 . ?c property:P180 ?w } UNION { ?c property:P180 ?w . ?c rdf:type ontology:Q17335294 . ?w rdf:type ontology:Q10675206 } } GROUP BY ?c } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) ?x WHERE { { ?x property:P180 ?h . ?h rdf:type ontology:Q10675206 . ?x rdf:type ontology:Q17335294 } UNION { ?x property:P180 ?h . ?x rdf:type ontology:Q17335294 . ?h rdf:type ontology:Q987767 } } GROUP BY ?x } . FILTER ( ?n = ?y ) }
action argmax
action union
action find_tuple_counts
relation depicts
type flag or coat of arms
type container
action find_tuple_counts
relation depicts
type flag or coat of arms
type ingredient
[{'concept': 'flag or coat of arms'}, 'depicts', [{'concept': 'container'}, {'concept': 'ingredient'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?c WHERE { { ?c rdf:type ontology:flag_or_coat_of_arms . ?w rdf:type ontology:container . ?c property:depicts ?w } UNION { ?c property:depicts ?w . ?c rdf:type ontology:flag_or_coat_of_arms . ?w rdf:type ontology:ingredient } } GROUP BY ?c } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) ?x WHERE { { ?x property:depicts ?h . ?h rdf:type ontology:ingredient . ?x rdf:type ontology:flag_or_coat_of_arms } UNION { ?x property:depicts ?h . ?x rdf:type ontology:flag_or_coat_of_arms . ?h rdf:type ontology:container } } GROUP BY ?x } . FILTER ( ?n = ?y ) }
[]
container ingredient flag or coat of arms
Q484823 Q21069060
SYSTEM
Emblem of Afghanistan, coat of arms of Grathem
Q484823 Q21069060
(c(Q17335294),P180,c(Q987767)|c(Q10675206))
action argmax
action union
action find_tuple_counts
relation P180
type Q17335294
type Q987767
action find_tuple_counts
relation P180
type Q17335294
type Q10675206
[ANSWERS] express max number of containers and ingredients
[{'concept': 'Q17335294'}, 'P180', [{'concept': 'Q987767'}, {'concept': 'Q10675206'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?c WHERE { { ?c rdf:type ontology:Q17335294 . ?w rdf:type ontology:Q987767 . ?c property:P180 ?w } UNION { ?c property:P180 ?w . ?c rdf:type ontology:Q17335294 . ?w rdf:type ontology:Q10675206 } } GROUP BY ?c } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) ?x WHERE { { ?x property:P180 ?h . ?h rdf:type ontology:Q10675206 . ?x rdf:type ontology:Q17335294 } UNION { ?x property:P180 ?h . ?x rdf:type ontology:Q17335294 . ?h rdf:type ontology:Q987767 } } GROUP BY ?x } . FILTER ( ?n = ?y ) }
Emblem of Afghanistan coat of arms of Grathem
Emblem of Afghanistan and coat of arms of Grathem express max number of containers and ingredients
Emblem of Afghanistan coat of arms of Grathem
action argmax
action union
action find_tuple_counts
relation depicts
type flag or coat of arms
type container
action find_tuple_counts
relation depicts
type flag or coat of arms
type ingredient
[{'concept': 'flag or coat of arms'}, 'depicts', [{'concept': 'container'}, {'concept': 'ingredient'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?y ) { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?c WHERE { { ?c rdf:type ontology:flag_or_coat_of_arms . ?w rdf:type ontology:container . ?c property:depicts ?w } UNION { ?c property:depicts ?w . ?c rdf:type ontology:flag_or_coat_of_arms . ?w rdf:type ontology:ingredient } } GROUP BY ?c } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) ?x WHERE { { ?x property:depicts ?h . ?h rdf:type ontology:ingredient . ?x rdf:type ontology:flag_or_coat_of_arms } UNION { ?x property:depicts ?h . ?x rdf:type ontology:flag_or_coat_of_arms . ?h rdf:type ontology:container } } GROUP BY ?x } . FILTER ( ?n = ?y ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q21069060
P793
Q1190554
USER
What event is that coat of arms associated with ?
(Q21069060,P793,c(Q1190554))
action filter_type
action find
entity Q21069060
relation P793
type Q1190554
['Q21069060', 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ?u WHERE { resource:Q21069060 property:P793 ?u . ?u rdf:type ontology:Q1190554 }
coat of arms of Grathem
action filter_type
action find
entity coat of arms of Grathem
relation significant event
type event
['coat of arms of Grathem', 'significant event', {'concept': 'event'}]
SELECT DISTINCT ?u WHERE { resource:coat_of_arms_of_Grathem property:significant_event ?u . ?u rdf:type ontology:event }
[]
event
Clarification for simple ques.
Q484823
SYSTEM
Did you mean Emblem of Afghanistan ?
Q484823 Q21069060
(Q484823,P793,c(Q1190554)) (Q21069060,P793,c(Q1190554))
[ANSWER]
['Q484823', 'P793', {'concept': 'Q1190554'}] ['Q21069060', 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ?u WHERE { resource:Q21069060 property:P793 ?u . ?u rdf:type ontology:Q1190554 }
Emblem of Afghanistan coat of arms of Grathem
Did you mean Emblem of Afghanistan ?
Emblem of Afghanistan
['Emblem of Afghanistan', 'significant event', {'concept': 'event'}] ['coat of arms of Grathem', 'significant event', {'concept': 'event'}]
SELECT DISTINCT ?u WHERE { resource:coat_of_arms_of_Grathem property:significant_event ?u . ?u rdf:type ontology:event }
[]
Simple Question (Coreferenced)
USER
No, I meant coat of arms of Grathem. Could you tell me the answer for that?
(Q21069060,P793,c(Q1190554))
Q21069060
['Q21069060', 'P793', {'concept': 'Q1190554'}]
['coat of arms of Grathem', 'significant event', {'concept': 'event'}]
[]
Q21014657
SYSTEM
assignment
Q21014657
(Q21069060,P793,c(Q1190554))
action filter_type
action find
entity Q21069060
relation P793
type Q1190554
That coat of arms is associated with [ANSWER]
['Q21069060', 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ?u WHERE { resource:Q21069060 property:P793 ?u . ?u rdf:type ontology:Q1190554 }
assignment
That coat of arms is associated with assignment
assignment
action filter_type
action find
entity coat of arms of Grathem
relation significant event
type event
['coat of arms of Grathem', 'significant event', {'concept': 'event'}]
SELECT DISTINCT ?u WHERE { resource:coat_of_arms_of_Grathem property:significant_event ?u . ?u rdf:type ontology:event }
[]