Simple Question (Direct)
Simple Question
Q318415
P21
Q290
USER
Which sex does Abel Ferreira belong to ?
(Q318415,P21,c(Q290))
action filter_type
action find
entity Q318415
relation P21
type Q290
['Q318415', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q318415 property:P21 ?p . ?p rdf:type ontology:Q290 }
Abel Ferreira
action filter_type
action find
entity Abel Ferreira
relation gender
type sex
['Abel Ferreira', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Abel_Ferreira property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q318415,P21,c(Q290))
action filter_type
action find
entity Q318415
relation P21
type Q290
Abel Ferreira belongs to [ANSWER]
['Q318415', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q318415 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
Abel Ferreira belongs to male
male
action filter_type
action find
entity Abel Ferreira
relation gender
type sex
['Abel Ferreira', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Abel_Ferreira property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q318415
P19
Q13220204
USER
Where was Abel Ferreira born ?
(Q318415,P19,c(Q13220204))
action filter_type
action find
entity Q318415
relation P19
type Q13220204
['Q318415', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?g WHERE { resource:Q318415 property:P19 ?g . ?g rdf:type ontology:Q13220204 }
Abel Ferreira
action filter_type
action find
entity Abel Ferreira
relation place of birth
type second-level administrative country subdivision
['Abel Ferreira', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?g WHERE { resource:Abel_Ferreira property:place_of_birth ?g . ?g rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q984656
SYSTEM
Penafiel
Q984656
(Q318415,P19,c(Q13220204))
action filter_type
action find
entity Q318415
relation P19
type Q13220204
Abel Ferreira was born in [ANSWER]
['Q318415', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?g WHERE { resource:Q318415 property:P19 ?g . ?g rdf:type ontology:Q13220204 }
Penafiel
Abel Ferreira was born in Penafiel
Penafiel
action filter_type
action find
entity Abel Ferreira
relation place of birth
type second-level administrative country subdivision
['Abel Ferreira', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?g WHERE { resource:Abel_Ferreira property:place_of_birth ?g . ?g rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q984656
P190
Q515
USER
Which city is twin town of that administrative country subdivision ?
(Q984656,P190,c(Q515))
action filter_type
action find
entity Q984656
relation P190
type Q515
['Q984656', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { resource:Q984656 property:P190 ?r . ?r rdf:type ontology:Q515 }
Penafiel
action filter_type
action find
entity Penafiel
relation sister city
type city
['Penafiel', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { resource:Penafiel property:sister_city ?r . ?r rdf:type ontology:city }
[]
city
Q335506
SYSTEM
Salto
Q335506
(Q984656,P190,c(Q515))
action filter_type
action find
entity Q984656
relation P190
type Q515
[ANSWER] is twin town of that administrative country subdivision
['Q984656', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { resource:Q984656 property:P190 ?r . ?r rdf:type ontology:Q515 }
Salto
Salto is twin town of that administrative country subdivision
Salto
action filter_type
action find
entity Penafiel
relation sister city
type city
['Penafiel', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { resource:Penafiel property:sister_city ?r . ?r rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q984656
P17
Q15617994
USER
Which administrative territory is Penafiel present in ?
(Q984656,P17,c(Q15617994))
action filter_type
action find
entity Q984656
relation P17
type Q15617994
['Q984656', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q984656 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Penafiel
action filter_type
action find
entity Penafiel
relation country
type designation for an administrative territorial entity
['Penafiel', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Penafiel property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q45
SYSTEM
Portugal
Q45
(Q984656,P17,c(Q15617994))
action filter_type
action find
entity Q984656
relation P17
type Q15617994
Penafiel is in [ANSWER]
['Q984656', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { resource:Q984656 property:P17 ?k . ?k rdf:type ontology:Q15617994 }
Portugal
Penafiel is in Portugal
Portugal
action filter_type
action find
entity Penafiel
relation country
type designation for an administrative territorial entity
['Penafiel', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Penafiel property:country ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7761585
Q15617994
USER
And how about The Rossborough Inn?
(Q7761585,P17,c(Q15617994))
action filter_type
action find
entity Q7761585
relation P17
type Q15617994
['Q7761585', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q7761585 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
The Rossborough Inn
action filter_type
action find
entity The Rossborough Inn
relation country
type designation for an administrative territorial entity
['The Rossborough Inn', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:The_Rossborough_Inn property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q7761585,P17,c(Q15617994))
action filter_type
action find
entity Q7761585
relation P17
type Q15617994
[ANSWER]
['Q7761585', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q7761585 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity The Rossborough Inn
relation country
type designation for an administrative territorial entity
['The Rossborough Inn', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:The_Rossborough_Inn property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q15416 Q201658
USER
How many administrative territories are the origin of around the same number of television programs and film genres as that administrative territory ?
(c(Q15416)|c(Q201658),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q30
relation P495
type Q15416
type Q201658
[[{'concept': 'Q15416'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?d WHERE { VALUES ( ?o ) { ( ontology:Q201658 ) ( ontology:Q15416 ) } . ?n rdf:type ?o } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { ?l property:P495 resource:Q30 . { { ?l rdf:type ontology:Q15416 } UNION { ?l rdf:type ontology:Q201658 } } } } . FILTER ( ?y = ?w ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity United States of America
relation country of origin
type television program
type film genre
[[{'concept': 'television program'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?d WHERE { VALUES ( ?o ) { ( ontology:film_genre ) ( ontology:television_program ) } . ?n rdf:type ?o } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { ?l property:country_of_origin resource:United_States_of_America . { { ?l rdf:type ontology:television_program } UNION { ?l rdf:type ontology:film_genre } } } } . FILTER ( ?y = ?w ) }
[]
designation for an administrative territorial entity television program film genre
SYSTEM
1
Q30
(c(Q15416)|c(Q201658),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q30
relation P495
type Q15416
type Q201658
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?d WHERE { VALUES ( ?o ) { ( ontology:Q201658 ) ( ontology:Q15416 ) } . ?n rdf:type ?o } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { ?l property:P495 resource:Q30 . { { ?l rdf:type ontology:Q15416 } UNION { ?l rdf:type ontology:Q201658 } } } } . FILTER ( ?y = ?w ) }
United States of America
1
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity United States of America
relation country of origin
type television program
type film genre
[[{'concept': 'television program'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?d WHERE { VALUES ( ?o ) { ( ontology:film_genre ) ( ontology:television_program ) } . ?n rdf:type ?o } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { ?l property:country_of_origin resource:United_States_of_America . { { ?l rdf:type ontology:television_program } UNION { ?l rdf:type ontology:film_genre } } } } . FILTER ( ?y = ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q230
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with greater number of administrative territories than Georgia ?
(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_reverse
entity Q230
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?x ) WHERE { ?s property:P530 ?o . ?s rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:P530 resource:Q230 . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?x > ?u ) }
Georgia
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_reverse
entity Georgia
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 ( ?s ) AS ?b ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?x ) WHERE { ?s property:diplomatic_relation ?o . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:diplomatic_relation resource:Georgia . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x > ?u ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
63
Q801 Q805 Q668 Q414 Q142 Q145 Q262 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q27 Q1049 Q843 Q228 Q227 Q224 Q222 Q347 Q17 Q974 Q1033 Q298 Q115 Q114 Q212 Q213 Q211 Q215 Q916 Q79 Q810 Q1016 Q1011 Q29 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_reverse
entity Q230
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?x ) WHERE { ?s property:P530 ?o . ?s rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:P530 resource:Q230 . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?x > ?u ) }
Israel Yemen India Argentina France United Kingdom Algeria People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Ireland Sudan Pakistan Andorra Azerbaijan Croatia Albania Liechtenstein Japan Democratic Republic of the Congo Nigeria Chile Ethiopia Kenya Ukraine Czech Republic Latvia Slovenia Angola Egypt Jordan Libya Cape Verde Spain Zambia
63
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_reverse
entity Georgia
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 ( ?s ) AS ?b ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?o ) AS ?x ) WHERE { ?s property:diplomatic_relation ?o . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?u ) WHERE { ?q property:diplomatic_relation resource:Georgia . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?x > ?u ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q45
P463
Q56061
USER
Which administrative territory was Portugal a member of ?
(Q45,P463,c(Q56061))
action filter_type
action find
entity Q45
relation P463
type Q56061
['Q45', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q45 property:P463 ?p }
Portugal
action filter_type
action find
entity Portugal
relation member of
type administrative territorial entity
['Portugal', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Portugal property:member_of ?p }
[]
administrative territorial entity
Q458
SYSTEM
European Union
Q458
(Q45,P463,c(Q56061))
action filter_type
action find
entity Q45
relation P463
type Q56061
Which administrative territory was Portugal a member of
['Q45', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q45 property:P463 ?p }
European Union
Which administrative territory was Portugal a member of
European Union
action filter_type
action find
entity Portugal
relation member of
type administrative territorial entity
['Portugal', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Portugal property:member_of ?p }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1016
Q56061
USER
And how about Libya?
(Q1016,P463,c(Q56061))
action filter_type
action find
entity Q1016
relation P463
type Q56061
['Q1016', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q56061 . resource:Q1016 property:P463 ?j }
Libya
action filter_type
action find
entity Libya
relation member of
type administrative territorial entity
['Libya', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:administrative_territorial_entity . resource:Libya property:member_of ?j }
[]
administrative territorial entity
Q7172 Q7159
SYSTEM
Arab League, African Union
Q7172 Q7159
(Q1016,P463,c(Q56061))
action filter_type
action find
entity Q1016
relation P463
type Q56061
[ANSWERS]
['Q1016', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q56061 . resource:Q1016 property:P463 ?j }
Arab League African Union
Arab League African Union
action filter_type
action find
entity Libya
relation member of
type administrative territorial entity
['Libya', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:administrative_territorial_entity . resource:Libya property:member_of ?j }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q47435
P463
Q15617994
USER
Are Oltrona di San Mamette a member of those administrative territories ?
(Q47435,P463,Q7172) (Q47435,P463,Q7159)
action is_in
entity prev_answer
action find
entity Q47435
relation P463
['Q47435', 'P463', 'Q7172'] ['Q47435', 'P463', 'Q7159']
ASK WHERE { VALUES ( ?l ) { ( resource:Q7172 ) ( resource:Q7159 ) } . resource:Q47435 property:P463 ?l }
Oltrona di San Mamette
action is_in
entity prev_answer
action find
entity Oltrona di San Mamette
relation member of
['Oltrona di San Mamette', 'member of', 'Arab League'] ['Oltrona di San Mamette', 'member of', 'African Union']
ASK WHERE { VALUES ( ?l ) { ( resource:Arab_League ) ( resource:African_Union ) } . resource:Oltrona_di_San_Mamette property:member_of ?l }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q47435,P463,Q7172) (Q47435,P463,Q7159)
action is_in
entity prev_answer
action find
entity Q47435
relation P463
[ANSWER]
['Q47435', 'P463', 'Q7172'] ['Q47435', 'P463', 'Q7159']
ASK WHERE { VALUES ( ?l ) { ( resource:Q7172 ) ( resource:Q7159 ) } . resource:Q47435 property:P463 ?l }
No
action is_in
entity prev_answer
action find
entity Oltrona di San Mamette
relation member of
['Oltrona di San Mamette', 'member of', 'Arab League'] ['Oltrona di San Mamette', 'member of', 'African Union']
ASK WHERE { VALUES ( ?l ) { ( resource:Arab_League ) ( resource:African_Union ) } . resource:Oltrona_di_San_Mamette property:member_of ?l }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q318415 Q3183660
P27
Q15617994
USER
Is Jor the native country of Abel Ferreira ?
(Q318415,P27,Q3183660)
action is_in
entity Q3183660
action find
entity Q318415
relation P27
['Q318415', 'P27', 'Q3183660']
ASK WHERE { resource:Q318415 property:P27 resource:Q3183660 }
Abel Ferreira Jor
action is_in
entity Jor
action find
entity Abel Ferreira
relation country of citizenship
['Abel Ferreira', 'country of citizenship', 'Jor']
ASK WHERE { resource:Abel_Ferreira property:country_of_citizenship resource:Jor }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q318415,P27,Q3183660)
action is_in
entity Q3183660
action find
entity Q318415
relation P27
[ANSWER]
['Q318415', 'P27', 'Q3183660']
ASK WHERE { resource:Q318415 property:P27 resource:Q3183660 }
No
action is_in
entity Jor
action find
entity Abel Ferreira
relation country of citizenship
['Abel Ferreira', 'country of citizenship', 'Jor']
ASK WHERE { resource:Abel_Ferreira property:country_of_citizenship resource:Jor }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q45 Q1011
P530
Q15617994
USER
Does Cape Verde hold diplomatic relationship with Portugal ?
(Q45,P530,Q1011)
action is_in
entity Q1011
action find
entity Q45
relation P530
['Q45', 'P530', 'Q1011']
ASK WHERE { resource:Q45 property:P530 resource:Q1011 }
Portugal Cape Verde
action is_in
entity Cape Verde
action find
entity Portugal
relation diplomatic relation
['Portugal', 'diplomatic relation', 'Cape Verde']
ASK WHERE { resource:Portugal property:diplomatic_relation resource:Cape_Verde }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q45,P530,Q1011)
action is_in
entity Q1011
action find
entity Q45
relation P530
[ANSWER]
['Q45', 'P530', 'Q1011']
ASK WHERE { resource:Q45 property:P530 resource:Q1011 }
Yes
action is_in
entity Cape Verde
action find
entity Portugal
relation diplomatic relation
['Portugal', 'diplomatic relation', 'Cape Verde']
ASK WHERE { resource:Portugal property:diplomatic_relation resource:Cape_Verde }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7172
P112
Q874405
USER
Which social group was founded by Arab League ?
(c(Q874405),P112,Q7172)
action filter_type
action find_reverse
entity Q7172
relation P112
type Q874405
[{'concept': 'Q874405'}, 'P112', 'Q7172']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q874405 . ?x property:P112 resource:Q7172 }
Arab League
action filter_type
action find_reverse
entity Arab League
relation founder
type social group
[{'concept': 'social group'}, 'founder', 'Arab League']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:social_group . ?x property:founder resource:Arab_League }
[]
social group
Q623633
SYSTEM
Arab Air Carriers Organization
Q623633
(c(Q874405),P112,Q7172)
action filter_type
action find_reverse
entity Q7172
relation P112
type Q874405
[ANSWER] was founded by Arab League
[{'concept': 'Q874405'}, 'P112', 'Q7172']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q874405 . ?x property:P112 resource:Q7172 }
Arab Air Carriers Organization
Arab Air Carriers Organization was founded by Arab League
Arab Air Carriers Organization
action filter_type
action find_reverse
entity Arab League
relation founder
type social group
[{'concept': 'social group'}, 'founder', 'Arab League']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:social_group . ?x property:founder resource:Arab_League }
[]