Simple Question (Direct)
Simple Question
Q5070323
P734
Q82799
USER
Which name is associated with Chan Kam-lam ?
(Q5070323,P734,c(Q82799))
action filter_type
action find
entity Q5070323
relation P734
type Q82799
['Q5070323', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q5070323 property:P734 ?h . ?h rdf:type ontology:Q82799 }
Chan Kam-lam
action filter_type
action find
entity Chan Kam-lam
relation family name
type name
['Chan Kam-lam', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Chan_Kam-lam property:family_name ?h . ?h rdf:type ontology:name }
[]
name
Q804988
SYSTEM
Chen
Q804988
(Q5070323,P734,c(Q82799))
action filter_type
action find
entity Q5070323
relation P734
type Q82799
Song [ANSWER] is associated with Chan Kam-lam
['Q5070323', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?h WHERE { resource:Q5070323 property:P734 ?h . ?h rdf:type ontology:Q82799 }
Chen
Song Chen is associated with Chan Kam-lam
Chen
action filter_type
action find
entity Chan Kam-lam
relation family name
type name
['Chan Kam-lam', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?h WHERE { resource:Chan_Kam-lam property:family_name ?h . ?h rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5070323
P19
Q515
USER
Where was that person born ?
(Q804988,P19,c(Q515))
action filter_type
action find
entity Q5070323
relation P19
type Q515
['Q804988', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { resource:Q5070323 property:P19 ?a . ?a rdf:type ontology:Q515 }
Chan Kam-lam
action filter_type
action find
entity Chan Kam-lam
relation place of birth
type city
['Chen', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { resource:Chan_Kam-lam property:place_of_birth ?a . ?a rdf:type ontology:city }
[]
city
Q59100
SYSTEM
Shantou
Q59100
(Q804988,P19,c(Q515))
action filter_type
action find
entity Q5070323
relation P19
type Q515
That person was born in [ANSWER]
['Q804988', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?a WHERE { resource:Q5070323 property:P19 ?a . ?a rdf:type ontology:Q515 }
Shantou
That person was born in Shantou
Shantou
action filter_type
action find
entity Chan Kam-lam
relation place of birth
type city
['Chen', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?a WHERE { resource:Chan_Kam-lam property:place_of_birth ?a . ?a rdf:type ontology:city }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2061046 Q5070323
P102
Q7210356
USER
Which political organizations do Chan Kam-lam or Paul Luther belong to ?
OR((Q5070323,P102,c(Q7210356)), (Q2061046,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q5070323
relation P102
action find
entity Q2061046
relation P102
type Q7210356
{'OR': [['Q5070323', 'P102', {'concept': 'Q7210356'}], ['Q2061046', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q5070323 property:P102 ?c } UNION { resource:Q2061046 property:P102 ?c } } . ?c rdf:type ontology:Q7210356 }
Paul Luther Chan Kam-lam
action filter_type
action union
action find
entity Chan Kam-lam
relation member of political party
action find
entity Paul Luther
relation member of political party
type political organization
{'OR': [['Chan Kam-lam', 'member of political party', {'concept': 'political organization'}], ['Paul Luther', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Chan_Kam-lam property:member_of_political_party ?c } UNION { resource:Paul_Luther property:member_of_political_party ?c } } . ?c rdf:type ontology:political_organization }
[]
political organization
Q316533 Q21916
SYSTEM
German People's Party, Democratic Alliance for the Betterment and Progress of Hong Kong
Q316533 Q21916
OR((Q5070323,P102,c(Q7210356)), (Q2061046,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q5070323
relation P102
action find
entity Q2061046
relation P102
type Q7210356
Chan Kam-lam or Paul Luther belong to the [ANSWERS]
{'OR': [['Q5070323', 'P102', {'concept': 'Q7210356'}], ['Q2061046', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q5070323 property:P102 ?c } UNION { resource:Q2061046 property:P102 ?c } } . ?c rdf:type ontology:Q7210356 }
German People's Party Democratic Alliance for the Betterment and Progress of Hong Kong
Chan Kam-lam or Paul Luther belong to the German People's Party and Democratic Alliance for the Betterment and Progress of Hong Kong
German People's Party Democratic Alliance for the Betterment and Progress of Hong Kong
action filter_type
action union
action find
entity Chan Kam-lam
relation member of political party
action find
entity Paul Luther
relation member of political party
type political organization
{'OR': [['Chan Kam-lam', 'member of political party', {'concept': 'political organization'}], ['Paul Luther', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Chan_Kam-lam property:member_of_political_party ?c } UNION { resource:Paul_Luther property:member_of_political_party ?c } } . ?c rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q59100
P190
Q56061
USER
Which administrative territory is twin town of Shantou ?
(Q59100,P190,c(Q56061))
action filter_type
action find
entity Q59100
relation P190
type Q56061
['Q59100', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q59100 property:P190 ?w . ?w rdf:type ontology:Q56061 }
Shantou
action filter_type
action find
entity Shantou
relation sister city
type administrative territorial entity
['Shantou', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Shantou property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q182009
SYSTEM
Tekirdağ
Q182009
(Q59100,P190,c(Q56061))
action filter_type
action find
entity Q59100
relation P190
type Q56061
[ANSWER] is twin town of Shantou
['Q59100', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q59100 property:P190 ?w . ?w rdf:type ontology:Q56061 }
Tekirdağ
Tekirdağ is twin town of Shantou
Tekirdağ
action filter_type
action find
entity Shantou
relation sister city
type administrative territorial entity
['Shantou', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Shantou property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q182009
P17
Q15617994
USER
Which administrative territory is that administrative territory located in ?
(Q182009,P17,c(Q15617994))
action filter_type
action find
entity Q182009
relation P17
type Q15617994
['Q182009', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q182009 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Tekirdağ
action filter_type
action find
entity Tekirdağ
relation country
type designation for an administrative territorial entity
['Tekirdağ', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Tekirdağ property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q43
SYSTEM
Turkey
Q43
(Q182009,P17,c(Q15617994))
action filter_type
action find
entity Q182009
relation P17
type Q15617994
That administrative territory is located in [ANSWER]
['Q182009', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q182009 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Turkey
That administrative territory is located in Turkey
Turkey
action filter_type
action find
entity Tekirdağ
relation country
type designation for an administrative territorial entity
['Tekirdağ', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Tekirdağ property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q43 Q2600571
P27
Q502895
USER
Is Tamar Abakelia a native of that administrative territory ?
(Q2600571,P27,Q43)
action is_in
entity Q2600571
action find
entity Q43
relation P27
['Q2600571', 'P27', 'Q43']
ASK WHERE { resource:Q43 property:P27 resource:Q2600571 }
Turkey Tamar Abakelia
action is_in
entity Tamar Abakelia
action find
entity Turkey
relation country of citizenship
['Tamar Abakelia', 'country of citizenship', 'Turkey']
ASK WHERE { resource:Turkey property:country_of_citizenship resource:Tamar_Abakelia }
[]
common name
SYSTEM
NO
(Q2600571,P27,Q43)
action is_in
entity Q2600571
action find
entity Q43
relation P27
[ANSWER]
['Q2600571', 'P27', 'Q43']
ASK WHERE { resource:Q43 property:P27 resource:Q2600571 }
No
action is_in
entity Tamar Abakelia
action find
entity Turkey
relation country of citizenship
['Tamar Abakelia', 'country of citizenship', 'Turkey']
ASK WHERE { resource:Turkey property:country_of_citizenship resource:Tamar_Abakelia }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q414
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with more number of administrative territories than Argentina ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q414
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?t ) WHERE { ?o property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { resource:Q414 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?t > ?a ) }
Argentina
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Argentina
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?t ) WHERE { ?o property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { resource:Argentina property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t > ?a ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
25
Q801 Q805 Q668 Q142 Q145 Q148 Q711 Q403 Q159 Q43 Q155 Q884 Q30 Q929 Q38 Q230 Q184 Q225 Q347 Q17 Q114 Q212 Q858 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q414
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?t ) WHERE { ?o property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { resource:Q414 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?t > ?a ) }
Israel Yemen India France United Kingdom People's Republic of China Mongolia Serbia Russia Turkey Brazil South Korea United States of America Central African Republic Italy Georgia Belarus Bosnia and Herzegovina Liechtenstein Japan Kenya Ukraine Syria Cape Verde Zambia
25
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Argentina
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?t ) WHERE { ?o property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { resource:Argentina property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?t > ?a ) }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q43 Q10396148
P6
Q502895
USER
Is Ângelo Félix Mugnol the head of government of Turkey ?
(Q43,P6,Q10396148)
action is_in
entity Q10396148
action find
entity Q43
relation P6
['Q43', 'P6', 'Q10396148']
ASK WHERE { resource:Q43 property:P6 resource:Q10396148 }
Turkey Ângelo Félix Mugnol
action is_in
entity Ângelo Félix Mugnol
action find
entity Turkey
relation head of government
['Turkey', 'head of government', 'Ângelo Félix Mugnol']
ASK WHERE { resource:Turkey property:head_of_government resource:Ângelo_Félix_Mugnol }
[]
common name
SYSTEM
NO
(Q43,P6,Q10396148)
action is_in
entity Q10396148
action find
entity Q43
relation P6
[ANSWER]
['Q43', 'P6', 'Q10396148']
ASK WHERE { resource:Q43 property:P6 resource:Q10396148 }
No
action is_in
entity Ângelo Félix Mugnol
action find
entity Turkey
relation head of government
['Turkey', 'head of government', 'Ângelo Félix Mugnol']
ASK WHERE { resource:Turkey property:head_of_government resource:Ângelo_Félix_Mugnol }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q59100 Q888787
P17
Q15617994
USER
Is Shantou present in Warsow ?
(Q59100,P17,Q888787)
action is_in
entity Q888787
action find
entity Q59100
relation P17
['Q59100', 'P17', 'Q888787']
ASK WHERE { resource:Q59100 property:P17 resource:Q888787 }
Shantou Warsow
action is_in
entity Warsow
action find
entity Shantou
relation country
['Shantou', 'country', 'Warsow']
ASK WHERE { resource:Shantou property:country resource:Warsow }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q59100,P17,Q888787)
action is_in
entity Q888787
action find
entity Q59100
relation P17
[ANSWER]
['Q59100', 'P17', 'Q888787']
ASK WHERE { resource:Q59100 property:P17 resource:Q888787 }
No
action is_in
entity Warsow
action find
entity Shantou
relation country
['Shantou', 'country', 'Warsow']
ASK WHERE { resource:Shantou property:country resource:Warsow }
[]