Simple Question (Direct)
Simple Question
Q1444400
P20
Q515
USER
Where did the demise of Frank W. Wheeler occur ?
(Q1444400,P20,c(Q515))
action filter_type
action find
entity Q1444400
relation P20
type Q515
['Q1444400', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { resource:Q1444400 property:P20 ?w . ?w rdf:type ontology:Q515 }
Frank W. Wheeler
action filter_type
action find
entity Frank W. Wheeler
relation place of death
type city
['Frank W. Wheeler', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { resource:Frank_W._Wheeler property:place_of_death ?w . ?w rdf:type ontology:city }
[]
city
Q719
SYSTEM
Saginaw
Q719
(Q1444400,P20,c(Q515))
action filter_type
action find
entity Q1444400
relation P20
type Q515
The demise of Frank W. Wheeler occurred in [ANSWER]
['Q1444400', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { resource:Q1444400 property:P20 ?w . ?w rdf:type ontology:Q515 }
Saginaw
The demise of Frank W. Wheeler occurred in Saginaw
Saginaw
action filter_type
action find
entity Frank W. Wheeler
relation place of death
type city
['Frank W. Wheeler', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { resource:Frank_W._Wheeler property:place_of_death ?w . ?w rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1444400
P102
Q7210356
USER
Which party is that person affiliated with ?
(Q719,P102,c(Q7210356))
action filter_type
action find
entity Q1444400
relation P102
type Q7210356
['Q719', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q1444400 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Frank W. Wheeler
action filter_type
action find
entity Frank W. Wheeler
relation member of political party
type political organization
['Saginaw', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Frank_W._Wheeler property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
political organization
Q29468
SYSTEM
Republican Party
Q29468
(Q719,P102,c(Q7210356))
action filter_type
action find
entity Q1444400
relation P102
type Q7210356
That person is affiliated with [ANSWER]
['Q719', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { resource:Q1444400 property:P102 ?x . ?x rdf:type ontology:Q7210356 }
Republican Party
That person is affiliated with Republican Party
Republican Party
action filter_type
action find
entity Frank W. Wheeler
relation member of political party
type political organization
['Saginaw', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { resource:Frank_W._Wheeler property:member_of_political_party ?x . ?x rdf:type ontology:political_organization }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4015130 Q1444400
P19 P27
Q15617994
USER
Which administrative territories are the native countriesof Frank W. Wheeler or were Vito Saccomandi born ?
OR((Q1444400,P27,c(Q15617994)), (Q4015130,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q1444400
relation P27
action find
entity Q4015130
relation P19
type Q15617994
{'OR': [['Q1444400', 'P27', {'concept': 'Q15617994'}], ['Q4015130', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1444400 property:P27 ?s } UNION { resource:Q4015130 property:P19 ?s } } . ?s rdf:type ontology:Q15617994 }
Vito Saccomandi Frank W. Wheeler
action filter_type
action union
action find
entity Frank W. Wheeler
relation country of citizenship
action find
entity Vito Saccomandi
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Frank W. Wheeler', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vito Saccomandi', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Frank_W._Wheeler property:country_of_citizenship ?s } UNION { resource:Vito_Saccomandi property:place_of_birth ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q13137 Q30
SYSTEM
Teramo, United States of America
Q13137 Q30
OR((Q1444400,P27,c(Q15617994)), (Q4015130,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q1444400
relation P27
action find
entity Q4015130
relation P19
type Q15617994
[ANSWERS] are the native countriesof Frank W. Wheeler or were Vito Saccomandi born
{'OR': [['Q1444400', 'P27', {'concept': 'Q15617994'}], ['Q4015130', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q1444400 property:P27 ?s } UNION { resource:Q4015130 property:P19 ?s } } . ?s rdf:type ontology:Q15617994 }
Teramo United States of America
Teramo and United States of America are the native countriesof Frank W. Wheeler or were Vito Saccomandi born
Teramo United States of America
action filter_type
action union
action find
entity Frank W. Wheeler
relation country of citizenship
action find
entity Vito Saccomandi
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Frank W. Wheeler', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Vito Saccomandi', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Frank_W._Wheeler property:country_of_citizenship ?s } UNION { resource:Vito_Saccomandi property:place_of_birth ?s } } . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q664
P530
Q15617994 Q1048835
USER
How many political territories have ambassadorial relations with greater number of administrative territories than New Zealand ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?d ) WHERE { ?b rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 . ?b property:P530 ?a } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { resource:Q664 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?d > ?z ) }
New Zealand
action count
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 New Zealand
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 ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?d ) WHERE { ?b rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?a } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { resource:New_Zealand property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d > ?z ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
5
Q40 Q183 Q408 Q35 Q16
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q664
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?d ) WHERE { ?b rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 . ?b property:P530 ?a } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { resource:Q664 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?d > ?z ) }
Austria Germany Australia Denmark Canada
5
action count
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 New Zealand
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 ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?a ) AS ?d ) WHERE { ?b rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:diplomatic_relation ?a } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { resource:New_Zealand property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d > ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q766
P530
Q15617994 Q1048835
USER
And what about Jamaica?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?z ) WHERE { ?e property:P530 ?b . ?e rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { resource:Q766 property:P530 ?w . ?w rdf:type ontology:Q1048835 } } . FILTER ( ?z > ?s ) }
Jamaica
action count
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 Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?z ) WHERE { ?e property:diplomatic_relation ?b . ?e rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { resource:Jamaica property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity } } . FILTER ( ?z > ?s ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
6
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?z ) WHERE { ?e property:P530 ?b . ?e rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { resource:Q766 property:P530 ?w . ?w rdf:type ontology:Q1048835 } } . FILTER ( ?z > ?s ) }
Austria Germany Australia Denmark Canada New Zealand
6
action count
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 Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?b ) AS ?z ) WHERE { ?e property:diplomatic_relation ?b . ?e rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { resource:Jamaica property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity } } . FILTER ( ?z > ?s ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories holds diplomatic relationship with atleast 94 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 94
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?h ) WHERE { ?r property:P530 ?z . ?r rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?r } . FILTER ( ?h >= 94 ) }
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 94
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?h ) WHERE { ?r property:diplomatic_relation ?z . ?r rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?h >= 94 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action count
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 94
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?h ) WHERE { ?r property:P530 ?z . ?r rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?r } . FILTER ( ?h >= 94 ) }
Germany Australia
2
action count
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 94
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?h ) WHERE { ?r property:diplomatic_relation ?z . ?r rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . FILTER ( ?h >= 94 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1000
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic associations with greater number of administrative territories than Gabon ?
(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 Q1000
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?s ) WHERE { ?g property:P530 ?n . ?g rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { resource:Q1000 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?m ) }
Gabon
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 Gabon
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 ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?s ) WHERE { ?g property:diplomatic_relation ?n . ?g rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { resource:Gabon property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?m ) }
[]
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 Q1000
relation P530
type Q15617994
[ANSWERS] have diplomatic associations with greater number of administrative territories than Gabon
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?s ) WHERE { ?g property:P530 ?n . ?g rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { resource:Q1000 property:P530 ?r . ?r rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?m ) }
Austria Germany Australia Denmark Canada New Zealand Jamaica
Germany, Australia and Denmark have diplomatic associations with greater number of administrative territories than Gabon
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 Gabon
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 ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?n ) AS ?s ) WHERE { ?g property:diplomatic_relation ?n . ?g rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?m ) WHERE { resource:Gabon property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?m ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q214
P530
Q1048835 Q15617994
USER
Which administrative territories are known to have diplomatic connections with greater number of political territories than Slovakia ?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q214
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?f ) WHERE { ?x property:P530 ?q . ?x rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Q214 property:P530 ?a . ?a rdf:type ontology:Q15617994 } } . FILTER ( ?f > ?w ) }
Slovakia
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Slovakia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?f ) WHERE { ?x property:diplomatic_relation ?q . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Slovakia property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f > ?w ) }
[]
political territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q736 Q230 Q233 Q20 Q1041 Q27 Q843 Q184 Q1029 Q1028 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q214
relation P530
type Q15617994
[ANSWERS] are known to have diplomatic connections with greater number of political territories than Slovakia
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?f ) WHERE { ?x property:P530 ?q . ?x rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Q214 property:P530 ?a . ?a rdf:type ontology:Q15617994 } } . FILTER ( ?f > ?w ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Ecuador Georgia Malta Norway Senegal Ireland Pakistan Belarus Mozambique Morocco Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
Italy, Brazil and United States of America are known to have diplomatic connections with greater number of political territories than Slovakia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Slovakia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?f ) WHERE { ?x property:diplomatic_relation ?q . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?w ) WHERE { resource:Slovakia property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f > ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q730
P530
Q1048835 Q15617994
USER
And also tell me about Suriname?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q730
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?e ) WHERE { ?x property:P530 ?a . ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ontology:Q15617994 . resource:Q730 property:P530 ?m } } . FILTER ( ?e > ?z ) }
Suriname
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Suriname
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?e ) WHERE { ?x property:diplomatic_relation ?a . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Suriname property:diplomatic_relation ?m } } . FILTER ( ?e > ?z ) }
[]
political territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q736 Q230 Q233 Q20 Q1041 Q27 Q843 Q184 Q1029 Q1028 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q730
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?e ) WHERE { ?x property:P530 ?a . ?x rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q1048835 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ontology:Q15617994 . resource:Q730 property:P530 ?m } } . FILTER ( ?e > ?z ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Ecuador Georgia Malta Norway Senegal Ireland Pakistan Belarus Mozambique Morocco Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Suriname
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?a ) AS ?e ) WHERE { ?x property:diplomatic_relation ?a . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:political_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?z ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Suriname property:diplomatic_relation ?m } } . FILTER ( ?e > ?z ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q19771
P17
Q484652
USER
Are G20 located in those administrative territories ?
(Q19771,P17,Q38) (Q19771,P17,Q155) (Q19771,P17,Q30)
action is_in
entity prev_answer
action find
entity Q19771
relation P17
['Q19771', 'P17', 'Q38'] ['Q19771', 'P17', 'Q155'] ['Q19771', 'P17', 'Q30']
ASK WHERE { resource:Q19771 property:P17 ?g . VALUES ( ?g ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q800 ) } }
G20
action is_in
entity prev_answer
action find
entity G20
relation country
['G20', 'country', 'Italy'] ['G20', 'country', 'Brazil'] ['G20', 'country', 'United States of America']
ASK WHERE { resource:G20 property:country ?g . VALUES ( ?g ) { ( resource:Panama ) ( resource:Israel ) ( resource:Costa_Rica ) } }
[]
international organization
SYSTEM
YES
(Q19771,P17,Q38) (Q19771,P17,Q155) (Q19771,P17,Q30)
action is_in
entity prev_answer
action find
entity Q19771
relation P17
[ANSWER]
['Q19771', 'P17', 'Q38'] ['Q19771', 'P17', 'Q155'] ['Q19771', 'P17', 'Q30']
ASK WHERE { resource:Q19771 property:P17 ?g . VALUES ( ?g ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q800 ) } }
Yes
action is_in
entity prev_answer
action find
entity G20
relation country
['G20', 'country', 'Italy'] ['G20', 'country', 'Brazil'] ['G20', 'country', 'United States of America']
ASK WHERE { resource:G20 property:country ?g . VALUES ( ?g ) { ( resource:Panama ) ( resource:Israel ) ( resource:Costa_Rica ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with approximately 45 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 45
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?o = 45 ) . { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?o ) WHERE { ?m property:P530 ?d . ?m rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?m } }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 45
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?o = 45 ) . { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?o ) WHERE { ?m property:diplomatic_relation ?d . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q155 Q184
SYSTEM
Brazil, Belarus
Q155 Q184
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 45
[ANSWERS] have diplomatic relations with approximately 45 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?o = 45 ) . { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?o ) WHERE { ?m property:P530 ?d . ?m rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?m } }
Brazil Belarus
Brazil and Belarus have diplomatic relations with approximately 45 administrative territories
Brazil Belarus
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 45
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?o = 45 ) . { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?o ) WHERE { ?m property:diplomatic_relation ?d . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q155
P710
Q930933
USER
Which relationship has that administrative territory as its participant ?
(c(Q930933),P710,Q155)
action filter_type
action find_reverse
entity Q155
relation P710
type Q930933
[{'concept': 'Q930933'}, 'P710', 'Q155']
SELECT DISTINCT ?v WHERE { ?v property:P710 resource:Q155 . ?v rdf:type ontology:Q930933 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation participant
type relationship
[{'concept': 'relationship'}, 'participant', 'Brazil']
SELECT DISTINCT ?v WHERE { ?v property:participant resource:Brazil . ?v rdf:type ontology:relationship }
[]
relationship
Clarification for simple ques.
Q155
SYSTEM
Did you mean Brazil ?
Q155 Q184
(c(Q930933),P710,Q155) (c(Q930933),P710,Q184)
[ANSWER]
[{'concept': 'Q930933'}, 'P710', 'Q155'] [{'concept': 'Q930933'}, 'P710', 'Q184']
SELECT DISTINCT ?v WHERE { ?v property:P710 resource:Q155 . ?v rdf:type ontology:Q930933 }
Brazil Belarus
Did you mean Brazil ?
Brazil
[{'concept': 'relationship'}, 'participant', 'Brazil'] [{'concept': 'relationship'}, 'participant', 'Belarus']
SELECT DISTINCT ?v WHERE { ?v property:participant resource:Brazil . ?v rdf:type ontology:relationship }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q930933),P710,Q155)
[{'concept': 'Q930933'}, 'P710', 'Q155']
[{'concept': 'relationship'}, 'participant', 'Brazil']
[]
Q4825269
SYSTEM
Australia–Brazil relations
Q4825269
(c(Q930933),P710,Q155)
action filter_type
action find_reverse
entity Q155
relation P710
type Q930933
[ANSWER] has that administrative territory as its participant
[{'concept': 'Q930933'}, 'P710', 'Q155']
SELECT DISTINCT ?v WHERE { ?v property:P710 resource:Q155 . ?v rdf:type ontology:Q930933 }
Australia–Brazil relations
Australia–Brazil relations has that administrative territory as its participant
Australia–Brazil relations
action filter_type
action find_reverse
entity Brazil
relation participant
type relationship
[{'concept': 'relationship'}, 'participant', 'Brazil']
SELECT DISTINCT ?v WHERE { ?v property:participant resource:Brazil . ?v rdf:type ontology:relationship }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P36
Q515
USER
What is the capital of Brazil ?
(Q155,P36,c(Q515))
action filter_type
action find
entity Q155
relation P36
type Q515
['Q155', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { resource:Q155 property:P36 ?k . ?k rdf:type ontology:Q515 }
Brazil
action filter_type
action find
entity Brazil
relation capital
type city
['Brazil', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { resource:Brazil property:capital ?k . ?k rdf:type ontology:city }
[]
city
Q2844
SYSTEM
Brasília
Q2844
(Q155,P36,c(Q515))
action filter_type
action find
entity Q155
relation P36
type Q515
The capital of Brazil is [ANSWER]
['Q155', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?k WHERE { resource:Q155 property:P36 ?k . ?k rdf:type ontology:Q515 }
Brasília
The capital of Brazil is Brasília
Brasília
action filter_type
action find
entity Brazil
relation capital
type city
['Brazil', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?k WHERE { resource:Brazil property:capital ?k . ?k rdf:type ontology:city }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q155
Q56061
USER
And which administrative territory?
(Q155,P36,c(Q56061))
action filter_type
action find
entity Q155
relation P36
type Q56061
['Q155', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q155 property:P36 ?q . ?q rdf:type ontology:Q56061 }
Brazil
action filter_type
action find
entity Brazil
relation capital
type administrative territorial entity
['Brazil', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Brazil property:capital ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8678
SYSTEM
Rio de Janeiro
Q8678
(Q155,P36,c(Q56061))
action filter_type
action find
entity Q155
relation P36
type Q56061
[ANSWER]
['Q155', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q155 property:P36 ?q . ?q rdf:type ontology:Q56061 }
Rio de Janeiro
Rio de Janeiro
action filter_type
action find
entity Brazil
relation capital
type administrative territorial entity
['Brazil', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Brazil property:capital ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]