Simple Question (Direct)
Simple Question
Q40553
P47
Q13220204
USER
Which administrative country subdivisions have a shared border with Brusimpiano ?
(Q40553,P47,c(Q13220204))
action filter_type
action find
entity Q40553
relation P47
type Q13220204
['Q40553', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q13220204 . resource:Q40553 property:P47 ?b }
Brusimpiano
action filter_type
action find
entity Brusimpiano
relation shares border with
type second-level administrative country subdivision
['Brusimpiano', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:second-level_administrative_country_subdivision . resource:Brusimpiano property:shares_border_with ?b }
[]
second-level administrative country subdivision
Q67270 Q68224
SYSTEM
Caslano, Morcote
Q67270 Q68224
(Q40553,P47,c(Q13220204))
action filter_type
action find
entity Q40553
relation P47
type Q13220204
[ANSWERS] have a shared border with Brusimpiano
['Q40553', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q13220204 . resource:Q40553 property:P47 ?b }
Caslano Morcote
Caslano and Morcote have a shared border with Brusimpiano
Caslano Morcote
action filter_type
action find
entity Brusimpiano
relation shares border with
type second-level administrative country subdivision
['Brusimpiano', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:second-level_administrative_country_subdivision . resource:Brusimpiano property:shares_border_with ?b }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q67270 Q68224
P20
Q502895
USER
Which people have those administrative country subdivisions as the location of death ?
(c(Q502895),P20,Q67270) (c(Q502895),P20,Q68224)
action filter_type
action find_reverse
entity prev_answer
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q67270'] [{'concept': 'Q502895'}, 'P20', 'Q68224']
SELECT DISTINCT ?r WHERE { VALUES ( ?x ) { ( resource:Q67270 ) ( resource:Q68224 ) } . ?r property:P20 ?x . ?r rdf:type ontology:Q502895 }
Caslano Morcote
action filter_type
action find_reverse
entity prev_answer
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Caslano'] [{'concept': 'common name'}, 'place of death', 'Morcote']
SELECT DISTINCT ?r WHERE { VALUES ( ?x ) { ( resource:Caslano ) ( resource:Morcote ) } . ?r property:place_of_death ?x . ?r rdf:type ontology:common_name }
[]
common name
Q123442 Q2273123 Q3903976
SYSTEM
Gaspare Fossati, Sergio Maspoli, Pietro Isella
Q1240071 Q3903976 Q123442 Q2273123
(c(Q502895),P20,Q67270) (c(Q502895),P20,Q68224)
action filter_type
action find_reverse
entity prev_answer
relation P20
type Q502895
[ANSWERS] have those administrative country subdivisions as the location of death
[{'concept': 'Q502895'}, 'P20', 'Q67270'] [{'concept': 'Q502895'}, 'P20', 'Q68224']
SELECT DISTINCT ?r WHERE { VALUES ( ?x ) { ( resource:Q67270 ) ( resource:Q68224 ) } . ?r property:P20 ?x . ?r rdf:type ontology:Q502895 }
Donald Leslie Harradine Pietro Isella Gaspare Fossati Sergio Maspoli
Gaspare Fossati, Sergio Maspoli and Pietro Isella have those administrative country subdivisions as the location of death
Gaspare Fossati Sergio Maspoli Pietro Isella
action filter_type
action find_reverse
entity prev_answer
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Caslano'] [{'concept': 'common name'}, 'place of death', 'Morcote']
SELECT DISTINCT ?r WHERE { VALUES ( ?x ) { ( resource:Caslano ) ( resource:Morcote ) } . ?r property:place_of_death ?x . ?r rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q67270
P19
Q502895
USER
Who were born at Caslano ?
(c(Q502895),P19,Q67270)
action filter_type
action find_reverse
entity Q67270
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q67270']
SELECT DISTINCT ?b WHERE { ?b property:P19 resource:Q67270 . ?b rdf:type ontology:Q502895 }
Caslano
action filter_type
action find_reverse
entity Caslano
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Caslano']
SELECT DISTINCT ?b WHERE { ?b property:place_of_birth resource:Caslano . ?b rdf:type ontology:common_name }
[]
common name
Q3839485 Q4015189
SYSTEM
Luigi Chialiva, Vittore Gottardi
Q3839485 Q4015189
(c(Q502895),P19,Q67270)
action filter_type
action find_reverse
entity Q67270
relation P19
type Q502895
[ANSWERS] were born at Caslano
[{'concept': 'Q502895'}, 'P19', 'Q67270']
SELECT DISTINCT ?b WHERE { ?b property:P19 resource:Q67270 . ?b rdf:type ontology:Q502895 }
Luigi Chialiva Vittore Gottardi
Luigi Chialiva and Vittore Gottardi were born at Caslano
Luigi Chialiva Vittore Gottardi
action filter_type
action find_reverse
entity Caslano
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Caslano']
SELECT DISTINCT ?b WHERE { ?b property:place_of_birth resource:Caslano . ?b rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3839485
P69
Q3914
USER
Which school is that person an alumni of ?
(Q3839485,P69,c(Q3914))
action filter_type
action find
entity Q3839485
relation P69
type Q3914
['Q3839485', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q3914 . resource:Q3839485 property:P69 ?m }
Luigi Chialiva
action filter_type
action find
entity Luigi Chialiva
relation educated at
type school
['Luigi Chialiva', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:school . resource:Luigi_Chialiva property:educated_at ?m }
[]
school
Clarification for simple ques.
Q4015189
SYSTEM
Did you mean Vittore Gottardi ?
Q3839485 Q4015189
(Q3839485,P69,c(Q3914)) (Q4015189,P69,c(Q3914))
[ANSWER]
['Q3839485', 'P69', {'concept': 'Q3914'}] ['Q4015189', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q3914 . resource:Q3839485 property:P69 ?m }
Luigi Chialiva Vittore Gottardi
Did you mean Vittore Gottardi ?
Vittore Gottardi
['Luigi Chialiva', 'educated at', {'concept': 'school'}] ['Vittore Gottardi', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:school . resource:Luigi_Chialiva property:educated_at ?m }
[]
Simple Question (Coreferenced)
USER
No, I meant Luigi Chialiva. Could you tell me the answer for that?
(Q3839485,P69,c(Q3914))
Q3839485
['Q3839485', 'P69', {'concept': 'Q3914'}]
['Luigi Chialiva', 'educated at', {'concept': 'school'}]
[]
Q338472
SYSTEM
Brera Academy
Q338472
(Q3839485,P69,c(Q3914))
action filter_type
action find
entity Q3839485
relation P69
type Q3914
[ANSWER] is that person an alumni of
['Q3839485', 'P69', {'concept': 'Q3914'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q3914 . resource:Q3839485 property:P69 ?m }
Brera Academy
Brera Academy is that person an alumni of
Brera Academy
action filter_type
action find
entity Luigi Chialiva
relation educated at
type school
['Luigi Chialiva', 'educated at', {'concept': 'school'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:school . resource:Luigi_Chialiva property:educated_at ?m }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P85
Q484692 Q7725634 Q15617994
USER
Which administrative territories have max number of hymns and literary works as their anthem ?
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action argmax
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?y ) { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?c ) WHERE { ?t rdf:type ?u . VALUES ( ?u ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } GROUP BY ?r } } . { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?s ) WHERE { { ?n property:P85 ?b . ?b rdf:type ontology:Q484692 . ?n rdf:type ontology:Q15617994 } UNION { ?n property:P85 ?b . ?n rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q7725634 } } GROUP BY ?n } . FILTER ( ?s = ?y ) }
action argmax
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?y ) { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?c ) WHERE { ?t rdf:type ?u . VALUES ( ?u ) { ( ontology:hymn ) ( ontology:literary_work ) } } GROUP BY ?r } } . { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?s ) WHERE { { ?n property:anthem ?b . ?b rdf:type ontology:hymn . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?n property:anthem ?b . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:literary_work } } GROUP BY ?n } . FILTER ( ?s = ?y ) }
[]
hymn literary work designation for an administrative territorial entity
Q159 Q242 Q1045
SYSTEM
Russia, Belize, Somalia
Q159 Q242 Q1045
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action argmax
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
[ANSWERS] have max number of hymns and literary works as their anthem
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?y ) { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?c ) WHERE { ?t rdf:type ?u . VALUES ( ?u ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } GROUP BY ?r } } . { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?s ) WHERE { { ?n property:P85 ?b . ?b rdf:type ontology:Q484692 . ?n rdf:type ontology:Q15617994 } UNION { ?n property:P85 ?b . ?n rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q7725634 } } GROUP BY ?n } . FILTER ( ?s = ?y ) }
Russia Belize Somalia
Russia, Belize and Somalia have max number of hymns and literary works as their anthem
Russia Belize Somalia
action argmax
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?y ) { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?c ) WHERE { ?t rdf:type ?u . VALUES ( ?u ) { ( ontology:hymn ) ( ontology:literary_work ) } } GROUP BY ?r } } . { SELECT DISTINCT ?n ( COUNT ( ?b ) AS ?s ) WHERE { { ?n property:anthem ?b . ?b rdf:type ontology:hymn . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?n property:anthem ?b . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:literary_work } } GROUP BY ?n } . FILTER ( ?s = ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q36
P530
Q15617994 Q15617994
USER
How many administrative territories have a diplomatic relationship with less number of administrative territories than Poland ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q36
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:P530 ?a . ?d rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:P530 resource:Q36 . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?w < ?p ) }
Poland
action count
action less
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_reverse
entity Poland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:diplomatic_relation ?a . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:diplomatic_relation resource:Poland . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w < ?p ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
103
Q702 Q804 Q800 Q419 Q55 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1027 Q1020 Q189 Q842 Q184 Q1029 Q1028 Q736 Q786 Q225 Q221 Q96 Q229 Q902 Q1036 Q1037 Q1032 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q117 Q754 Q750 Q217 Q214 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q36
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:P530 ?a . ?d rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:P530 resource:Q36 . ?q rdf:type ontology:Q15617994 } } . FILTER ( ?w < ?p ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Mauritius Malawi Iceland Oman Belarus Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Niger Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ghana Trinidad and Tobago Bolivia Republic of Moldova Slovakia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia Thailand
103
action count
action less
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_reverse
entity Poland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?d ) AS ?w ) WHERE { ?d property:diplomatic_relation ?a . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { ?q property:diplomatic_relation resource:Poland . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?w < ?p ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q971
P530
Q15617994 Q15617994
USER
And how about Republic of the Congo?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q971
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { ?y property:P530 resource:Q971 . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?h < ?j ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?h ) WHERE { ?n rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 . ?k property:P530 ?n } GROUP BY ?n } }
Republic of the Congo
action count
action less
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_reverse
entity Republic of the Congo
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { ?y property:diplomatic_relation resource:Republic_of_the_Congo . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?h < ?j ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?h ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?n } GROUP BY ?n } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
64
Q702 Q804 Q783 Q784 Q265 Q712 Q710 Q837 Q657 Q792 Q790 Q986 Q242 Q244 Q811 Q929 Q29999 Q854 Q819 Q424 Q730 Q1013 Q232 Q238 Q20 Q1045 Q1041 Q921 Q1027 Q1020 Q842 Q1028 Q786 Q1036 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q117 Q754 Q218 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q970 Q683 Q34020 Q686 Q836 Q574 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q971
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { ?y property:P530 resource:Q971 . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?h < ?j ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?h ) WHERE { ?n rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 . ?k property:P530 ?n } GROUP BY ?n } }
Federated States of Micronesia Panama Honduras Dominica Uzbekistan Fiji Kiribati Nepal Chad El Salvador Haiti Eritrea Belize Barbados Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Kazakhstan San Marino Norway Somalia Senegal Brunei Mauritius Malawi Oman Morocco Dominican Republic Uganda Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Ghana Trinidad and Tobago Romania Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Comoros Samoa Niue Vanuatu Myanmar East Timor Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia
64
action count
action less
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_reverse
entity Republic of the Congo
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { ?y property:diplomatic_relation resource:Republic_of_the_Congo . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?h < ?j ) . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?h ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:diplomatic_relation ?n } GROUP BY ?n } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with max number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?a ) { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?y ) WHERE { ?c property:P530 ?s . ?c rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?c } } . { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?i ) WHERE { ?h property:P530 ?f . ?h rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?i = ?a ) }
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', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?a ) { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?y ) WHERE { ?c property:diplomatic_relation ?s . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } } . { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?i ) WHERE { ?h property:diplomatic_relation ?f . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?i = ?a ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230
SYSTEM
Georgia
Q230
(c(Q15617994),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
And [ANSWER] have diplomatic relations with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?a ) { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?y ) WHERE { ?c property:P530 ?s . ?c rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15617994 } GROUP BY ?c } } . { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?i ) WHERE { ?h property:P530 ?f . ?h rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?i = ?a ) }
Georgia
And Georgia have diplomatic relations with max number of administrative territories
Georgia
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', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?y ) AS ?a ) { SELECT DISTINCT ?c ( COUNT ( ?s ) AS ?y ) WHERE { ?c property:diplomatic_relation ?s . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } } . { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?i ) WHERE { ?h property:diplomatic_relation ?f . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?i = ?a ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q230
P276
Q1190554
USER
Which event is located at that administrative territory ?
(c(Q1190554),P276,Q230)
action filter_type
action find_reverse
entity Q230
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q230']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1190554 . ?p property:P276 resource:Q230 }
Georgia
action filter_type
action find_reverse
entity Georgia
relation location
type event
[{'concept': 'event'}, 'location', 'Georgia']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:event . ?p property:location resource:Georgia }
[]
event
Q4871427
SYSTEM
Battle of Khresili
Q4871427
(c(Q1190554),P276,Q230)
action filter_type
action find_reverse
entity Q230
relation P276
type Q1190554
[ANSWER] is located at that administrative territory
[{'concept': 'Q1190554'}, 'P276', 'Q230']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q1190554 . ?p property:P276 resource:Q230 }
Battle of Khresili
Battle of Khresili is located at that administrative territory
Battle of Khresili
action filter_type
action find_reverse
entity Georgia
relation location
type event
[{'concept': 'event'}, 'location', 'Georgia']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:event . ?p property:location resource:Georgia }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12666 Q230
P47 P530
Q1048835
USER
Which political territories have diplomatic relationships with Georgia or have a shared border with Vall de Cardós ?
OR((Q230,P530,c(Q1048835)), (Q12666,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q230
relation P530
action find
entity Q12666
relation P47
type Q1048835
{'OR': [['Q230', 'P530', {'concept': 'Q1048835'}], ['Q12666', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q230 property:P530 ?w } UNION { resource:Q12666 property:P47 ?w } } . ?w rdf:type ontology:Q1048835 }
Vall de Cardós Georgia
action filter_type
action union
action find
entity Georgia
relation diplomatic relation
action find
entity Vall de Cardós
relation shares border with
type political territorial entity
{'OR': [['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Vall de Cardós', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Georgia property:diplomatic_relation ?w } UNION { resource:Vall_de_Cardós property:shares_border_with ?w } } . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q778 Q12668 Q16 Q12682 Q40 Q12664 Q1000 Q183 Q664 Q12669
SYSTEM
Some of them are The Bahamas, Lladorre, Canada, Llavorsí, Austria, La Guingueta d'Àneu, Gabon, Germany, New Zealand, Esterri de Cardós
Q1000 Q12668 Q40 Q12669 Q781 Q12664 Q183 Q12672 Q408 Q769 Q35 Q16 Q778 Q664 Q766 Q12682 Q12678
OR((Q230,P530,c(Q1048835)), (Q12666,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q230
relation P530
action find
entity Q12666
relation P47
type Q1048835
[ANSWERS] have diplomatic relationships with Georgia or have a shared border with Vall de Cardós
{'OR': [['Q230', 'P530', {'concept': 'Q1048835'}], ['Q12666', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q230 property:P530 ?w } UNION { resource:Q12666 property:P47 ?w } } . ?w rdf:type ontology:Q1048835 }
Gabon Lladorre Austria Esterri de Cardós Antigua and Barbuda La Guingueta d'Àneu Germany Alins Australia Grenada Denmark Canada The Bahamas New Zealand Jamaica Llavorsí Tírvia
The Bahamas, Lladorre, Canada, Llavorsí, Austria, La Guingueta d'Àneu, Gabon, Germany, New Zealand and Esterri de Cardós have diplomatic relationships with Georgia or have a shared border with Vall de Cardós
The Bahamas Lladorre Canada Llavorsí Austria La Guingueta d'Àneu Gabon Germany New Zealand Esterri de Cardós
action filter_type
action union
action find
entity Georgia
relation diplomatic relation
action find
entity Vall de Cardós
relation shares border with
type political territorial entity
{'OR': [['Georgia', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Vall de Cardós', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Georgia property:diplomatic_relation ?w } UNION { resource:Vall_de_Cardós property:shares_border_with ?w } } . ?w rdf:type ontology:political_territorial_entity }
[]