Simple Question (Direct)
Simple Question
Q4715296
P21
Q290
USER
Which sex does Aleksandr Meleshkin have ?
(Q4715296,P21,c(Q290))
action filter_type
action find
entity Q4715296
relation P21
type Q290
['Q4715296', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q4715296 property:P21 ?g . ?g rdf:type ontology:Q290 }
Aleksandr Meleshkin
action filter_type
action find
entity Aleksandr Meleshkin
relation gender
type sex
['Aleksandr Meleshkin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Aleksandr_Meleshkin property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4715296,P21,c(Q290))
action filter_type
action find
entity Q4715296
relation P21
type Q290
Aleksandr Meleshkin has a [ANSWER]
['Q4715296', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q4715296 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
Aleksandr Meleshkin has a male
male
action filter_type
action find
entity Aleksandr Meleshkin
relation gender
type sex
['Aleksandr Meleshkin', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Aleksandr_Meleshkin property:gender ?g . ?g rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4715296
P641
Q349
USER
What was the sport that Aleksandr Meleshkin was a part of ?
(Q4715296,P641,c(Q349))
action filter_type
action find
entity Q4715296
relation P641
type Q349
['Q4715296', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q4715296 property:P641 ?c . ?c rdf:type ontology:Q349 }
Aleksandr Meleshkin
action filter_type
action find
entity Aleksandr Meleshkin
relation sport
type sport
['Aleksandr Meleshkin', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Aleksandr_Meleshkin property:sport ?c . ?c rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q4715296,P641,c(Q349))
action filter_type
action find
entity Q4715296
relation P641
type Q349
The sport that Aleksandr Meleshkin was a part of was the [ANSWER]
['Q4715296', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?c WHERE { resource:Q4715296 property:P641 ?c . ?c rdf:type ontology:Q349 }
association football
The sport that Aleksandr Meleshkin was a part of was the association football
association football
action filter_type
action find
entity Aleksandr Meleshkin
relation sport
type sport
['Aleksandr Meleshkin', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?c WHERE { resource:Aleksandr_Meleshkin property:sport ?c . ?c rdf:type ontology:sport }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3023974
Q349
USER
And how about Derrick Chandler?
(Q3023974,P641,c(Q349))
action filter_type
action find
entity Q3023974
relation P641
type Q349
['Q3023974', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q3023974 property:P641 ?r . ?r rdf:type ontology:Q349 }
Derrick Chandler
action filter_type
action find
entity Derrick Chandler
relation sport
type sport
['Derrick Chandler', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Derrick_Chandler property:sport ?r . ?r rdf:type ontology:sport }
[]
sport
Q5372
SYSTEM
basketball
Q5372
(Q3023974,P641,c(Q349))
action filter_type
action find
entity Q3023974
relation P641
type Q349
[ANSWER]
['Q3023974', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q3023974 property:P641 ?r . ?r rdf:type ontology:Q349 }
basketball
basketball
action filter_type
action find
entity Derrick Chandler
relation sport
type sport
['Derrick Chandler', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Derrick_Chandler property:sport ?r . ?r rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q16089929 Q4715296
P106
Q12737077
USER
Which occupations have Aleksandr Meleshkin and Jack Godsell as his/her as a career ?
AND((Q4715296,P106,c(Q12737077)), (Q16089929,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q4715296
relation P106
action find
entity Q16089929
relation P106
type Q12737077
{'AND': [['Q4715296', 'P106', {'concept': 'Q12737077'}], ['Q16089929', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q12737077 . resource:Q4715296 property:P106 ?b . resource:Q16089929 property:P106 ?b }
Jack Godsell Aleksandr Meleshkin
action filter_type
action intersection
action find
entity Aleksandr Meleshkin
relation occupation
action find
entity Jack Godsell
relation occupation
type occupation
{'AND': [['Aleksandr Meleshkin', 'occupation', {'concept': 'occupation'}], ['Jack Godsell', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:occupation . resource:Aleksandr_Meleshkin property:occupation ?b . resource:Jack_Godsell property:occupation ?b }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
AND((Q4715296,P106,c(Q12737077)), (Q16089929,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q4715296
relation P106
action find
entity Q16089929
relation P106
type Q12737077
The [ANSWER] have Aleksandr Meleshkin and Jack Godsell as his/her as a career
{'AND': [['Q4715296', 'P106', {'concept': 'Q12737077'}], ['Q16089929', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q12737077 . resource:Q4715296 property:P106 ?b . resource:Q16089929 property:P106 ?b }
association football player
The association football player have Aleksandr Meleshkin and Jack Godsell as his/her as a career
association football player
action filter_type
action intersection
action find
entity Aleksandr Meleshkin
relation occupation
action find
entity Jack Godsell
relation occupation
type occupation
{'AND': [['Aleksandr Meleshkin', 'occupation', {'concept': 'occupation'}], ['Jack Godsell', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:occupation . resource:Aleksandr_Meleshkin property:occupation ?b . resource:Jack_Godsell property:occupation ?b }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P106
Q15619164 Q215380
USER
How many abstract beings and bands have career as that occupation ?
(c(Q15619164),P106,Q937857) (c(Q215380),P106,Q937857) (c(Q15619164),P106,Q937857) (c(Q215380),P106,Q937857)
action count
action union
action filter_type
action find_reverse
entity Q937857
relation P106
type Q15619164
action filter_type
action find_reverse
entity Q937857
relation P106
type Q215380
[{'concept': 'Q15619164'}, 'P106', 'Q937857'] [{'concept': 'Q215380'}, 'P106', 'Q937857'] [{'concept': 'Q15619164'}, 'P106', 'Q937857'] [{'concept': 'Q215380'}, 'P106', 'Q937857']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { VALUES ( ?d ) { ( ontology:Q15619164 ) ( ontology:Q215380 ) } . ?r rdf:type ?d }
action count
action union
action filter_type
action find_reverse
entity association football player
relation occupation
type abstract being
action filter_type
action find_reverse
entity association football player
relation occupation
type band
[{'concept': 'abstract being'}, 'occupation', 'association football player'] [{'concept': 'band'}, 'occupation', 'association football player'] [{'concept': 'abstract being'}, 'occupation', 'association football player'] [{'concept': 'band'}, 'occupation', 'association football player']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { VALUES ( ?d ) { ( ontology:abstract_being ) ( ontology:band ) } . ?r rdf:type ?d }
[]
abstract being band
SYSTEM
7 abstract beings and 1 bands
Q10279728 Q746996 Q6835842 Q3810827 Q2484120 Q2754813 Q6782491 Q2248090
(c(Q15619164),P106,Q937857) (c(Q215380),P106,Q937857) (c(Q15619164),P106,Q937857) (c(Q215380),P106,Q937857)
action count
action union
action filter_type
action find_reverse
entity Q937857
relation P106
type Q15619164
action filter_type
action find_reverse
entity Q937857
relation P106
type Q215380
[ANSWER]
[{'concept': 'Q15619164'}, 'P106', 'Q937857'] [{'concept': 'Q215380'}, 'P106', 'Q937857'] [{'concept': 'Q15619164'}, 'P106', 'Q937857'] [{'concept': 'Q215380'}, 'P106', 'Q937857']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { VALUES ( ?d ) { ( ontology:Q15619164 ) ( ontology:Q215380 ) } . ?r rdf:type ?d }
Fago Kojirō Hyūga Michal Vepřek Juan Diaz Tsubasa Oozora Tarō Misaki Masal Bugduv Genzō Wakabayashi
7 abstract beings and 1 bands
action count
action union
action filter_type
action find_reverse
entity association football player
relation occupation
type abstract being
action filter_type
action find_reverse
entity association football player
relation occupation
type band
[{'concept': 'abstract being'}, 'occupation', 'association football player'] [{'concept': 'band'}, 'occupation', 'association football player'] [{'concept': 'abstract being'}, 'occupation', 'association football player'] [{'concept': 'band'}, 'occupation', 'association football player']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { VALUES ( ?d ) { ( ontology:abstract_being ) ( ontology:band ) } . ?r rdf:type ?d }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4777802 Q3023974
P27
Q15617994
USER
Which administrative territories do Derrick Chandler or Anup Chetia belong to ?
OR((Q3023974,P27,c(Q15617994)), (Q4777802,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3023974
relation P27
action find
entity Q4777802
relation P27
type Q15617994
{'OR': [['Q3023974', 'P27', {'concept': 'Q15617994'}], ['Q4777802', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?i ) { ( resource:Q4777802 ) ( resource:Q3023974 ) } . ?i property:P27 ?m } . ?m rdf:type ontology:Q15617994 }
Anup Chetia Derrick Chandler
action filter_type
action union
action find
entity Derrick Chandler
relation country of citizenship
action find
entity Anup Chetia
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Derrick Chandler', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Anup Chetia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?i ) { ( resource:Anup_Chetia ) ( resource:Derrick_Chandler ) } . ?i property:country_of_citizenship ?m } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q668
SYSTEM
United States of America, India
Q30 Q668
OR((Q3023974,P27,c(Q15617994)), (Q4777802,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3023974
relation P27
action find
entity Q4777802
relation P27
type Q15617994
Derrick Chandler or Anup Chetia belong to [ANSWERS]
{'OR': [['Q3023974', 'P27', {'concept': 'Q15617994'}], ['Q4777802', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?i ) { ( resource:Q4777802 ) ( resource:Q3023974 ) } . ?i property:P27 ?m } . ?m rdf:type ontology:Q15617994 }
United States of America India
Derrick Chandler or Anup Chetia belong to United States of America and India
United States of America India
action filter_type
action union
action find
entity Derrick Chandler
relation country of citizenship
action find
entity Anup Chetia
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Derrick Chandler', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Anup Chetia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?i ) { ( resource:Anup_Chetia ) ( resource:Derrick_Chandler ) } . ?i property:country_of_citizenship ?m } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with max number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?q ) { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?h ) WHERE { ?b rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 . ?b property:P530 ?w } GROUP BY ?b } } . { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?j ) WHERE { ?p property:P530 ?x . ?p rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?j = ?q ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?q ) { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?h ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?w } GROUP BY ?b } } . { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?j ) WHERE { ?p property:diplomatic_relation ?x . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?j = ?q ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have diplomatic relationships with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?q ) { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?h ) WHERE { ?b rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 . ?b property:P530 ?w } GROUP BY ?b } } . { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?j ) WHERE { ?p property:P530 ?x . ?p rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?j = ?q ) }
Italy
Italy have diplomatic relationships with max number of administrative territories
Italy
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?q ) { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?h ) WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?w } GROUP BY ?b } } . { SELECT DISTINCT ?p ( COUNT ( ?x ) AS ?j ) WHERE { ?p property:diplomatic_relation ?x . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?j = ?q ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P710
Q484652 Q198
USER
How many international organizations and wars have that administrative territory as their participant ?
(c(Q484652),P710,Q38) (c(Q198),P710,Q38) (c(Q484652),P710,Q38) (c(Q198),P710,Q38)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P710
type Q484652
action filter_type
action find_reverse
entity Q38
relation P710
type Q198
[{'concept': 'Q484652'}, 'P710', 'Q38'] [{'concept': 'Q198'}, 'P710', 'Q38'] [{'concept': 'Q484652'}, 'P710', 'Q38'] [{'concept': 'Q198'}, 'P710', 'Q38']
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { ?t property:P710 resource:Q38 . ?t rdf:type ontology:Q198 } UNION { ?t property:P710 resource:Q38 . ?t rdf:type ontology:Q484652 } }
action count
action union
action filter_type
action find_reverse
entity Italy
relation participant
type international organization
action filter_type
action find_reverse
entity Italy
relation participant
type war
[{'concept': 'international organization'}, 'participant', 'Italy'] [{'concept': 'war'}, 'participant', 'Italy'] [{'concept': 'international organization'}, 'participant', 'Italy'] [{'concept': 'war'}, 'participant', 'Italy']
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { ?t property:participant resource:Italy . ?t rdf:type ontology:war } UNION { ?t property:participant resource:Italy . ?t rdf:type ontology:international_organization } }
[]
international organization war
SYSTEM
1 international organizations and 2 wars
Q362 Q10287157 Q361
(c(Q484652),P710,Q38) (c(Q198),P710,Q38) (c(Q484652),P710,Q38) (c(Q198),P710,Q38)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P710
type Q484652
action filter_type
action find_reverse
entity Q38
relation P710
type Q198
[ANSWER]
[{'concept': 'Q484652'}, 'P710', 'Q38'] [{'concept': 'Q198'}, 'P710', 'Q38'] [{'concept': 'Q484652'}, 'P710', 'Q38'] [{'concept': 'Q198'}, 'P710', 'Q38']
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { ?t property:P710 resource:Q38 . ?t rdf:type ontology:Q198 } UNION { ?t property:P710 resource:Q38 . ?t rdf:type ontology:Q484652 } }
World War II G6 World War I
1 international organizations and 2 wars
action count
action union
action filter_type
action find_reverse
entity Italy
relation participant
type international organization
action filter_type
action find_reverse
entity Italy
relation participant
type war
[{'concept': 'international organization'}, 'participant', 'Italy'] [{'concept': 'war'}, 'participant', 'Italy'] [{'concept': 'international organization'}, 'participant', 'Italy'] [{'concept': 'war'}, 'participant', 'Italy']
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { ?t property:participant resource:Italy . ?t rdf:type ontology:war } UNION { ?t property:participant resource:Italy . ?t rdf:type ontology:international_organization } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q230
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with more number of administrative territories than Georgia ?
(c(Q15617994),P530,c(Q15617994))
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 ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?t ) WHERE { ?r property:P530 ?m . ?r rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?r } . FILTER ( ?t > ?h ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { ?n property:P530 resource:Q230 . ?n rdf:type ontology:Q15617994 } } }
Georgia
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 ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?t ) WHERE { ?r property:diplomatic_relation ?m . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?t > ?h ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { ?n property:diplomatic_relation resource:Georgia . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
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 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
[ANSWERS] have diplomatic relationships with more number of administrative territories than Georgia
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?t ) WHERE { ?r property:P530 ?m . ?r rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?r } . FILTER ( ?t > ?h ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { ?n property:P530 resource:Q230 . ?n rdf:type ontology:Q15617994 } } }
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
Italy, Brazil and United States of America have diplomatic relationships with more number of administrative territories than Georgia
Italy Brazil United States of America
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 ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?m ) AS ?t ) WHERE { ?r property:diplomatic_relation ?m . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?t > ?h ) . { SELECT DISTINCT ( COUNT ( ?n ) AS ?h ) WHERE { ?n property:diplomatic_relation resource:Georgia . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q962
P530
Q15617994 Q15617994
USER
And also tell me about Benin?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q962
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Q962 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } . FILTER ( ?h > ?a ) }
Benin
action greater
action find_reverse_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 Benin
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 ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Benin property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?h > ?a ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q236 Q230 Q233 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q736 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q974 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q219 Q916 Q1009 Q1008 Q971 Q874 Q79 Q77 Q858 Q878 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q962
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Q962 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } . FILTER ( ?h > ?a ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Montenegro Georgia Malta Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Ecuador Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Democratic Republic of the Congo Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Angola Cameroon Côte d'Ivoire Republic of the Congo Turkmenistan Egypt Uruguay Syria United Arab Emirates Jordan Libya Cape Verde Spain Thailand Zambia
Italy Brazil United States of America
action greater
action find_reverse_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 Benin
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 ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { resource:Benin property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?h > ?a ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q668
P530
Q15617994
USER
Do India have tactful political relations with those ones ?
(Q668,P530,Q38) (Q668,P530,Q155) (Q668,P530,Q30)
action is_in
entity prev_answer
action find
entity Q668
relation P530
['Q668', 'P530', 'Q38'] ['Q668', 'P530', 'Q155'] ['Q668', 'P530', 'Q30']
ASK WHERE { VALUES ( ?u ) { ( resource:Q801 ) ( resource:Q800 ) ( resource:Q805 ) } . resource:Q668 property:P530 ?u }
India
action is_in
entity prev_answer
action find
entity India
relation diplomatic relation
['India', 'diplomatic relation', 'Italy'] ['India', 'diplomatic relation', 'Brazil'] ['India', 'diplomatic relation', 'United States of America']
ASK WHERE { VALUES ( ?u ) { ( resource:Israel ) ( resource:Costa_Rica ) ( resource:Yemen ) } . resource:India property:diplomatic_relation ?u }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q668,P530,Q38) (Q668,P530,Q155) (Q668,P530,Q30)
action is_in
entity prev_answer
action find
entity Q668
relation P530
[ANSWER]
['Q668', 'P530', 'Q38'] ['Q668', 'P530', 'Q155'] ['Q668', 'P530', 'Q30']
ASK WHERE { VALUES ( ?u ) { ( resource:Q801 ) ( resource:Q800 ) ( resource:Q805 ) } . resource:Q668 property:P530 ?u }
Yes
action is_in
entity prev_answer
action find
entity India
relation diplomatic relation
['India', 'diplomatic relation', 'Italy'] ['India', 'diplomatic relation', 'Brazil'] ['India', 'diplomatic relation', 'United States of America']
ASK WHERE { VALUES ( ?u ) { ( resource:Israel ) ( resource:Costa_Rica ) ( resource:Yemen ) } . resource:India property:diplomatic_relation ?u }
[]