Simple Question (Direct)
Simple Question
Q1545424
P19
Q56061
USER
Which administrative territory is the birthplace of Gregory P. Tschebotarioff ?
(Q1545424,P19,c(Q56061))
action filter_type
action find
entity Q1545424
relation P19
type Q56061
['Q1545424', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q1545424 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Gregory P. Tschebotarioff
action filter_type
action find
entity Gregory P. Tschebotarioff
relation place of birth
type administrative territorial entity
['Gregory P. Tschebotarioff', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Gregory_P._Tschebotarioff property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q177888
SYSTEM
Pavlovsk
Q177888
(Q1545424,P19,c(Q56061))
action filter_type
action find
entity Q1545424
relation P19
type Q56061
[ANSWER] is the birthplace of Gregory P. Tschebotarioff
['Q1545424', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q1545424 property:P19 ?c . ?c rdf:type ontology:Q56061 }
Pavlovsk
Pavlovsk is the birthplace of Gregory P. Tschebotarioff
Pavlovsk
action filter_type
action find
entity Gregory P. Tschebotarioff
relation place of birth
type administrative territorial entity
['Gregory P. Tschebotarioff', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Gregory_P._Tschebotarioff property:place_of_birth ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1545424
P108
Q163740
USER
Which nonprofit organization is the workplace of Gregory P. Tschebotarioff ?
(Q1545424,P108,c(Q163740))
action filter_type
action find
entity Q1545424
relation P108
type Q163740
['Q1545424', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?n WHERE { resource:Q1545424 property:P108 ?n . ?n rdf:type ontology:Q163740 }
Gregory P. Tschebotarioff
action filter_type
action find
entity Gregory P. Tschebotarioff
relation employer
type nonprofit organization
['Gregory P. Tschebotarioff', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?n WHERE { resource:Gregory_P._Tschebotarioff property:employer ?n . ?n rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q21578
SYSTEM
Princeton University
Q21578
(Q1545424,P108,c(Q163740))
action filter_type
action find
entity Q1545424
relation P108
type Q163740
[ANSWER] is the workplace of Gregory P. Tschebotarioff
['Q1545424', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?n WHERE { resource:Q1545424 property:P108 ?n . ?n rdf:type ontology:Q163740 }
Princeton University
Princeton University is the workplace of Gregory P. Tschebotarioff
Princeton University
action filter_type
action find
entity Gregory P. Tschebotarioff
relation employer
type nonprofit organization
['Gregory P. Tschebotarioff', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?n WHERE { resource:Gregory_P._Tschebotarioff property:employer ?n . ?n rdf:type ontology:nonprofit_organization }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5552368
Q163740
USER
And also tell me about Gero Andreas Miesenböck?
(Q5552368,P108,c(Q163740))
action filter_type
action find
entity Q5552368
relation P108
type Q163740
['Q5552368', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?y WHERE { resource:Q5552368 property:P108 ?y . ?y rdf:type ontology:Q163740 }
Gero Andreas Miesenböck
action filter_type
action find
entity Gero Andreas Miesenböck
relation employer
type nonprofit organization
['Gero Andreas Miesenböck', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?y WHERE { resource:Gero_Andreas_Miesenböck property:employer ?y . ?y rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49115 Q49112
SYSTEM
Cornell University, Yale University
Q49115 Q49112
(Q5552368,P108,c(Q163740))
action filter_type
action find
entity Q5552368
relation P108
type Q163740
[ANSWERS]
['Q5552368', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?y WHERE { resource:Q5552368 property:P108 ?y . ?y rdf:type ontology:Q163740 }
Cornell University Yale University
Cornell University Yale University
action filter_type
action find
entity Gero Andreas Miesenböck
relation employer
type nonprofit organization
['Gero Andreas Miesenböck', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?y WHERE { resource:Gero_Andreas_Miesenböck property:employer ?y . ?y rdf:type ontology:nonprofit_organization }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q17275427 Q1545424
P27
Q15617994
USER
Which administrative territories do Gregory P. Tschebotarioff and Isabel Ruiz Lucero belong to ?
AND((Q1545424,P27,c(Q15617994)), (Q17275427,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1545424
relation P27
action find
entity Q17275427
relation P27
type Q15617994
{'AND': [['Q1545424', 'P27', {'concept': 'Q15617994'}], ['Q17275427', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q1545424 property:P27 ?k . resource:Q17275427 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
Isabel Ruiz Lucero Gregory P. Tschebotarioff
action filter_type
action intersection
action find
entity Gregory P. Tschebotarioff
relation country of citizenship
action find
entity Isabel Ruiz Lucero
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Gregory P. Tschebotarioff', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Isabel Ruiz Lucero', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:Gregory_P._Tschebotarioff property:country_of_citizenship ?k . resource:Isabel_Ruiz_Lucero property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q1545424,P27,c(Q15617994)), (Q17275427,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1545424
relation P27
action find
entity Q17275427
relation P27
type Q15617994
[ANSWER] do Gregory P. Tschebotarioff and Isabel Ruiz Lucero belong to
{'AND': [['Q1545424', 'P27', {'concept': 'Q15617994'}], ['Q17275427', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { resource:Q1545424 property:P27 ?k . resource:Q17275427 property:P27 ?k . ?k rdf:type ontology:Q15617994 }
United States of America
United States of America do Gregory P. Tschebotarioff and Isabel Ruiz Lucero belong to
United States of America
action filter_type
action intersection
action find
entity Gregory P. Tschebotarioff
relation country of citizenship
action find
entity Isabel Ruiz Lucero
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Gregory P. Tschebotarioff', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Isabel Ruiz Lucero', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { resource:Gregory_P._Tschebotarioff property:country_of_citizenship ?k . resource:Isabel_Ruiz_Lucero property:country_of_citizenship ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q35
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with lesser number of administrative territories than Denmark ?
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?f ) WHERE { ?b property:P530 ?p . ?b rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { resource:Q35 property:P530 ?t . ?t rdf:type ontology:Q1048835 } } . FILTER ( ?f < ?r ) }
Denmark
action less
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 Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?f ) WHERE { ?b property:diplomatic_relation ?p . ?b rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { resource:Denmark property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity } } . FILTER ( ?f < ?r ) }
[]
designation for an administrative territorial entity political territorial entity
Q664 Q1000 Q769
SYSTEM
New Zealand, Gabon, Grenada
Q1000 Q781 Q778 Q769 Q685 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWERS] have ambassadorial relations with lesser number of administrative territories than Denmark
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?f ) WHERE { ?b property:P530 ?p . ?b rdf:type ontology:Q1048835 . ?p rdf:type ontology:Q15617994 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { resource:Q35 property:P530 ?t . ?t rdf:type ontology:Q1048835 } } . FILTER ( ?f < ?r ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea New Zealand Jamaica
New Zealand, Gabon and Grenada have ambassadorial relations with lesser number of administrative territories than Denmark
New Zealand Gabon Grenada
action less
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 Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?p ) AS ?f ) WHERE { ?b property:diplomatic_relation ?p . ?b rdf:type ontology:political_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { resource:Denmark property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity } } . FILTER ( ?f < ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q16
P530
Q15617994 Q1048835
USER
And what about Canada?
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?j ) WHERE { ?h property:P530 ?d . ?h rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?j < ?x ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Q16 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } }
Canada
action less
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 Canada
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 ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?j ) WHERE { ?h property:diplomatic_relation ?d . ?h rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?j < ?x ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Canada property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?j ) WHERE { ?h property:P530 ?d . ?h rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?j < ?x ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Q16 property:P530 ?s . ?s rdf:type ontology:Q15617994 } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark Austria New Zealand
action less
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 Canada
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 ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?d ) AS ?j ) WHERE { ?h property:diplomatic_relation ?d . ?h rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?j < ?x ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Canada property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Are Germany known to have diplomatic connections with those ones ?
(Q183,P530,Q35) (Q183,P530,Q40) (Q183,P530,Q664)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q35'] ['Q183', 'P530', 'Q40'] ['Q183', 'P530', 'Q664']
ASK WHERE { resource:Q183 property:P530 ?b . VALUES ( ?b ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Denmark'] ['Germany', 'diplomatic relation', 'Austria'] ['Germany', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Germany property:diplomatic_relation ?b . VALUES ( ?b ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q35) (Q183,P530,Q40) (Q183,P530,Q664)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q35'] ['Q183', 'P530', 'Q40'] ['Q183', 'P530', 'Q664']
ASK WHERE { resource:Q183 property:P530 ?b . VALUES ( ?b ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Denmark'] ['Germany', 'diplomatic relation', 'Austria'] ['Germany', 'diplomatic relation', 'New Zealand']
ASK WHERE { resource:Germany property:diplomatic_relation ?b . VALUES ( ?b ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P1001
Q11204 Q4830453
USER
How many legislatures or business enterprises have jurisdiction over United States of America ?
(c(Q11204),P1001,Q30) (c(Q4830453),P1001,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P1001
type Q11204
action filter_type
action find_reverse
entity Q30
relation P1001
type Q4830453
[{'concept': 'Q11204'}, 'P1001', 'Q30'] [{'concept': 'Q4830453'}, 'P1001', 'Q30']
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:Q11204 ) ( ontology:Q4830453 ) } . ?o rdf:type ?h }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation applies to jurisdiction
type legislature
action filter_type
action find_reverse
entity United States of America
relation applies to jurisdiction
type business enterprise
[{'concept': 'legislature'}, 'applies to jurisdiction', 'United States of America'] [{'concept': 'business enterprise'}, 'applies to jurisdiction', 'United States of America']
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:legislature ) ( ontology:business_enterprise ) } . ?o rdf:type ?h }
[]
legislature business enterprise
SYSTEM
2
Q2901333 Q11268
(c(Q11204),P1001,Q30) (c(Q4830453),P1001,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P1001
type Q11204
action filter_type
action find_reverse
entity Q30
relation P1001
type Q4830453
[ANSWER]
[{'concept': 'Q11204'}, 'P1001', 'Q30'] [{'concept': 'Q4830453'}, 'P1001', 'Q30']
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:Q11204 ) ( ontology:Q4830453 ) } . ?o rdf:type ?h }
S corporation United States Congress
2
action count
action union
action filter_type
action find_reverse
entity United States of America
relation applies to jurisdiction
type legislature
action filter_type
action find_reverse
entity United States of America
relation applies to jurisdiction
type business enterprise
[{'concept': 'legislature'}, 'applies to jurisdiction', 'United States of America'] [{'concept': 'business enterprise'}, 'applies to jurisdiction', 'United States of America']
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { VALUES ( ?h ) { ( ontology:legislature ) ( ontology:business_enterprise ) } . ?o rdf:type ?h }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q1048835
USER
Which political territories have tactful political relations with atmost 120 political territories or administrative territories ?
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action atmost
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 120
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) ?r WHERE { { ?r property:P530 ?u . ?r rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } UNION { ?r property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } } GROUP BY ?r } . FILTER ( ?p <= 120 ) }
action atmost
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 120
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) ?r WHERE { { ?r property:diplomatic_relation ?u . ?r rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } UNION { ?r property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } } GROUP BY ?r } . FILTER ( ?p <= 120 ) }
[]
political territorial entity designation for an administrative territorial entity political territorial entity
Q408 Q35 Q16
SYSTEM
Australia, Denmark, Canada
Q1000 Q40 Q781 Q778 Q408 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835)|c(Q15617994))
action atmost
action union
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 120
[ANSWERS] have tactful political relations with atmost 120 political territories or administrative territories
[{'concept': 'Q1048835'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) ?r WHERE { { ?r property:P530 ?u . ?r rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } UNION { ?r property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } } GROUP BY ?r } . FILTER ( ?p <= 120 ) }
Gabon Austria Antigua and Barbuda The Bahamas Australia Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Australia, Denmark and Canada have tactful political relations with atmost 120 political territories or administrative territories
Australia Denmark Canada
action atmost
action union
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 120
[{'concept': 'political territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) ?r WHERE { { ?r property:diplomatic_relation ?u . ?r rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } UNION { ?r property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } } GROUP BY ?r } . FILTER ( ?p <= 120 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P35
Q502895
USER
How many people are the heads of state of that political territory ?
(Q35,P35,c(Q502895))
['Q35', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q22286761 property:Q48352 ?z . ?z rdf:type ontology:Q502895 }
['Denmark', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Denmark property:head_of_state ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q408
SYSTEM
Did you mean Australia ?
(Q408,P35,c(Q502895)) (Q35,P35,c(Q502895)) (Q16,P35,c(Q502895))
[ANSWER]
['Q408', 'P35', {'concept': 'Q502895'}] ['Q35', 'P35', {'concept': 'Q502895'}] ['Q16', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q22286761 property:Q48352 ?z . ?z rdf:type ontology:Q502895 }
Did you mean Australia ?
Australia
['Australia', 'head of state', {'concept': 'common name'}] ['Denmark', 'head of state', {'concept': 'common name'}] ['Canada', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Denmark property:head_of_state ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Denmark. Could you tell me the answer for that?
(Q35,P35,c(Q502895))
Q35
['Q35', 'P35', {'concept': 'Q502895'}]
['Denmark', 'head of state', {'concept': 'common name'}]
[]
SYSTEM
23
Q151305 Q154041 Q161958 Q156187 Q157793 Q156572 Q157776 Q152756 Q154460 Q157812 Q151312 Q157789 Q153940 Q161059 Q157781 Q58056 Q102139 Q156617 Q155002 Q154998 Q94941 Q153586 Q154993
(Q35,P35,c(Q502895))
[ANSWER]
['Q35', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q22286761 property:Q48352 ?z . ?z rdf:type ontology:Q502895 }
Christian IX of Denmark Frederick II of Denmark Eric of Pomerania Frederick V of Denmark Christian V of Denmark Christian VII of Denmark John, King of Denmark Frederick VIII of Denmark Christian II of Denmark Frederick III of Denmark Frederick IX of Denmark Frederick I of Denmark Christian I of Denmark Frederick IV of Denmark Christian VIII of Denmark Christopher of Bavaria Margrethe II of Denmark Christian X of Denmark Frederick VI of Denmark Christian III of Denmark Frederick VII of Denmark Christian IV of Denmark Christian VI of Denmark
23
['Denmark', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Denmark property:head_of_state ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships with atleast 5 political territories ?
(c(Q1048835),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 5
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?h ) WHERE { ?l property:P530 ?q . ?l rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?l } . FILTER ( ?h >= 5 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?h ) WHERE { ?l property:diplomatic_relation ?q . ?l rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?l } . FILTER ( ?h >= 5 ) }
[]
political territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 5
[ANSWERS] have diplomatic relationships with atleast 5 political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?h ) WHERE { ?l property:P530 ?q . ?l rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q1048835 } GROUP BY ?l } . FILTER ( ?h >= 5 ) }
Germany Australia
Germany and Australia have diplomatic relationships with atleast 5 political territories
Germany Australia
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 5
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?q ) AS ?h ) WHERE { ?l property:diplomatic_relation ?q . ?l rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?l } . FILTER ( ?h >= 5 ) }
[]