Simple Question (Direct)
Simple Question
Q118385
P166
Q618779
USER
What was received by Henry Ries ?
(Q118385,P166,c(Q618779))
action filter_type
action find
entity Q118385
relation P166
type Q618779
['Q118385', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?z WHERE { resource:Q118385 property:P166 ?z . ?z rdf:type ontology:Q618779 }
Henry Ries
action filter_type
action find
entity Henry Ries
relation award received
type award
['Henry Ries', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?z WHERE { resource:Henry_Ries property:award_received ?z . ?z rdf:type ontology:award }
[]
award
Q10905334
SYSTEM
Officer's Cross of the Order of Merit of the Federal Republic of Germany
Q10905334
(Q118385,P166,c(Q618779))
action filter_type
action find
entity Q118385
relation P166
type Q618779
Germany [ANSWER] was received by Henry Ries
['Q118385', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?z WHERE { resource:Q118385 property:P166 ?z . ?z rdf:type ontology:Q618779 }
Officer's Cross of the Order of Merit of the Federal Republic of Germany
Germany Officer's Cross of the Order of Merit of the Federal Republic of Germany was received by Henry Ries
Officer's Cross of the Order of Merit of the Federal Republic of Germany
action filter_type
action find
entity Henry Ries
relation award received
type award
['Henry Ries', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?z WHERE { resource:Henry_Ries property:award_received ?z . ?z rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q118385
P607
Q198
USER
Which war did Henry Ries take part in ?
(Q118385,P607,c(Q198))
action filter_type
action find
entity Q118385
relation P607
type Q198
['Q118385', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?o WHERE { resource:Q118385 property:P607 ?o . ?o rdf:type ontology:Q198 }
Henry Ries
action filter_type
action find
entity Henry Ries
relation conflict
type war
['Henry Ries', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?o WHERE { resource:Henry_Ries property:conflict ?o . ?o rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q118385,P607,c(Q198))
action filter_type
action find
entity Q118385
relation P607
type Q198
Henry Ries took part in [ANSWER]
['Q118385', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?o WHERE { resource:Q118385 property:P607 ?o . ?o rdf:type ontology:Q198 }
World War II
Henry Ries took part in World War II
World War II
action filter_type
action find
entity Henry Ries
relation conflict
type war
['Henry Ries', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?o WHERE { resource:Henry_Ries property:conflict ?o . ?o rdf:type ontology:war }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q362 Q927192
P607
Q502895
USER
Did that war participate in Broncia Koller-Pinell ?
(Q927192,P607,Q362)
action is_in
entity Q927192
action find
entity Q362
relation P607
['Q927192', 'P607', 'Q362']
ASK WHERE { resource:Q362 property:P607 resource:Q927192 }
World War II Broncia Koller-Pinell
action is_in
entity Broncia Koller-Pinell
action find
entity World War II
relation conflict
['Broncia Koller-Pinell', 'conflict', 'World War II']
ASK WHERE { resource:World_War_II property:conflict resource:Broncia_Koller-Pinell }
[]
common name
SYSTEM
NO
(Q927192,P607,Q362)
action is_in
entity Q927192
action find
entity Q362
relation P607
[ANSWER]
['Q927192', 'P607', 'Q362']
ASK WHERE { resource:Q362 property:P607 resource:Q927192 }
No
action is_in
entity Broncia Koller-Pinell
action find
entity World War II
relation conflict
['Broncia Koller-Pinell', 'conflict', 'World War II']
ASK WHERE { resource:World_War_II property:conflict resource:Broncia_Koller-Pinell }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P607
Q198 Q502895 Q2235308
USER
Which wars did min number of people and ship types take part in ?
(c(Q502895)|c(Q2235308),P607,c(Q198))
action argmin
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
[[{'concept': 'Q502895'}, {'concept': 'Q2235308'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?k ) { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?u ) WHERE { { ?i property:P607 ?h . ?h rdf:type ontology:Q198 . ?i rdf:type ontology:Q502895 } UNION { ?i property:P607 ?h . ?h rdf:type ontology:Q198 . ?i rdf:type ontology:Q2235308 } } GROUP BY ?h } } . FILTER ( ?v = ?k ) . { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?v ) WHERE { ?a rdf:type ?m . VALUES ( ?m ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } } GROUP BY ?r } }
action argmin
action union
action find_reverse_tuple_counts
relation conflict
type war
type common name
action find_reverse_tuple_counts
relation conflict
type war
type ship type
[[{'concept': 'common name'}, {'concept': 'ship type'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?k ) { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?u ) WHERE { { ?i property:conflict ?h . ?h rdf:type ontology:war . ?i rdf:type ontology:common_name } UNION { ?i property:conflict ?h . ?h rdf:type ontology:war . ?i rdf:type ontology:ship_type } } GROUP BY ?h } } . FILTER ( ?v = ?k ) . { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?v ) WHERE { ?a rdf:type ?m . VALUES ( ?m ) { ( ontology:common_name ) ( ontology:ship_type ) } } GROUP BY ?r } }
[]
war common name ship type
Q17984356 Q15860072 Q18121212
SYSTEM
Iraqi Civil War, 2014–16 Russian military intervention in Ukraine, American-led intervention in Syria
Q18121212 Q15860072 Q17984356 Q17183365 Q18159629
(c(Q502895)|c(Q2235308),P607,c(Q198))
action argmin
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
Min number of people and ship types took in part the [ANSWERS]
[[{'concept': 'Q502895'}, {'concept': 'Q2235308'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?k ) { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?u ) WHERE { { ?i property:P607 ?h . ?h rdf:type ontology:Q198 . ?i rdf:type ontology:Q502895 } UNION { ?i property:P607 ?h . ?h rdf:type ontology:Q198 . ?i rdf:type ontology:Q2235308 } } GROUP BY ?h } } . FILTER ( ?v = ?k ) . { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?v ) WHERE { ?a rdf:type ?m . VALUES ( ?m ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } } GROUP BY ?r } }
American-led intervention in Syria 2014–16 Russian military intervention in Ukraine Iraqi Civil War Sectarian violence in Iraq (2006–07) American-led intervention in Iraq
Min number of people and ship types took in part the Iraqi Civil War, 2014–16 Russian military intervention in Ukraine and American-led intervention in Syria
Iraqi Civil War 2014–16 Russian military intervention in Ukraine American-led intervention in Syria
action argmin
action union
action find_reverse_tuple_counts
relation conflict
type war
type common name
action find_reverse_tuple_counts
relation conflict
type war
type ship type
[[{'concept': 'common name'}, {'concept': 'ship type'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?k ) { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?u ) WHERE { { ?i property:conflict ?h . ?h rdf:type ontology:war . ?i rdf:type ontology:common_name } UNION { ?i property:conflict ?h . ?h rdf:type ontology:war . ?i rdf:type ontology:ship_type } } GROUP BY ?h } } . FILTER ( ?v = ?k ) . { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?v ) WHERE { ?a rdf:type ?m . VALUES ( ?m ) { ( ontology:common_name ) ( ontology:ship_type ) } } GROUP BY ?r } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q17984356
P276
Q15617994
USER
Which administrative territory is the location of that war ?
(Q17984356,P276,c(Q15617994))
action filter_type
action find
entity Q17984356
relation P276
type Q15617994
['Q17984356', 'P276', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q17984356 property:P276 ?h }
Iraqi Civil War
action filter_type
action find
entity Iraqi Civil War
relation location
type designation for an administrative territorial entity
['Iraqi Civil War', 'location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Iraqi_Civil_War property:location ?h }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q18121212
SYSTEM
Did you mean American-led intervention in Syria ?
Q17984356 Q15860072 Q18121212
(Q17984356,P276,c(Q15617994)) (Q15860072,P276,c(Q15617994)) (Q18121212,P276,c(Q15617994))
[ANSWER]
['Q17984356', 'P276', {'concept': 'Q15617994'}] ['Q15860072', 'P276', {'concept': 'Q15617994'}] ['Q18121212', 'P276', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q17984356 property:P276 ?h }
Iraqi Civil War 2014–16 Russian military intervention in Ukraine American-led intervention in Syria
Did you mean American-led intervention in Syria ?
American-led intervention in Syria
['Iraqi Civil War', 'location', {'concept': 'designation for an administrative territorial entity'}] ['2014–16 Russian military intervention in Ukraine', 'location', {'concept': 'designation for an administrative territorial entity'}] ['American-led intervention in Syria', 'location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Iraqi_Civil_War property:location ?h }
[]
Simple Question (Coreferenced)
USER
No, I meant Iraqi Civil War. Could you tell me the answer for that?
(Q17984356,P276,c(Q15617994))
Q17984356
['Q17984356', 'P276', {'concept': 'Q15617994'}]
['Iraqi Civil War', 'location', {'concept': 'designation for an administrative territorial entity'}]
[]
Q796
SYSTEM
Iraq
Q796
(Q17984356,P276,c(Q15617994))
action filter_type
action find
entity Q17984356
relation P276
type Q15617994
[ANSWER] is the location of that war
['Q17984356', 'P276', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q17984356 property:P276 ?h }
Iraq
Iraq is the location of that war
Iraq
action filter_type
action find
entity Iraqi Civil War
relation location
type designation for an administrative territorial entity
['Iraqi Civil War', 'location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Iraqi_Civil_War property:location ?h }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q796 Q55886 Q155
P530
Q15617994
USER
Does that administrative territory have ambassadorial relations with Casalduni and Brazil ?
(Q796,P530,Q55886) (Q796,P530,Q155)
action is_in
entity Q796
action intersection
action find_reverse
entity Q55886
relation P530
action find_reverse
entity Q155
relation P530
['Q796', 'P530', 'Q55886'] ['Q796', 'P530', 'Q155']
ASK WHERE { resource:Q796 property:P530 resource:Q55886 . resource:Q796 property:P530 resource:Q155 }
Iraq Casalduni Brazil
action is_in
entity Iraq
action intersection
action find_reverse
entity Casalduni
relation diplomatic relation
action find_reverse
entity Brazil
relation diplomatic relation
['Iraq', 'diplomatic relation', 'Casalduni'] ['Iraq', 'diplomatic relation', 'Brazil']
ASK WHERE { resource:Iraq property:diplomatic_relation resource:Casalduni . resource:Iraq property:diplomatic_relation resource:Brazil }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q796,P530,Q55886) (Q796,P530,Q155)
action is_in
entity Q796
action intersection
action find_reverse
entity Q55886
relation P530
action find_reverse
entity Q155
relation P530
[ANSWER]
['Q796', 'P530', 'Q55886'] ['Q796', 'P530', 'Q155']
ASK WHERE { resource:Q796 property:P530 resource:Q55886 . resource:Q796 property:P530 resource:Q155 }
NO and YES respectively
action is_in
entity Iraq
action intersection
action find_reverse
entity Casalduni
relation diplomatic relation
action find_reverse
entity Brazil
relation diplomatic relation
['Iraq', 'diplomatic relation', 'Casalduni'] ['Iraq', 'diplomatic relation', 'Brazil']
ASK WHERE { resource:Iraq property:diplomatic_relation resource:Casalduni . resource:Iraq property:diplomatic_relation resource:Brazil }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q40
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with around the same number of administrative territories as Austria ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Q40 property:P530 ?b . ?b rdf:type ontology:Q1048835 } } . FILTER ( ?z = ?f ) . { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?z ) WHERE { ?v property:P530 ?g . ?v rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?v } }
Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Austria property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } } . FILTER ( ?z = ?f ) . { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?z ) WHERE { ?v property:diplomatic_relation ?g . ?v rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[ANSWERS] have tactful political relations with around the same number of administrative territories as Austria
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Q40 property:P530 ?b . ?b rdf:type ontology:Q1048835 } } . FILTER ( ?z = ?f ) . { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?z ) WHERE { ?v property:P530 ?g . ?v rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?v } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria have tactful political relations with around the same number of administrative territories as Austria
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { resource:Austria property:diplomatic_relation ?b . ?b rdf:type ontology:political_territorial_entity } } . FILTER ( ?z = ?f ) . { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?z ) WHERE { ?v property:diplomatic_relation ?g . ?v rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q691
P530
Q15617994 Q1048835
USER
And how about Papua New Guinea?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?c = ?z ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { resource:Q691 property:P530 ?e . ?e rdf:type ontology:Q1048835 } } . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?c ) WHERE { ?s property:P530 ?d . ?s rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?s } }
Papua New Guinea
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?c = ?z ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity } } . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?c ) WHERE { ?s property:diplomatic_relation ?d . ?s rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?c = ?z ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { resource:Q691 property:P530 ?e . ?e rdf:type ontology:Q1048835 } } . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?c ) WHERE { ?s property:P530 ?d . ?s rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?s } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?c = ?z ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity } } . { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?c ) WHERE { ?s property:diplomatic_relation ?d . ?s rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q408
P530
Q1048835
USER
Do Australia have diplomatic relations with those ones ?
(Q408,P530,Q35) (Q408,P530,Q16) (Q408,P530,Q40)
action is_in
entity prev_answer
action find
entity Q408
relation P530
['Q408', 'P530', 'Q35'] ['Q408', 'P530', 'Q16'] ['Q408', 'P530', 'Q40']
ASK WHERE { resource:Q408 property:P530 ?o . VALUES ( ?o ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Australia
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Denmark'] ['Australia', 'diplomatic relation', 'Canada'] ['Australia', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Australia property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q35) (Q408,P530,Q16) (Q408,P530,Q40)
action is_in
entity prev_answer
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q35'] ['Q408', 'P530', 'Q16'] ['Q408', 'P530', 'Q40']
ASK WHERE { resource:Q408 property:P530 ?o . VALUES ( ?o ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Yes
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Denmark'] ['Australia', 'diplomatic relation', 'Canada'] ['Australia', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Australia property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q796
P530
Q1048835 Q15617994
USER
How many political territories or administrative territories have a diplomatic relationship with Iraq ?
(Q796,P530,c(Q1048835)) (Q796,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q796
relation P530
type Q1048835
action filter_type
action find
entity Q796
relation P530
type Q15617994
['Q796', 'P530', {'concept': 'Q1048835'}] ['Q796', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { resource:Q796 property:P530 ?c . ?c rdf:type ontology:Q1048835 } UNION { resource:Q796 property:P530 ?c . ?c rdf:type ontology:Q15617994 } }
Iraq
action count
action union
action filter_type
action find
entity Iraq
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Iraq
relation diplomatic relation
type designation for an administrative territorial entity
['Iraq', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Iraq', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { resource:Iraq property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } UNION { resource:Iraq property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
6
Q805 Q155 Q183 Q408 Q30 Q38
(Q796,P530,c(Q1048835)) (Q796,P530,c(Q15617994))
action count
action union
action filter_type
action find
entity Q796
relation P530
type Q1048835
action filter_type
action find
entity Q796
relation P530
type Q15617994
[ANSWER]
['Q796', 'P530', {'concept': 'Q1048835'}] ['Q796', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { resource:Q796 property:P530 ?c . ?c rdf:type ontology:Q1048835 } UNION { resource:Q796 property:P530 ?c . ?c rdf:type ontology:Q15617994 } }
Yemen Brazil Germany Australia United States of America Italy
6
action count
action union
action filter_type
action find
entity Iraq
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Iraq
relation diplomatic relation
type designation for an administrative territorial entity
['Iraq', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Iraq', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { { resource:Iraq property:diplomatic_relation ?c . ?c rdf:type ontology:political_territorial_entity } UNION { resource:Iraq property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q18121212 Q361
P361
Q198
USER
Is American-led intervention in Syria a part of World War I ?
(Q18121212,P361,Q361)
action is_in
entity Q361
action find
entity Q18121212
relation P361
['Q18121212', 'P361', 'Q361']
ASK WHERE { resource:Q18121212 property:P361 resource:Q361 }
American-led intervention in Syria World War I
action is_in
entity World War I
action find
entity American-led intervention in Syria
relation part of
['American-led intervention in Syria', 'part of', 'World War I']
ASK WHERE { resource:American-led_intervention_in_Syria property:part_of resource:World_War_I }
[]
war
SYSTEM
NO
(Q18121212,P361,Q361)
action is_in
entity Q361
action find
entity Q18121212
relation P361
[ANSWER]
['Q18121212', 'P361', 'Q361']
ASK WHERE { resource:Q18121212 property:P361 resource:Q361 }
No
action is_in
entity World War I
action find
entity American-led intervention in Syria
relation part of
['American-led intervention in Syria', 'part of', 'World War I']
ASK WHERE { resource:American-led_intervention_in_Syria property:part_of resource:World_War_I }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relations with atmost 4 political territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 4
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?t } . FILTER ( ?o <= 4 ) }
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 4
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?t } . FILTER ( ?o <= 4 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
164
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
value 4
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?t } . FILTER ( ?o <= 4 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
164
action count
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
value 4
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?t } . FILTER ( ?o <= 4 ) }
[]