Simple Question (Direct)
Simple Question
Q535152
P19
Q56061
USER
Which administrative territory is the birthplace of Jones Mwewa ?
(Q535152,P19,c(Q56061))
action filter_type
action find
entity Q535152
relation P19
type Q56061
['Q535152', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q535152 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Jones Mwewa
action filter_type
action find
entity Jones Mwewa
relation place of birth
type administrative territorial entity
['Jones Mwewa', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Jones_Mwewa property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q219671
SYSTEM
Ndola
Q219671
(Q535152,P19,c(Q56061))
action filter_type
action find
entity Q535152
relation P19
type Q56061
N [ANSWER] is the birthplace of Jones Mwewa
['Q535152', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q535152 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Ndola
N Ndola is the birthplace of Jones Mwewa
Ndola
action filter_type
action find
entity Jones Mwewa
relation place of birth
type administrative territorial entity
['Jones Mwewa', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Jones_Mwewa property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q535152
P21
Q290
USER
Which sex does Jones Mwewa have ?
(Q535152,P21,c(Q290))
action filter_type
action find
entity Q535152
relation P21
type Q290
['Q535152', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q535152 property:P21 ?w . ?w rdf:type ontology:Q290 }
Jones Mwewa
action filter_type
action find
entity Jones Mwewa
relation gender
type sex
['Jones Mwewa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Jones_Mwewa property:gender ?w . ?w rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q535152,P21,c(Q290))
action filter_type
action find
entity Q535152
relation P21
type Q290
Jones Mwewa has a [ANSWER]
['Q535152', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?w WHERE { resource:Q535152 property:P21 ?w . ?w rdf:type ontology:Q290 }
male
Jones Mwewa has a male
male
action filter_type
action find
entity Jones Mwewa
relation gender
type sex
['Jones Mwewa', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?w WHERE { resource:Jones_Mwewa property:gender ?w . ?w rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P21
Q290 Q502895
USER
How many sexes do greater number of people possess than that sex ?
(c(Q502895),P21,c(Q290))
action count
action greater
action find_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?b ) WHERE { ?e property:P21 ?j . ?e rdf:type ontology:Q290 . ?j rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?b > ?q ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { resource:Q6581097 property:P21 ?f . ?f rdf:type ontology:Q290 } } }
action count
action greater
action find_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?b ) WHERE { ?e property:gender ?j . ?e rdf:type ontology:sex . ?j rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?b > ?q ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { resource:male property:gender ?f . ?f rdf:type ontology:sex } } }
[]
sex common name
SYSTEM
0
(c(Q502895),P21,c(Q290))
action count
action greater
action find_tuple_counts
relation P21
type Q290
type Q502895
action count
action filter_type
action find
entity Q6581097
relation P21
type Q290
[ANSWER]
[{'concept': 'Q502895'}, 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?b ) WHERE { ?e property:P21 ?j . ?e rdf:type ontology:Q290 . ?j rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?b > ?q ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { resource:Q6581097 property:P21 ?f . ?f rdf:type ontology:Q290 } } }
0
action count
action greater
action find_tuple_counts
relation gender
type sex
type common name
action count
action filter_type
action find
entity male
relation gender
type sex
[{'concept': 'common name'}, 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?b ) WHERE { ?e property:gender ?j . ?e rdf:type ontology:sex . ?j rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?b > ?q ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?q ) WHERE { resource:male property:gender ?f . ?f rdf:type ontology:sex } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q22003479 Q535152
P27
Q15617994
USER
Which administrative territories do Jones Mwewa or Otto Brolo belong to ?
OR((Q535152,P27,c(Q15617994)), (Q22003479,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q535152
relation P27
action find
entity Q22003479
relation P27
type Q15617994
{'OR': [['Q535152', 'P27', {'concept': 'Q15617994'}], ['Q22003479', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q535152 property:P27 ?v } UNION { resource:Q22003479 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Otto Brolo Jones Mwewa
action filter_type
action union
action find
entity Jones Mwewa
relation country of citizenship
action find
entity Otto Brolo
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jones Mwewa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Otto Brolo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Jones_Mwewa property:country_of_citizenship ?v } UNION { resource:Otto_Brolo property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q774 Q953
SYSTEM
Guatemala, Zambia
Q774 Q953
OR((Q535152,P27,c(Q15617994)), (Q22003479,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q535152
relation P27
action find
entity Q22003479
relation P27
type Q15617994
Jones Mwewa or Otto Brolo belong to [ANSWERS]
{'OR': [['Q535152', 'P27', {'concept': 'Q15617994'}], ['Q22003479', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q535152 property:P27 ?v } UNION { resource:Q22003479 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Guatemala Zambia
Jones Mwewa or Otto Brolo belong to Guatemala and Zambia
Guatemala Zambia
action filter_type
action union
action find
entity Jones Mwewa
relation country of citizenship
action find
entity Otto Brolo
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Jones Mwewa', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Otto Brolo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Jones_Mwewa property:country_of_citizenship ?v } UNION { resource:Otto_Brolo property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4447036
P530
Q1048835
USER
Do Sukha Solonytsia have diplomatic relations with those administrative territories ?
(Q4447036,P530,Q774) (Q4447036,P530,Q953)
action is_in
entity prev_answer
action find
entity Q4447036
relation P530
['Q4447036', 'P530', 'Q774'] ['Q4447036', 'P530', 'Q953']
ASK WHERE { resource:Q4447036 property:P530 ?d . VALUES ( ?d ) { ( resource:Q774 ) ( resource:Q953 ) } }
Sukha Solonytsia
action is_in
entity prev_answer
action find
entity Sukha Solonytsia
relation diplomatic relation
['Sukha Solonytsia', 'diplomatic relation', 'Guatemala'] ['Sukha Solonytsia', 'diplomatic relation', 'Zambia']
ASK WHERE { resource:Sukha_Solonytsia property:diplomatic_relation ?d . VALUES ( ?d ) { ( resource:Guatemala ) ( resource:Zambia ) } }
[]
political territorial entity
SYSTEM
NO
(Q4447036,P530,Q774) (Q4447036,P530,Q953)
action is_in
entity prev_answer
action find
entity Q4447036
relation P530
[ANSWER]
['Q4447036', 'P530', 'Q774'] ['Q4447036', 'P530', 'Q953']
ASK WHERE { resource:Q4447036 property:P530 ?d . VALUES ( ?d ) { ( resource:Q774 ) ( resource:Q953 ) } }
No
action is_in
entity prev_answer
action find
entity Sukha Solonytsia
relation diplomatic relation
['Sukha Solonytsia', 'diplomatic relation', 'Guatemala'] ['Sukha Solonytsia', 'diplomatic relation', 'Zambia']
ASK WHERE { resource:Sukha_Solonytsia property:diplomatic_relation ?d . VALUES ( ?d ) { ( resource:Guatemala ) ( resource:Zambia ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?c ) { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?r ) WHERE { ?w rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 . ?t property:P530 ?w } GROUP BY ?t } } . { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?x ) WHERE { ?f rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 . ?e property:P530 ?f } GROUP BY ?e } . FILTER ( ?x = ?c ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?c ) { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?r ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity . ?t property:diplomatic_relation ?w } GROUP BY ?t } } . { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?x ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity . ?e property:diplomatic_relation ?f } GROUP BY ?e } . FILTER ( ?x = ?c ) }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] are known to have diplomatic connections with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?c ) { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?r ) WHERE { ?w rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 . ?t property:P530 ?w } GROUP BY ?t } } . { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?x ) WHERE { ?f rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q1048835 . ?e property:P530 ?f } GROUP BY ?e } . FILTER ( ?x = ?c ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea are known to have diplomatic connections with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?c ) { SELECT DISTINCT ?t ( COUNT ( ?w ) AS ?r ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity . ?t property:diplomatic_relation ?w } GROUP BY ?t } } . { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?x ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:political_territorial_entity . ?e property:diplomatic_relation ?f } GROUP BY ?e } . FILTER ( ?x = ?c ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1000 Q769 Q691
P163
Q14660
USER
Which flags are associated with Gabon, Grenada and Papua New Guinea ?
(Q1000,P163,c(Q14660)) (Q769,P163,c(Q14660)) (Q691,P163,c(Q14660))
action union
action filter_type
action find
entity Q1000
relation P163
type Q14660
action filter_type
action find
entity Q769
relation P163
type Q14660
action filter_type
action find
entity Q691
relation P163
type Q14660
['Q1000', 'P163', {'concept': 'Q14660'}] ['Q769', 'P163', {'concept': 'Q14660'}] ['Q691', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?z WHERE { { resource:Q1000 property:P163 ?z . ?z rdf:type ontology:Q14660 } UNION { resource:Q769 property:P163 ?z . ?z rdf:type ontology:Q14660 } }
Gabon Grenada Papua New Guinea
action union
action filter_type
action find
entity Gabon
relation flag
type flag
action filter_type
action find
entity Grenada
relation flag
type flag
action filter_type
action find
entity Papua New Guinea
relation flag
type flag
['Gabon', 'flag', {'concept': 'flag'}] ['Grenada', 'flag', {'concept': 'flag'}] ['Papua New Guinea', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?z WHERE { { resource:Gabon property:flag ?z . ?z rdf:type ontology:flag } UNION { resource:Grenada property:flag ?z . ?z rdf:type ontology:flag } }
[]
flag
Q101769 Q103414 Q185271
SYSTEM
Flag of Gabon, Flag of Grenada, Flag of Papua New Guinea
Q101769 Q103414 Q185271
(Q1000,P163,c(Q14660)) (Q769,P163,c(Q14660)) (Q691,P163,c(Q14660))
action union
action filter_type
action find
entity Q1000
relation P163
type Q14660
action filter_type
action find
entity Q769
relation P163
type Q14660
action filter_type
action find
entity Q691
relation P163
type Q14660
And [ANSWERS] are associated with Gabon, Grenada and Papua New Guinea
['Q1000', 'P163', {'concept': 'Q14660'}] ['Q769', 'P163', {'concept': 'Q14660'}] ['Q691', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?z WHERE { { resource:Q1000 property:P163 ?z . ?z rdf:type ontology:Q14660 } UNION { resource:Q769 property:P163 ?z . ?z rdf:type ontology:Q14660 } }
Flag of Gabon Flag of Grenada Flag of Papua New Guinea
And Flag of Gabon, Flag of Grenada and Flag of Papua New Guinea are associated with Gabon, Grenada and Papua New Guinea
Flag of Gabon Flag of Grenada Flag of Papua New Guinea
action union
action filter_type
action find
entity Gabon
relation flag
type flag
action filter_type
action find
entity Grenada
relation flag
type flag
action filter_type
action find
entity Papua New Guinea
relation flag
type flag
['Gabon', 'flag', {'concept': 'flag'}] ['Grenada', 'flag', {'concept': 'flag'}] ['Papua New Guinea', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?z WHERE { { resource:Gabon property:flag ?z . ?z rdf:type ontology:flag } UNION { resource:Grenada property:flag ?z . ?z rdf:type ontology:flag } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1000
P36
Q56061
USER
Which administrative territory is the capital of Gabon ?
(Q1000,P36,c(Q56061))
action filter_type
action find
entity Q1000
relation P36
type Q56061
['Q1000', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1000 property:P36 ?w . ?w rdf:type ontology:Q56061 }
Gabon
action filter_type
action find
entity Gabon
relation capital
type administrative territorial entity
['Gabon', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Gabon property:capital ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3825
SYSTEM
Libreville
Q3825
(Q1000,P36,c(Q56061))
action filter_type
action find
entity Q1000
relation P36
type Q56061
[ANSWER] is the capital of Gabon
['Q1000', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q1000 property:P36 ?w . ?w rdf:type ontology:Q56061 }
Libreville
Libreville is the capital of Gabon
Libreville
action filter_type
action find
entity Gabon
relation capital
type administrative territorial entity
['Gabon', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Gabon property:capital ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1000
P6
Q502895
USER
Which person is Gabon the head of goverment of ?
(Q1000,P6,c(Q502895))
action filter_type
action find
entity Q1000
relation P6
type Q502895
['Q1000', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q1000 property:P6 ?p . ?p rdf:type ontology:Q502895 }
Gabon
action filter_type
action find
entity Gabon
relation head of government
type common name
['Gabon', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Gabon property:head_of_government ?p . ?p rdf:type ontology:common_name }
[]
common name
Q57856
SYSTEM
Raymond Ndong Sima
Q57856
(Q1000,P6,c(Q502895))
action filter_type
action find
entity Q1000
relation P6
type Q502895
[ANSWER] is Gabon the head of goverment of
['Q1000', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q1000 property:P6 ?p . ?p rdf:type ontology:Q502895 }
Raymond Ndong Sima
Raymond Ndong Sima is Gabon the head of goverment of
Raymond Ndong Sima
action filter_type
action find
entity Gabon
relation head of government
type common name
['Gabon', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Gabon property:head_of_government ?p . ?p rdf:type ontology:common_name }
[]