Simple Question (Direct)
Simple Question
Q308176
P19
Q56061
USER
Where was Abdihakem Abdirahman born ?
(Q308176,P19,c(Q56061))
action filter_type
action find
entity Q308176
relation P19
type Q56061
['Q308176', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q308176 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Abdihakem Abdirahman
action filter_type
action find
entity Abdihakem Abdirahman
relation place of birth
type administrative territorial entity
['Abdihakem Abdirahman', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Abdihakem_Abdirahman property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2449
SYSTEM
Mogadishu
Q2449
(Q308176,P19,c(Q56061))
action filter_type
action find
entity Q308176
relation P19
type Q56061
Abdihakem Abdirahman was born in [ANSWER]
['Q308176', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q308176 property:P19 ?a . ?a rdf:type ontology:Q56061 }
Mogadishu
Abdihakem Abdirahman was born in Mogadishu
Mogadishu
action filter_type
action find
entity Abdihakem Abdirahman
relation place of birth
type administrative territorial entity
['Abdihakem Abdirahman', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Abdihakem_Abdirahman property:place_of_birth ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2449
P1376
Q15617994
USER
What has that administrative territory as its capital ?
(Q2449,P1376,c(Q15617994))
action filter_type
action find
entity Q2449
relation P1376
type Q15617994
['Q2449', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q2449 property:P1376 ?h . ?h rdf:type ontology:Q15617994 }
Mogadishu
action filter_type
action find
entity Mogadishu
relation capital of
type designation for an administrative territorial entity
['Mogadishu', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Mogadishu property:capital_of ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1045
SYSTEM
Somalia
Q1045
(Q2449,P1376,c(Q15617994))
action filter_type
action find
entity Q2449
relation P1376
type Q15617994
[ANSWER] has that administrative territory as its capital
['Q2449', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q2449 property:P1376 ?h . ?h rdf:type ontology:Q15617994 }
Somalia
Somalia has that administrative territory as its capital
Somalia
action filter_type
action find
entity Mogadishu
relation capital of
type designation for an administrative territorial entity
['Mogadishu', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Mogadishu property:capital_of ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1045 Q639118
P463
Q484652
USER
Was Somalia a member of International Tribunal for the Law of the Sea ?
(Q1045,P463,Q639118)
action is_in
entity Q639118
action find
entity Q1045
relation P463
['Q1045', 'P463', 'Q639118']
ASK WHERE { resource:Q1045 property:P463 resource:Q639118 }
Somalia International Tribunal for the Law of the Sea
action is_in
entity International Tribunal for the Law of the Sea
action find
entity Somalia
relation member of
['Somalia', 'member of', 'International Tribunal for the Law of the Sea']
ASK WHERE { resource:Somalia property:member_of resource:International_Tribunal_for_the_Law_of_the_Sea }
[]
international organization
SYSTEM
NO
(Q1045,P463,Q639118)
action is_in
entity Q639118
action find
entity Q1045
relation P463
[ANSWER]
['Q1045', 'P463', 'Q639118']
ASK WHERE { resource:Q1045 property:P463 resource:Q639118 }
No
action is_in
entity International Tribunal for the Law of the Sea
action find
entity Somalia
relation member of
['Somalia', 'member of', 'International Tribunal for the Law of the Sea']
ASK WHERE { resource:Somalia property:member_of resource:International_Tribunal_for_the_Law_of_the_Sea }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2449 Q35493
P190
Q56061
USER
Is Almaty twin town of Mogadishu ?
(Q2449,P190,Q35493)
action is_in
entity Q35493
action find
entity Q2449
relation P190
['Q2449', 'P190', 'Q35493']
ASK WHERE { resource:Q2449 property:P190 resource:Q35493 }
Mogadishu Almaty
action is_in
entity Almaty
action find
entity Mogadishu
relation sister city
['Mogadishu', 'sister city', 'Almaty']
ASK WHERE { resource:Mogadishu property:sister_city resource:Almaty }
[]
administrative territorial entity
SYSTEM
YES
(Q2449,P190,Q35493)
action is_in
entity Q35493
action find
entity Q2449
relation P190
[ANSWER]
['Q2449', 'P190', 'Q35493']
ASK WHERE { resource:Q2449 property:P190 resource:Q35493 }
Yes
action is_in
entity Almaty
action find
entity Mogadishu
relation sister city
['Mogadishu', 'sister city', 'Almaty']
ASK WHERE { resource:Mogadishu property:sister_city resource:Almaty }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1045 Q114 Q977
P47
Q15617994
USER
Does Kenya and Djibouti share a border with Somalia ?
(Q1045,P47,Q114) (Q1045,P47,Q977)
action is_in
entity Q1045
action intersection
action find_reverse
entity Q114
relation P47
action find_reverse
entity Q977
relation P47
['Q1045', 'P47', 'Q114'] ['Q1045', 'P47', 'Q977']
ASK WHERE { resource:Q1045 property:P47 resource:Q977 . resource:Q1045 property:P47 resource:Q114 }
Somalia Kenya Djibouti
action is_in
entity Somalia
action intersection
action find_reverse
entity Kenya
relation shares border with
action find_reverse
entity Djibouti
relation shares border with
['Somalia', 'shares border with', 'Kenya'] ['Somalia', 'shares border with', 'Djibouti']
ASK WHERE { resource:Somalia property:shares_border_with resource:Djibouti . resource:Somalia property:shares_border_with resource:Kenya }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1045,P47,Q114) (Q1045,P47,Q977)
action is_in
entity Q1045
action intersection
action find_reverse
entity Q114
relation P47
action find_reverse
entity Q977
relation P47
[ANSWER]
['Q1045', 'P47', 'Q114'] ['Q1045', 'P47', 'Q977']
ASK WHERE { resource:Q1045 property:P47 resource:Q977 . resource:Q1045 property:P47 resource:Q114 }
Yes
action is_in
entity Somalia
action intersection
action find_reverse
entity Kenya
relation shares border with
action find_reverse
entity Djibouti
relation shares border with
['Somalia', 'shares border with', 'Kenya'] ['Somalia', 'shares border with', 'Djibouti']
ASK WHERE { resource:Somalia property:shares_border_with resource:Djibouti . resource:Somalia property:shares_border_with resource:Kenya }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q781
P530
Q15617994 Q1048835
USER
Which political territories have tactful political relations with greater number of administrative territories than Antigua and Barbuda ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?k ) WHERE { ?h property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1048835 } GROUP BY ?h } . FILTER ( ?k > ?f ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Q781 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } }
Antigua and Barbuda
action greater
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 Antigua and Barbuda
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?k ) WHERE { ?h property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:political_territorial_entity } GROUP BY ?h } . FILTER ( ?k > ?f ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q781
relation P530
type Q15617994
[ANSWERS] have tactful political relations with greater number of administrative territories than Antigua and Barbuda
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?k ) WHERE { ?h property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q1048835 } GROUP BY ?h } . FILTER ( ?k > ?f ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Q781 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } }
Austria Germany Australia Denmark Canada New Zealand Jamaica
Germany, Australia and Denmark have tactful political relations with greater number of administrative territories than Antigua and Barbuda
Germany Australia Denmark
action greater
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 Antigua and Barbuda
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?k ) WHERE { ?h property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:political_territorial_entity } GROUP BY ?h } . FILTER ( ?k > ?f ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?f ) WHERE { resource:Antigua_and_Barbuda property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with max number of political territories ?
(c(Q1048835),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?u ) { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?s ) WHERE { ?v property:P530 ?i . ?v rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } GROUP BY ?v } } . { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?b ) WHERE { ?h property:P530 ?d . ?d rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?b = ?u ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?u ) { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?s ) WHERE { ?v property:diplomatic_relation ?i . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?v } } . { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?b ) WHERE { ?h property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?b = ?u ) }
[]
designation for an administrative territorial entity political territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q1048835),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWER] have a diplomatic relationship with max number of political territories
[{'concept': 'Q1048835'}, 'P530', 'Q953']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?u ) { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?s ) WHERE { ?v property:P530 ?i . ?v rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 } GROUP BY ?v } } . { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?b ) WHERE { ?h property:P530 ?d . ?d rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?b = ?u ) }
Italy
Italy have a diplomatic relationship with max number of political territories
Italy
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?u ) { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?s ) WHERE { ?v property:diplomatic_relation ?i . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity } GROUP BY ?v } } . { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?b ) WHERE { ?h property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?b = ?u ) }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q38 Q5380078
P463
Q43229
USER
Was Italy a member of Ent Federal Credit Union ?
(Q38,P463,Q5380078)
action is_in
entity Q5380078
action find
entity Q38
relation P463
['Q38', 'P463', 'Q5380078']
ASK WHERE { resource:Q38 property:P463 resource:Q5380078 }
Italy Ent Federal Credit Union
action is_in
entity Ent Federal Credit Union
action find
entity Italy
relation member of
['Italy', 'member of', 'Ent Federal Credit Union']
ASK WHERE { resource:Italy property:member_of resource:Ent_Federal_Credit_Union }
[]
organization
SYSTEM
NO
(Q38,P463,Q5380078)
action is_in
entity Q5380078
action find
entity Q38
relation P463
[ANSWER]
['Q38', 'P463', 'Q5380078']
ASK WHERE { resource:Q38 property:P463 resource:Q5380078 }
No
action is_in
entity Ent Federal Credit Union
action find
entity Italy
relation member of
['Italy', 'member of', 'Ent Federal Credit Union']
ASK WHERE { resource:Italy property:member_of resource:Ent_Federal_Credit_Union }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q408 Q1020
P530
Q15617994
USER
Does Malawi have diplomatic relations with Australia ?
(Q408,P530,Q1020)
action is_in
entity Q1020
action find
entity Q408
relation P530
['Q408', 'P530', 'Q1020']
ASK WHERE { resource:Q408 property:P530 resource:Q1020 }
Australia Malawi
action is_in
entity Malawi
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Malawi']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Malawi }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q408,P530,Q1020)
action is_in
entity Q1020
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q1020']
ASK WHERE { resource:Q408 property:P530 resource:Q1020 }
Yes
action is_in
entity Malawi
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Malawi']
ASK WHERE { resource:Australia property:diplomatic_relation resource:Malawi }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q35 Q155
P530
Q15617994
USER
Does Brazil hold diplomatic relationship with Denmark ?
(Q35,P530,Q155)
action is_in
entity Q155
action find
entity Q35
relation P530
['Q35', 'P530', 'Q155']
ASK WHERE { resource:Q35 property:P530 resource:Q155 }
Denmark Brazil
action is_in
entity Brazil
action find
entity Denmark
relation diplomatic relation
['Denmark', 'diplomatic relation', 'Brazil']
ASK WHERE { resource:Denmark property:diplomatic_relation resource:Brazil }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q35,P530,Q155)
action is_in
entity Q155
action find
entity Q35
relation P530
[ANSWER]
['Q35', 'P530', 'Q155']
ASK WHERE { resource:Q35 property:P530 resource:Q155 }
Yes
action is_in
entity Brazil
action find
entity Denmark
relation diplomatic relation
['Denmark', 'diplomatic relation', 'Brazil']
ASK WHERE { resource:Denmark property:diplomatic_relation resource:Brazil }
[]